Minimal Rust coding-agent harness.
piri is the TypeScript Pi distribution for ccc-node. danso is a sibling instrument: a small native harness that reuses Pi's portable contracts, not Pi's engine.
Not a port of piri, earendil-works/pi, or pi_agent_rust.
The first v0 implementation is a Linux headless loop with Anthropic Messages, OpenAI Responses and Z.AI GLM Chat Completions adapters, default host execution with optional bubblewrap isolation, durable sessions, and bounded context.
cargo build --release --locked
mkdir -p "$HOME/.danso/sessions"
# Supply ANTHROPIC_API_KEY through your existing credential mechanism.
target/release/danso --cwd /path/to/repo --trust-project \
--session "$HOME/.danso/sessions/task.jsonl" \
--model YOUR_ANTHROPIC_MODEL -p 'Explain this repository'To install the built binary for a node — the resident service, doctor and
the rest of the operator commands below expect danso on PATH — copy it
with install -m 0755 target/release/danso /usr/local/bin/danso. Signed
release artifacts are verified first as described in
release signing; a local or PR build has no
signature to check. Configuration lives in $DANSO_HOME/config.toml
($HOME/.danso/config.toml by default); check it with danso config check.
A from-scratch run of these steps in a container with no Python or Node is
recorded in the fresh-environment reproduction.
Requires Rust 1.98.1 to build. Running the binary requires Linux 5.3+ with
procfs/pidfd support and /bin/bash; no bubblewrap, Python, Node or Docker is
needed for the default CLI. Host tools use the current user’s
filesystem/network permissions with a cleared, native HOME-based development
environment; environment clearing is not protection from readable host
credentials. Host tool limits are intentionally larger for development work,
while bubblewrap keeps the original restrictive limits. Use --sandbox bubblewrap to require /usr/bin/bwrap and usable user namespaces;
isolation failure never falls back to host execution. See execution modes.
For a host-only toolchain HOME override, use --tool-home /absolute/path;
this changes child tool HOME/PATH only and never changes provider
authentication or context discovery. Bubblewrap rejects the option.
Without -p, stdout is JSONL. Reuse the session path to continue a completed
linear conversation. An uncertain interrupted tool requires manual recovery.
Pass a large prompt with --prompt-file PATH (or --prompt-file - for
stdin) instead of the positional argument to stay clear of the 128 KiB argv
limit; it is checked and recorded exactly like a positional prompt. See
the v0 contract.
See the v0 contract for trust/discovery subsets, exit codes,
budgets, recovery behavior, fixture provenance and offline test commands.
The model adapter is mock-tested; live provider acceptance remains pending.
See the opt-in live acceptance workflow for the
scenario, offline verification and authorized execution command.
Choose GPT or GLM with --provider openai / --provider glm; see
provider configuration and examples. For the Z.AI coding
endpoint, scripts/danso-glm applies the documented glm-5.3-flash profile
(--glm-endpoint, --glm-thinking are also available as plain flags).
Run the Telegram service with danso telegram; it reads the environment,
then $DANSO_HOME/config.toml, then defaults. See
the Telegram service for its allowlist, persistence, and
command contract.
Inspect an installation without writes or network access with danso doctor; see the doctor report.
Capture or restore durable state with danso backup and danso restore; see backup and restore.
For a guided single-run walkthrough on one small real task — bounded scope, predefined acceptance, isolated worktree, explicit budgets and review — see supervised first use.
For Telegram/client tool lifecycle updates, see durable progress.
For work that needs multiple bounded invocations, opt in with --long-task.
It persists request/token budgets and settled tool-stage checkpoints, supports
an explicit --resume-task, and keeps uncertain provider/tool work
non-resumable. The mode is capped at six hours of active execution; ordinary
runs retain their short defaults. Use --task-status for a provider-free
read-only status projection and --task-progress for body-free checkpoint
notifications. See the v0 long-task contract.
Context compaction defaults to the selected provider/model request budget minus
32 KiB of memory-snapshot headroom; use --compact-at-bytes for an explicit
lower threshold. Compacted sessions retain the original journal and resume
without replaying completed tools. See compaction and recovery
for limits, summary semantics and the offline/live stress workflow.
The agent loop uses replaceable provider, tool executor, session store and output interfaces. Each builtin tool owns its schema and handler and is registered once. See the architecture and extension recipes and the executable extension example before adding features. Production v0 still exposes exactly four tools.
v0 implements these portable contracts within the documented subset:
- Agent Skills (
SKILL.md) andAGENTS.md - Session JSONL v3
read/bash/edit/write- print-mode exit codes and a one-line usage summary for ccc-node
- TypeScript
ExtensionAPI/ custom TUI extensions - Syncing earendil Pi internals
- Replacing
pirion the fleet
See issues for the v0 slice.
For frozen Danso/Pi comparison plans and honest paired result accounting, see harness evaluation. The offline tool does not run agents or claim a measured performance advantage.
Inside a restricted Danso coding worker or bubblewrap tool, run
python3 scripts/dev_check.py --profile worker for the Python subset; it cannot
validate Rust or nested sandbox integration. On a configured host development
backend with the Rust toolchain, run python3 scripts/dev_check.py --profile host
for all required Rust and sandbox integration checks. Worker success does not
replace the host gate; see check environments.