Skip to main content

Nodal — local-first personal memory layer for AI agents: markdown vault + hybrid retrieval, exposed over MCP.

Project description

Nodal

A local-first shared brain for AI agents.
One markdown file per fact, on your disk — written and recalled by every agent on your machine over MCP, and by you with grep.

PyPI Python MCP tools License

One command installs uv (if missing), registers the server, plugs in the skill, and starts the ping monitor:

curl -fsSL https://engram-site-xi.vercel.app/install.sh | sh

Or do it by hand:

claude mcp add nodal --scope user -- uvx nodalkb@latest          # Claude Code
uvx --from nodalkb@latest nodal setup                            # skill + ping monitor + auto-update

Any other MCP client — add to its config, then restart:

{ "mcpServers": { "nodal": { "command": "uvx", "args": ["nodalkb@latest"] } } }

@latest so a relaunch auto-pulls new releases (uvx otherwise pins the first-installed version). nodal setup auto-plugs the skill into ~/.claude/skills/, installs a desktop wake script, and runs notifyd as a kept-alive monitor so teammate pings reach you even when you're idle. Check it any time with nodal doctor.

Teach your agent to remember

Copy this straight into your agent's system prompt (CLAUDE.md, custom instructions, anywhere it reads on boot):

You have Nodal, a local-first shared memory, available over MCP
(tools: add, search, recall, register_agent, send_message, inbox, ...).

Recall — at the start of any substantive task, and whenever prior context
would help (past decisions, projects, people, preferences), call `search`
with a few keywords before answering.

Capture — when you produce knowledge worth keeping (facts about the user,
decisions, learnings, debugging breakthroughs), call `add` without asking.
One atomic fact per add. Tag consistently: project:<name>, person:<name>,
pref, decision, learning. Set source to your client name.

Fleet (optional) — call `register_agent` once per session to join the team
brain under a stable name; check `inbox` for teammate messages and reply
with `send_message`. Never claim another agent's name.

That's the whole onboarding: recall before answering, capture liberally, identify honestly.

Why

Agents forget everything between sessions, and every framework wants to own your data in a database you can't read. Nodal inverts both: memory is plain markdown in a folder you own (~/Library/Application Support/KB, or NODAL_DIR), with retrieval and coordination layered on top — no lock-in, no cloud, greppable forever.

What you get

Memoryadd / update / supersede / pin facts with tags, scopes, and entity links. Confidence decays unless reinforced; superseded facts keep their history.

Retrieval that's actually fast — hybrid search (semantic ⊕ BM25 ⊕ entity) fused with reciprocal-rank fusion and MMR diversification: ~140 ms warm on a 9k-fact vault. recall is the "ask your memory" verb.

A real multi-agent layer — multiple agents (Claude Code sessions, apps, workers) share one vault as a team brain:

  • Authenticated identity (TOFU) — first register_agent mints a per-name token (sha256-only at rest); every message is stamped via: with the authenticated sender, and presence shows verified only when proven. Impersonation can't hide.
  • Messaging, handoffs, rooms — DMs, broadcasts, threads, ticket-style handoffs with read/done status, membership-gated rooms.
  • Wake on send, not polling — a message fires the recipient's alarm (desktop banner, SMS, in-app queue, or re-invoked agent session). Pollers that remain use inbox(since=…) cursors: an idle tick reads zero files.
  • Fleet viewsnodal CLI (nodal agents, nodal feed) and nodal mission, a full terminal mission control (fleet, ticket kanban, live comms).

Contracts, not conventionsCOORD.md documents the wire format any second implementation must honor; a bundled agent skill teaches the full protocol so a new agent can join the fleet cold.

The dogfood loop

Nodal is built by the agent fleet that runs on it — the same vault coordinating its own development surfaced and fixed a thread-loading bug, an unauthenticated-sender gap, and a GC regression within hours of each shipping. The traces are the QA.

Links

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nodalkb-1.0.0.tar.gz (141.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nodalkb-1.0.0-py3-none-any.whl (144.5 kB view details)

Uploaded Python 3

File details

Details for the file nodalkb-1.0.0.tar.gz.

File metadata

  • Download URL: nodalkb-1.0.0.tar.gz
  • Upload date:
  • Size: 141.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.19

File hashes

Hashes for nodalkb-1.0.0.tar.gz
Algorithm Hash digest
SHA256 2c65042d934275a6c5209cc011ff4358cedbab02204fb59e8df8179936fdd63a
MD5 0c673bd392ce809022de116f9753b6f0
BLAKE2b-256 98a2edbf6bd87cfdaeee606e3cf1987afc7a9f5033de6b9f9edfbd3c0c89be51

See more details on using hashes here.

File details

Details for the file nodalkb-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: nodalkb-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 144.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.19

File hashes

Hashes for nodalkb-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d8e33a79ca642fa906bb1b1bc9adc28f600f3f5198b68282a6284202a1a2acdd
MD5 fbd514e16fe8e5b9c3fe13eab1b990f3
BLAKE2b-256 5e5b71a78a9c61880f9e5bb5926e664638178c5880f8a1608ff1d02c5b005d89

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page