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.0.tar.gz (4.7 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.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: processfork_langgraph-1.0.0.tar.gz
  • Upload date:
  • Size: 4.7 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.0.tar.gz
Algorithm Hash digest
SHA256 1e956ea9e58d83802be3d9d9961cf96afd2e26af25024632436c64a34975d7bc
MD5 029767b52919ffc152b694f1da728100
BLAKE2b-256 7ebed7b9225d7b1025e300b6a5a01c91a806edf7e1474f4c33f31e6a27849bff

See more details on using hashes here.

Provenance

The following attestation bundles were made for processfork_langgraph-1.0.0.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.0-py3-none-any.whl.

File metadata

File hashes

Hashes for processfork_langgraph-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2a13cd0f7e059407519760d296173af60b0b0fce34c2fa6325ca3f0476e393b4
MD5 3fe7dde240db6cc20c5da16049f4415b
BLAKE2b-256 3ad4d1ac0c71ee47afc5b308f557169a0b554505e9535cf6aca945cd9f6fd9ea

See more details on using hashes here.

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