Skip to main content
OPEN SOURCE · MIT

orion-handoff

Carry task context between agent sessions.

MIT · Python 3.11+ · Linux x86_64 · Explicit local stores

Watch orion-handoff in action

Download the demo video

Edited guide excerpt using public Orion Handoff v0.1.0 and synthetic task records. Original Dan narration. Recorded review labels are simulated; context and references grant no execution authority.

Read the transcript

So the newest handoff here is for beta. I want alpha. I asked the project, watch. Ambiguous. It won't pick a job for me. Now I ask for alpha. That's the record I meant. now we're going to add task beta to the same project and I have two different jobs actually running and I asked to resume a sample project without naming either task. So what you can see is I get ambiguous. It exits eleven and no selected record. The tool doesn't pick whichever one I happened to save last. So I name alpha explicitly and I get its record back. That's the question I needed the receiving session to answer before I could actually carry on. So now I record a successor for alpha and mark that context stale. I use the first records ID as a predecessor. So the tool can tell me which revision I'm changing. I pick up alpha again, and you can see it selects the new stale record. I get inspect only, exit 10, and no continuation. I can still inspect the earlier record with the show, but it says current false. I haven't made the old context current just because it looked more useful.

A new session needs the right context

The latest note may belong to another task. A fresh file may contain old observations. A recorded next step may need new approval.

Save a bounded handoff in an explicitly selected local store. Pick up an exact task, inspect its observations and acceptance claims, and see uncertainty before continuing. Every result says authority: none.

One task, one explicit pickup

An illustrative summary of the guide’s synthetic walkthrough. JSON responses contain additional fields; these are the decision points.

terminal
orion-handoff --store "$STORE" --json pickup --task alpha
code: context_available match: task
recency: within_window authority: none
# Two current tasks share a project: no implicit choice
orion-handoff --store "$STORE" --json pickup --project sample-project --resume
code: ambiguous record: null exit: 11
# A stale successor stays selected; no older fallback
code: inspect_only continuation: null exit: 10

Start with a disposable store

Download the v0.1.0 wheel and verify its SHA-256 against the reviewed release checksum. The guide includes a self-contained record generator, two tasks, a stale successor, and a backup/restore check.

Install the verified wheelFrom your download directory
python3 -m venv .venv
.venv/bin/python -m pip install --no-deps --no-index ./orion_handoff-0.1.0-py3-none-any.whl
Initialize and inspectBash · local Linux filesystem
DEMO_ROOT=$(mktemp -d "${TMPDIR:-/tmp}/handoff-demo.XXXXXXXX")
STORE="$DEMO_ROOT/store"
.venv/bin/orion-handoff --store "$STORE" --json init
.venv/bin/orion-handoff --store "$STORE" --json list

Command surface

init
Initialize the chosen store. Re-initializing preserves its records.
record --input -
Validate a complete JSON record from stdin and append an immutable revision.
show FULL_UUID4
Inspect one record and its current-revision status.
list
Inspect a bounded list, with explicit truncation.
pickup --task KEY
Select an exact task; report matching, integrity, recency and acceptance separately.

Useful boundaries

Observed time stays explicit

Context uses its declared observation time. Saving a file does not make an old observation current.

Uncertainty stays visible

Ambiguous matches refuse selection. Stale, missing or conflicting information produces inspect-only context.

Records carry no permission

Claims and references are returned for review. References are never opened or verified, and recorded next steps are never executed.

A small standalone core

Standard-library runtime, no service, hooks or provider adapters. Tested on WSL2 Linux x86_64 with ext4 and CPython 3.11/3.13. Use a same-host local filesystem.