Skip to main content

claude-fafm-sdk

PyPI · IANA: vnd.fafm+yaml · DOI: Memory paper · License: MIT

Home: faf.one/memory · Blog: Forgettable Memory

⭐ Star it on GitHub: bookmarks it for you, helps other devs find it too.

Portable, cross-vendor AI memory in .fafm. Give an AI agent memory that versions with your project and moves between models — instead of being locked to one vendor.

Edition The Spec v1.2 Edition
Release 2.2.0 (deps: [namepoint] → fastmcp>=4.0.0)
Lattice §11 epoch on 1.5 tombstones · both roads · archive-first (unchanged)

What's New in 2.2.0 — The Spec v1.2 Edition

Reads and writes .fafm v1.2: clocks compare as instants, and the document writer keeps everything it read.

  • Clocks are instants. Tombstone suppression, the tombstone join and fact ordering compare real moments in time, so 12:00+05:00 is before 09:00Z. A delete still wins a tie; a later re-etch still survives.
  • The writer keeps what it read. It never writes a lower version than it read, keeps unknown priority and type values, and keeps a tombstone even when its dates are unquoted.
  • Text keys are pinned. txt_hash strips exactly the 29 code points the spec lists, after NFC, so a future Python can't move it.
  • The spec's own tests run here: all 13 v1.2 conformance fixtures and 14 txt_hash vectors.

Documents the SDK wrote before (seconds-precision Z) merge exactly as they did. Full notes: CHANGELOG.

What's New in 2.1.0 — The FastMCP 4 Edition

FastMCP 4 is now the floor. The optional [namepoint] extra requires fastmcp>=4.0.0 — the FAF Python family standard.

The offline-first core is untouched — no new deps, no API change, the lattice is unchanged. client.py's Client + StreamableHttpTransport pattern works as-is on FastMCP 4 (the MCPaaS calls are plain reads/writes, so the mode="auto" default is fine); no httpx in source, so httpx → httpx2 is a non-event. pydantic>=2.12 arrives transitively only when [namepoint] is installed.

What's New in 2.0.0 — Compactable

Compactable Forgettable Memory. Epoch compact pays tombstone debt; cross-epoch merge refuses — no silent zombies.

  • Epoch barrier (E1) — Soul.epoch; same-epoch merge only; packet + hosted identical
  • compact --epoch — pay the graveyard in lineage e→e+1; archive-first; CompactionReceipt
  • migrate — explicit E2 (refuse | project-live); never silent inside merge
  • Zombie suite + dual-impl — Z1–Z8 goldens; second implementation agrees on E1 + projection
  • Still Forgettable — T1–T8 tombstones held; compact ≠ secure erase

Key features (1.5–2.0)

  • Soul.forget / CLI forget — delete is state; both roads
  • policy · debt · risk-scan — policies emit tombstones; visible debt; residual honesty
  • compact / migrate — pay debt safely; cross-epoch refuses (or explicit migrate)
  • Tombstone ≠ secure erase · compact ≠ wipe — lattice honesty bounds
  • Verifiable Provenance (1.4) — optional Ed25519 ([sign] extra)
  • Provable · Sendable · Mergeable (1.3 → 1.1)

Arc: Mergeable → Sendable → Provable → Verifiable → Forgettable → policy · debt → Compactable

Full detail: CHANGELOG · TESTING · MERGE §11 · faf.one/blog/forgettable-memory

uvx claude-fafm-sdk --version          # → 2.1.0
uvx claude-fafm-sdk forget --help
claude-fafm-sdk debt -f soul.fafm
claude-fafm-sdk compact --epoch -f soul.fafm --at 2026-07-31T12:00:00Z --archive soul.e0.fafm
claude-fafm-sdk migrate --to 1 --mode project-live -f soul.fafm --at 2026-07-31T12:00:00Z --archive pre.fafm
claude-fafm-sdk seal -f soul.fafm -o out.fafmp   # epoch + tombstones ride the packet

Offline-first: the local Soul works with no account. Connect a free namepoint for the full intel (semantic recall, smart-merge) at personal scale.

Two profiles, one .fafm format. This is the knowledge profile (typed, cross-linked agent memory). For the voice profile — the Voice Memory Layer — see grok-faf-voice.

Install

uv add claude-fafm-sdk                 # in a project (recommended)
pip3 install claude-fafm-sdk==2.1.0    # pin the front door you expect
# optional provenance:
pip3 install 'claude-fafm-sdk[sign]==2.1.0'
# optional hosted namepoint client:
uv add "claude-fafm-sdk[namepoint]"

30 seconds

New here? One guided command takes you soul → live → cross-vendor:

uvx claude-fafm-sdk quickstart           # 🧬 guided first-run (the 30-second wow)

Or drive it yourself:

uvx claude-fafm-sdk init                 # 🧬 create a portable soul
claude-fafm-sdk etch "ships uv-first"    # write a memory
claude-fafm-sdk recall uv                # recall it  (filters: --tag --type --priority)
claude-fafm-sdk ls                       # list every fact, ranked
claude-fafm-sdk forget install           # convergent delete by id (tombstone)
claude-fafm-sdk debt                     # visible tombstone debt
claude-fafm-sdk compact --epoch --at … --archive …   # pay debt (2.0)

Core loop — init, etch, recall, ls, forget — plus policy, debt, risk-scan, compact, migrate. Run claude-fafm-sdk --help for the full surface.

Hand soul.fafm to grok-faf-voice and it reads it — same format, no fork.

How it works

from claude_fafm_sdk import Soul

soul = Soul("@me")
soul.etch("ships uv-first", id="install", type="reference", priority="high")
soul.etch("portable across vendors", id="why", type="project")
soul.forget("install")          # tombstone — merge will not resurrect
soul.save("me.fafm")            # → application/vnd.fafm+yaml

# later, anywhere:
soul = Soul.load("me.fafm")
soul.recall("uv")               # deterministic recall, ranked by priority + recency

That's the whole offline loop — no account, no server. Deletes travel as state (tombstones) so peers converge without lying about the join.

More in examples/ — portability + a real cross-vendor roundtrip (SDK writes .fafm, grok-faf-voice reads it back).

Interop contract (v1.0): INTEROP.md — timestamps, priority/rank, id collision, unknown fields, index, scratchpad/ledger boundary.
Merge + tombstones: MERGE.md · Packets: PACKET.md · Provenance: PROVENANCE.md
Testing (ship law): TESTING.md — we break it here so they never know it was broken.

Go cross-vendor (a namepoint)

A namepoint is your soul's live address — mcpaas.live/<handle> — readable by Grok and any model. Zero-config: just push. With no setup, the first push auto-provisions an anonymous namepoint and saves it locally — no claim page, no key to copy.

uv add "claude-fafm-sdk[namepoint]"      # hosted ops use the family MCP client
claude-fafm-sdk namepoint push           # → live at mcpaas.live/anon… (auto-provisioned)
claude-fafm-sdk namepoint pull           # merge via CvRDT (forget converges)
claude-fafm-sdk namepoint sync           # reconcile both ways

A-for-first-touch, B-for-keepers. The anonymous namepoint is session-like — lose this machine and it orphans (a reminder of the statelessness memory cures). Make it permanent + recoverable:

claude-fafm-sdk namepoint claim --email you@example.com   # a named, recoverable namepoint
claude-fafm-sdk namepoint status                           # what you've got

The whole .fafm document is stored at the namepoint, so ids, types, priorities, and tombstones survive the round-trip — structured memory, not prose. Reads are public (no key); writes use the key auto-provisioning hands you. The local Soul still works fully offline, no account.

Programmatic access mirrors the CLI:

from claude_fafm_sdk import Namepoint, Soul, provision_anonymous

soul = Soul.load("soul.fafm")
ident = provision_anonymous()                       # {namepoint, key}, zero-config
await Namepoint(ident.namepoint, api_key=ident.api_key).replace(soul.to_yaml())
body = await Namepoint(ident.namepoint).pull()      # reads are public — no key

Why

AI memory is vendor-locked. .fafm is the open, portable format — and this SDK is the open, offline-first way to use it. Souls written here interop with the fafm-engine and grok-faf-voice implementations: one format, never a fork. Memory that grows, moves, proves, signs — and can forget without resurrecting on join.

Citation

If you use claude-fafm-sdk or the .fafm format in research or production, please cite the format paper:

Wolfe, J. (2026). Permanent Memory and Instant Recall: The .fafm Standard for Multi-Profile AI Agent Memory. Zenodo. https://doi.org/10.5281/zenodo.20348942

BibTeX

@article{wolfe2026fafm,
  title     = {Permanent Memory and Instant Recall: The .fafm Standard for Multi-Profile AI Agent Memory},
  author    = {Wolfe, James},
  year      = {2026},
  month     = {may},
  publisher = {Zenodo},
  doi       = {10.5281/zenodo.20348942},
  url       = {https://doi.org/10.5281/zenodo.20348942}
}

DOI: 10.5281/zenodo.20348942

License

MIT. The format is open (spec); the SDK is open; the at-scale intel + hosting is the paid tier.

Metadata

Release files for claude-fafm-sdk 2.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for claude-fafm-sdk 2.2.0
File Size Uploaded Provenance Actions
claude_fafm_sdk-2.2.0.tar.gz 173.4 kB With provenance Details for claude_fafm_sdk-2.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for claude-fafm-sdk 2.2.0
File Interpreter ABI Platform Actions
claude_fafm_sdk-2.2.0-py3-none-any.whl Python 3 none any Details for claude_fafm_sdk-2.2.0-py3-none-any.whl

Total release size: 237.7 kB

Release files / claude_fafm_sdk-2.2.0.tar.gz

Download URL claude_fafm_sdk-2.2.0.tar.gz
Size 173.4 kB
Tags Source
SHA-256 checksum
How to use checksums
8b4e6b8b4f27307a89858e34cb6a14492fc1e82b83b4423dca0b280712ca2c2a
BLAKE2b-256 checksum
How to use checksums
0f7f6a78cc06f207f81f40c18d84ac3be43230d894622cfcc318dc5039f0cf23
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.

Transparency log

Release files / claude_fafm_sdk-2.2.0-py3-none-any.whl

Download URL claude_fafm_sdk-2.2.0-py3-none-any.whl
Size 64.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2d3daaecab81c57f2cd779b6d17dd7d0036a777d76bb55d4a907c3c7469228f5
BLAKE2b-256 checksum
How to use checksums
b51b898d11947a434fd2f990beb9a27c0de8afcf096d703dabe87d92b7ebff0b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.

Transparency log

Security for claude-fafm-sdk 2.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for claude_fafm_sdk-2.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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