Overview
| Level | Lifecycle | Maintained By | Typical Content |
|---|---|---|---|
| Conversation Context | Current session | Automatically accumulated by Qoder | Historical messages, tool calls, results |
| Project Instructions | Long-term, per project | You or your team | AGENTS.md, rules |
| Long-Term Memory | Long-term, cross-session | Team conventions + optional Auto-Memory | Preferences, project background, locations of external resources |
Conversation Context
- Session-scoped: It only exists within the current session. When you start a new session, the previous conversation context is not automatically carried over.
- Limited capacity: The context window is finite. The longer the conversation, the more space it consumes.
- Manageable: You can proactively clear or compact the context.
Managing Conversation Context
/clear: Clears the conversation history context and starts a new session, allowing you to "start from scratch." This is useful when switching to a completely unrelated new task./compact: Summarizes and compacts the current session's historical context into a more concise form, freeing up context space while retaining key information. Ideal for long sessions when the context starts getting tight.
Project Instructions
AGENTS.md: The default context file name for Qoder CLI, suitable for hosting overall project instructions and stable conventions. Common locations include user-level~/.qoder/AGENTS.md, project-level<project>/AGENTS.md, and local project-level<project>/AGENTS.local.md.- Rules: Markdown rule files placed under
<project>/.qoder/rules/, split by topic or file scope, suitable for replacing a single bloatedAGENTS.md.
/init in your project to automatically generate AGENTS.md, or use /memory to manage memory files at various levels. For full details, see Memory.
Project instructions are context provided to the model, not enforced policies. If you need to strictly block certain commands, tools, or paths, use permission or Hooks.
Long-Term Memory
AGENTS.md, rules), Qoder CLI also supports Auto-Memory: when enabled, Qoder saves information learned from conversations that remains useful later into local Markdown memory files, such as your preferences, feedback, project background, and the locations of external reference materials.
Entry points for viewing and managing Auto-Memory:
- Open the auto-memory folder in the
/memorypanel. - Run
/memory manageto manage automatically saved topic files.
How They Work Together
- Conversation context addresses "where we are in this session."
- Project instructions address "what conventions must be followed in this project."
- Long-term memory addresses "what preferences and background should be remembered across sessions."
/clear or /compact when necessary.