Skip to main content
Glama

🧠 Vibe Memory

Universal Long-Term Memory & Codebase AST Intelligence Protocol for AI Coding Agents

Author License MCP Protocol Token Reduction Live Visualizer

Quit Claude Code mid-task, switch to Antigravity or Cursor in the same directory, cut LLM tokens by 97%, and continue coding without re-explaining the architecture, bug discoveries, or user preferences.


🌐 Live Interactive Memory & AST Visualizer

Test the visual memory lineage graph, search indexed codebase symbols, and generate live handoff snapshots:
πŸ‘‰ https://shahrukh-hack.github.io/vibe-memory/


Related MCP server: Paparats MCP

⚑ The Core Problem: Why AI Agents Fail Without Memory

When building production software with AI coding agents (Antigravity, Cursor, Claude Code, OpenAI Codex, Aider), developers face three major bottlenecks:

  1. πŸ”΄ The "Fresh Chat Amnesia" Problem: Every time a context window resets or you open a new conversation, the AI forgets your architectural decisions, design tokens, and the edge-case bugs you solved yesterday.

  2. πŸ’Έ The "Raw File Dumping" Token Tax: When an agent needs to understand a component or function, it reads dozens of full source code filesβ€”burning 15,000+ to 50,000+ context tokens and slowing down responses.

  3. πŸ”’ Tool Lock-In & Vendor Fragmentation: Switching from Antigravity (planning) to Cursor (editing) or Claude Code (CLI) requires manually re-prompting and explaining the entire task from scratch.


πŸš€ The Dual-Engine Solution

Vibe Memory unifies two world-class paradigms into a single, vendor-neutral protocol:

                          β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                          β”‚                VIBE MEMORY DUAL ENGINE                 β”‚
                          β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                                      β”‚
                       β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                       β–Ό                                                             β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”              β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  ENGINE 1: CONTEXT & HANDOFF MEMORY          β”‚              β”‚  ENGINE 2: AST & SYMBOL KNOWLEDGE GRAPH      β”‚
β”‚  β€’ Architectural Decision Records (ADR)      β”‚              β”‚  β€’ Component & Function Hierarchies          β”‚
β”‚  β€’ Bug fix pattern discoveries               β”‚              β”‚  β€’ Call graphs & export dependency maps      β”‚
β”‚  β€’ Anti-AI slop user preferences             β”‚              β”‚  β€’ 97% Context Token Reduction               β”‚
β”‚  β€’ Seamless cross-agent handoff snapshots    β”‚              β”‚  β€’ Sub-millisecond symbol queries            β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜              β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸ—οΈ Architecture & Cross-Tool Flow

graph LR
    A[Antigravity Agent] -->|1. Commit Architectural Decisions| M[AGENT_MEMORY.md Store]
    B[Claude Code CLI] -->|2. Commit Bug Fix Patterns| M
    C[Cursor IDE] -->|3. Read User Intent & Tokens| M
    M -->|4. MCP stdio JSON-RPC| D[Vibe Memory MCP Server]
    D -->|5. Instant AST & Symbol Lookup| E[Any Coding Agent]
    M -->|6. Live Lineage Graph| F[Web Visualizer UI]

πŸ“¦ How to Use in Ongoing / Existing Projects

Step 1: Initialize in 10 Seconds

Run this single command in the root of any new or existing repository:

npx vibe-memory init

This creates the standard AGENT_MEMORY.md file formatted with 4 persistent sections:

  • πŸ“ 1. Architectural Decisions (ADR): Framework choices, state management patterns, and database schemas.

  • πŸ› 2. Bug Discoveries & Learnings: Edge-case API quirks, platform fixes, and dependency constraints.

  • πŸ‘€ 3. User Preferences: Anti-AI slop design tokens, styling rules, and coding conventions.

  • πŸ”„ 4. Active Handoff Checkpoint: Current milestone status, completed steps, and immediate next actions.


Step 2: Connect via Model Context Protocol (MCP)

Add vibe-memory to your AI coding tools to enable automated memory recall and AST queries:

πŸ”Ή Antigravity (~/.gemini/antigravity/mcp-config.json):

{
  "mcpServers": {
    "vibe-memory": {
      "command": "npx",
      "args": ["-y", "vibe-memory", "mcp"]
    }
  }
}

πŸ”Ή Cursor (.cursor/mcp.json):

{
  "mcpServers": {
    "vibe-memory": {
      "command": "npx",
      "args": ["-y", "vibe-memory", "mcp"]
    }
  }
}

πŸ”Ή Claude Code (~/.claude.json):

{
  "mcpServers": {
    "vibe-memory": {
      "command": "npx",
      "args": ["-y", "vibe-memory", "mcp"]
    }
  }
}

πŸ”„ The Cross-Agent Handoff Workflow

When you want to switch from Antigravity to Cursor or Claude Code mid-task:

  1. Tell your active agent: "Create handoff snapshot for Cursor."

  2. The agent appends a structured checkpoint to AGENT_MEMORY.md:

<!-- AGENT_HANDOFF_SNAPSHOT: ANTIGRAVITY βž” CURSOR -->
# πŸ”„ Context Handoff (2026-08-16T21:45:00Z)

## 🎯 Active Objective
Finalizing the real-time fleet telemetry map and vehicle status filter.

## βœ… Accomplished So Far
- Configured Leaflet container and Tailwind design tokens
- Built GPS ingestion pipeline in TypeScript
- Verified Adelaide CBD and Barossa Valley route corridors

## πŸš€ Immediate Next Actions for Cursor
- Connect the live incident marker overlay in src/components/CorridorMap.tsx
- Run unit test suite
<!-- END_AGENT_HANDOFF -->
  1. Open Cursor, type "Continue active task", and Cursor resumes the exact next step without missing a beat!


⚑ 97% Context Token Savings via AST Indexing

Instead of dumping full files into the LLM prompt:

Method

Tokens Consumed

Response Latency

Cost / Risk

Raw File Reading

~15,000 – 50,000 tokens

6.5s – 12.0s

High cost, context bloat, hallucinations

Vibe Memory AST Index

~85 – 150 tokens

0.4s

97% savings, instant focus, zero amnesia


πŸ’» Local Development & Web Visualizer

# Clone the repository
git clone https://github.com/shahrukh-hack/vibe-memory.git
cd vibe-memory

# Install dependencies
npm install

# Start local visualizer
npm run dev

🀝 Part of the Vibe Coding Ecosystem

  • πŸͺ„ Vibe Superkit: The Anti-AI Slop & High-Taste Design Engine (UI/UX, Spring Physics, Design Tokens).

  • 🧠 Vibe Memory: Universal Long-Term Agent Memory & AST Codebase Intelligence.


πŸ‘€ Author

Created with intention by Yogeshkumar Patel β€’ Adelaide, Australia πŸ‡¦πŸ‡Ί


πŸ“„ License

MIT License Β© 2026 Yogeshkumar Patel

F
license - not found
-
quality - not tested
B
maintenance

Maintenance

–Maintainers
–Response time
–Release cycle
–Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    -
    quality
    C
    maintenance
    Provides AI coding agents with persistent, graph-connected memory across projects, enabling cross-project context retrieval via synaptic connections and hybrid search.
    18
    6
    MIT
  • A
    license
    -
    quality
    B
    maintenance
    Provides AI coding assistants with deep, semantic understanding of local codebases via AST-aware chunking, cross-repo symbol graphs, and architectural memory, enabling context-aware code search and dependency tracing.
    10
    MIT

View all related MCP servers

Related MCP Connectors

  • Give your AI agent a persistent map of your project's structure, dependencies, and bugs.

  • Persistent memory for AI agents. Search, store, and recall across sessions.

  • Universal memory for AI agents and tools. Save, organize and search context anywhere.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/shahrukh-hack/vibe-memory'

If you have feedback or need assistance with the MCP directory API, please join our Discord server