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.

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.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.2.0
File Size Uploaded
memfork-0.2.0.tar.gz 197.3 kB Details

Built distributions (wheels)

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

Download URL memfork-0.2.0.tar.gz
Size 197.3 kB
Tags Source
SHA-256 checksum
How to use checksums
2e7f8747c77973b4fae304b424cb16834a7eb95c163b8457f97e77385932db17
BLAKE2b-256 checksum
How to use checksums
010af9d071a4b607a0eecfa92230f0ce98bcf0247f0af52b1d327fbfa7c53ae1
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.2.0-cp39-abi3-win_arm64.whl

Download URL memfork-0.2.0-cp39-abi3-win_arm64.whl
Size 4.0 MB
Tags CPython 3.9 Windows ARM64 abi3
SHA-256 checksum
How to use checksums
ab8117c95c4108ea389a5a9544baf3fbb2857686a5f85d8dd56b1c82870022b9
BLAKE2b-256 checksum
How to use checksums
45788a972ec87edadfb5d310474d7a3af1a3c009ad792647a6d7ca801b5283db
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.2.0-cp39-abi3-win_amd64.whl

Download URL memfork-0.2.0-cp39-abi3-win_amd64.whl
Size 4.3 MB
Tags CPython 3.9 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
254082ecb54013fbb489a64c0c2ef7c85abd3cca31dbbed163031f7ebf8d8c09
BLAKE2b-256 checksum
How to use checksums
8eac85badeb1e6b463aa70d33124f532400722e0ec728e369780e794b7ccd5bb
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.2.0-cp39-abi3-musllinux_1_2_x86_64.whl

Download URL memfork-0.2.0-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
5ae18948beedf85b7e819c88d5a17a2014bc08cd7c730640e66b1d12540ee239
BLAKE2b-256 checksum
How to use checksums
2d77590d820016e297143a3c97d50be7b299f2a5d0cefcfc35626ba122902ada
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.2.0-cp39-abi3-musllinux_1_2_aarch64.whl

Download URL memfork-0.2.0-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
0c8209237095bb53eb65612eed31a3d967e30896d1c3d39e10b9f47dcec18b6c
BLAKE2b-256 checksum
How to use checksums
39fdf94b0fbd6fa2d49c615f8e521bf99be45253a0b0fa7938e75c8bf51c8e68
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.2.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL memfork-0.2.0-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
4f1b753b188b03c796285e02f19bf8b6aa515b2429ee4e65416a1d136f41be80
BLAKE2b-256 checksum
How to use checksums
d2f1c607b4df01007ba46b0a8dafadf3dce5afbdb6b8532de5d32257fd51dacc
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.2.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL memfork-0.2.0-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
55c92da20f9ac0c3a608e04258d63904035b58b91d6df499c4aa9a10ebdeb899
BLAKE2b-256 checksum
How to use checksums
799402dae2eb365aa93b1ea10792da39759c03e66503a1b8d022dc167035e2a3
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.2.0-cp39-abi3-macosx_11_0_arm64.whl

Download URL memfork-0.2.0-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
f7ff502754853b62b94ef5174da89b6ff21b2178e2c30f9d663969d23c9d2abc
BLAKE2b-256 checksum
How to use checksums
8e0fca40c9963c10232edec1afcad245f8bfd815fe0fdf79a6eb2a0799d7661d
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.2.0-cp39-abi3-macosx_10_12_x86_64.whl

Download URL memfork-0.2.0-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
0a1ee2b61d9341c11323382c8c03cc13d3512f3367c43eb31a742d10e6f18984
BLAKE2b-256 checksum
How to use checksums
69f6827e70619e1544442e834ab16c9bdbcaf2870822a519992dc8ec17a48fc1
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

This release

0.2.0 This release

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