How Context Works
When conversations grow longer, they exceed the model’s context window limit:1
User
First message from user
2
Cerebrum
Response from Cerebrum
3
User
Another message
4
⚠️ Context window limit
Messages below exceed the limit
5
Cerebrum
❌ Can’t fit
6
User
❌ Can’t fit
1
📦 Summarized Messages
Older messages compressed into summary
2
Cerebrum
Recent response (with overlap from previous context)
3
User
✅ Fits within limit
4
Cerebrum
✅ Fits within limit
Automatic Summarization
Cerebrum uses a sliding window with overlap approach. The overlap ensures context continuity - when summarizing, Cerebrum preserves context from the previous window so important connections aren’t lost.| Window | Messages | Overlap |
|---|---|---|
| 1 | 1, 2, 3 | — |
| 2 | 3, 4, 5, 6 | Message 3 from Window 1 |
| 3 | 6, 7, 8, 9 | Message 6 from Window 2 |
Summarization happens automatically in the background. You don’t need to do anything special.
What Gets Preserved
When Cerebrum summarizes context, it prioritizes:| Priority | Information Type | Example |
|---|---|---|
| Critical | Architecture decisions | ”Using PostgreSQL for the database” |
| Critical | Requirements from PRD | ”Must support 1000 concurrent users” |
| High | Service configurations | ”Backend runs on port 3000” |
| High | Current task context | ”Working on user authentication” |
| Medium | Previous solutions | ”Fixed CORS issue by adding headers” |
| Low | Exploratory discussions | ”Considered Redis but chose PostgreSQL” |
Canvas as Source of Truth
The Canvas serves as the persistent source of truth for your project, displaying:- Current Environment - Shows the state of a specific environment (dev, staging, prod)
- Services - All microservices deployed in the selected environment with their configurations
- PRD Document - Product Requirements Document with all agreed-upon specifications
- Test Cases - Defines expected behavior and validation criteria
- Architecture - Visual representation of how services connect and communicate
Session Continuity
Your work persists across sessions:- Conversation History - Previous messages are saved
- Canvas State - Your architecture and services remain
- PRD Document - Requirements document is always accessible
- Environment Configs - All settings are preserved
Best Practices
Reference the Canvas
Reference the Canvas
When context seems lost, ask Cerebrum to “look at the Canvas” - it shows the current environment, all services, and their configurations.
Check Environment State
Check Environment State
The Canvas displays the state of a specific environment. Make sure you’re looking at the right env (dev/staging/prod) when discussing changes.
Summarize Yourself
Summarize Yourself
For complex discussions, provide your own summary: “To recap, we decided to use X because Y.”
Break Into Sessions
Break Into Sessions
For very large projects, consider completing major milestones before moving on. This creates natural breakpoints.
Context Limits by Model
Different models have different context windows:| Model | Context Window |
|---|---|
| Gemini 3 Pro | 1M tokens |
| GPT-5.1 | 256K tokens |
| Claude Sonnet 4.5 | 200K tokens |
| Claude Opus 4.5 | 200K tokens |
| Grok 4.1 | 128K tokens |
Larger context windows mean less frequent summarization, but all models benefit from Cerebrum’s smart context management.

