# LAMF

> A governed, local-first memory authority for AI agents.

- **Type:** MCP server
- **Install:** `agentstack add mcp-ai-luci-lamf`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [AI-LUCI](https://agentstack.voostack.com/s/ai-luci)
- **Installs:** 0
- **Category:** [Integrations](https://agentstack.voostack.com/c/integrations)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [AI-LUCI](https://github.com/AI-LUCI)
- **Source:** https://github.com/AI-LUCI/LAMF

## Install

```sh
agentstack add mcp-ai-luci-lamf
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# LAMF — Local Agent Memory Fabric

LAMF is a local-first, event-sourced memory system for AI agents: a durable, governed,
searchable memory designed so that no model output can silently rewrite it
(floor F5/F9). LAMF includes its own local human workspace; Obsidian is an optional
projection. Codex, Claude, Kimi, Grok, OpenClaw, Hermes and other AI systems are
interchangeable clients of the same installation.

## One memory, many agents

LAMF is harness-agnostic. Install the authority once, then connect any number of
agent harnesses through the universal MCP launcher at `runtime/lamf_mcp.py`. Every
client uses the same policy, records, integrity spine and optional projections—there
is never a separate memory database per harness.

```text
Codex ─┐                                      ┌─ built-in local LAMF UI
Claude ├─ MCP / optional native hooks ─ LAMF authority
Kimi ──┤                                      └─ optional Obsidian projection
Grok ──┤
OpenClaw ┤
Hermes ┘
```

Use `lamf harness list`, `lamf harness emit `, and `lamf harness doctor`.
The normative boundary is `05_INTEGRATIONS/HARNESS_ADAPTER_CONTRACT.md`.

Registration is harness-specific. Claude Code's CLI/user MCP registration does
not configure Claude Desktop Home chats; Desktop uses `dist/lamf.mcpb`, installed
from **Settings → Extensions → Advanced settings**. Windows does not need a file
association for `.mcpb` packages.

Default search, orientation, and context retrieval is ordinary-only. Sensitive
or restricted details require an explicit per-call elevation after the user asks
for the protected information.

Optional agent-behavior modules are distributed separately in
[LAMF-Optimizations](https://github.com/AI-LUCI/LAMF-Optimizations). The core
repository contains the fail-open loader and controls, but emits no optimization
instructions unless that separate pack is installed.

Each connected MCP process registers a unique local presence. The existing
`memory_handoff` tool also provides a durable inbox (`presence`, `message`, `inbox`,
and `list`) so simultaneous agents can discover one another, announce file ownership,
and exchange coordination notes before using the fenced handoff lifecycle. This is a
durable coordination channel, not an unsafe transcript mirror.

During setup, choose no harness, one, several, or all. Choosing none is supported:
`lamf search`, `lamf remember`, `lamf context`, the HTTP API and built-in UI continue
to work without any external agent harness. Automated installs use repeatable
`--harness ` flags or `--harness none`.

Setup can also initialize the policy-filtered Obsidian projection as a local Git
repository with `--git vault`. This makes the visual/project layer easy to attach to
Git-aware cloud projects without ever placing the authoritative data directory,
keys, tokens, spine, review queue or operator notes in Git. No remote is created and
nothing is pushed automatically.

## Quickstart — running memory in ~5 minutes

You need: Python 3.10+ (`python3 --version`). Everything else is automatic.

```bash
# macOS / Linux
bash installer/install.sh

# Windows (PowerShell)
powershell -ExecutionPolicy Bypass -File installer/Install-LAMF.ps1
```

The installer is safe to re-run. It builds the Python environment, initializes the
private authority at `~/LAMF`, shows the operator token once, starts the built-in
LAMF workspace, and configures selected harnesses. Obsidian is an explicit optional
choice: select `--obsidian parallel` (or provide `--vault PATH`) to run its projection
and watcher alongside the built-in UI. Non-interactive setup defaults to standalone.

### Standalone human workspace

After starting LAMF, open **http://127.0.0.1:8734** and paste the operator token
shown during setup. The built-in workspace lets a person browse, search, read,
remember, and review memory without installing Obsidian. Obsidian remains an
optional, rebuildable projection for people who prefer it; it is not required.

Useful commands afterwards: `~/LAMF/bin/start-lamf.sh` / `stop-lamf.sh`
(.ps1 on Windows), and `cd runtime && /bin/python -m lamf.cli doctor`.
If anything fails, every error message prints its own fix command, and re-running
the installer repairs almost everything.

**Current release: LAMF 3.0.1.** Protocol 3 encrypts record metadata at rest,
uses a keyed contentless FTS5 search index, enforces bounded context output,
rate-limits authentication failures, bounds the store work queue, and verifies
optional optimization instructions against a hash manifest. See
[`docs/RELEASE_3_0.md`](docs/RELEASE_3_0.md) for security gates, migration notes,
MemoryBench results, and the complete optimization matrix disclosure.

For Codex Desktop, selecting the `codex` harness now installs a required
`lamf-memory` MCP registration anchored to the permanent runtime directory,
adds account-independent startup guidance and the LAMF skill, and performs a
live MCP initialize/tools-list check before setup can pass. Fully quit and
reopen Codex Desktop once after installation.

## The three layers

1. **Witness Spine** — append-only, hash-chained, Ed25519-signed JSONL event history
   with sealed checkpoints. What actually happened, attributed to authenticated actors.
   The contracts make events tamper-evident and append-only by construction (F9;
   `03_CONTRACTS/canonical-hashing.md`); enforcement is an obligation on the
   implementation, verified by T-canonical-hash-parity.
2. **Revisioned Memory Records** — evidence compiled into usable memory: facts,
   preferences, decisions, tasks, procedures, failures, relationships, episodes,
   handoffs, council records. Updates supersede earlier versions; history is kept.
3. **Associative Index** — disposable, rebuildable retrieval layer: SQLite FTS5,
   exact ID/hash indexes, relationship graphs, hotsets, precompiled orientation
   capsules, optional local vectors, Reciprocal Rank Fusion with authority-aware
   reranking. The index is a candidate generator; the spine and records are authority.

## The five setup choices (security profiles)

| profile | summary |
|---|---|
| **Locked** | Every meaningful disclosure and durable promotion is gated; ordinary capture is quarantined. |
| **Controlled** | Recommended default. Ordinary same-scope recall is automatic; sensitive and cross-scope access stays gated. |
| **Trusted Local** | Registered local agents share ordinary memory broadly; sensitive categories remain protected. |
| **Open Local** | No per-access approval inside the registered local trust boundary. Not anonymous, not networked, not secret-capturing. |
| **AI-Custom** | Operator completes `06_SETUP/AI_CUSTOM_QUESTIONNAIRE.md`; an AI generates a policy validated against `03_CONTRACTS/schemas/security-policy.schema.json` and the invariant floor. |

All profiles are constrained by the unweakenable invariant floor F1–F12
(`02_SECURITY/SECURITY_PROFILE_OVERVIEW.md`).

## Package inventory

The authoritative inventory of this package is `MANIFEST.sha256` (sha256 of every file
except itself). Honesty note: the manifest is **unsigned** — it detects accidental
drift (corruption, partial copies, stray edits), not malice; a determined attacker
can regenerate it. Prose never restates a file count; verify the tree with:

```text
python3 tools/validate_package.py
```

## Quick links

- `installer/install.py` — the noob-first setup (this is what the wrappers call).
- `09_OBSIDIAN/OBSIDIAN_INTEGRATION.md` — how the Obsidian vault works (governed
  areas, review queue, watcher, security profiles in the vault).
- `runtime/README.md` — the reference runtime: module contract, CLI, API, MCP.
- `05_INTEGRATIONS/HARNESS_ADAPTER_CONTRACT.md` — the universal adapter boundary.
- `05_INTEGRATIONS/OPENCLAW_INTEGRATION.md` + `05_INTEGRATIONS/openclaw-plugin/` —
  an optional enhanced OpenClaw adapter, not a separate memory implementation.
- `START_HERE.md` — 5-minute orientation, reading order, first milestone.
- `00_EXECUTIVE/OVERVIEW.md` — the vision, with claims corrected to reality.
- `01_ARCHITECTURE/SYSTEM_OVERVIEW.md` — normative architecture.
- `02_SECURITY/SECURITY_PROFILE_OVERVIEW.md` — invariant floor F1–F12 and profiles.
- `03_CONTRACTS/CLI_REFERENCE.md` — the exact `lamf` CLI surface.
- `08_BUILD_PLAN/IMPLEMENTATION_ROADMAP.md` — twelve phases (0–11).
- `PROMPT_FOR_CODING_AI.md` — the prompt to hand a coding AI.
- `BUILD_WITH_AI.md` — master build instruction.
- `DECISIONS.md` — binding design decisions for this reconditioned package.

## License

MIT — see `LICENSE`.

## Source & license

This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [AI-LUCI](https://github.com/AI-LUCI)
- **Source:** [AI-LUCI/LAMF](https://github.com/AI-LUCI/LAMF)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/mcp-ai-luci-lamf
- Seller: https://agentstack.voostack.com/s/ai-luci
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
