Xorchestrate coordinates agents, work, messages, capabilities, and evidence through replaceable ports and adapters. Its application owns orchestration; configuration selects storage, execution, routing, guardrails, and assessment implementations.
The current application is xorchestrate/. It has no required agent hierarchy,
project stack, model vendor, or evaluator. Project knowledge and explicitly
chosen standards arrive through configured MCP or CLI tools. Observed tool output
and model recommendations do not become policy on their own.
Use Python 3.12 for validation; the telemetry tests also need a Python whose SQLite has the WAL fix (CI uses uv-installed Python 3.12.16). Before starting Python, select a fresh cache outside the checkout:
export PYTHONPYCACHEPREFIX="$(mktemp -d "${TMPDIR:-/tmp}/xorchestrate-pycache.XXXXXX")"
export UV_PROJECT_ENVIRONMENT="$(mktemp -d "${TMPDIR:-/tmp}/xorchestrate-env.XXXXXX")"
python3 -m scripts.ci.dependencies check
uv sync --locked --only-group validation --no-install-project --managed-python --python 3.12.16
uv sync --locked --no-default-groups --group validation --extra test --no-install-project --managed-python --python 3.12.16
uv pip install --python "$UV_PROJECT_ENVIRONMENT/bin/python" --no-deps --no-build-isolation -e .
export PATH="$UV_PROJECT_ENVIRONMENT/bin:$PATH"
python3 -m scripts.testkit run --suite security
# Or observe only locked dependencies rather than the whole security view:
python3 -m scripts.testkit run --suite dependency-audit
python3 -m scripts.testkit run --suite static
python3 -m scripts.testkit run --suite checkssecurity is a focused view of the shared Ruff check, candidate-complete secret
scan, pinned Zizmor workflow analysis and an advisory dependency observation.
The secret scan applies
contracts/security.json to tracked and nonignored untracked files, including
binary bytes; a same-line secret-scan: allow marker permits an intentional match
without widening the exception. Zizmor 1.32.0 examines the explicit top-level
.github/workflows/*.yml and *.yaml selection offline, with strict collection
and the reviewed exact exceptions in contracts/zizmor.yml. Structured evidence
identifies selected file bytes and normalized findings without republishing
matched credentials or workflow source.
dependency-audit uses the pinned uv 0.13.7 runtime manager to observe every
non-editable package in the universal lock against OSV. It requires network
access and moving service data, remains advisory in CI, and reports an empty
result as an observation with explicit completeness limits rather than a clean
bill of health. Remote prose and URLs are not republished.
Concern, unavailable service or malformed service evidence makes a local
dependency-audit or security run nonzero; CI alone treats that observation
as non-blocking.
static adds current-source syntax validation and architecture enforcement;
tests runs the cataloged behavioral tests; checks combines static and
tests. The deterministic Ruff, secret-scan and Zizmor checks run once through
static; the network-dependent dependency audit is excluded from static,
checks and the default/--suite all composition.
Local and CI runs use the same testing framework,
shared contracts, fixtures and evidence services. See live tests
for authenticated native configuration.
The timing and ordering work records the current repair slices, reviewed temporal uses and remaining environment qualification.
For reusable local setup, managed terminals, cancellation, evidence collection
and fresh repetition, use the managed proof workflow
through scripts/proof.sh. Native proofs run locally with your configured,
authenticated harnesses; deterministic protocol results remain separate.
The local live telemetry guide gives one-command
Rust/Python/PHP profile setup, attended tmux controls and postrun verification.
Tmux is the terminal automation layer for local story verification. List the
selectable stories with ./scripts/proof.sh stories,
preview their limits with ./scripts/proof.sh plan --suite stories, and run an
owned battery with ./scripts/proof.sh start --suite stories --detach.
Use --story ID to select scenarios and set per-story session, turn-submission
and controller-request limits alongside the existing deadlines.
Install the launcher with uv, pipx, the install script or uvx; see
install for every supported path and the next steps. It
provides the command xo and its long form xorchestrate, which are the same
program. For example, from a release tag:
uv tool install git+https://github.com/xormania/xorchestrate@vX.Y.Z
xo --versionOnce a release is on PyPI, uv tool install xork installs the same launcher
under a shorter package name; install either xork or xorchestrate, not both.
Maintainers publish releases as described in releases.
Use Python 3.12 or newer and uv. Until xcontracts is published on PyPI, install with uv: it reads the pinned
xcontracts git source in pyproject.toml, which plain pip ignores (pip stops with
No matching distribution found for xcontracts). Once xcontracts is on PyPI,
python3 -m pip install ... works again.
From the checkout:
uv pip install --python python3 -e .
xorchestrate setup ~/companion # once per user: your private overlays and approvals
cd /path/to/your/project # a git repository
xorchestrate init # creates a starter .xorchestrate/ and registers this machine's instance
xorchestrate approve # approve the tracked configuration init summarized
xorchestrate describe
xorchestrate call create_work --json '{"goal":"Investigate a feature and retain the evidence"}'
xorchestrate call list_work --json '{}'Xorchestrate runs only inside a set-up project: its
configuration is tracked in the repository's .xorchestrate/, your own
overrides and approvals live in your companion repository, and its state lives
under ~/.xorchestrate/projects/<project>/, never in the repository. The
starter configuration has no external providers, agent processes, or
evaluators. describe lists the application operations. call accepts JSON
through --json, --input FILE, or standard input. These same operations are
exposed through the stdio MCP server:
xorchestrate serveFor a persistent CLI connection, run accepts one JSON request per line and
returns a result or error envelope:
xorchestrate runFor example, send {"action":"list_work","arguments":{}}. Keep run or the MCP
connection open while using native sessions. A one-shot call closes the adapters
it owns when it exits; a stored session record does not keep its process alive.
Several agent harnesses can share one long-running server instead. A harness
launches connect as its MCP command; it starts the server as terminal server
in the project's terminal host when none is running
and relays MCP over stdio. Sessions belong to the server and survive a harness
disconnect. up, status, down and recover manage the server; see
project server. init writes Claude Code's tracked
.mcp.json entry, {"command": "xorchestrate", "args": ["connect"]}:
xorchestrate connect --actor reviewer
xorchestrate status
xorchestrate downThe CLI actor defaults to owner; --actor selects the identity bound to that
local invocation or MCP server process, and connect --actor the identity bound
to one connection of the shared server. The local process owner is trusted to
choose configuration and identity. Neither the stdio server nor the owner-only
Unix socket is a network authentication service.
A configuration selects adapters by name and passes their options explicitly:
{
"store": {"adapter": "sqlite", "options": {"path": "state.sqlite3"}},
"providers": {
"project": {
"adapter": "mcp",
"options": {"command": ["project-tools", "serve"]}
}
},
"sessions": {
"worker": {
"adapter": "codex",
"options": {
"command": ["codex", "app-server", "--listen", "stdio://"],
"pass_env": ["PATH", "HOME", "CODEX_HOME"],
"application_tools": true
}
}
}
}project-tools represents an executable you supply. Provider capabilities are
discovered at runtime and addressed as provider/name; adding one does not require
editing the application. Session drivers communicate with configured agent
processes. MCP and CLI can supply project context, declared requirements, source
editing, checks, and other capabilities without teaching the core a particular
framework or stack.
application_tools exposes application operations as native dynamic tools for
this Codex driver. Calls retain the session's actor identity and pass through the
same application guardrails as CLI and MCP calls.
Configuration is trusted local code selection: adapters can launch executables or
load installed module:factory implementations. Use config files you control.
Runtime tool arguments cannot replace a configured executable. Filesystem,
network, and native tool access also depend on the chosen process environment and
harness; application guardrails are not an operating-system sandbox.
The native adapters include Codex, Claude Code, and Grok Build. A session
configured as hosted runs that driver inside a bridge host in the same
terminal host, so the conversation survives the server and can be attached to.
After a crash, a container failure or a reboot, up recovers interrupted
sessions according to recovery_policy (default reconnect);
xorchestrate recover recovers the rest. Owned drivers are unchanged.
Routed messages have durable delivery attempts and independently observed
callback evidence; submission, receipt, reply, turn completion and work
acceptance remain separate.
See native sessions, terminal host,
external attachment and recovery,
and owner requirements and acceptance.
See the architecture and contracts, writing an adapter against the xcontracts ports, configuration examples, and validation for the supported behavior and limits. The deterministic tests use real subprocess boundaries with fixture servers; they do not establish authenticated vendor or Jev endpoint acceptance.
Configure optional durable agent-work capture, authorized evidence reads and source
health through the active telemetry guide. The shared collector
is installed with the telemetry extra; basic orchestration works without it.
With tmux installed, run the reusable acceptance scenario from the checkout:
python3 -m scripts.acceptance --output .xorchestrate/acceptanceIt uses a private tmux server, exercises real MCP and subprocess boundaries, and retains a receipt plus evidence for each run. The default uses deterministic protocol peers and needs no model account. A configured native profile verifies a real harness's application-tool callback. See live acceptance for both profiles, observation, and cleanup behavior.
The historical behavioral-preservation procedure for the hexagonal rework is recorded in the implementation handoff; current validation uses the testing framework. Authenticated native acceptance is an explicit local run; protocol fixtures cannot supply that result.
| Location | Purpose |
|---|---|
xorchestrate/ |
Current application, ports, adapters, composition, CLI, and MCP input |
tests/hexagonal/ |
Declared behavioral families, independent contracts, support adapters and collected scenarios |
scripts/testkit/ |
Shared test framework, collection, execution, lifecycle and evidence services |
scripts/acceptance/ |
Reusable tmux acceptance runner, scenarios, and deterministic protocol peers |
Earlier Agentscient material is not kept in this repository. Reuse is deliberate: adapted mechanisms cite their pinned upstream sources, recorded with the removed in-repo copies in extraction provenance. The historical runtime's roles, path ceilings, evaluator prerequisites, and delivery policies are not requirements for the current application, and there is no migration of its state.