Skip to content

Memory

Agent Nine remembers important context across your conversation.

Session Memory

As you work, Agent Nine automatically extracts key facts:

  • Files you've modified
  • Decisions you've made
  • Architecture patterns discovered
  • Errors encountered and resolved

This happens in the background — you don't need to do anything.

Context Compaction

When a conversation gets too long for the AI's context window, Agent Nine compacts it:

  1. Smart summary — Uses extracted facts as a summary (instant, instant)
  2. AI summarization — AI summarizes old messages, keeping recent ones
  3. File restoration — Recently read files are re-injected after compaction

You can manually compact with:

/compact

What's Preserved After Compaction

  • All file paths mentioned
  • Key decisions and their rationale
  • Current task state
  • Errors and resolutions
  • Your original request
  • Recently accessed file contents (top 5)
  • Active plan (if in plan mode)

What's Lost

  • Exact wording of old messages
  • Intermediate thinking steps
  • Old tool outputs (grep results, command outputs)

Agent Nine — AI coding assistant