Skip to content

Enable guided Fold compaction by default - #23

Merged
K-Mistele merged 4 commits into
mainfrom
feat/fold-compaction
Aug 27, 2026
Merged

Enable guided Fold compaction by default#23
K-Mistele merged 4 commits into
mainfrom
feat/fold-compaction

Conversation

@K-Mistele

@K-Mistele K-Mistele commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Summary

  • enable automatic compaction by default while preserving explicit opt-out for threshold and overflow behavior
  • keep manual compaction available for opted-out agents and accept one-shot host guidance
  • preserve important tactics, commands, and failed approaches in compaction summaries

Verification

  • bun run format:check
  • bun run lint (warnings only)
  • bun run typecheck
  • bun run test

Companion

Comment on lines +240 to +242
...(input.additionalInstructions === undefined
? {}
: { additionalInstructions: input.additionalInstructions }),

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't do this make it more readable

Comment on lines +207 to +216
...(input.additionalInstructions === undefined
? {}
: { additionalInstructions: input.additionalInstructions }),
})
const prompt = compactionInstruction({
previousSummary,
customPrompt: config.compactionPrompt ?? null,
...(input.additionalInstructions === undefined
? {}
: { additionalInstructions: input.additionalInstructions }),

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't do this, this is hard to read

@K-Mistele
K-Mistele merged commit 03a86a8 into main Aug 27, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant