2026-11-26 15:47 UTC

Project-M offers local MCP memory for coding agents

state: seedheat: lowuncertainty: mediumrelevance: mediumcoding-agents cross-harness-context local-agent-memoryAditya Debnath

What is this?

Project-M is an open-source, MIT-licensed local MCP server by GitHub author Aditya Debnath, presented in a Show HN post on November 20, 2026. Its repository describes a SQLite-backed tool for sharing project context across Claude Desktop, OpenAI Codex, and Google Antigravity: it can collect session records, compile a short project brief, store architectural decisions and task handoffs, and search past turns. The README documents installation steps, eight MCP tools, and a test suite, but its performance, compatibility, and privacy statements are project claims rather than independently verified results. The supplied evidence does not establish adoption beyond the announcement.

Why it matters

Project-M targets a practical friction in multi-agent coding: project decisions and task state can get stranded in separate tools. If its documented integrations work as intended, a local shared context store could make it easier to move work between agents while keeping records on the developer’s machine and avoiding paid embedding services. It is a useful small-scale example of infrastructure that may shape how people coordinate coding agents, not evidence of a broad shift in developer workflows.

Current assessment

New: the Show HN announcement and linked repository describe a local-first MCP context engine for cross-tool coding-agent continuity. The documented design uses SQLite, with a compact compiled state card, an architectural-decision ledger, task handoffs, retained transcripts, and lexical search; setup instructions name Claude Desktop, Codex, and Antigravity. The repository reports sub-2ms brief compilation and 102 passing tests, but these are maintainer-provided claims, not external validation. The README’s claim that raw transcripts are kept locally and not sent directly to models is relevant to privacy, but local storage does not itself establish security or suitability for sensitive code. No independent benchmarks, adoption data, or corroborating sources are supplied. Track whether the integrations work across versions and whether developers adopt this kind of shared, user-controlled context layer; broad impact remains uncertain.

Measured heat

now 0 pts/hpeak 1 pts/hcomments 0/hpeers p10momentum: steady2 platformsage 167h
points/hour across evidence Β· reading as of 2026-11-27 02:23:58.509736+11:00 Β· deterministic, not a model opinion

How the heat travelled

11-19 17:27 (minted)⭐ origin echo-reconstructedThe repository appears to be the original artifact: its README introduces Project-M as β€œThe Ambient, Local-First Context Engine & Blackboard
adityadebnath009 (Aditya Debnath) on github (echo) Β· attributed from hn.story.50562304 Β· published time unknown
β€”
11-19 16:33first on hacker news Β· published Β· lag ?Show HN: Project-M – Stop re-explaining project context between AI coding tools
adityadebnath
β€”
11-19 16:33amplified on hacker news πŸ‘‘hn.story.50562304
adityadebnath
peak 1 Β· 0 comments Β· 103% of case engagement
11-19 17:21our radar first saw it Β· lag ?discovery anchor: hn.story.50562304β€”
pace: p14 vs 2105 stories at the 96h mark (now 167h old) β€” behind adobe-max-ai-agents-creative-tools-mcp (0.5x)

Evidence (2) β€” ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnShow HN: Project-M – Stop re-explaining project context between AI coding tools
Retrieved article excerpt

Open article Β· Retrieved 2026-11-19T17:22:51.610101+00:00

[Project-M Logo](https://github.com/adityadebnath009/Project-M/blob/main/assets/logo.png)

# Project-M

### The Ambient, Local-First Context Engine & Blackboard for AI Agents

Switch between **Claude Desktop**, **OpenAI Codex**, and **Google Antigravity** without losing state.  
Deterministic 4-tier context compilation. Sub-2ms latency. Zero cloud dependencies.

  

[Tests](https://github.com/adityadebnath009/Project-M)
[Python](https://www.python.org/)
[Protocol](https://modelcontextprotocol.io/)
[Storage](https://www.sqlite.org/)
[Latency](https://github.com/adityadebnath009/Project-M)
[License](https://github.com/adityadebnath009/Project-M/blob/main/LICENSE)

[M8ven Score](https://m8ven.ai/mcp/adityadebnath009-project-m-177ur4?s=readme)

  

[Overview](https://github.com/adityadebnath009/Project-M#-overview) β€’
[Architecture](https://github.com/adityadebnath009/Project-M#-architecture) β€’
[Interactive REPL & CLI](https://github.com/adityadebnath009/Project-M#-developer-cli--interactive-repl) β€’
[FastMCP Tools](https://github.com/adityadebnath009/Project-M#-fastmcp-tools-reference) β€’
[Quickstart](https://github.com/adityadebnath009/Project-M#-quickstart) β€’
[Verification](https://github.com/adityadebnath009/Project-M#-verification--tests)

---

## πŸ“Œ Overview

Frontier software engineering in 2026 relies on a multi-agent stack:

- **Google Antigravity** for whole-repo refactoring, test harness execution, and deep agentic planning.
- **Anthropic Claude Desktop** for high-level architectural brainstorming, formal reasoning, and PR reviews.
- **OpenAI Codex / ChatGPT** for fast terminal scratchpads, bash script verification, and quick iterations.

### The Problem: Context Amnesia

Every time you switch between these assistants, **your context breaks**. Decisions agreed upon in Claude Desktop are invisible to Antigravity. Tasks started in Antigravity are unknown to Codex. Developers waste thousands of tokens and manual hours copy-pasting diffs, status updates, and architectural constraints across disconnected chat windows.

### The Solution: Project-M

**Project-M** is a local-first Model Context Protocol (MCP) server and verified project-state compiler. It passively harvests session turns, maintains an immutable ledger of Architectural Decision Records (ADRs), synchronizes task batons, and serves a deterministic **Tier 1 Briefing Card (< 450 tokens)** to any requesting AI agent in **under 2 milliseconds**.

- **100% Local**: Runs on SQLite WAL mode on your machine. No accounts, no telemetry, no cloud lock-in.
- **Zero API Costs**: No paid embedding syncs or third-party vector databases.
- **Lossless Telemetry**: Raw conversation logs are preserved permanently in Tier 4 cold storage while models only consume compressed, high-density state cards.
- **Clean Stdio Isolation**: MCP JSON-RPC 2.0 communication runs unpolluted over `stdout`, while branded status cards route safely to `stderr`.

---

## πŸ—οΈ Architecture

```
flowchart TD
    subgraph AI Clients ["Frontier AI Clients"]
        A["Google Antigravity<br/>(IDE & Workspace)"]
        B["Anthropic Claude Desktop<br/>(Architectural Planner)"]
        C["OpenAI Codex / ChatGPT<br/>(Terminal & CLI)"]
    end

    subgraph Harvesters ["Ambient Log Harvesters"]
        H1["Antigravity Harvester<br/>JSONL Stream Reader"]
        H2["Codex Harvester<br/>Read-Only SQLite (?mode=ro)"]
    end

    subgraph Core ["Project-M Core Engine"]
        DB[("Storage Layer<br/>SQLite WAL Mode<br/>(.project-m/state.db)")]
        COMP["State Compiler<br/>(Lossless 4-Tier Blackboard)"]
        SERVER["FastMCP Server<br/>(JSON-RPC 2.0 over stdio)"]
    end

    A -. writes transcript .-> H1 -->|deduplicated turns| DB
    C -. writes session .-> H2 -->|deduplicated turns| DB
    DB <--> COMP
    COMP <--> SERVER
    SERVER <==>|MCP Tools & Resources| B
    SERVER <==>|MCP Tools & Resources| A
    SERVER <==>|MCP Tools & Resources| C
```

 Loading

### The 4-Tier Memory Hierarchy

| Tier | Name | Target Size | Latency | Purpose & Behavior |
| --- | --- | --- | --- | --- |
| **Tier 1** | **Living State Card** | `< 450 tokens` | `< 2 ms` | Deterministic markdown briefing compiled via `tiktoken`. Injected automatically into every agent turn. Contains active goal, active stack, in-progress tasks, and recent ADRs. |
| **Tier 2** | **ADR Ledger** | `< 1,200 tokens` | `< 5 ms` | Immutable record of architectural decisions (`id`, `title`, `rationale`, `status`, `decided_by`). Prevents agents from reversing past architectural decisions. |
| **Tier 3** | **Task Baton Graph** | Dynamic | `< 5 ms` | Cross-agent task ownership (`task_id`, `status`, `assigned_to`, `notes`). Coordinates handoffs between `@claude`, `@antigravity`, and `@codex`. |
| **Tier 4** | **Lossless Cold Storage** | Unlimited | Indexed | Exact raw session transcripts (`transcript.jsonl` and session databases) preserved permanently with content hashes. Never sent to models directly; inspected on-demand via `get_turn()`. |

### ⚑ Lexical Search with SQLite FTS5 (BM25 Ranking)

Instead of relying on expensive third-party vector databases or paid embedding APIs, Project-M uses SQLite's native **FTS5 (Full-Text Search 5)** virtual table engine with **BM25 probabilistic relevance ranking**:

- **Porter Stemming (`tokenize = 'porter unicode61'`)**: Automatically matches word inflections (e.g. searching `"connecting"` matches `"connect"`, `"connected"`, and `"connection"`).
- **Okapi BM25 Ranking (`ORDER BY rank`)**: Scores results based on term frequency and document length saturation, returning the most relevant historical turns in **sub-3 milliseconds**.
- **Zero-Lag Database Triggers**: Automatically updates the `conversation_turns_fts` index via C-level SQLite triggers (`AFTER INSERT`, `AFTER DELETE`) as turns arrive from Antigravity, Codex, or Claude.
- **100% Offline & Free**: Instant semantic discovery over tens of thousands of past turns with zero token expenditure.

---

## πŸ’» Developer CLI & Interactive REPL

Project-M features a Claude-Code-inspired terminal interface with the official **Brutalist Chevron Monogram Logo**, live hardware specs, and a rich interactive REPL.

```
   β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—         β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—       adityadebnath@Project-M(MCP)  ● REPL ACTIVE
   β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—     β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•‘       ──────────────────────────────────────────────
   β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ–ˆβ–ˆβ•—   β–ˆβ–ˆβ–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•‘       Engine:     4-Tier Lossless State Compiler
   β–ˆβ–ˆβ•‘  β•šβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ•”β•  β–ˆβ–ˆβ•‘       Storage:    SQLite WAL (.project-m/state.db)
   β–ˆβ–ˆβ•‘   β•šβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•   β–ˆβ–ˆβ•‘       Clients:    Claude Desktop β€’ Codex β€’ Antigravity
   β–ˆβ–ˆβ•‘    β•šβ•β•β•β•β•β•β•β•    β–ˆβ–ˆβ•‘       ADRs:       5 Accepted (Tier 2 Ledger)
   β–ˆβ–ˆβ•‘                 β–ˆβ–ˆβ•‘       Tasks:      1 in progress (Owner: @claude)
   β•šβ•β•                 β•šβ•β•       Telemetry:  424 raw turns recorded (Tier 4)
                                 Invariant:  100% Local β€’ Zero Paid APIs
                                 Compile:    1.2ms latency (167/450 tokens)

                                 ● ● ● ● ● ● ● ●
  Type /help for commands  β€’  Press Tab to autocomplete  β€’  /exit to quit

project-m ❯
```

### REPL Slash Commands

Launch the interactive shell anytime with `uv run project-m` or `uv run project-m shell`:

| Command | Arguments | Description |
| --- | --- | --- |
| `/board` | `[--target-tokens 450]` | Renders the compiled Tier 1 State Card in real time. |
| `/status` | β€” | Displays database size, WAL status, schema integrity, and active warnings. |
| `/tasks` | β€” | Displays the live task backlog with owner badges. |
| `/task` | `<id> <status> <@owner> <notes>` | Adds or updates a task baton (e.g. `/task auth-1 in_progress @claude "OAuth2"`). |
| `/decisions` | β€” | Lists all accepted Architectural Decision Records (ADRs). |
| `/decide` | `<id> <title> <rationale>` | Records a binding ADR (e.g. `/decide ADR-004 "Use SQLite WAL" "Zero locks"`). |
| `/fetch` | β€” | Displays the signature Neofetch-style system and compiler specifications. |
| `/export` | `[filename.md]` | Exports the living project state card to a portable Markdown document. |
| `/setup` | `[all | claude | codex]` | Runs the automated one-click client installer. |
| `/clear` | β€” | Clears the terminal screen. |
| `/exit` | β€” | Exits the shell cleanly. |



---

## ⚑ FastMCP Tools Reference

Project-M exposes 8 standard tools over Model Context Protocol:

| Tool | Parameters | Description |
| --- | --- | --- |
| `get_project_board` | `target_tokens: int = 450` | Returns the deterministic Tier 1 Living State Card (< 450 tokens) containing current goal, tech stack, active tasks, and recent ADRs. |
| `record_decision` | `id, title, rationale, decided_by, status` | Posts a new Architectural Decision Record (ADR) to Tier 2. Prevents conflicting implementation paths. |
| `update_task` | `task_id, status, assigned_to, notes` | Updates or creates a task baton in Tier 3 (`pending`, `in_progress`, `completed`). |
| `publish_context` | `key, value, updated_by` | Updates blackboard key-values (`current_goal`, `active_stack`, `milestone`). |
| `get_recent_context` | `limit: int = 10` | Returns recent conversation turns across all clients (Tier 4 summary). |
| `get_turn` | `turn_id: int` | Fetches the full uncompressed raw prompt and completion payload for a specific turn. |
| `get_project_summary` | β€” | Returns diagnostic telemetry: database size, decision count, task counts, and turns. |
| `search_context` | `query: str, limit: int = 5, role: str, source: str` | Performs sub-3ms lexical search using SQLite FTS5 with Porter stemming and BM25 ranking across all historical turns. |



---

## πŸš€ Quickstart

### Prerequisites

- **macOS / Linux / Windows**
- **Python 3.12+** (Tested up to Python 3.14.7)
- [`uv`](https://github.com/astral-sh/uv) (Extremely fast Python package runner)

If you don't have `uv` installed yet:

```
# macOS / Linux:
curl -LsSf https://astral.sh/uv/install.sh | sh

# Windows (PowerShell):
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
```

---

### Option A: The Fastest Way (Zero-Install / Run Instantly)

You don’t even need to clone the repository. Run this single command inside **any project directory**:

```
uvx --from git+https://github.com/adityadebnath009/Project-M.git project-m
```

`uvx` fetches Project-M into an isolated environment, renders the **copper Brutalist Chevron logo**, displays live project telemetry, and immediately drops you into the interactive shell:

```
project-m ❯
```

Type `/board` to view the living context card, or `/help` for all commands!

---

### Option B: The Complete Setup (Clone & Connect to Claude / Antigravity / Codex)

If you want Project-M permanently linked with your local AI desktop assistants:

```
# 1. Clone repository & sync dependencies
git clone https://github.com/adityadebnath009/Project-M.git
cd Project-M
uv sync

# 2. Run the 1-Click Auto-Installer
uv run project-m setup all
```

**What `project-m setup all` automatically does:**

1. Detects **Claude Desktop** (`claude_desktop_config.json`), **Google Antigravity** (`mcp_config.json`), and **Codex** (`config.toml`).
2. Creates timestamped safety backups (`.bak`) of your existing configs.
3. Injects the **Project-M FastMCP Server** over stdio.
4. Automatically installs the **Project-M Agent Skill** (`SKILL.md`) into your global agent directories (`~/.claude/skills`, `~/.gemini/antigravity/skills`, `~/.codex/skills`).

*Restart Claude Desktop or Antigravity and check the tools (πŸ”¨) menuβ€”Project-M with all 8 tools will be active!*

You can also target a specific client:

```
uv run project-m setup -c claude
uv run project-m setup -c antigravity
uv run project-m setup -c codex
```

---

### Option C: Install Globally as a Native Terminal Command

If you want `project-m` permanently available in your shell like `git` or `docker`:

```
uv tool install git+https://github.com/adityadebnath009/Project-M.git
```

Now navigate to **any repository** on your computer and simply run:

```
project-m          # Launch interactiv
adityadebnath10
🟧 echo.github ⭐The repository appears to be the original artifact: its README introduces Project-M as β€œThe Ambient, Local-First Context Engine & Blackboardadityadebnath009 (Aditya Debnath)β€”β€”

Interpretation history

Decision trace