project-agent-memory
v3.4.4
Published
MCP server for memory management using vector database
Maintainers
Readme
Project Agent Memory
A TypeScript MCP (Model Context Protocol) server that gives a coding agent persistent project memory - context, decisions, progress and patterns - backed by Qdrant or PostgreSQL/pgvector (via pREST), selected with one environment variable.
Features
- 8 MCP tools:
memory_create,memory_read,memory_update,memory_delete,memory_context,memory_graph,memory_admin,code_graph - Dual storage backend:
MEMORY_BACKEND=qdrant(default) orMEMORY_BACKEND=postgres, same tool surface either way - no code change to switch, and Qdrant deployments need no env changes to keep working. Thepostgresbackend talks to Postgres/pgvector through a pREST instance, not a direct DB connection - vectors travel over anX-Vectorheader (registered pREST queries can't carry them as URL params without hitting HTTP 414) - Hive memory: any agent can browse, search and write other projects' memory. Public by default, with entry-level and project-level
private; versioned writes, archived deletes. Works identically on both backends. See Hive memory - Local embeddings by default: ONNX CPU inference in-process via
@huggingface/transformers; no embedding service, no API key, nothing leaves the machine except the backend writes - Configurable vector dimension:
VECTOR_DIM(default 768), Matryoshka-truncated and re-normalized - Pluggable providers:
onnx,openai(any OpenAI-compatible endpoint - Ollama, LM Studio, vLLM, LiteLLM, OpenAI itself),gemini,openrouter - No silent fallbacks: a failing provider fails the call rather than returning degraded vectors
- Runs via
npx: no global install, no long-running service - Performance: connection pooling (
POOL_SIZE, shared across backends), LRU caches for embeddings and queries, cache invalidation on write
Requirements
- Node.js 18+
- A reachable Qdrant instance, or a PostgreSQL instance with the
vector(pgvector) extension and a pREST instance in front of it - No API key with the default
onnxprovider
Install
One command (recommended)
npx -y [email protected] setupIt asks for anything not given as a flag, then:
- finds an existing install (
mem, legacypam,memoryormemory-qdrant-mcpin~/.claude.json, old plugin options, or~/mcp/project-agent-memory/config.json) and offers reuse (default), replace or abort; reuse imports its settings and re-registers it asmem - for a local target, starts Qdrant or pgvector from
~/mcp/project-agent-memory/stack/<backend>/with Docker, generating the pgvector secrets on first run - writes
config.json, checks the store is reachable, and stops without changing anything if an existing collection's vector size differs fromVECTOR_DIM(Qdrant: offers a re-embed with backups, default no) - registers for the chosen mode, backing up
~/.claude.jsonandsettings.jsonfirst and only adding entries - verifies with a real round-trip on a throwaway project
| Flag | Values |
|---|---|
| --mode | plugin (default), mcp (server + hooks + skill + /memory-sync), skill (server + skill), vault (Markdown vault, no server) |
| --backend / --target | qdrant (default) or pgvector / local (default) or cloud |
| --qdrant-url, --qdrant-key | Qdrant cloud |
| --prest-url, --prest-jwt-key, --prest-database, --prest-admin | pgvector via pREST, cloud |
| --vault-path | vault mode, default ~/.claude/vault |
| --replace-memory | replace an existing install instead of reusing it |
| --yes | take every default, no prompts |
The three options below are what setup does per mode, for doing it by hand. All of them need a reachable Qdrant or Postgres - see Setup below.
1. Claude Code plugin
Bundles the MCP server, the agent skill, and memory-first session hooks (detects git commit, nudges the agent to log it, hard-blocks Stop until it does) in one install.
The repo is its own marketplace (balaji-g42). Inside Claude Code:
/plugin marketplace add balaji-g42/project-agent-memory
/plugin install pam@balaji-g42Updates: third-party marketplaces do not auto-update by default. Turn it on once with /plugin marketplace configure balaji-g42, or in settings.json:
{ "pluginMarketplaceSettings": { "balaji-g42": { "autoUpdate": true } } }Or update by hand with /plugin marketplace update balaji-g42 then /plugin update pam@balaji-g42. A new plugin version is only seen when version in .claude-plugin/plugin.json changes, so bump it on every release.
For local development, load a checkout directly:
git clone https://github.com/balaji-g42/project-agent-memory
claude --plugin-dir ./project-agent-memoryThe server, the CLI and the hooks read their settings from ~/mcp/project-agent-memory/config.json (keys match the environment variables below, e.g. {"MEMORY_BACKEND": "qdrant", "QDRANT_URL": "...", "QDRANT_API_KEY": "..."}). A non-empty environment variable overrides the file; defaults apply when neither is set. Validate the manifest any time with claude plugin validate ..
Includes: .mcp.json (server registration), skill/ (agent skill), hooks/ (SessionStart / PostToolUse / Stop), commands/memory-sync.md (/memory-sync).
2. Agent Skill only
Just the "when and how to use these tools" instructions - no hooks, no bundled server registration. Pair it with a manual MCP config (option 3).
- Claude Code: copy
skill/*into.claude/skills/project-agent-memory/(project) or~/.claude/skills/project-agent-memory/(global) - Claude.ai: zip
skill/and upload via Settings → Features → Skills
See skill/README.md.
3. MCP server only (manual)
Register the server yourself - no skill, no hooks.
npx -y project-agent-memoryOr from source:
git clone https://github.com/balaji-g42/project-agent-memory
cd project-agent-memory
npm install
npm run build
node dist/index.js{
"mcpServers": {
"mem": {
"command": "npx",
"args": ["-y", "[email protected]"],
"env": {
"QDRANT_URL": "http://localhost:6333"
}
}
}
}Client-specific templates are in skill/: claude-config.example.json, vscode-mcp-config.example.json, cursor-config.example.json.
Setup
1. Storage backend
Pick one. MEMORY_BACKEND defaults to qdrant, so existing deployments need no changes.
Qdrant (default)
docker run -p 6333:6333 -v ./qdrant_storage:/qdrant/storage qdrant/qdrantMEMORY_BACKEND=qdrant
QDRANT_URL=http://localhost:6333
QDRANT_API_KEY=PostgreSQL / pgvector (via pREST)
MEMORY_BACKEND=postgres doesn't connect to Postgres directly - it goes through pREST, which exposes registered SQL queries over HTTP. You need both Postgres (with vector) and pREST reachable:
services:
postgres:
image: pgvector/pgvector:pg17
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_DB: memory
volumes:
- ./pg_data:/var/lib/postgresql/data
ports:
- "5432:5432"
prest:
image: prest/prest
environment:
PREST_PG_HOST: postgres
PREST_PG_USER: postgres
PREST_PG_PASS: postgres
PREST_PG_DATABASE: memory
PREST_JWT_KEY: change-me
ports:
- "3000:3000"
depends_on:
- postgresMEMORY_BACKEND=postgres
PREST_URL=http://localhost:3000
PREST_JWT_KEY=change-me
PREST_REGISTER_ADMIN=admin
PREST_DATABASE=memoryThe vector extension, both tables (memory_collections, memory_points) and the registered pREST queries the server calls are created automatically on first connect - no manual migration step. PREST_JWT_KEY must match the key pREST's own config was started with (used to sign the admin bearer token for registered-query calls). See instructions/migration_plan.md/plan.md §4 for the schema and design notes. If you have existing data in Qdrant and want to move it into Postgres, see Migrating Qdrant data into Postgres below.
2. Configuration
Minimum - everything else has a working default:
QDRANT_URL=http://localhost:6333Common settings:
MEMORY_BACKEND=qdrant
POOL_SIZE=10
QDRANT_URL=http://localhost:6333
QDRANT_API_KEY=
# postgres backend only
PREST_URL=http://localhost:3000
PREST_JWT_KEY=
PREST_REGISTER_ADMIN=admin
PREST_DATABASE=memory
VECTOR_DIM=768
DISTANCE_METRIC=Cosine
EMBEDDING_PROVIDER=onnx
EMBEDDING_MODEL=nomic-ai/nomic-embed-text-v1.5
ONNX_DTYPE=q8
SUMMARIZER_PROVIDER=openrouter
SUMMARIZER_MODEL=openai/gpt-oss-20b:free
OPENROUTER_API_KEY=The full environment-variable reference, including the Postgres table, is in skill/MCP-CONFIG.md.
Changing VECTOR_DIM destroys data on Qdrant. On the next call the server sees the size mismatch against the stored collection, warns on stderr, deletes that collection and recreates it empty. On Postgres the vector column width is fixed at schema-creation time; a mismatch instead throws a descriptive error and changes nothing.
Embedding providers
| Provider | Notes |
|----------|-------|
| onnx (default) | In-process CPU inference. nomic-ai/nomic-embed-text-v1.5, 768 dims, ~140MB at q8, downloaded once into ~/mcp/project-agent-memory/models so npx runs reuse it |
| openai | Any endpoint speaking /v1/embeddings. Set OPENAI_BASE_URL; for Ollama use http://localhost:11434/v1 |
| gemini | Requires GEMINI_API_KEY |
| openrouter | Requires OPENROUTER_API_KEY |
An unrecognized EMBEDDING_PROVIDER is a startup error.
Tools
All eight take project_name (case-sensitive; it selects the memory_bank_<project_name> collection).
memory_type is one of: productContext, activeContext, systemPatterns, decisionLog, progress, contextHistory, customData, knowledgeLink.
The four CRUD tools take arrays, so a single write and a batch write use the same call shape - send one element or many.
memory_create
Store entries. project_name, items[] of { memory_type, content, id?, metadata?, private? } (min 1), optional target_project. metadata holds filterable fields such as status, priority or dataType. Returns [{ id, type, version }].
memory_read
Retrieve entries. project_name, queries[] of { query_text?, memory_type?, metadata_filter?, limit?, heat? } (min 1, limit default 5), optional target_project (array, max 5) to search other projects' public memory: default limit 3, max 10, heat 1-10 (10 strict, 1 lenient, default 5), results tagged with their project.
With query_text a query is a semantic search; without it, a recency-ordered listing that embeds nothing. metadata_filter matches on the fields stored by memory_create; an array value matches any of its elements. A single query returns [{ id, score, content, type, timestamp, metadata }]; several return one such array per query.
memory_update
Update entries by id. project_name, items[] of { id, content?, metadata?, private?, expected_version? } (min 1), optional target_project. Content is re-embedded when supplied; omitting it keeps the stored vector. metadata is shallow-merged. Another project's entry requires expected_version; a stale one returns a conflict. Returns [{ id, updated, version }].
memory_delete
Delete entries. project_name, ids (array, min 1), optional target_project. Your own project: permanent. Another project: archived, restorable by its owner. Returns { deleted }.
memory_context
Read, and optionally patch, the project's working state. project_name, optional product_context, optional active_context, pattern_limit (default 20). Patches are shallow-merged and the previous version is written to contextHistory; reads happen after writes. Initializes the workspace when product context is empty.
memory_graph
Knowledge graph over the entries. project_name, op:
link-edges[]of{ from_id, to_id, relation, description? }. Returns the created edges.neighbors-id, optionalrelation,depth(default 1),direction(outgoing/incoming/both, defaultboth). Walks the graph outwards and returns{ neighbors: [{ id, depth, via, content, type }], edges }.unlink-link_ids(the edges' own ids). Returns{ deleted }.
Edges are stored in the same collection as ordinary points of type knowledgeLink; no second collection and no extra service.
memory_admin
project_name, op:
export- optionalmemory_types. Returns the memory bank as markdown.import-markdownin this server's own export format. Returns{ imported, errors, timestamp }.summarize-content. Returns a condensed version, for shrinking a long text before storing it.create_collection- creates an empty memory bank forproject_name. Every other tool returns an error instead of creating a missing bank, so the model confirms the name with the user first. SetAUTO_CREATE_COLLECTIONS=trueto restore implicit creation. Errors if the bank already exists.list_projects- the other projects whose memory you can see.set_visibility-visibilitypublic|private, the project default (an entry's ownprivateflag wins).list_archive/history/restore/purge- inspect and manage archived and superseded entries (idsfor the last three).delete_collection- permanently deletes the entire memory bank (collection, archive and all its points) forproject_name. No confirmation step - irreversible.
Full parameter tables and return shapes: skill/API-REFERENCE.md.
Hive memory
Memory is public to other projects by default; mark entries or a whole project private. Entry flag beats project default beats public, evaluated at read time. Cross-project search is retrieval only. Foreign writes are versioned (expected_version) and the previous version is kept; foreign deletes are archived. On upgrade, every existing project gets a public settings point automatically at server start; project-agent-memory-cli upgrade --all [--dry-run] [--private a,b] does it on demand. Never store secrets in memory; a regex scan marks obvious ones private as a backstop.
code_graph
Code index graph, stored in its own code_graph_<project_name> collection, separate from the memory bank. project_name, op:
index- optionalroot(default: the server's working directory). Parses the repo in-process with the bundled tree-sitter grammars (TS/TSX, JS, Python, Java, Rust, Go, C#, Kotlin, Dart, Swift, C, C++, PHP, Ruby, Lua) and writes nothing into the repo. It re-embeds only the nodes whose label, location or edges changed and deletes stale ones. Returns{ nodes, upserted, deleted }.query-query,depth(0-3, default 1),limit(1-20, default 5), optionalrelation. Seeds come from a semantic search plus an exact label match, followed by a walk over the callers and callees stored on each node. Returns text, with*marking a seed and-marking a neighbour, and-calls->/<-calls-for edges.stats- returns{ indexed, nodes }.
Plugin hooks built on it:
SessionStartloads the context and reports the code-graph status.UserPromptSubmitinjects the top matching memories and code nodes.PreToolUseonGrep|Globnudges once per session towardscode_graph.PostToolUseon edits reindexes asynchronously.
The hooks only act on the graph after a first op=index.
Migrating from memory-qdrant-mcp v2.x
The package was renamed memory-qdrant-mcp → project-agent-memory at v3.0. Same server, same Qdrant collections (memory_bank_<project> in both versions), so your existing data carries over untouched - only the package name, the tool surface and some config keys change.
1. Tools: 35 → 7. Every v2 tool name is gone. The per-tool mapping is in skill/SKILL.md.
2. Config keys. Everything not listed here is unchanged.
| v2.x | v3.0 | Notes |
|------|------|-------|
| QDRANT_POOL_SIZE | POOL_SIZE | Old name still read as a fallback; applies to whichever backend MEMORY_BACKEND selects |
| DEFAULT_TOP_K_MEMORY_QUERY | (removed) | No longer read. Pass limit per query in memory_read instead |
| EMBEDDING_PROVIDER=fastembed | EMBEDDING_PROVIDER=onnx | onnx is the new default and runs in-process on CPU |
| EMBEDDING_PROVIDER=ollama | EMBEDDING_PROVIDER=openai + OPENAI_BASE_URL=http://localhost:11434/v1 | Ollama is now reached through the OpenAI-compatible provider. OLLAMA_API_URL still exists but only drives the summarizer |
| EMBEDDING_MODEL=qwen/qwen3-embedding-8b | EMBEDDING_MODEL=nomic-ai/nomic-embed-text-v1.5 | New default, 768 dims |
| VECTOR_DIM default 3072 | default 768 | Read the warning below before you start the v3 server |
| (none) | MEMORY_BACKEND | Defaults to qdrant, so a v2 deployment needs no change |
VECTOR_DIM is the one that will bite you. If your v2 collections were built at 3072 and you start v3 without setting VECTOR_DIM, the server sees 768 against a 3072 collection and refuses every call on it with an error naming the stored size. Nothing is deleted. Either pin VECTOR_DIM (and EMBEDDING_PROVIDER/EMBEDDING_MODEL) to what v2 used, or re-embed the collection in place with the v3 model:
npx -p project-agent-memory project-agent-memory-cli migrate <project_name> --dry-run
npx -p project-agent-memory project-agent-memory-cli migrate <project_name> # or --allmigrate copies the collection to memory_bank_<project_name>_backup and checks the count, then rebuilds memory_bank_<project_name> at the current VECTOR_DIM, re-embedding every point from its stored content with the current EMBEDDING_PROVIDER/EMBEDDING_MODEL. Ids and payloads are kept, and no v2 API key is needed. If it stops part way, run it again with --resume. The backup is kept; once you have checked the result, delete it with memory_admin op=delete_collection project_name=<project_name>_backup. Qdrant only. Restart the MCP server afterwards.
3. Update the MCP registration. The command changes in both deployment shapes.
Local (embeddings computed on this machine, Qdrant on localhost):
{
"mcpServers": {
"mem": {
"command": "npx",
"args": ["-y", "[email protected]"],
"env": {
"QDRANT_URL": "http://localhost:6333",
"VECTOR_DIM": "768",
"EMBEDDING_PROVIDER": "onnx",
"EMBEDDING_MODEL": "nomic-ai/nomic-embed-text-v1.5"
}
}
}
}Self-hosted / cloud Qdrant (remote instance, API key, embeddings still local):
{
"mcpServers": {
"mem": {
"command": "npx",
"args": ["-y", "[email protected]"],
"env": {
"MEMORY_BACKEND": "qdrant",
"QDRANT_URL": "https://qdrant.example.com",
"QDRANT_API_KEY": "...",
"POOL_SIZE": "10",
"VECTOR_DIM": "768",
"DISTANCE_METRIC": "Cosine",
"EMBEDDING_PROVIDER": "onnx",
"EMBEDDING_MODEL": "nomic-ai/nomic-embed-text-v1.5",
"ONNX_DTYPE": "q8",
"SUMMARIZER_PROVIDER": "openrouter",
"SUMMARIZER_MODEL": "openai/gpt-oss-20b:free",
"OPENROUTER_API_KEY": "..."
}
}
}
}On Windows, "command": "npx" may need to be "command": "cmd", "args": ["/c", "npx", "-y", "project-agent-memory"].
4. If you want to land on the Postgres backend instead. v2 had no Postgres backend - it was Qdrant-only - so this is an upgrade and a backend switch, and the data has to be copied across. Do it in this order:
a. Decide the embedding model first. This is the whole difficulty. The migration script copies vectors verbatim; it does not re-embed. v2's default was qwen/qwen3-embedding-8b at 3072 dims, v3's is nomic-ai/nomic-embed-text-v1.5 at 768. Vectors from two different models are not comparable, so if you migrate 3072-dim v2 points into a 768-dim collection and then let v3 write new memories with onnx, every similarity score between the old and new rows is meaningless - searches will look like they work and quietly rank wrong. Pick one:
| | Do this | Cost |
|---|---|---|
| Keep v2's embeddings | Set VECTOR_DIM=3072 and the same EMBEDDING_PROVIDER/EMBEDDING_MODEL v2 used, then migrate | v2's fastembed and ollama embedding providers don't exist in v3, so this only works if v2 used openrouter or gemini |
| Re-embed on v3 (recommended) | Run project-agent-memory-cli migrate on Qdrant first (above), then copy with the script at VECTOR_DIM=768 | One extra step |
Migrating anyway and re-embedding later is possible - memory_update re-embeds the row it touches - but there is no bulk re-embed command.
b. Stand up Postgres + pgvector + pREST as in PostgreSQL / pgvector (via pREST) above. No manual DDL: the migration script creates the vector extension, memory_collections, memory_points, the indexes and the registered pREST queries itself, and is idempotent.
c. Copy the data. Point ids and payloads are preserved 1:1; re-running is an upsert, so a failed run is safe to repeat.
node skill/migrate-qdrant-to-pgvector.mjs --project <your-project> \
--qdrant-url https://qdrant.example.com --qdrant-api-key ... \
--prest-url http://localhost:3000 --prest-jwt-key change-me \
--vector-dim 3072 \
--dry-runDrop --dry-run once the reported counts look right. Use --all instead of --project to move every collection on the Qdrant server in one pass. Full flag list via --help.
d. Switch the MCP registration to the Postgres backend. Local:
{
"mcpServers": {
"mem": {
"command": "npx",
"args": ["-y", "[email protected]"],
"env": {
"MEMORY_BACKEND": "postgres",
"PREST_URL": "http://localhost:3000",
"PREST_JWT_KEY": "change-me",
"PREST_REGISTER_ADMIN": "admin",
"PREST_DATABASE": "memory",
"VECTOR_DIM": "768",
"EMBEDDING_PROVIDER": "onnx",
"EMBEDDING_MODEL": "nomic-ai/nomic-embed-text-v1.5"
}
}
}
}Self-hosted / cloud Postgres (pREST sits in front of it; the server never opens a Postgres TCP connection of its own):
{
"mcpServers": {
"mem": {
"command": "npx",
"args": ["-y", "[email protected]"],
"env": {
"MEMORY_BACKEND": "postgres",
"PREST_URL": "https://prest.example.com",
"PREST_JWT_KEY": "...",
"PREST_REGISTER_ADMIN": "admin",
"PREST_DATABASE": "memory",
"POOL_SIZE": "10",
"VECTOR_DIM": "768",
"DISTANCE_METRIC": "Cosine",
"EMBEDDING_PROVIDER": "onnx",
"EMBEDDING_MODEL": "nomic-ai/nomic-embed-text-v1.5",
"ONNX_DTYPE": "q8",
"SUMMARIZER_PROVIDER": "openrouter",
"SUMMARIZER_MODEL": "openai/gpt-oss-20b:free",
"OPENROUTER_API_KEY": "..."
}
}
}
}PREST_JWT_KEY must be the same key pREST itself was started with. QDRANT_URL/QDRANT_API_KEY are ignored once MEMORY_BACKEND=postgres, so you can leave them in place during the cutover and remove them after.
e. Note the different failure mode. On both backends a VECTOR_DIM mismatch throws a descriptive error and changes nothing. On Postgres the vector(n) column width is also fixed at schema-creation time, which means the VECTOR_DIM you migrate at is permanent for that database short of recreating the table.
See Migrating Qdrant data into Postgres below for the script's dimension-handling details.
Migrating Qdrant data into Postgres
skill/migrate-qdrant-to-pgvector.mjs is a one-time, one-way copy of every point in a Qdrant collection into the Postgres backend's schema, through the same pREST endpoint the server itself uses. It's only needed if you have existing Qdrant data and want to start using MEMORY_BACKEND=postgres with it - the two backends are otherwise independent and nothing else moves data between them.
node skill/migrate-qdrant-to-pgvector.mjs --project project-agent-memory \
--qdrant-url http://localhost:6333 \
--prest-url http://localhost:3000 \
--prest-jwt-key change-meSource vectors of any dimension are supported: if the Qdrant collection's vector size differs from the target VECTOR_DIM, the script truncates and re-normalizes (Matryoshka-style, same as the embedding layer) when the source is larger, and refuses with a clear error rather than padding when the source is smaller. Run with --help for the full flag list, including --dry-run.
Upgrading to 3.4.0
Nothing to run. On start the server adds a public settings point to every existing project; entries are not rewritten, and entries without a visibility flag inherit the project default (public). Existing memory therefore becomes visible to other projects: review old entries for anything sensitive and mark it private before upgrading, or run project-agent-memory-cli upgrade --all --private a,b to make chosen projects private first. Qdrant needs a server that supports filtered upserts (update_filter, tested on 1.19.1).
Testing
Interactive:
npm run build
npx @modelcontextprotocol/inspector node dist/index.jsOpens http://localhost:6274.
Test suite (needs a reachable backend; the suites spawn dist/index.js, so build first). Run it through the npm script, which sets the ESM flag; plain npx jest fails on import.meta:
npm run build
npm testtests/hive.test.ts covers cross-project access and runs on either backend (MEMORY_BACKEND=qdrant QDRANT_URL=... or postgres with PREST_URL).
Smoke test over stdio:
printf '%s\n' \
'{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"t","version":"0"}}}' \
'{"jsonrpc":"2.0","id":2,"method":"tools/list"}' | node dist/index.jsDevelopment
Project structure
project-agent-memory/
├── src/
│ ├── index.ts # MCP server entry point, tool registrations, startup upgrade
│ ├── bin.ts, cli.ts # npx entry, CLI (recall, context, index, stats, migrate, upgrade)
│ ├── setup.ts # `setup` command: installs hooks and skill into ~/.claude
│ ├── migrate.ts # v2 -> v3 migration
│ ├── config.ts # Environment configuration and VECTOR_DIM validation
│ ├── init.ts # Collection creation, dimension guard, settings point
│ ├── hive.ts # Hive memory: visibility, versioning (CAS), archive, restore, history, upgrade
│ ├── hiveConstants.ts # Limits (5 projects, top-k 3/10, heat), session id, ids
│ ├── cache.ts # LRU caches and invalidation
│ ├── constants.ts, types.ts, utils.ts
│ ├── embeddings.ts # Provider factory
│ ├── embeddings/ # onnx, openaiCompatible, geminiVertex, openrouter, providerBase
│ ├── backends/
│ │ ├── prest.ts # Qdrant-client-shaped shim over Postgres/pgvector via pREST
│ │ └── postgres.ts
│ ├── codegraph/ # tree-sitter extraction and per-language queries
│ └── mcp_tools/
│ ├── memoryBankTools.ts
│ ├── codeGraph.ts
│ └── summarizer.ts
├── bin/ # server.cjs launcher, grammar fetch, version sync
├── dist/ # Compiled output (generated)
├── tests/ # Jest suites (all-tools, hive, setup, code-graph, hooks, cache, chunking)
├── skill/ # Claude Agent Skill, API reference, Qdrant->Postgres migration script
├── .claude-plugin/
│ └── plugin.json # Plugin manifest (name, skill path, MCP server)
├── hooks/
│ ├── hooks.json # SessionStart / UserPromptSubmit / PreToolUse / PostToolUse / Stop wiring
│ └── inject.cjs # Context injection, prompt recall, code-graph reindex, commit auto-logging + Stop hard-block
├── commands/
│ └── memory-sync.md # /memory-sync
├── .mcp.json # Plugin's bundled MCP server registration
├── .gitattributes # LF line endings
├── package.json
└── tsconfig.jsonBuild
npm run build # compile to dist/
npm run dev # watch modeLicense
MIT
