JSPM

  • Created
  • Published
  • Downloads 233
  • Score
    100M100P100Q124292F
  • License MIT

Standalone a24z Memory MCP server

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

Gemini_Generated_Image_rx8a19rx8a19rx8a (1)

a24z-memory: Your Codebase's Living Memory

Install MCP Server Install in VS Code Documentation

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

๐ŸŽฏ Capture Knowledge Where It Happens

When you discover something importantโ€”a tricky bug, a design pattern, an architectural decisionโ€”document it instantly:

"Auth middleware breaks with null headers - always validate before parsing"
โ†’ Type: gotcha
โ†’ Tagged as: authentication, middleware, validation
โ†’ Anchored to: src/auth/middleware.ts
โ†’ Stored in: .a24z/notes/ (synced via git)

๐Ÿ” Surface Knowledge When You Need It

Your AI assistant automatically accesses this knowledge:

You: "Why does our auth sometimes fail?"
AI: *Searches a24z-memory for auth-related gotchas*
AI: "Found a known issue: Auth middleware breaks with null headers in src/auth/middleware.ts. The team discovered this needs validation before parsing."

๐Ÿ”„ Knowledge That Evolves

As your code changes, the knowledge remains relevant:

  • Anchors point to files, not embedded content
  • Git tracks changes, showing how understanding evolved
  • Types organize knowledge by its nature (decision, pattern, gotcha, explanation)
  • Team contributions accumulate over time

The Layered Knowledge Architecture

We use a four-layer stack that keeps knowledge organized, meaningful, current, and shared:

๐Ÿ“Š Type Layer    โ†’ What kind of knowledge (decision, pattern, gotcha, explanation)
๐Ÿท๏ธ  Tag Layer     โ†’ Semantic categories for discovery
๐Ÿ“ Note Layer    โ†’ Your team's insights and explanations
๐Ÿ”— Anchor Layer  โ†’ Live connections to code locations

Plus Git distribution ensures knowledge travels with your code and evolves with your team.

This isn't just storageโ€”it's a living memory system that grows smarter with every insight your team adds.

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 --help

Start 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/cwd

Configure 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 notes

Full 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

  1. Verify server is running in separate terminal
  2. Check system prompt includes tool definitions
  3. 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-memory

For detailed troubleshooting, see the complete checklist.

Quick Demo

  1. Install with one click using the buttons above
  2. Ask your AI: "What a24z-Memory tools are available?"
  3. Start capturing: Document your first insight about your code
  4. 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 sharing

Your 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 search
  • create_repository_note - Document new insights and decisions
  • get_notes - Browse existing knowledge
  • get_repository_tags - Get available tags for categorization
  • get_repository_types - Get available note types
  • get_repository_guidance - Access team guidelines
  • get_repository_note - Retrieve specific note by ID
  • delete_repository_note - Remove outdated notes
  • create_handoff_brief - Generate handoff documentation
  • discover_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


Built with โค๏ธ by the a24z team to make every codebase smarter.