Skip to main content

MemFork

Git for agent state, in process: fork, merge, discard and rewind an agent's memory. 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.

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 thirteen tools — store, recall, search, fork, merge, discard, time travel — over one store they share.

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.1.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.1.0
File Size Uploaded
memfork-0.1.0.tar.gz 147.7 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for memfork 0.1.0
File
memfork-0.1.0-cp39-abi3-win_arm64.whl CPython 3.9 abi3 Windows ARM64 Details
memfork-0.1.0-cp39-abi3-win_amd64.whl CPython 3.9 abi3 Windows x86-64 Details
memfork-0.1.0-cp39-abi3-musllinux_1_2_x86_64.whl CPython 3.9 abi3 Linux musl 1.2+ x86-64 Details
memfork-0.1.0-cp39-abi3-musllinux_1_2_aarch64.whl CPython 3.9 abi3 Linux musl 1.2+ ARM64 Details
memfork-0.1.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.1.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.9 abi3 Linux glibc 2.17+ ARM64 Details
memfork-0.1.0-cp39-abi3-macosx_11_0_arm64.whl CPython 3.9 abi3 macOS 11.0+ ARM64 Details
memfork-0.1.0-cp39-abi3-macosx_10_12_x86_64.whl CPython 3.9 abi3 macOS 10.12+ x86-64 Details

Total release size: 31.0 MB

Release files / memfork-0.1.0.tar.gz

Download URL memfork-0.1.0.tar.gz
Size 147.7 kB
Tags Source
SHA-256 checksum
How to use checksums
4d17faba40181ebd24e51124a9dfd550d350e793b32bcbe1d339bb3fd1c0ee09
BLAKE2b-256 checksum
How to use checksums
11a3b72c0fbe1029078a4428c836ce8121b62adfe6dfa31a9a9c0cb984a6ad97
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 21, 2026.

Transparency log

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

Download URL memfork-0.1.0-cp39-abi3-win_arm64.whl
Size 3.4 MB
Tags CPython 3.9 Windows ARM64 abi3
SHA-256 checksum
How to use checksums
70ddaa7ef0cb8911b7c3dff4c373e2b8817039b8e9ed6b2800b1dbf67ad9836b
BLAKE2b-256 checksum
How to use checksums
a39eb604ccbf5d9d6984a93b0cfc64faedb5927890f95221501a39042bfedf0b
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 21, 2026.

Transparency log

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

Download URL memfork-0.1.0-cp39-abi3-win_amd64.whl
Size 3.6 MB
Tags CPython 3.9 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
39ed268b935c32c8501ec02fe46346fe1080dbbc9cdd7ab90979195e5af85d31
BLAKE2b-256 checksum
How to use checksums
a964a0c4c1cba69888be6b9f66a00a614be9a0f6bb4eac7d495af2c1c145a003
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 21, 2026.

Transparency log

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

Download URL memfork-0.1.0-cp39-abi3-musllinux_1_2_x86_64.whl
Size 4.3 MB
Tags CPython 3.9 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
0e954f4958bb19894986437a66e808a8f0e1f542a8b1ff7d20b4857ac1b422e4
BLAKE2b-256 checksum
How to use checksums
53658e89ac34dd598cabf456fce186322a91316e69fa571d44e1d5707c28334c
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 21, 2026.

Transparency log

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

Download URL memfork-0.1.0-cp39-abi3-musllinux_1_2_aarch64.whl
Size 4.2 MB
Tags CPython 3.9 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
722ab4a9305060fc018b4c8d4b0aa81301f5cc7e0bfc492d8bf2f52ca88ead3c
BLAKE2b-256 checksum
How to use checksums
5582df0660e12983fa167b19a684df2f24447d71fa49d4e704c2eb293ad7f0ed
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 21, 2026.

Transparency log

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

Download URL memfork-0.1.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 3.9 MB
Tags CPython 3.9 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
db4abc848d973bfa9f4d5bf7ff43a97266331157109ce0867ba886f67f1c4c50
BLAKE2b-256 checksum
How to use checksums
d29b80c44054cc62a062d25c0fd7acece15dcd85bfd2070fb99e1fbfd5592ee9
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 21, 2026.

Transparency log

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

Download URL memfork-0.1.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 4.1 MB
Tags CPython 3.9 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
3e701d8e15f3b28ea81aa57222b0c3d016bba607e1980e4d75032ef9780d9355
BLAKE2b-256 checksum
How to use checksums
691bcd07d067a1131753fc80b6de80ccba3cc0b03e18fc00935ca55eb5fac7e7
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 21, 2026.

Transparency log

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

Download URL memfork-0.1.0-cp39-abi3-macosx_11_0_arm64.whl
Size 3.6 MB
Tags CPython 3.9 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
6c1c0a4a1731579c49725d2ce511a31b7fc658294c80a37634d776b3c4a860b2
BLAKE2b-256 checksum
How to use checksums
9a6ec6a130d56353d6d3643aafc32d828a94372938b7db9254d89d6fba575442
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 21, 2026.

Transparency log

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

Download URL memfork-0.1.0-cp39-abi3-macosx_10_12_x86_64.whl
Size 3.7 MB
Tags CPython 3.9 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
8af3edf3a19875dcfa6be7f2a89efbbb163c1f754f56d6cd6cf54409ec1fd53a
BLAKE2b-256 checksum
How to use checksums
25c3459000c1ad0eb1165068bfed5a49932147c47b060ae34a383bf48e5cfa4b
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 21, 2026.

Transparency log

Release history Release notifications | RSS feed

0.3.0

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

This release

0.1.0 This release

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