Skip to main content

ProcessFork checkpointer for LangGraph — full four-layer snapshots at every node boundary.

Project description

processfork-langgraph

ProcessFork checkpointer for LangGraph. Full four-layer snapshots at every node boundary, not just LangGraph's state dict.

Install

pip install "processfork-langgraph[langgraph]"

Use

from langgraph.graph import StateGraph
from processfork_langgraph import ProcessForkCheckpointer

graph = StateGraph(MyState).compile(
    checkpointer=ProcessForkCheckpointer(store="~/.processfork"),
)

graph.invoke({"input": "go"}, config={"configurable": {"thread_id": "demo"}})

The checkpointer surface mirrors langgraph.checkpoint.BaseCheckpointSaver so existing code works unchanged. Each checkpoint is now a real ProcessFork image: model + cache + world + effects + trace.

Forking a thread

from processfork_langgraph import fork_thread

forks = fork_thread(graph, thread_id="demo", n=12, explore="try alternatives")
for cid in forks:
    print(cid)

fork_thread uses pf-merge's manifest-level fork: each branch points at the same layer blobs (CoW; no copy) but has a unique fingerprint and a single parents = [<source>] entry.

See agent_docs/integration-langgraph.md for the full spec.

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

processfork_langgraph-1.0.1.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

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

processfork_langgraph-1.0.1-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file processfork_langgraph-1.0.1.tar.gz.

File metadata

  • Download URL: processfork_langgraph-1.0.1.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for processfork_langgraph-1.0.1.tar.gz
Algorithm Hash digest
SHA256 800788bd9a0766794ee2bb2a75c3192f9a79d62f8e2e934138a571f356f08441
MD5 33630d0a5c3b184d91c3ea33152cf67b
BLAKE2b-256 ee478988f40256a59e8bdfd91c0120b59258df716cdc141216e95378641d4217

See more details on using hashes here.

Provenance

The following attestation bundles were made for processfork_langgraph-1.0.1.tar.gz:

Publisher: release.yml on manav8498/processfork

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

File details

Details for the file processfork_langgraph-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for processfork_langgraph-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b06abd04cd2e33bad9cd07d3b263f76f5f5862d8488e8f313757c1e7ab7309d5
MD5 4fcf582f26f702d1719a04ca7794f16f
BLAKE2b-256 d6cc353c1382793a5d2cd35e773da55328e1820a90ee995bed10c5e9f46cae56

See more details on using hashes here.

Provenance

The following attestation bundles were made for processfork_langgraph-1.0.1-py3-none-any.whl:

Publisher: release.yml on manav8498/processfork

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