← All docs

DOCS

  1. Getting Started
  2. Configuration
  3. Tools
  4. Sessions
  5. Compaction & Branch Summarization
  6. Subagents
  7. Extensions
  8. Themes
  9. Memory System
  10. Skills
  11. Code intelligence (LSP)
  12. Termux Support
  13. Environment variables
  14. Custom Providers
  15. JSON Event Stream Mode
  16. Keybindings
  17. Prompt Templates
  18. RPC Mode
  19. Session File Format
  20. Shell Aliases
  21. Terminal Setup
  22. tmux Setup
DOCS
  1. Getting Started
  2. Configuration
  3. Tools
  4. Sessions
  5. Compaction & Branch Summarization
  6. Subagents
  7. Extensions
  8. Themes
  9. Memory System
  10. Skills
  11. Code intelligence (LSP)
  12. Termux Support
  13. Environment variables
  14. Custom Providers
  15. JSON Event Stream Mode
  16. Keybindings
  17. Prompt Templates
  18. RPC Mode
  19. Session File Format
  20. Shell Aliases
  21. Terminal Setup
  22. tmux Setup
ON THIS PAGE
  1. How It Works
  2. Commands
  3. Storage
  4. Settings
  5. Extraction

Memory System

Neo Code persists context across sessions using an automatic memory system.

#How It Works

After each session, Neo Code extracts key decisions, patterns, and project context into memory entries. These are injected into future sessions to provide continuity.

#Commands

/memory list              Show stored memories (up to 20)
/memory search <query>    Search memories by keyword
/memory add title | body  Manually add a memory
/memory delete <id>       Delete a memory by ID prefix
/memory clear             Delete all memories
/memory prune             Remove stale or over-limit memories

#Storage

Memories are stored as markdown files in ~/.neo-code/agent/memories/. Each memory has:

  • Title — Short summary
  • Content — Full context (max 2000 chars, secrets redacted)
  • Tags — Categorization (auto-extracted or manual)
  • Usage count — How often it's been injected
  • Created at — Timestamp

#Settings

Configure in settings.json or via /settings:

KeyDefaultDescription
memories.enabledtrueEnable memory injection into sessions
memories.autoExtracttrueAuto-extract memories after sessions
memories.maxStored50Maximum number of memories to keep
memories.maxInjected10Max memories injected per session
memories.maxInjectionChars4000Char budget for memory injection
memories.pruneAfterDays90Auto-remove memories older than N days

#Extraction

Memories are extracted automatically from completed sessions. The system looks for:

  • Project decisions and conventions
  • Debugging patterns that worked
  • Architecture choices
  • Tool configurations
  • Recurring workflows

ON THIS PAGE

  1. How It Works
  2. Commands
  3. Storage
  4. Settings
  5. Extraction
Previous← ThemesNextSkills →

Neo Code

Neosantara-first AI coding agent for your terminal.

Product

  • Docs
  • Pricing
  • GitHub

Neosantara

  • Dashboard
  • API

Legal

  • Terms
  • Privacy

2026 Neosantara. All rights reserved.