Context and session management
Keep long Nova sessions focused by understanding what enters context, when to compact it, and where durable information belongs.Why context matters
The active model can reason only over the information currently supplied to it. In Nova, that context may include system policy, organisation rules, agent instructions, project guidance, saved memory, conversation turns, tool definitions, and recent tool results. Context is not the same as the repository. Files remain on disk until Nova searches or reads them. A large codebase does not automatically consume the whole context window.Sources of context
Nova assembles relevant information from:- Built-in system and workflow instructions.
- Organisation rules and policies when configured.
- The active agent’s prompt and capability profile.
NOVA.md,NOVA.local.md, and.compass/rules/*.mdproject instructions.- Explicit project and shared memory topics.
- The current conversation and its summaries.
- Results from file, shell, Git, MCP, and other tools.
- User-provided file references and attachments.
Inspect context usage
Use:/usage for usage information. Context consumption and account usage are related but not interchangeable.
Keep prompts scoped
Efficient sessions give Nova a bounded objective and concrete evidence targets. Prefer:Side questions
Use/ask for a question that should not pollute the main conversation:
Compact long sessions
Use:Clear, reset, and rollback
These operations have different scopes:/rollback lastremoves the last user/assistant turn from conversation context; existing side effects remain./clearcreates a fresh session after clearing conversation history, token statistics, operation history, and compacted summaries. It prompts before clearing conversations with more than 20 messages unless--forceis supplied./resetis registered as an alias of/clear; it does not expose a broader in-session reset operation.nova resetis a separate, destructive top-level command for deleting global or project Compass data. Review its scope and confirmation prompt carefully./compactpreserves a summary and is usually the safer option when the goal is merely to free context.
Saved sessions
Nova stores project session history under Compass-managed state. From the terminal, use:Instructions versus memory
Use the right persistence mechanism:NOVA.mdand rules — stable team conventions and instructions that should shape future work.- Memory — explicit preferences, project decisions, deadlines, and references worth recalling later.
- Session history — the detailed record of one conversation.
- Compaction summary — continuity for the current long-running session.
Practical strategy
- Start each session with one coherent objective.
- Let Nova search for code rather than pasting entire directories.
- Use
@filereferences for critical inputs. - Inspect
/contextwhen the thread becomes long. - Use
/askfor isolated questions. - Preview and run
/compactbefore context pressure becomes severe. - Move stable conventions into
NOVA.mdor a focused rule file. - Resume saved sessions only when their decisions still apply to the current repository state.
What you learned
- Context is finite and contains retrieved project evidence, instructions, conversation, and tool results.
- Use scoped prompts, side questions, and compaction to keep a session focused.
- Store enduring rules in project instructions and use memory or session history only for their appropriate purpose.
Safe practice exercise
In a long non-production session, run/context, then use /compact --preview. Check that the preview preserves the next action and constraints before you compact the conversation.
Previous: Explore, plan, code, verify, commit
Return to lesson 5.
Next: Code review and safe recovery
Continue to lesson 7.