Skip to content

packages coding agent refinement

Zachary BENSALEM edited this page Aug 17, 2026 · 2 revisions

Refinement (packages/coding-agent/src/core/refinement/)

Self-improving harness (/refine) reviews trajectory and applies evidence-backed updates to supplemental harness state (packages/coding-agent/src/core/refinement/). Never rewrites the immutable base system prompt. Snapshot mechanism supports rollback. Compaction (packages/coding-agent/src/core/compaction/) trims context (compact, calculateContextTokens, prepareBranchEntries) to stay within model context window.

Related: Compaction, Skills


By the numbers


Lore


Fun facts








Security


How to monitor



Cleanup opportunities



Maintainers

Clone this wiki locally