๐ agentMemory
January 21, 2026 ยท View on GitHub
Hybrid Memory System for AI Coding Agents
Seamlessly integrate with KiloCode, Cline, and RooCode's built-in memory banks while providing powerful search, analytics, and automation.
๐ Now Available as an Antigravity Skill!
agentMemory is now fully compatible with Antigravity. Use it as a skill to give your agents persistent, searchable memory that syncs with your project documentation.
See SKILL.md for usage instructions.
๐ฏ What Makes agentMemory Different?
KiloCode, Cline, and RooCode already have memory banks - but they're manual and limited.
Their Built-In Memory Banks
.kilocode/rules/memory-bank/ โ Markdown files
.clinerules/memory-bank/ โ Manually updated
.roo/memory-bank/ โ No search capability
The Problem with Native Memory Banks:
- โ Manual Maintenance: Agents must manually rewrite files to update memory.
- โ No Search: Agents must read entire files to find specific information.
- โ No Analytics: No way to track memory growth or patterns over time.
- โ Isolated: Memories are locked to a single project.
โ The Solution: agentMemory
agentMemory fixes these limitations by upgrading your memory bank with:
.agentMemory/ โ Our structured database
โโโ Bi-directional sync โ Keeps their markdown updated
โโโ Powerful search โ Query by type, tags, content
โโโ Visual dashboard โ See trends and analytics
โโโ MCP tools โ Programmatic access for AI
Benefits:
- โ Automatic sync - No manual "update memory bank" needed
- โ Searchable - Find memories by query, type, or tags
- โ Visual dashboard - Charts, trends, and analytics
- โ Cross-project - Query memories across all your projects
- โ Compatible - Works WITH their systems, not against them
๐๏ธ How It Works: Hybrid Architecture
Two-Layer System
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Built-In Memory Banks (Markdown Files) โ
โ .kilocode/rules/memory-bank/ โ
โ .clinerules/memory-bank/ โ
โ .roo/memory-bank/ โ
โ โโโ Human-readable documentation โ
โ โโโ Git-committable โ
โ โโโ Read automatically by agents at session start โ
โโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โ โฌ Bi-Directional Sync โฌ
โ
โโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ agentMemory (Structured Storage + MCP Server) โ
โ .agentMemory/ โ
โ โโโ JSON database for fast queries โ
โ โโโ MCP tools (memory_read, memory_search, etc.) โ
โ โโโ Dashboard with analytics โ
โ โโโ Cross-project search capabilities โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
The Flow
1. Session Start - Passive Context Loading
AI reads markdown files (.kilocode/rules/memory-bank/)
โโ> Contains: Project context + MCP usage instructions
โโ> Sees: "This project uses agentMemory MCP tools"
2. During Session - Active Queries
AI needs to find auth patterns
โโ> Calls: memory_search({ query: "auth pattern" })
โโ> Gets: Structured results from our database
โโ> Faster and more accurate than file scanning
3. After Work - Automatic Sync
AI calls: memory_write({ key: "new-feature", ... })
โโ> We save to: .agentMemory/ (JSON database)
โโ> We sync to: .kilocode/rules/memory-bank/product.md
โโ> Next session: They see it in markdown automatically
โจ Key Features
๐ Bi-Directional Sync
Markdown โ MCP
- Parses existing memory bank files
- Imports sections as searchable memories
- Preserves human-friendly docs
MCP โ Markdown
- Auto-generates markdown from MCP data
- Appends to appropriate files:
architecture.mdโ Architecture decisionssystemPatterns.mdโ Code patternstechContext.mdโ Tech stack choicesproductContext.mdโ Featuresprogress.mdโ Status tracking
๏ฟฝ Powerful Search
// Search across ALL memories
memory_search({
query: "authentication",
type: "pattern",
tags: ["security"]
})
// Returns structured results from our database
// Much faster than scanning markdown files
๐ Visual Dashboard
- Memory trends over time
- Agent activity tracking
- Type distribution (architecture vs patterns vs features)
- Recent changes timeline
- Cross-project insights
๐ค Multi-Agent Support
| Agent | Memory Bank Location | Sync Status |
|---|---|---|
| KiloCode | .kilocode/rules/memory-bank/ | โ Full sync |
| Cline | .clinerules/memory-bank/ | โ Full sync |
| RooCode | .roo/memory-bank/ | โ Full sync |
Files Synced:
projectBrief.md/brief.mdarchitecture.md/systemPatterns.mdproductContext.md/product.mdtechContext.md/tech.mdactiveContext.md/context.mdprogress.mddecisionLog.md(RooCode)
๐ฆ Installation
From Marketplace (1-Click)
- Open VS Code
- Extensions โ Search "agentMemory"
- Click Install
- Reload VS Code
That's it! The extension will:
- โ Create MCP server configuration
- โ Inject memory-first instructions into memory banks
- โ Start bi-directional sync
- โ Enable dashboard
Manual Installation
git clone https://github.com/yourusername/agentMemory
cd agentMemory
npm install
npm run compile
npm run package
code --install-extension agentmemory-0.1.0.vsix
๐ฎ Usage
For End Users (Zero Config)
Once installed, agentMemory works automatically:
- Import existing memory banks on first run
- Sync new memories as agents create them
- Provide MCP tools for fast queries
- Update markdown files to keep agents in sync
No configuration needed!
For AI Agents (Automatic)
Agents will find mandatory instructions in their memory bank files:
# techContext.md
## agentMemory System (REQUIRED)
This project uses agentMemory for knowledge management.
### Required Workflow
1. Before ANY work: Call memory_search() to check existing knowledge
2. After ANY work: Call memory_write() to document decisions
3. Use memory_read() for specific pattern retrieval
Agents treat this as project architecture and follow it automatically.
๐ ๏ธ Memory Tools (MCP)
| Tool | Purpose | Example |
|---|---|---|
memory_write | Save new memory | Document architecture decisions |
memory_read | Get specific memory | Retrieve OAuth implementation |
memory_search | Query by content/tags | Find all auth-related patterns |
memory_list | List by type | Show all architecture decisions |
memory_update | Modify existing | Append to existing pattern |
memory_stats | View analytics | Usage statistics |
๏ฟฝ Project Structure
After installation, your project will have:
your-project/
โโโ .vscode/
โ โโโ settings.json # MCP server config (auto-created)
โ
โโโ .agentMemory/ # Our structured storage
โ โโโ uuid-001.json # Memory: OAuth architecture
โ โโโ uuid-002.json # Memory: API patterns
โ โโโ ...
โ
โโโ .kilocode/rules/memory-bank/ # KiloCode memory bank
โ โโโ brief.md # โฌ Synced with our database
โ โโโ architecture.md # โฌ Auto-updated
โ โโโ product.md # โฌ Auto-updated
โ โโโ tech.md # โฌ Auto-updated
โ
โโโ .clinerules/memory-bank/ # Cline memory bank
โ โโโ projectBrief.md # โฌ Synced
โ โโโ systemPatterns.md # โฌ Synced
โ โโโ ... # โฌ Synced
โ
โโโ .roo/memory-bank/ # RooCode memory bank
โโโ projectBrief.md # โฌ Synced
โโโ decisionLog.md # โฌ Synced
โโโ ... # โฌ Synced
All markdown files stay human-readable and git-friendly!
๐ก Example Workflow
Day 1: Initial Implementation
User โ KiloCode: "Create OAuth authentication"
- KiloCode implements OAuth
- Calls:
memory_write({ key: "oauth-impl", type: "architecture", ... }) - agentMemory saves to:
.agentMemory/uuid-001.json(our database).kilocode/rules/memory-bank/architecture.md(their markdown)
Day 3: Extension by Different Agent
User โ Cline: "Add Google OAuth provider"
- Cline reads
.clinerules/memory-bank/architecture.md - Sees OAuth documentation (synced from our database)
- Calls:
memory_search({ query: "oauth" }) - Gets structured results instantly
- Implements Google provider consistently
Day 7: New Developer Onboarding
New Dev โ RooCode: "How does authentication work?"
- RooCode reads
.roo/memory-bank/systemPatterns.md - Sees complete auth patterns (auto-synced)
- Calls:
memory_read({ key: "oauth-impl" }) - Gets full OAuth architecture doc
- โ Instant understanding - Zero learning curve
๐ฏ Why agentMemory?
| Feature | agentMemory | Built-In Banks | Standalone MCP |
|---|---|---|---|
| Markdown Files | โ Synced | โ Manual | โ No |
| Search | โ Fast indexed | โ No | โ Yes |
| Analytics | โ Dashboard | โ No | โ No |
| Automation | โ Auto-sync | โ Manual | โ ๏ธ Partial |
| Multi-Agent | โ All 3 | โ Per-agent | โ All |
| Git-Friendly | โ Yes | โ Yes | โ ๏ธ Depends |
| Cross-Project | โ Yes | โ No | โ No |
๏ฟฝ Dashboard
Opening Dashboard
Cmd/Ctrl+Shift+P โ "agentMemory: Open Memory Dashboard"
Features
- Overview: Total memories, active agents, recent activity
- Charts: Memory types, agent activity, trends over time
- Search: Query memories with filters
- Export: Generate markdown summaries
- Sync Status: See which files are synced
๏ฟฝ Privacy & Security
- โ 100% Local - No cloud storage
- โ Offline-First - Works without internet
- โ
Git-Friendly - Commit
.agentMemory/to version control - โ Open Source - Audit the code yourself
๐ค Contributing
Contributions welcome! See CONTRIBUTING.md
๐ License
MIT ยฉ Amit Rathiesh (Webzler Solutions Inc.)
๐จโ๐ป Author
Amit Rathiesh
Webzler Solutions Inc.
๐ง amitrathiesh@webzler.com
๐ www.webzler.com
๐ @amitrathiesh