Skip to main content

MemFork

Git for agent memory, shared by every AI tool on your machine. Fork, merge, discard and rewind what an agent remembers — forking costs the same whatever memory holds, so an agent can branch before a risky step and throw the branch away if it goes wrong — and hand work from one agent to another through a store every MCP client shares.

pip install memfork

One wheel, two things.

The engine, in your process

import memfork

db = memfork.Database()
db.put("plan:1", b"the original plan")

db.fork("attempt")
db.put("plan:1", b"a risky rewrite", branch="attempt")

db.get("plan:1").value           # b'the original plan' — the fork is invisible here
db.merge("attempt")              # or db.discard("attempt")

Branches are cheap because they share structure rather than copying. You can also read memory as it was earlier: db.at("plan:1", seq).

The MCP server, for your agent clients

The same install puts the memfork command on your path:

memfork init      # register the server with the MCP clients you have
memfork doctor    # what is installed, and what is talking to it

Clients then get sixteen tools — store, recall, search, fork, merge, discard, time travel, and handing work from one agent to another — over one store they share. With a single client that still pays: its next session resumes where the last one stopped.

MemFork itself sends nothing anywhere: no cloud, no account, no telemetry. What an agent reads from it becomes part of that agent's prompt and goes wherever that agent already sends your code; with a local model the whole loop stays on your machine.

What is in memory and what is on disk

memfork.Database is in memory only. It does not write to disk, and it does not see what an MCP client wrote: the durable, shared store belongs to the MemFork daemon, which the memfork command starts when something needs it.

That split is deliberate — the engine is I/O-free by design — but it does mean a Python program that wants the shared memory talks to the server rather than importing it. Binding the durable store is later work.

More

Full documentation, the CLI reference and the design spec: https://github.com/memforkdb/memfork

Apache-2.0.

Metadata

Release files for memfork 0.3.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 memfork 0.3.0
File Size Uploaded
memfork-0.3.0.tar.gz 413.0 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for memfork 0.3.0
File
memfork-0.3.0-cp39-abi3-win_arm64.whl CPython 3.9 abi3 Windows ARM64 Details
memfork-0.3.0-cp39-abi3-win_amd64.whl CPython 3.9 abi3 Windows x86-64 Details
memfork-0.3.0-cp39-abi3-musllinux_1_2_x86_64.whl CPython 3.9 abi3 Linux musl 1.2+ x86-64 Details
memfork-0.3.0-cp39-abi3-musllinux_1_2_aarch64.whl CPython 3.9 abi3 Linux musl 1.2+ ARM64 Details
memfork-0.3.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.9 abi3 Linux glibc 2.17+ x86-64 Details
memfork-0.3.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.9 abi3 Linux glibc 2.17+ ARM64 Details
memfork-0.3.0-cp39-abi3-macosx_11_0_arm64.whl CPython 3.9 abi3 macOS 11.0+ ARM64 Details
memfork-0.3.0-cp39-abi3-macosx_10_12_x86_64.whl CPython 3.9 abi3 macOS 10.12+ x86-64 Details

Total release size: 47.4 MB

Release files / memfork-0.3.0.tar.gz

Download URL memfork-0.3.0.tar.gz
Size 413.0 kB
Tags Source
SHA-256 checksum
How to use checksums
7f802a151eb910170a934e304af0e2564dcddad0f1565c6350c9bbe0a2f59531
BLAKE2b-256 checksum
How to use checksums
debc4dda6d8adfabd07d24c83faac82a14fc33cfda347770b3d20bdda3ea1dbf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 23, 2026.

Transparency log

Release files / memfork-0.3.0-cp39-abi3-win_arm64.whl

Download URL memfork-0.3.0-cp39-abi3-win_arm64.whl
Size 5.3 MB
Tags CPython 3.9 Windows ARM64 abi3
SHA-256 checksum
How to use checksums
48c4ce445825b9985394ec9cbb84c3498988e32e3789a532cc5ea70f37e6d549
BLAKE2b-256 checksum
How to use checksums
9de81ed92d5c5ff477341786ac9ea9e94b4fc708bbad4f842799597b9623a564
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 23, 2026.

Transparency log

Release files / memfork-0.3.0-cp39-abi3-win_amd64.whl

Download URL memfork-0.3.0-cp39-abi3-win_amd64.whl
Size 5.7 MB
Tags CPython 3.9 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
543ccbd1b09613ecef908432d2421d4a38f1fad1e45af9da0d810806beb33086
BLAKE2b-256 checksum
How to use checksums
99b5485b12c16d4909e67334df437a3be4db11e0a41771623f7a2e637f6c1401
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 23, 2026.

Transparency log

Release files / memfork-0.3.0-cp39-abi3-musllinux_1_2_x86_64.whl

Download URL memfork-0.3.0-cp39-abi3-musllinux_1_2_x86_64.whl
Size 6.5 MB
Tags CPython 3.9 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
f66833c68cb166ff9b494ece12e60136d89994b5404e8645f28dc3ca62638077
BLAKE2b-256 checksum
How to use checksums
65db8be5771b1f05fc469b67791c09cc237c36054cb1050c78cba6182370cc8f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 23, 2026.

Transparency log

Release files / memfork-0.3.0-cp39-abi3-musllinux_1_2_aarch64.whl

Download URL memfork-0.3.0-cp39-abi3-musllinux_1_2_aarch64.whl
Size 6.3 MB
Tags CPython 3.9 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
ba0d166c576368164403fe1247e771ed9c135ffde96b3fb69e3bc2656ff2ad33
BLAKE2b-256 checksum
How to use checksums
5a12d00c6107f601526643fb31599a62cb04e76d755f947931b362266a08d97a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 23, 2026.

Transparency log

Release files / memfork-0.3.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL memfork-0.3.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 6.0 MB
Tags CPython 3.9 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
ba74dc99878257a5938dfc6cc64074726775343c6e6b8d8fafe789f064526382
BLAKE2b-256 checksum
How to use checksums
e2f521f8c1d4158ee12e6474dd0bf0e84f31579535279087f9d98499d5e21afc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 23, 2026.

Transparency log

Release files / memfork-0.3.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL memfork-0.3.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 6.1 MB
Tags CPython 3.9 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
bec094f34fe95ae6f129cf558b4b37bab7713aad38622d468f90e27022a0a8a4
BLAKE2b-256 checksum
How to use checksums
a677a62ec98651b3a523d4d620850bd8f99de75dfe11519652b5b6974d8d890e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 23, 2026.

Transparency log

Release files / memfork-0.3.0-cp39-abi3-macosx_11_0_arm64.whl

Download URL memfork-0.3.0-cp39-abi3-macosx_11_0_arm64.whl
Size 5.5 MB
Tags CPython 3.9 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
898e228558e0458b50ced0279e148bf02b26382bded3b227c83bca71da17d34e
BLAKE2b-256 checksum
How to use checksums
a2a4fc3079786f5446fa0f881586829e2f055fd0dc77c3facf4afe151b8d9ff8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 23, 2026.

Transparency log

Release files / memfork-0.3.0-cp39-abi3-macosx_10_12_x86_64.whl

Download URL memfork-0.3.0-cp39-abi3-macosx_10_12_x86_64.whl
Size 5.7 MB
Tags CPython 3.9 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
2a8e1bce59d82fb4eaa5eeb8e5f1b2cced1e5a447c3680b2ecc1ca5e850d75aa
BLAKE2b-256 checksum
How to use checksums
3c8125ecfc26aa2100eda89f91dff207e53d5af9e59093bb4ec21dd6821f686b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 23, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.3.0 This release

9 release files

0.2.2

9 release files

0.2.1

9 release files

0.2.0

9 release files

0.1.1

9 release files

0.1.0

9 release files

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