orcexe
orcexe is an open-source Python CLI and Claude Code plugin that orchestrates AI coding tools.
It uses only the Python standard library and supports Python 3.9 and later.
orcexe has no telemetry.
Status: v0.3.0 (local, not published): existing-project map, plan, standard and minimal risky lanes, partial plan approval and a call budget. See CHANGELOG.md for known gaps.
Flow
Start with orcexe map, then use orcexe questions and orcexe answer to
resolve the saved form. Run orcexe plan --goal "…", review its tasks and
plan.md, and approve with orcexe plan --approve PLAN_ID. Execute the approved
plan with orcexe plan --run PLAN_ID, or one task with
orcexe task --plan PLAN_ID --task T1. Read orcexe status and the saved
evidence, review the frozen commit or integration chain, then run the printed
Git landing command yourself. Landing is always manual. do remains the short
fast-lane entry point; standard work uses the approved-plan flow.
The standard lane freezes contract.lite.json before dispatch: allowed files,
done criteria, integration base and a shared budget of three attempts. Candidate
project checks precede L0 test-count/skip/assertion checks and a red-first rerun
of changed tests on the base. An independent L1 evaluator judges each done
criterion. Failed gates or rubric criteria feed the next attempt; missing or
invalid L1 evidence leaves gate_passed, not full acceptance. Scope/risk or
control-state violations stop immediately. The detailed task section below
explains the exact checks and terminal states.
Gate isolation
Candidate gate checks, L0 baseline counts and red-first checks each get a fresh
temp HOME and scratch directory. macOS uses Seatbelt (sandbox-exec); Linux uses
bubblewrap (bwrap) with a read-only root, writable checkout/scratch and private
network. Sandboxed project steps have network off and cannot write outside the
checkout and their temporary scratch/HOME. Descendant processes inherit the
policy; on macOS the profile also refuses LaunchServices opens and Apple events,
so a step cannot start an app outside it, denies mach-lookup except an allow-list
needed for user/group lookup, and refuses the clipboard (pbcopy/pbpaste); on
Linux, bwrap runs with --unshare-all and a private --tmpfs /run (see below
for the exact limits). Swift package builds (swift build) do not work inside
the macOS sandbox because SwiftPM's nested sandbox-exec is refused
(sandbox_apply: Operation not permitted); this remains on the v0.4 backlog.
On other systems, or when sandbox creation is denied, steps still run with a
temp HOME but without OS confinement: isolation_unavailable prevents acceptance
(task: gate_passed, exit 0; do: unverified, exit 1). The reports record
seatbelt, bwrap or none; do not interpret an exit of zero alone as acceptance.
Gate checks run in a plain file checkout of the candidate tree: it has no
.git, so project checks must not depend on the repository's own git metadata
or history. orcexe's default suite follows this rule (checked by
tests/unit/test_default_suite_no_git.py); budgets that scan this repository's
history live in tests/slow/.
Manager and evaluator copies exclude repository hooks, instructions and tool
customizations. Claude manager/evaluator children use --restricted --safe-mode;
a Claude executor child loads the user's own Claude hooks/plugins. Codex and
Cursor read their own user config. Their own sandboxes and configuration are
separate from the OS isolation around project checks.
Write locations and manual cleanup
orcexe itself writes nothing in ~ except its documented state directory.
Executor tools can have their own config/trust side effects listed below.
The OS/runtime may also create its own caches: macOS system Python can create
~/Library/Caches/com.apple.python/; the security pack treats only that runtime
cache as an OS-owned exception, separately from orcexe state.