Skip to main content
MIT · LOCAL COORDINATION

orion-pm

Give cooperating agents a shared view of work.

MIT licensed · Local Python CLI · Exclusive task claims · No third-party runtime packages

Watch orion-pm in action

Download the demo video

Edited guide excerpt using public Orion PM v0.1.1, synthetic tasks and two cooperating CLI worker processes. Original Dan narration. A task claim grants no execution, merge or publishing authority.

Read the transcript

Orion PM. Get excited about it, it's a lot of fun, I'm here to show you what we're doing. Watch what happens when I make them claim it first. One gets the job and the other gets told to stop. First, I probe the work that overlaps. If you find a live holder, stop and coordinate with that worker. But I still have to claim the task because another worker can arrive after I read the probe result, right? You understand what I'm saying? So I've got two separate command line processes waiting at the same starting point. I let both of them ask for this one task and there's the result one process returned to zero and got a live claim and the other returned three and was refused

Two chats can start the same task.

Separate agents can pick the same task and both begin editing. A status label records progress, but it does not establish which worker currently owns the task.

Probe for overlapping work, then claim a task before editing. Keep the returned claim generation and task revision. Use those handles to attach evidence, complete the task, or return unfinished work. Browsers and other tools keep their own resource leases and action permissions.

Two workers ask. One claim wins.

Illustrative flow. Use the actual generation and revision returned by your CLI calls.

terminal
orion-pm --json --home "$STORE" claim example --holder agent-a
agent-a: live claim; retain generation and task revision
orion-pm --json --home "$STORE" claim example --holder agent-b
ownership refusal (exit 3): agent-b does no work or resource call
Only the winner works, attaches evidence and completes.
After completion: task = done; claim = absent.

One store. Two workers. Clear ownership.

Put the reviewed v0.1.1 wheel and its matching SHA256SUMS in an empty folder. Run these blocks in one shell. Verified on CPython 3.11.14, WSL2 Linux and ext4; no package-index download is required.

Install the reviewed wheelStop if checksum verification fails
printf '%s\n' '1aa321ef138359e8fe6cff11d9ed43c3950ca559a5bda91e854144a4908be92b  SHA256SUMS' | sha256sum --strict --check - &&
awk '$2 == "orion_pm-0.1.1-py3-none-any.whl" {print; found=1} END {exit !found}' SHA256SUMS > wheel.sha256 &&
sha256sum --strict --check wheel.sha256 &&
awk '{print "./" $2 " --hash=sha256:" $1}' wheel.sha256 > wheel.requirements &&
python3 -m venv .venv &&
.venv/bin/python -m pip install --no-index --no-deps --require-hashes -r wheel.requirements
Create a new local store
umask 077
export PM_DEMO_HOME="$(mktemp -d)/pm-store"
printf '%s\n' '{"schema_version":1,"projects":[{"id":"sample"}]}' > projects.json
.venv/bin/orion-pm --json --home "$PM_DEMO_HOME" init --projects projects.json
.venv/bin/orion-pm --json --home "$PM_DEMO_HOME" add --id example --title "Example work" --project sample --status todo
Claim a task, then return it to todoThe full guide adds a second worker and completes a task
.venv/bin/orion-pm --json --home "$PM_DEMO_HOME" probe example
.venv/bin/orion-pm --json --home "$PM_DEMO_HOME" claim example --holder session-a > claim.json
GENERATION=$(.venv/bin/python -c 'import json; print(json.load(open("claim.json"))["data"]["claim"]["generation"])')
REVISION=$(.venv/bin/python -c 'import json; print(json.load(open("claim.json"))["data"]["task"]["revision"])')
.venv/bin/orion-pm --json --home "$PM_DEMO_HOME" release example --holder session-a --generation "$GENERATION" --expect-revision "$REVISION"

Command surface

probe · show · surface
Inspect overlapping work, validated ownership and the shared task view. Unknown state remains unknown.
claim · renew · release
Acquire a task, retain its generation, renew while working, and return unfinished work to todo.
evidence · transition
Attach a scoped result and complete against --generation and the current --expect-revision.
overdue · triage · audit
Read recovery information. Triage is report-only; takeover and recovery are explicit guarded operations.

Small core. Useful boundaries.

A generation, not just a name

Reacquiring a task creates a new generation. A delayed worker cannot renew, release or complete a replacement claim using its old handle.

Evidence with a precise scope

Bind a result to an artifact, observation time and reference. A task marked done is not proof of publication or deployment.

Tools keep their leases

A PM task claim does not grant action permission or release a browser or phone. Each tool keeps its own native lease, cleanup and authorization checks.

Coordination on one trusted host

Normal operations stay local and offline. The core has no scheduler or legacy-store migration and does not fence workers on another host or isolate hostile same-user processes.