ProcessFork wrapper for OpenInterpreter — undo destructive shell commands via pf checkout.
Project description
processfork-openinterpreter
ProcessFork wrapper for OpenInterpreter.
Lets you snapshot before a dangerous shell op and pf checkout if it
goes wrong.
Install
pip install "processfork-openinterpreter[oi]"
Use
import interpreter
from processfork_openinterpreter import wrap_interpreter
interpreter = wrap_interpreter(interpreter, store="~/.processfork", fs_root=".")
interpreter.snapshot("pre-rm-rf")
interpreter.chat("rm -rf /tmp/foo")
# … if it goes wrong:
interpreter.checkout("pre-rm-rf")
The wrapper:
- Hooks
interpreter.computer.runto tap the effect ledger. - Snapshots include the
interpreter.messageschat history (trace), the working directory (world.fs), and the env (world.env). - The Python kernel's globals are preserved across snapshots via
dill; install with[oi]extras to enable.
OpenInterpreter doesn't expose a paged KV cache, so the cache layer in the snapshot is empty — interpreter sessions are cheap to re-prefill.
See agent_docs/integration-openinterpreter.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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file processfork_openinterpreter-1.0.3.tar.gz.
File metadata
- Download URL: processfork_openinterpreter-1.0.3.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3c3aa92b18fc6533c06bea828cee30f306b788387dcb7bf4e6ec517a5955ff06
|
|
| MD5 |
7ab00e64b08eca6ba2feaa54f4c94b48
|
|
| BLAKE2b-256 |
47de3db9c89622463e8744c244386e8c71354a3c1fd2472edc48d1692ad79f6b
|
Provenance
The following attestation bundles were made for processfork_openinterpreter-1.0.3.tar.gz:
Publisher:
release.yml on manav8498/processfork
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
processfork_openinterpreter-1.0.3.tar.gz -
Subject digest:
3c3aa92b18fc6533c06bea828cee30f306b788387dcb7bf4e6ec517a5955ff06 - Sigstore transparency entry: 1453320537
- Sigstore integration time:
-
Permalink:
manav8498/processfork@518f1cc10a4f059cfea99258aa9b6b046913c55a -
Branch / Tag:
refs/tags/v1.0.6 - Owner: https://github.com/manav8498
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@518f1cc10a4f059cfea99258aa9b6b046913c55a -
Trigger Event:
push
-
Statement type:
File details
Details for the file processfork_openinterpreter-1.0.3-py3-none-any.whl.
File metadata
- Download URL: processfork_openinterpreter-1.0.3-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
653d444193dda77f50d1bbeacecb1fe3603d13956acbde49df44bcdca3326905
|
|
| MD5 |
c2050c8079f24dd59e8bf711c1394158
|
|
| BLAKE2b-256 |
ce09ee567465299e3ad5b1d4c29526a96810ea89668c90ae92a124b94140e1e0
|
Provenance
The following attestation bundles were made for processfork_openinterpreter-1.0.3-py3-none-any.whl:
Publisher:
release.yml on manav8498/processfork
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
processfork_openinterpreter-1.0.3-py3-none-any.whl -
Subject digest:
653d444193dda77f50d1bbeacecb1fe3603d13956acbde49df44bcdca3326905 - Sigstore transparency entry: 1453320587
- Sigstore integration time:
-
Permalink:
manav8498/processfork@518f1cc10a4f059cfea99258aa9b6b046913c55a -
Branch / Tag:
refs/tags/v1.0.6 - Owner: https://github.com/manav8498
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@518f1cc10a4f059cfea99258aa9b6b046913c55a -
Trigger Event:
push
-
Statement type: