Skip to main content
BridgeMind
Back to Blog
Product5/5/2026/9 min read

BridgeMemory: Persistent Context for AI Pair Programmers

How BridgeSpace gives every agent a local-first knowledge graph that compounds across sessions instead of forgetting at the end of each prompt.

B
BridgeMind Team

Why your AI keeps forgetting

Every fresh agent session starts at zero. You explained the auth pattern last Tuesday. You wrote a careful note about the Stripe webhook race condition. You decided three weeks ago that the team would not migrate the session token store. None of it carries forward when a new chat opens. The next prompt rebuilds the world from scratch, and you re-explain.

That is the gap BridgeSpace closes with BridgeMemory. It is the persistent knowledge graph that sits next to your code, owned by you, and read by every AI teammate in the workspace. Decisions stick. Context compounds. The agent that opens tomorrow morning starts where the agent last night left off.

What BridgeMemory actually is

BridgeMemory is a per-workspace folder named .bridgememory/ that lives next to your repo. Inside it, every memory is a markdown file. The H1 is the title. The body is whatever the agent or the builder wants to remember — a decision, a gotcha, a snippet, a hand-off note for the next session.

BridgeSpace auto-discovers this folder by walking up the directory tree from any open workspace, so an agent dropped into a sub-folder finds the same hub the builder is curating from the project root. There is no cloud bucket, no opaque sync layer, and no vendor capture. The hub is a directory you can commit to git, back up like any other project file, and inspect with any text editor.

Markdown plus a directory is a deliberate choice. It is the smallest stable surface that supports the things builders actually do with knowledge: link, search, version, and read.

The 12 MCP tools every agent gets

BridgeMemory ships as a Model Context Protocol server inside BridgeSpace. Every agent in the workspace — Claude, Codex, Jarvis, the Bridge assistant, anything you point at the MCP endpoint — gets the same toolbelt. Twelve tools, three groups.

  • CRUD: list_memories, read_memory, create_memory, update_memory, append_to_memory, delete_memory. The basics. append_to_memory is the one builders underestimate — it is what lets a long-running review agent leave a trail without rewriting a file each turn.
  • Discovery: search_memories, find_backlinks, list_orphans, suggest_connections. Search scores title hits higher than body hits, ties broken by recency. Backlinks reveal which notes point at the one you just opened. suggest_connections reads the active memory and ranks the rest of the hub by shared keywords, which is how an agent stumbles onto a relevant prior note it did not know existed.
  • Hub: init_hub, hub_status. Idempotent setup and a cheap status read for agents that want to confirm the hub is live before doing anything else.

All twelve tools re-read the hub from disk on every call. That is intentional — the UI and multiple agents can be writing concurrently, and any tool call gets the freshest state. Pair this with BridgeMCP for multi-agent orchestration and the same memory hub becomes shared scratch space for an entire swarm.

[[Wikilinks]] turn notes into a graph

BridgeMemory borrows the wikilink convention from tools like Obsidian and Roam. Inside any memory, write [[Auth Pattern]] and you have linked to the memory titled “Auth Pattern.” That link is bidirectional — find_backlinks on the auth pattern memory will return everything that references it.

The interesting part is suggest_connections. It tokenizes the active memory, filters stop-words, and ranks every other memory by shared four-plus-character keywords. So when an agent is writing a note about a session-token bug, it can ask the hub “what else looks like this?” and get back the auth pattern note from three weeks ago that nobody told it to read. That is the compounding effect: knowledge that finds itself.

The force-directed graph view

BridgeSpace renders the hub as a canvas-based force-directed graph. Nodes are memories, edges are wikilinks, and the layout is cached so the graph does not re-simulate every time you open the panel. Drag, zoom, search with a pulse highlight, and shift-hover any node to enter ego mode — the graph dims everything except the node and its two-hop neighbours, so the local context jumps out of the noise.

For builders who like the visual side of vibe coding, this is the moment the abstract idea of “persistent context” becomes tangible. You can see the cluster of notes the team has built up around auth, the orphan note nobody linked to, the bridge between the billing and onboarding subgraphs.

Local-first, atomic-safe, yours

BridgeMemory was designed with three non-negotiables.

  • Local-first ownership: the hub is a directory under your control. No telemetry on the contents. No cloud dependency to launch BridgeSpace.
  • Atomic writes: every memory write goes through a temp-file-plus-rename pattern, so a process crash mid-write cannot corrupt a file. Appends use POSIX O_APPEND at the kernel boundary, which means two agents appending to the same memory at the same time do not lose data.
  • Runtime gating: the MCP server validates a per-launch token before it binds to stdio. A stale shell with an old token cannot quietly read your hub. The token is stored at ~/.bridgespace/runtime.session with mode 0600, and comparisons are constant-time.

None of this is exciting copy — it is the kind of plumbing that makes the difference between a memory system you trust and one you do not.

How to start using BridgeMemory

Open BridgeSpace in any project, click the BridgeMemory icon in the sidebar, and the hub initializes itself in a .bridgememory/ folder at the workspace root. From there:

  • Let the agent take notes. Tell Claude or Codex to log a decision, a gotcha, or a hand-off summary. The agent calls create_memory and the file appears in the panel.
  • Link aggressively. Use [[wikilinks]] liberally. The graph rewards a connected hub.
  • Ask the agent what is in the hub. Before any non-trivial task, prompt the agent with “search the memory hub for prior context.” That single habit is most of the value.
  • Keep the hub in git. The .bridgememory/ folder is plain markdown. Commit it. Review it in PRs. Treat it like documentation that AI teammates actually read.

For voice-driven workflows, BridgeVoice dictates straight into the active memory. For CLI-driven sessions, BridgeCode can read the hub before it plans a change.

Final takeaway

The first wave of AI coding tools optimized for the single prompt — how clever is the model in the next twenty seconds. The next wave is about what survives the prompt. BridgeMemory is BridgeMind’s answer: a local-first, MCP-native, graph-shaped hub that turns every agent session into a deposit on a knowledge balance that grows. Download BridgeSpace and stop re-explaining yourself, or check the pricing plans to see which tier unlocks the full BridgeMind stack.

Related Articles