Skip to main content

ProcessFork integration for Claude Code — adds /snapshot, /fork, /merge slash commands.

Project description

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.

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_claude_code-1.0.1.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

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

processfork_claude_code-1.0.1-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for processfork_claude_code-1.0.1.tar.gz
Algorithm Hash digest
SHA256 d51c9dd2f0d2f04b52f36d0cb2e11c1dbd899fec6896a5eca4dbc70313b44403
MD5 51957e1b6f2ea13e4e5fcb73d0b89d4e
BLAKE2b-256 ef63a2a2681dd2b388ce912c50de3b2ae084eb5e36a26228cc41b74891ddb798

See more details on using hashes here.

Provenance

The following attestation bundles were made for processfork_claude_code-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_claude_code-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for processfork_claude_code-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5d2b68bfb7e28afa9e7a1da89a8d672c221d549fdbb74b9918018c8c4d48bc86
MD5 9ffb0eaa5a9c8f1d945d84728c8cbb2b
BLAKE2b-256 ed0681f7360740145353f0e7d75f5af8f313447cfc5324498ab2c28da9f72baa

See more details on using hashes here.

Provenance

The following attestation bundles were made for processfork_claude_code-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