Documentation Index
Fetch the complete documentation index at: https://mintlify.com/SynkraAI/aiox-core/llms.txt
Use this file to discover all available pages before exploring further.
Overview
AIOX agents maintain persistent memory across sessions through dedicated MEMORY.md files and state management systems. This enables agents to learn, adapt, and maintain context between interactions..aiox-core/development/agents/{agent-id}/MEMORY.mdEditable - MEMORY.md files are in the L3 (exceptions) layer
Committed - Team-shared learnings are version controlled
Memory File Structure
Each agent has a dedicated MEMORY.md file:Memory Categories
Recent Context
Active session state
Chronological log of completed workEach entry includes:
- Timestamp
- Task/action completed
- Associated story
- Key files modified
Learned Patterns
Reusable code patterns discovered during work
Code anti-patterns to avoidEach entry documents:
- Anti-pattern name
- Problem caused
- Recommended solution
- Where encountered
Gotchas
Build-related problems and solutions
Integration and dependency issuesDocuments:
- External API issues
- Library incompatibilities
- Environment-specific problems
- Configuration gotchas
Decision Log
Informal architecture decisions (not full ADRs)
Technology and library selectionsDocuments:
- Why technology was chosen
- Alternatives evaluated
- Trade-offs accepted
- Integration considerations
Gotchas Memory System
The Gotchas Memory System is an enhanced memory subsystem for capturing and retrieving project-specific issues:Gotcha Structure
Gotcha Commands
Manually add a gotcha
Search and list gotchas
Get relevant gotchas for current contextAutomatically suggests relevant gotchas based on:
- Current file/directory
- Active story
- Recent error messages
Auto-Capture
Gotchas are automatically captured when:- Build fails multiple times (≥2 failures)
- Tests fail with same error pattern
- Agent encounters same issue multiple times
- Error patterns match known signatures
State Persistence
Session State
.aiox/session-{timestamp}.yamlContains:- Active agent
- Current story
- Command history
- Permission mode
- Context snapshots
Build State
.aiox/build-state/{story-id}.jsonTracks:- Implementation plan
- Completed subtasks
- Current checkpoint
- Attempt history
- Test results
Recovery State
.aiox/recovery/{story-id}/Contains:attempts.json- Implementation attempt historyapproach.md- Current approach documentationcheckpoints/- Git checkpoints for rollback
Memory Operations
Reading Memory
Agents automatically load MEMORY.md on activation:Writing Memory
Memory is updated:- After command completion - Update Recent Work
- On pattern discovery - Add to Learned Patterns
- On issue resolution - Add to Gotchas
- On decision made - Add to Decision Log
Memory Cleanup
Old entries are archived after:
- Recent Work: 30 days
- Session State: 7 days (stale TTL)
- Build State: After merge
Memory Sharing
Team Memory
MEMORY.md files are committed to repositoryShared across team:
- Learned patterns
- Gotchas
- Decision log
- Best practices
Personal Memory
Session-specific state in
.aiox/ (gitignored)Personal only:- Session history
- Command history
- Personal preferences
Memory Intelligence Features
Pattern Learning
Agent analyzes code changes to identify reusable patternsTriggers:
- Similar code written 3+ times
- Successful problem resolution
- Team member code review feedback
Context Awareness
Agent loads relevant memory based on:
- Current story
- Current file/directory
- Command being executed
- Recent failures
Memory Validation
Location:
.aiox-core/development/checklists/memory-audit-checklist.mdValidates:- Memory file structure
- Entry completeness
- Pattern validity
- Gotcha accuracy
Best Practices
Memory Maintenance
Memory Maintenance
- Update MEMORY.md after significant learnings
- Review and clean up old entries monthly
- Ensure gotchas include clear solutions
- Document why decisions were made, not just what
- Use consistent terminology and categories
Gotcha Management
Gotcha Management
- Capture gotchas immediately when discovered
- Include reproduction steps
- Document root cause, not just symptoms
- Update frequency counter when recurring
- Link to related stories/PRs
Pattern Documentation
Pattern Documentation
- Include complete, runnable examples
- Explain when to use vs. when not to use
- Reference source story or documentation
- Update patterns as conventions evolve
- Remove deprecated patterns
Related Documentation
Reference:
.aiox-core/development/agents/*/MEMORY.md