Package Exports
- a24z-memory
- a24z-memory/dist/lib.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (a24z-memory) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
a24z-memory: Your Codebase's Living Memory
One-click install for Cursor & VS Code β β’ Works with Claude Code, Windsurf, Gemini CLI & Jules
The Problem We Solve
Every codebase accumulates tribal knowledgeβthose critical insights about why things work the way they do, what pitfalls to avoid, and which patterns to follow. But this knowledge gets lost in:
- π§ Developers' heads when they leave or forget
- π¬ Slack threads that disappear into history
- π PR comments that nobody reads again
- π Documentation that becomes stale the moment it's written
Our Solution: Knowledge That Lives With Your Code
a24z-memory captures and preserves your team's hard-won insights by anchoring them directly to your code. Unlike traditional documentation that rots or embeddings that become stale, our knowledge stays fresh because it's connected to the actual files.
When your AI assistant needs context, it doesn't get outdated embeddingsβit gets your team's accumulated wisdom plus the current state of your code.
How It Works: The Memory Palace Approach
ποΈ Create Spatial Knowledge Maps
Transform your codebase into navigable CodebaseViewsβgrid-based memory palaces that organize files spatially:
CodebaseView: "Frontend Architecture"
β Grid: 3Γ2 layout
β Cell [0,0]: Components (src/components/*)
β Cell [0,1]: Services (src/services/*)
β Cell [1,0]: Utils (src/utils/*)
β Stored in: .a24z/views/frontend-architecture.jsonπ― Anchor Knowledge Spatially
When you discover something important, anchor it to specific view coordinates:
"Auth middleware breaks with null headers - always validate before parsing"
β View: "Frontend Architecture"
β Cell: [0,1] (Services grid location)
β Tagged as: authentication, middleware, validation
β Anchored to: src/services/auth/middleware.ts (relative paths only, no globs)
β Stored in: .a24z/notes/ (synced via git)π§ Navigate Your Memory Palace
Your AI assistant uses spatial context for knowledge discovery:
You: "Why does our auth sometimes fail?"
AI: *Navigates to Services cell [0,1] in Frontend Architecture view*
AI: "Found spatial knowledge: Auth middleware breaks with null headers in the Services grid location. This is anchored to src/services/auth/middleware.ts where validation is needed before parsing."π Spatial Knowledge That Evolves
As your codebase grows, your memory palace adapts:
- Spatial anchors connect knowledge to grid coordinates AND file locations
- Multiple views provide different organizational perspectives
- Git tracks evolution of both code and spatial organization
- Cross-view navigation links related knowledge across different memory palaces
- Team contributions build comprehensive spatial understanding
The Spatial Knowledge Architecture
We use a clean four-layer spatial architecture that creates navigable memory palaces for your codebase:
ποΈ Views β Spatial grid layouts organizing your codebase (CodebaseViews)
π Notes β Your team's spatially-anchored insights and knowledge
π·οΈ Tags β Semantic categories for discovery (authentication, bugfix, pattern)
π Anchors β Direct connections to specific files and code locationsPlus Git distribution ensures both your code and spatial organization evolve together with your team.
This isn't just storageβit's a living memory palace system where knowledge has both semantic meaning and spatial location, making it intuitive to navigate and impossible to lose.
Real-World Impact
For Individual Developers
- Never lose context when switching between projects
- Learn from past mistakes without repeating them
- Understand "why" not just "what" in unfamiliar code
For Teams
- Onboard faster with accumulated team knowledge
- Share insights automatically through git
- Build institutional memory that survives team changes
For AI Assistants
- Context-aware responses based on real team knowledge
- Avoid known pitfalls documented by your team
- Follow established patterns specific to your codebase
Getting Started
The convenience buttons above handle everythingβjust click to install. For manual setup or advanced configuration, see the detailed installation guide below.
Learn More
π Complete Documentation - Comprehensive guides and API reference
π Usage Guide - Quick reference and examples
π§ Advanced Configuration - Customize for your workflow
Detailed Installation
Manual Installation Steps
Prerequisites
- Node.js 18+
- Git repository (for knowledge storage)
- MCP-compatible editor (Cursor, VS Code, Claude Code, etc.)
Install Package
# Global installation (recommended)
npm install -g a24z-memory
# Or project-specific
npm install a24z-memory --save-dev
# Verify installation
npx a24z-memory --helpStart the Server
# Keep this running in a terminal
npx a24z-memory
# Expected output:
# β
a24z-Memory MCP server started successfully
# π MCP Server working directory: /path/to/cwdConfigure Your Editor
For Cursor/VS Code/Claude Code:
{
"mcpServers": {
"a24z-memory": {
"command": "npx",
"args": ["-y", "a24z-memory"]
}
}
}For other editors, consult their MCP configuration documentation.
Advanced Configuration
System Prompt for AI Assistants
Add this to your AI assistant's system prompt for optimal integration:
When working on development tasks, you have access to a a24z-memory MCP server...
### Available Tools
#### discover_a24z_tools - Discover all available tools and capabilities
#### askA24zMemory - Search tribal knowledge and get contextual guidance
#### create_repository_note - Document insights and decisions
#### get_notes - Browse raw notes without AI processing
#### get_repository_tags - Manage note categorization
#### get_repository_types - Get available note types
#### get_repository_guidance - Get repository-specific guidelines
...
### Best Practices
1. Check existing knowledge before starting work
2. Use absolute paths starting with /
3. Document insights after solving problems
4. Read guidance token before creating notesFull system prompt available in USAGE_GUIDE.md.
Troubleshooting
Common Issues and Solutions
π Server Not Starting
npx a24z-memory
# Should show: "β
a24z-Memory MCP server started successfully"
# If errors, check Node version: node --version (needs 18+)π AI Not Using Tools
- Verify server is running in separate terminal
- Check system prompt includes tool definitions
- Test with: "What a24z-Memory tools are available?"
π Path Errors
Always use absolute paths:
pwd # Get current directory
# Use this path in your commandsπ Repository Errors
git status # Verify you're in a git repo
git init # Initialize if neededπ Debug Mode
DEBUG=a24z-memory:* npx a24z-memoryFor detailed troubleshooting, see the complete checklist.
Quick Demo
- Install with one click using the buttons above
- Ask your AI: "What a24z-Memory tools are available?"
- Start capturing: Document your first insight about your code
- Experience the difference: Watch your AI leverage accumulated knowledge
Handoff Briefs: Seamless Knowledge Transfer
When transitioning workβwhether switching projects, onboarding teammates, or handing off tasksβcreate a handoff brief that captures everything the next person needs to know:
What Gets Included
- Context & Current State: Where things stand and what's been done
- Code References: Specific files with explanations of their role
- Key Decisions: Why certain approaches were taken
- Next Steps: What needs attention moving forward
How It Works
You: "Create a handoff brief for the auth refactoring"
AI: *Generates comprehensive handoff document*
- Overview of changes made
- References to modified files with context
- Outstanding tasks and considerations
- Saved to .a24z/handoffs/ for sharingYour teammate receives a complete pictureβnot just what changed, but why and what's next. The brief lives in your repository, traveling with the code it describes.
Available Tools
Your AI assistant gains access to powerful knowledge management tools:
askA24zMemory- Query tribal knowledge with semantic searchcreate_repository_note- Document new insights and decisionsget_notes- Browse existing knowledgeget_repository_tags- Get available tags for categorizationget_repository_types- Get available note typesget_repository_guidance- Access team guidelinesget_repository_note- Retrieve specific note by IDdelete_repository_note- Remove outdated notescreate_handoff_brief- Generate handoff documentationdiscover_a24z_tools- Explore all capabilities
Why This Is Different
| Traditional Approach | a24z-Memory |
|---|---|
| Static documentation that rots | Dynamic knowledge anchored to code |
| Embeddings that become stale | Fresh context read from current files |
| Knowledge in silos (Slack, wikis) | Knowledge in your repository |
| Manual knowledge sharing | Automatic distribution via git |
| AI without context | AI with your team's wisdom |
Programmatic Usage
import { run } from 'a24z-memory';
run();Contributing
We welcome contributions! See our contribution guidelines for details.
License
MIT License - see LICENSE for details.
Support
- π§ Email Support
- π Report Issues
- π¬ Join Discord
Built with β€οΈ by the a24z team to make every codebase smarter.