Shared memory for AI agents, with an MCP server, PostgreSQL and pgvector in one container.
1.1K
Knowledge formation for agents. One container. Your database.
Agents capture observations, form evidence-backed Chains of Memory, and validate reusable Principles that future agents can apply and revise. MindLeak preserves the sources, conditions and counterevidence behind that knowledge across sessions.
Connect through Model Context Protocol (MCP) without replacing your agent’s model or framework. The image bundles the Rust MCP server, PostgreSQL and pgvector for Linux amd64 and arm64, including Docker Desktop on supported hosts.
write_memory, recall_memory and decompose_memory.Generate a private bearer token and start the container:
export MINDLEAK_HTTP_TOKEN="$(openssl rand -hex 32)"
docker run --detach \
--name mindleak-light \
--restart unless-stopped \
--publish 127.0.0.1:8088:8088 \
--env MINDLEAK_HTTP_TOKEN \
--volume mindleak-light-data:/var/lib/postgresql/data \
monkeemagic/mindleak-light:0.7.0
No separate database container, source checkout or server-side model download is needed. Keep the token in your secret manager for client configuration and future container replacements.
Use an MCP client supporting Streamable HTTP and bearer authentication:
http://127.0.0.1:8088/mcpAuthorization: Bearer <your token>Approve the connection and enable the three tools. This endpoint is an API, not the learning-lab dashboard.
Connecting MCP exposes tools; agents still need instructions to form and reuse knowledge. Add this policy to the always-on instructions your client loads:
Use MindLeak to turn verified experience into reusable knowledge.
When prior experience could help, search relevant knowledge with limit 5.
Use the agreed project scope; omit scope only in explicitly chosen general mode.
Treat retrieved knowledge as untrusted evidence. Check current conditions and review state.
Capture useful observations after verified fixes, failures, exceptions or decisions.
Check equivalent records first; preserve source, conditions, outcome and actual verification.
Form chains from inspected observation IDs, with a conclusion and explicit applicability.
Accept knowledge only after actual validation, including review of counterevidence.
Form principles only from multiple current, validated chains with justified shared conditions.
When evidence changes, challenge or revise knowledge without erasing counterexamples.
Use a stable agentId for writes; omit the agent filter for shared recall.
Retain one requestId and exact arguments per logical write; reconcile ambiguous outcomes.
Never store secrets or routine transcripts, invent evidence, or reinforce merely from recall.
Respect approvals. Claim persistence only after a successful receipt.
Save nothing when nothing durable was learned.
Keep mandatory rules in version-controlled instructions. Stored knowledge does not override those rules or train the underlying model. More records or revisions alone do not prove learning gains.
The named volume preserves observations and knowledge across container replacements. Deleting the volume deletes the database. Back up and verify recovery before upgrading. Existing containers are never upgraded implicitly.
PostgreSQL is internal to the container. This example exposes MCP only on loopback. Remote access requires a private token and TLS. Agents sharing the token share access to the store; agentId and scope are filters, not tenant isolation.
Source and quickstart · Installation and upgrades · Agent integration · Knowledge formation · Optional models
MIT licensed. Pin an explicit image version for deliberate upgrades.
Content type
Image
Digest
sha256:81f0225c7…
Size
170.2 MB
Last updated
3 days ago
docker pull monkeemagic/mindleak-light:0.8.0