Files
llmx/codex-rs/core/templates/compact/prompt.md
jif-oai ea225df22e feat: context compaction (#3446)
## Compact feature:
1. Stops the model when the context window become too large
2. Add a user turn, asking for the model to summarize
3. Build a bridge that contains all the previous user message + the
summary. Rendered from a template
4. Start sampling again from a clean conversation with only that bridge
2025-09-12 13:07:10 -07:00

553 B

You have exceeded the maximum number of tokens, please stop coding and instead write a short memento message for the next agent. Your note should:

  • Summarize what you finished and what still needs work. If there was a recent update_plan call, repeat its steps verbatim.
  • List outstanding TODOs with file paths / line numbers so they're easy to find.
  • Flag code that needs more tests (edge cases, performance, integration, etc.).
  • Record any open bugs, quirks, or setup steps that will make it easier for the next agent to pick up where you left off.