Skip to main content

Agent Memory Bridge — governed project memory across sessions and tools

Agent Memory Bridge

Turn scattered project context into governed memory.

AMB helps coding agents carry forward the knowledge that matters — across sessions, tools, and time.

简体中文

PyPI MCP Server CI GitHub Release MIT License Python 3.11+

pip install agent-memory-bridge

Install once; connect each coding client separately. Installing the package does not register AMB with every coding agent. Each client you want to use must be configured to launch AMB as an MCP stdio server. Clients that should share memory need to use the same configured local AMB home.

Your project should not start over with every session

A project is more than its current files. Over time, useful context gets scattered across repositories, chats, coding agents, reviews, fixes, and one-off decisions. A new session can see the code but still miss the reasons, constraints, corrections, and history that make the project make sense.

AMB gives that project context a durable place to accumulate without turning memory into an unreviewable transcript dump.

Without shared project memory With AMB
Each session reconstructs context Useful project knowledge carries forward
Decisions disappear into old chats Explicit decisions and reasons stay with the project
Different tools build different partial pictures Supported MCP clients can use the same configured local AMB home
Memory can become stale or ambiguous Provenance, revision, supersession, and inspection keep it governable

AMB is local-first and inspectable. It does not silently archive every conversation or treat every remembered statement as equal authority.

One project, memory that grows with it

AMB starts small: derive a reviewable baseline from the repository, then add the decisions, constraints, corrections, and context that are worth carrying forward.

repo / project baseline
        +
explicit decisions and constraints
        +
revisions, corrections, provenance
        ↓
   governed project memory
        ↓
future sessions · coding agents · tools

The repository is the common starting point for software projects, but the memory model is about the project, not just the codebase: the durable knowledge surrounding the work can outlive any one chat, agent, or tool.

Quick Start

AMB requires Python 3.11+, Git, and an MCP-compatible coding client that can launch a local stdio server.

Current source version: 0.32.2

Published releases: see GitHub Releases

For the 0.32.2 release line, the normal install route is PyPI. GitHub Releases remains the publication authority for source tags and release notes; an exact source checkout can still be installed with pip install -e . for development or audit work.

1. Install AMB

For the Quick Start, use a virtual environment so every coding client can point at one stable Python launcher. Replace <venv-python> with the Python executable inside .amb-venv for your operating system.

python -m venv .amb-venv
<venv-python> -m pip install agent-memory-bridge

For an exact, reproducible 0.32.2 environment, use this install line instead:

<venv-python> -m pip install agent-memory-bridge==0.32.2

2. Connect the coding client(s) you actually use

Installation and client registration are separate. Preview the setup for one client first:

<venv-python> -m agent_mem_bridge setup --client <client>

setup is read-only by default: it detects or inspects only bounded client configuration locations and shows the exact AMB fragment or action it recommends. Use a supported client name such as codex, claude-code, vscode, cursor, cline, opencode, or another client listed in Integrations.

If the preview marks that client as eligible for safe automatic configuration, you can explicitly apply it after review:

<venv-python> -m agent_mem_bridge setup --client <client> --apply

Some clients remain preview/manual because AMB will not guess or rewrite an unsafe configuration format or path. In that case, copy the rendered fragment or follow the client-specific Integration guide. Repeat this step for every coding client you want to connect. To share the same project memory across clients, keep them pointed at the same configured AGENT_MEMORY_BRIDGE_HOME, then reload each client after registration.

3. Initialize the project

<venv-python> -m agent_mem_bridge project init .

Project Init detects the local Git repository, proposes a namespace such as project:my-app, and waits for confirmation. It then derives a current repository baseline and opens the Human-first Explore view. It does not automatically learn decisions.

4. Teach the project one decision that matters

For example, tell the connected coding agent:

Remember that we decided not to add Redis because this project is intentionally local-first and single-node.

The connected agent uses AMB's existing public memory tools to store the explicit decision and reason. AMB does not infer a durable decision from the code or archive the whole conversation.

5. Open a fresh session and reuse the memory

<venv-python> -m agent_mem_bridge explore \
  --namespace project:my-app

<venv-python> -m agent_mem_bridge inspect \
  --namespace project:my-app \
  --query "Should we add Redis?"

Explore answers “What does AMB currently know about this project?” Inspect answers “Why did this information surface for this question?” Both are local and read-only.

This is a conceptual view, not verbatim CLI output:

CODE / WHAT                     CONVERSATION / WHY
────────────────────            ──────────────────────────
Runtime: Python >=3.11          Decision: Do not add Redis
Package: my-app                 Reason: local-first,
Tests: pytest                   single-node project

Under the hood, AMB keeps repository-derived facts separate from explicitly taught project knowledge:

Code tells AMB WHAT the project is.

Conversations teach AMB WHY it is that way.

That distinction is a trust boundary, not the whole product story: derived facts can be rebuilt from current code, while durable project knowledge remains explicit, reviewable, and governed.

Refresh and troubleshooting boundaries

Repository WHAT comes from a clean Git commit. If HEAD changes or the worktree is dirty, AMB will not present an old snapshot as current truth. Refresh is not automatic. Rerun the explicit primitive:

<venv-python> -m agent_mem_bridge bootstrap-repo . \
  --namespace project:<name>

Refreshing repository WHAT leaves durable project WHY unchanged. Explore is CLI-only, not MCP tool #18, and it does not rank context for the model.

first-run remains optional guided help; it is not the modern Project Learning entrypoint:

<venv-python> -m agent_mem_bridge first-run --namespace project:my-app --query "What should I remember?"

Use health checks only when setup is uncertain:

<venv-python> -m agent_mem_bridge doctor
<venv-python> -m agent_mem_bridge verify

Integrations

AMB works through local stdio MCP. Generic MCP clients are supported; Codex is the reference workflow; Claude Code, Claude Desktop, Cursor, and Cline are documented; and Antigravity, OpenCode, and Hermes have locally tested configuration paths.

Integration labels are deliberately narrow and do not imply client certification. See Integrations for current setup instructions and boundaries.

Why the memory stays trustworthy

The useful part of long-lived project memory is not simply remembering more. It is being able to tell where knowledge came from, whether it is still current, and how it changed.

AMB therefore keeps several boundaries explicit:

Memory concern AMB approach
Current repository truth Derived from a clean repository state and refreshed explicitly
Human decisions and constraints Stored explicitly as governed durable memory
Changed knowledge Revised or superseded instead of silently overwritten
Why context surfaced Inspectable through local derived views and evidence paths
Cross-session reuse Shared through the same configured local AMB home
Privacy Local-first; no hosted memory service is required

This is where the earlier WHAT / WHY model belongs: it explains one of the mechanisms that keeps memory trustworthy, rather than defining the entire product.

What AMB is — and is not

AMB is a governed local project-memory layer for coding agents. It is designed to preserve useful context across sessions and tools while keeping durable knowledge, derived repository facts, provenance, and corrections distinguishable.

It is not a transcript archive, a promise that an agent will remember everything, or a system that silently converts every conversation into durable truth.

Want the details?

Read For
Architecture System shape and data flow
Authority model Durable authority, derived views, correction, and audit rules
Knowledge Explorer Human-first read-only project view
Production Status Current implementation facts, evidence, and known limits
Integrations Client-specific local MCP setup
Install for Agents Full install-to-first-success workflow
Configuration Complete configuration reference
Examples Sanitized demos and artifacts

Technical model

The product story above intentionally postpones implementation vocabulary. Internally, AMB keeps derived_repository data separate from governed durable memory so one cannot silently become the other. For maintainers and reviewers, the current authority flow is:

flowchart LR
    A[Durable Memory / WHY] --> C[Lifecycle-aware Recall]
    B[Repository Knowledge / WHAT] --> D[Context Compiler]
    S[Dynamic State Authority] --> D
    C --> E[Governed Task Memory]
    E --> D
    D --> F[Transient Bounded Context]
    F --> G[Metadata-only Context Attestation]
    G --> H[Episode and Run Authority]
    H --> I[Verification Receipt]
    I --> J[Current Verified Outcome]

SQLite/WAL rows are durable authority. Repository snapshots, FTS rows, embedding sidecars, compiled context, reports, and Explorer views are derived. Context bodies are rendered in process and are not durably persisted by the compiler.

Trust and privacy

AMB is local-first. It does not require a hosted memory service. It separates durable memory from coordination Signals and mutable Dynamic State, keeps provenance visible, and rejects raw transcripts, hidden reasoning, and inline artifact bodies from the durable episode path.

Read the Trust Boundary, Authority Contract, and Closed-Loop Episode Authority for the exact boundaries.

MCP Tools

AMB exposes 17 public MCP tools:

  • store, recall, browse, and stats
  • forget, feedback, promote, annotate, revise, and export
  • begin_run, record_run_event, get_run, and complete_run
  • claim_signal, extend_signal_lease, and ack_signal

The public tool surface stays small. Setup, Project Init, Explore, Inspect, context assembly, and review reports remain CLI or internal derived workflows rather than becoming more MCP tools.

The local protocol cache contract is 300000/public for discovery and 0/private for the tool list; see MCP Compatibility for details.

Current maturity

The current source is 0.32.2, uses schema v12, and retains the frozen 17-tool MCP surface. project init is the preferred first-project path. Default Explore is a Human-first view over existing repository-derived context and governed project knowledge. Current evidence and non-claims live in Production Status; published artifacts live in GitHub Releases.

Contributing

Read CONTRIBUTING.md for development and public-surface expectations, and SECURITY.md for vulnerability reporting.

Licensed under MIT.

Download files

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

Source Distribution

agent_memory_bridge-0.32.2.tar.gz (734.8 kB view details)

Uploaded Source

Built Distribution

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

agent_memory_bridge-0.32.2-py3-none-any.whl (366.1 kB view details)

Uploaded Python 3

File details

Details for the file agent_memory_bridge-0.32.2.tar.gz.

File metadata

  • Download URL: agent_memory_bridge-0.32.2.tar.gz
  • Upload date:
  • Size: 734.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for agent_memory_bridge-0.32.2.tar.gz
Algorithm Hash digest
SHA256 53e4a6fa58cdd15b6580f39460f7937a6d5199e15fa7602c046a55fb895d5ec8
MD5 98a23d83a0f2cab9dc84e058529bf401
BLAKE2b-256 efbb5fbf9ef75e2fac32d4670cd23a37de0759e9b50b60879dc00f9123bc2d8f

See more details on using hashes here.

Provenance

The following attestation bundles were made for agent_memory_bridge-0.32.2.tar.gz:

Publisher: release.yml on zzhang82/Agent-Memory-Bridge

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file agent_memory_bridge-0.32.2-py3-none-any.whl.

File metadata

File hashes

Hashes for agent_memory_bridge-0.32.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4ce49dd65a7ca30811d91aec82e7af9166a20e47a2087e4612be739d228c11e1
MD5 d59c34e995a8e4a781b009c153dac25b
BLAKE2b-256 ee1d9a878363b007b240c909e33e5c8b0c28e7205b15ce1f5f156c9e56306133

See more details on using hashes here.

Provenance

The following attestation bundles were made for agent_memory_bridge-0.32.2-py3-none-any.whl:

Publisher: release.yml on zzhang82/Agent-Memory-Bridge

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.32.2 This release

2 files

0.32.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page