Skip to main content

processfork-claude-code

ProcessFork integration for Claude Code. Adds three slash-commands inside any Claude Code session:

  • /snapshot [name] — captures the live session into a .pfimg and prints the CID.
  • /fork [N] [hint] — forks N divergent branches.
  • /merge <branch> [-> main] — three-way merge with conflict surfacing.

Install

pip install processfork-claude-code

Use

pf-wrap-claude --store ~/.processfork

This drops three command files into ~/.claude/commands/processfork/, configures PF_AGENT_KIND=claude-code in the env, and registers a hook script that taps the effect ledger on every tool call. Restart your Claude Code session and the commands appear under /.

How it works

The wrapper is a thin Python layer over the ProcessFork SDK (processfork). The slash-command files invoke processfork.snapshot, processfork.fork, and processfork.merge against your local store.

Tool-call interception goes through Claude Code's PreToolUse / PostToolUse hooks; each invocation is appended to the effect ledger with the side-effect class declared in ~/.processfork/tool-classes.toml (unknown tools default to irreversible — safe by default).

See agent_docs/integration-claude-code.md in the main repo for the full spec.

Metadata

Release files for processfork-claude-code 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for processfork-claude-code 1.0.1
File Size Uploaded Provenance
processfork_claude_code-1.0.1.tar.gz 6.8 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for processfork-claude-code 1.0.1
File Interpreter ABI Platform
processfork_claude_code-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 14.4 kB

Release files / processfork_claude_code-1.0.1.tar.gz

Download URL processfork_claude_code-1.0.1.tar.gz
Size 6.8 kB
Tags Source
SHA-256 checksum
How to use checksums
d51c9dd2f0d2f04b52f36d0cb2e11c1dbd899fec6896a5eca4dbc70313b44403
BLAKE2b-256 checksum
How to use checksums
ef63a2a2681dd2b388ce912c50de3b2ae084eb5e36a26228cc41b74891ddb798
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 May 6, 2026.

Transparency log

Release files / processfork_claude_code-1.0.1-py3-none-any.whl

Download URL processfork_claude_code-1.0.1-py3-none-any.whl
Size 7.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5d2b68bfb7e28afa9e7a1da89a8d672c221d549fdbb74b9918018c8c4d48bc86
BLAKE2b-256 checksum
How to use checksums
ed0681f7360740145353f0e7d75f5af8f313447cfc5324498ab2c28da9f72baa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 May 6, 2026.

Transparency log

Security for processfork-claude-code 1.0.1

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for processfork_claude_code-1.0.1.tar.gz

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 May 6, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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