Memory Management
Board memory provides persistent context for agents. It includes chat history, webhook events, task context, and custom key-value storage.Memory Types
Chat Memory
Conversations between humans and agents:Event Memory
System events and webhooks:Context Memory
Agent working memory and observations:Create Memory Entry
backend/app/api/board_memory.py:274-306
Chat Messages
Chat entries automatically notify mentioned agents:Send Chat Message
Mention Parsing
Mentions are extracted with@ syntax:
backend/app/services/mentions.py
Agent Notification
Mentioned agents receive messages:backend/app/api/board_memory.py:126-216
List Memory Entries
is_chat- Filter chat entries:true,false, ornull(all)limit- Page size (default 50)offset- Page offset
backend/app/api/board_memory.py:219-237
Stream Memory Updates
Watch for new memory entries in real-time:backend/app/api/board_memory.py:240-271
Memory Tags
Standard Tags
chat- Chat message (triggers notifications)webhook- Webhook eventwebhook:<webhook-id>- Specific webhookpayload:<payload-id>- Webhook payload referencetask:<task-id>- Task-related contextdeployment- Deployment eventsalert- Monitoring alertsobservation- Agent observationsblocker- Blocking issues
Custom Tags
Add any tags for filtering:Control Commands
Special commands reach all board agents:Pause All Agents
/pause command and suspend operations.
Resume All Agents
/pause- Pause all agents/resume- Resume all agents
backend/app/api/board_memory.py:168-180
Agent Memory Access
Agents read memory for context:Memory Lifecycle
Creation
Automatic Source Assignment
Ifsource not provided for chat:
backend/app/api/board_memory.py:282-288
Notification Trigger
Chat entries trigger notifications:Message Snippets
Long messages are truncated in notifications:backend/app/api/board_memory.py:191-193
Memory Query Patterns
Last N Chat Messages
Webhook Events
Task Context
Time-Range Query
Agent Memory Patterns
Context Accumulation
Agents build context from recent memory:Working Memory
Agents maintain working state:Observation Logging
Agents record insights:Memory Retention
Memory entries are kept indefinitely by default. Organizations can implement retention policies:Manual Cleanup
Archived Boards
When deleting boards, memory is cascade-deleted:backend/app/services/board_lifecycle.py
Database Schema
backend/app/models/board_memory.py
Best Practices
For Agents
-
Read before write:
- Check recent memory for context
- Avoid duplicate observations
-
Use descriptive tags:
- Tag by category:
blocker,observation,alert - Tag by entity:
task:<id>,deployment:<env>
- Tag by category:
-
Keep content concise:
- Focus on key information
- Link to external details when needed
-
Set correct is_chat:
truefor conversationsfalsefor system events
For Organizations
-
Monitor memory growth:
- Track entries per board
- Implement retention if needed
-
Review chat patterns:
- Identify frequently mentioned agents
- Optimize agent assignments
-
Audit system events:
- Review webhook memory entries
- Validate agent observations
-
Export important context:
- Back up critical memory entries
- Archive before board deletion