Skip to main content

Portable, cross-vendor AI memory in .fafm — offline-first SDK; connect a free namepoint for full intel.

Project description

claude-fafm-sdk

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

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

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 Forgettable Memory
Release 1.7.0 (policy + debt; folds 1.6)
Lattice 1.5 tombstones · both roads — no merge re-open in 1.6/1.7

What's New in 1.7.0 — Debt + residual-risk

Debt + residual-risk. See the graveyard cost; surface outside-soul copies. Never auto-drop tombstones.

Single install line for the 1.6+1.7 steps (git tags document both; no separate 1.6.0 wheel):

  • 1.6 Policy → tombstone — first-class memory.policies; propose / apply with clock pin; CLI policy
  • 1.7 Debt + residualdebt (mark-only eligibility); path-bounded risk-scan (not RTBF, not wipe)
  • Still Forgettable — MERGE §9 unchanged; compact/GC is 2.0

Key features (1.5–1.7)

  • Soul.forget / forget_text + CLI forget — delete is state; both roads
  • policy propose/apply — policies emit tombstones; apply needs --yes + --at
  • debt / risk-scan — visible graveyard; residual copies the lattice cannot erase
  • Tombstone ≠ secure erase — lattice convergence, not forensic wipe
  • Verifiable Provenance (1.4) — optional Ed25519 ([sign] extra)
  • Provable · Sendable · Mergeable (1.3 → 1.1)

Arc: Mergeable → Sendable → Provable → Verifiable → Forgettable → (policy · debt) → Compactable 2.0 later

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

uvx claude-fafm-sdk --version          # → 1.7.0
uvx claude-fafm-sdk forget --help
claude-fafm-sdk debt -f soul.fafm
claude-fafm-sdk policy propose --at 2026-07-30T12:00:00Z
claude-fafm-sdk risk-scan . ./backup
claude-fafm-sdk seal -f soul.fafm -o out.fafmp   # 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==1.7.0    # pin the front door you expect
# optional provenance:
pip3 install 'claude-fafm-sdk[sign]==1.7.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 (1.7)

Core loop — init, etch, recall, ls, forget — plus policy, debt, risk-scan. Run claude-fafm-sdk --help (or <cmd> --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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

claude_fafm_sdk-1.7.0.tar.gz (134.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

claude_fafm_sdk-1.7.0-py3-none-any.whl (55.1 kB view details)

Uploaded Python 3

File details

Details for the file claude_fafm_sdk-1.7.0.tar.gz.

File metadata

  • Download URL: claude_fafm_sdk-1.7.0.tar.gz
  • Upload date:
  • Size: 134.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for claude_fafm_sdk-1.7.0.tar.gz
Algorithm Hash digest
SHA256 24a520117615e11b0e40c2e4d5171fe2143c144f3cab122bffd051dc61eb818e
MD5 c33d418660a90244874d7a9dd109d34e
BLAKE2b-256 47d4581aea5525c5c5a833e68acfac3dd2f77c733733a98377e94f22d7795e18

See more details on using hashes here.

Provenance

The following attestation bundles were made for claude_fafm_sdk-1.7.0.tar.gz:

Publisher: pypi.yml on Wolfe-Jam/claude-fafm-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file claude_fafm_sdk-1.7.0-py3-none-any.whl.

File metadata

  • Download URL: claude_fafm_sdk-1.7.0-py3-none-any.whl
  • Upload date:
  • Size: 55.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for claude_fafm_sdk-1.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a04cbc989c5b2ed042f313c079eccfe0785ae882d94872cead7f662787fc988e
MD5 886b17f1bef7516fdc33a717ea6bff7a
BLAKE2b-256 89bf76baae36dce3069cac42e3a7f84937e197a0a57c6d367c361725040e8716

See more details on using hashes here.

Provenance

The following attestation bundles were made for claude_fafm_sdk-1.7.0-py3-none-any.whl:

Publisher: pypi.yml on Wolfe-Jam/claude-fafm-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page