Verified · Portable · Privatev0.3.3 — MIT · by Orvantia
Contextoutlivesthe session.
Session ASession B
Scroll
A resume safety gate for AI coding sessions. It checkpoints the real state of your repo, records the tests you actually ran, and tells the next session whether it is safe to touch code.
The checkpoint is a snapshot of the real repo. Change the workspace, then watch the gate decide, using the tool's actual messages. Press keys 1 to 8. Tap an action, or just watch: it cycles on its own.
Do something after the checkpoint
Verdict
READY
exit 0 Same commit, same files, a passing test run on this exact state. Safe to continue.
0msto check a repo with 10,000 files and 500 uncommitted changes
0/86labeled drift scenarios behave as expected; the misses are listed in the benchmark
0network calls. No server, no account, no telemetry
0runtime dependencies. Python standard library and git
How it works
4 steps
01
Record evidence.
Run your tests through ContextBridge. The command, exit code and time are stored, whether it passes or fails.
Branch, HEAD and a hash of every uncommitted file go into plain files in your repo. You review the diff first.
$contextbridge save \
--objective "Add token auth" \
--next "Finish refresh tests"--- a/contextbridge/state.json+++ b/contextbridge/state.json+ "branch": "main",+ "head": "580df56…",
Apply these changes? [y/N] y
03
Switch anything.
A new session, another account, a different agent. The handoff is files in the repository, not a private chat history.
# same repo, new account
contextbridge/
state.jsonevidence, work, snapshotgraph.jsondecisions → code → testssessions.jsonwho is touching whatHANDOFF.mdwhat the next agent reads
04
Resume safely.
Before any edit, the gate compares the checkpoint with the live workspace and returns one verdict.
$contextbridge resume --check## Resume safety gate: REVIEW_REQUIRED
Do not edit yet. Inspect each item below…
[WARN ] src/auth.py: new uncommitted change
[WARN ] no passing test run matches the
current workspace state
Knows what isproven and whatis only claimed.
Every item in the handoff carries its source. A task is marked verified only when you link a passing run to it. Everything else says who claimed it, and that nobody has checked.
Requirement → decision → code → test, with the alternatives you rejected.
R1 → D1 → src/queue.py → test
Drift
Sees what moved.
Branch, commits, edited files, stale assumptions and failed runs.
[WARN ] 2 commit(s) since checkpoint
Privacy
Secrets never get written.
Scanned before every write. Excluded files are never recorded.
[REDACTED:aws-access-key]
Local-first
Plain files in your repo.
No server. No account. No telemetry. Keep them out of git with one flag.
init --local-only
Portable
Any account. Any agent.
Versioned JSON plus a Markdown prompt any assistant can read. Export one file, import it anywhere.
schema: contextbridge/1
Sessions
Claims, advisory by design.
Name the paths each agent is working on and get a warning when claims overlap. It reduces surprises; it does not prevent conflicts.
'auth' ~ 'api': src/auth/
Get started
Install inone line.
Open source, MIT licensed. Try it on a throwaway branch and open an issue if anything is unclear or wrong.
pip install contextbridge-clicontextbridge run -- pytest -qcontextbridge save --objective "Add token auth"contextbridge resume --checkPython 3.9 or newer and git. Nothing else to install.