Install Agent Memory Bridge

August 27, 2026 ยท View on GitHub

Use this file when an agent is installing Agent Memory Bridge for a human from the public project. The normal release install path is PyPI; an exact source checkout remains the development and audit path.

Requirements

  • Python 3.11 or newer
  • network access to PyPI and GitHub
  • an MCP client that can launch a local stdio process
  • uv is optional; the baseline path uses Python and pip

Ask Before Writing Config

Confirm the target client, the desired bridge home, and whether the config is user-scoped or project-scoped. Do not write client config, paste secrets, or enable automatic tool approval without the human's approval.

Python-Only Install

Create an isolated environment. Use the available Python 3.11+ launcher: examples use python; on many Linux systems use python3; on Windows py -3 may be appropriate.

python -m venv .amb-venv

Find the environment's interpreter without assuming a Windows or POSIX layout:

python -c "import os; from pathlib import Path; print((Path('.amb-venv') / ('Scripts/python.exe' if os.name == 'nt' else 'bin/python')).absolute())"

Treat the printed value as local configuration data. Do not commit it to this repository or include it in an issue report. In a POSIX shell, shell-quote the path when needed. In Windows PowerShell, invoke it as & "<venv-python>".

Current package/source version is 0.32.2. Install the release package with:

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

For development or audit work against an exact checkout, use <venv-python> -m pip install -e . instead. Published source releases remain listed in GitHub Releases; the published v0.30.0 source archive is https://github.com/zzhang82/Agent-Memory-Bridge/archive/refs/tags/v0.30.0.zip. The historical v0.27.0 release-install archive was https://github.com/zzhang82/Agent-Memory-Bridge/archive/refs/tags/v0.27.0.zip.

doctor checks local prerequisites and resolved paths. verify launches an isolated AMB stdio runtime; neither command proves that an MCP client loaded the config.

Connect One Client

Installing AMB and registering it with a coding client are separate steps. Preview the target client's setup first:

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

setup is read-only by default. If the preview explicitly classifies the target as safe for automatic configuration, the human can approve:

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

Some clients remain preview/manual by design. In that case use docs/INTEGRATIONS.md for the current config shape and render the exact fragment instead of guessing a config path or serializer. Set the stdio command to the derived venv interpreter and the arguments to:

["-m", "agent_mem_bridge"]

Supported renderer names are generic, codex, claude-desktop, claude-code, vscode, cursor, cline, antigravity, opencode, and hermes. Every client that should share project memory must use the same user-chosen persistent AGENT_MEMORY_BRIDGE_HOME. Render one real fragment for the target client when manual configuration is required:

<venv-python> -m agent_mem_bridge config --client <client> --python "<venv-python>" --cwd "<absolute-path-to-your-project>" --bridge-home "<absolute-path-to-one-persistent-bridge-home>"

The default config path in the generated fragment is optional for this baseline. If no such config.toml exists, doctor may warn and the baseline server can still run. Restart or reload the client, then use its own MCP status/tool view to confirm the server connects and exposes the documented 17-tool public surface. That client registration check is the gate that proves the config was loaded.

The historical v0.27.0 release-install route exposed 17 public MCP tools at client registration. The current source/package line is 0.32.2; for live release availability, consult GitHub Releases.

Optional uvx Shortcut

If uvx is already installed, it can run a GitHub source tag directly. This is an optional source route, not the baseline install path.

First Useful Check

The human-facing first-value path is connect, run project init to confirm a namespace and bootstrap repository WHAT, teach one explicit WHY in natural language, then prove it in a fresh session. bootstrap-repo remains the explicit primitive. first-run is optional secondary guided memory help, not the modern Project Learning entrypoint. It is not the modern Project Learning.

When the human explicitly says something equivalent to "Remember that we decided X because Y," call the public MCP store(...) tool with kind="memory" and content conceptually equivalent to:

record_type: decision
claim: <the decision>
reason: <why it was made>
scope: project:<namespace>
confidence: observed

Use record_type: constraint for an explicit constraint. Do not silently infer a durable decision from repository code, automatically promote chat, or archive transcripts.

You can also store one non-sensitive project gotcha and later recall(...) it. These MCP tools are not terminal subcommands. Keep the first check small and review tool input before approval.

For non-empty kind="memory" text recall, AMB can return a 15-minute recall_receipt. Treat it as sensitive: the token is HMAC-signed and tamper-evident, not encrypted, and it does not authenticate caller provenance. The returned rows, database epoch, complete exposure set, exact content versions, and signature are assembled from the same SQLite read snapshot. recall(...) can optionally sign bounded SHA-256 digests for caller-declared model, harness, and chat_template labels; raw labels are not included.

The feedback(...) tool can append a vote, correction, or retraction for a receipt-bound result. One current effective vote is exposed per signed retrieval subject, and caller-declared client or session labels cannot create additional votes. Feedback remains shadow-only: it does not mutate memories, indexes, recall results, or ranking behavior.

For explicit episode evidence in the current 0.32.2 source, use begin_run(...) to obtain server-minted run/work-item handles, then use record_run_event(...), get_run(...), and complete_run(...). These calls create durable run, event, and outcome authority. Schema v12 retains governed-v2 events/CAS, operator verification receipts, and watcher continuity, and adds an internal exact-key Dynamic State release lane with typed commands, epoch/version guards, lifecycle idempotency, immutable history, and rebuildable heads. It adds no MCP tool and does not alter recall, ranking, policy, prompts, or ordinary memory. Credit and consolidation remain shadow-only.

Agent Memory Bridge is an additional MCP memory store. Do not claim that it replaces a client's built-in memory, instructions, rules, or project context.

Report Install Results

Reply with pilot outcomes to Discussion #4. For a separate reproducible setup or documentation defect, use the client integration issue form. Include the client and version, operating system, install source, redacted config shape, and exact validation outcome. Remove tokens, private paths, bridge contents, and other sensitive data first.