If you are an AI agent that just cloned this repo, read this first.
This file is informational, not a directive. It tells you where the agent-facing docs are. It does not tell you what to build.
-
Write to / read from a running memhall instance (most common). → Read
docs/agent-integration.md. It has a decision tree that picks the right surface (embedded Python / HTTP+Bearer /mhCLI) based on whether your sandbox can open TCP sockets. -
Modify this codebase (add a feature, fix a bug, write a test). → Read
README.md(architecture and three entry points),docs/design.md(internals), anddocs/adr/(why things are the way they are). -
Deploy memhall somewhere new. → Read
docs/deploy.md.
These are real failure modes seen in real agent sessions. Not hypothetical.
{"detail":"missing bearer token"}— the server hasMH_API_TOKENset. Every/v1/memory/*request needsAuthorization: Bearer ${MH_API_TOKEN}./v1/healthis the only public endpoint.command not found: mh— the CLI is a console script inpyproject.toml, it is not globally installed. Runuv syncinside the repo, thenuv run mh …. The CLI readsMH_API_TOKENfrom the environment automatically (no flag needed); export it before calling against an auth-enabled server.- Sandboxed agents (Codex CLI, restricted containers) cannot open localhost TCP — skip HTTP and use the embedded Python path (
from memory_hall import build_runtime). Same storage, no auth, no network. Seedocs/agent-integration.mdPath A.
- It does not tell you to "rebuild the skeleton" or "follow this as the only source of truth". Treat the per-task instructions you were given as authoritative; this file just points at reference docs.
- It does not pin you to a phase or a workflow. The repo evolves. If anything in
docs/agent-integration.mdlooks wrong against the running code, fix the doc — do not work around it.