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 fifteen 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.

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.2.2

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.2.2
File Size Uploaded
memfork-0.2.2.tar.gz 203.2 kB Details

Built distributions (wheels)

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

Total release size: 36.0 MB

Release files / memfork-0.2.2.tar.gz

Download URL memfork-0.2.2.tar.gz
Size 203.2 kB
Tags Source
SHA-256 checksum
How to use checksums
07bc9c61e94c1edf3b6200b6ce950506ef9571c244b064241aee75aa3e39ce05
BLAKE2b-256 checksum
How to use checksums
be30340c964127d1a4ad67410673f43ffb05931b35172492498d73185bf8b2d4
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.2.2-cp39-abi3-win_arm64.whl

Download URL memfork-0.2.2-cp39-abi3-win_arm64.whl
Size 4.0 MB
Tags CPython 3.9 Windows ARM64 abi3
SHA-256 checksum
How to use checksums
6670209c7b721feb032dc303cade1c9808305b3ec581350254297f025b171ea9
BLAKE2b-256 checksum
How to use checksums
f775141ac944cb3b87536d2485bea90cea51316f574d254bcc9e0762098b5ac3
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.2.2-cp39-abi3-win_amd64.whl

Download URL memfork-0.2.2-cp39-abi3-win_amd64.whl
Size 4.3 MB
Tags CPython 3.9 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
42c77efeb4037b06e056e27f6208ca89e64e8ebe247bace0dc2a6f55b889d862
BLAKE2b-256 checksum
How to use checksums
b12ab165795c55cfab7e312c8371619b1cf20446405ca3b9146739f7f6fea9bd
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.2.2-cp39-abi3-musllinux_1_2_x86_64.whl

Download URL memfork-0.2.2-cp39-abi3-musllinux_1_2_x86_64.whl
Size 5.0 MB
Tags CPython 3.9 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
bb563ac3938243c7b2a0a99381df6c9c7adcbf49b68d991d4ba7355ede0b3d29
BLAKE2b-256 checksum
How to use checksums
419cd561d8624366eb9053a0f5c60e2c3790f068160c70787c78769baf1a2ccc
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.2.2-cp39-abi3-musllinux_1_2_aarch64.whl

Download URL memfork-0.2.2-cp39-abi3-musllinux_1_2_aarch64.whl
Size 4.9 MB
Tags CPython 3.9 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
c1826870fd16097535217a3773769b65272c57b1fa0231eb4b4577a91412b294
BLAKE2b-256 checksum
How to use checksums
e99d1ec1d5b202975079944c146f25cc1aa81859d3c4b8e80c8306d4a40b9bf8
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.2.2-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL memfork-0.2.2-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 4.5 MB
Tags CPython 3.9 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
1f9d3d0e747a1e08433d41834c4d84e8c7920fc6031b43c22c5ecee0a6a82cea
BLAKE2b-256 checksum
How to use checksums
7cd016182e6da53c329d490b1002e7fd0cb422ad6b900be9f17a119603f66600
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.2.2-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL memfork-0.2.2-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 4.7 MB
Tags CPython 3.9 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
eec9d379cd37e1f906a8d07b0a61527428d813caf7219719f4fd219f86f0267c
BLAKE2b-256 checksum
How to use checksums
d80e1849235306f208dccaeccbd6be8ab4ae2dbeef661db52731aec9290c2d0a
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.2.2-cp39-abi3-macosx_11_0_arm64.whl

Download URL memfork-0.2.2-cp39-abi3-macosx_11_0_arm64.whl
Size 4.2 MB
Tags CPython 3.9 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
9ccb20ea9377e352c814c1486087369ec8eb0d9fc5a6b86ccdb554623b05b377
BLAKE2b-256 checksum
How to use checksums
325264bd3511ea583ffb0b6e9257a2067128ff1fb84e5ea8cc0b9a89df541735
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.2.2-cp39-abi3-macosx_10_12_x86_64.whl

Download URL memfork-0.2.2-cp39-abi3-macosx_10_12_x86_64.whl
Size 4.3 MB
Tags CPython 3.9 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
0a99865737c77ec5b0e5cac33040d798a21d214e819706a459204a9666ed65d3
BLAKE2b-256 checksum
How to use checksums
15810357946c7a07e63d32edd16f57fd1b926ed69fc6b154cb0ca551bc0fb230
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

0.3.0

9 release files

This release

0.2.2 This release

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