Clankers
View the non-animated artwork.
Distributed as the Pi extension package pi-clankers.
Build agent teams. See the work. Keep the decisions explicit.
Native parallel agents, programmable workflows, and a command center for the
Pi coding agent—from a focused read-only review to human-approved staged
implementation. Define your specialists, coordinate their work, inspect the
exact conversations, and carry useful history into a fresh task.
Install today: Pinned Git release v2.0.0, including the tested tmux subset below. The published npm package remains native-only npm:pi-clankers@1.1.29; npm v2.0.0 is not published.
Workflows are the engine. Native Pi sessions do the work. You own the gates.
Upgrading? Load only one copy—migration guide.
Quickstart · Scope and limits · Workflows ·
Command center · API help · Reference ·
Script language · Changelog
What you can build
| Your outcome |
What Clankers brings |
| Review in parallel, then synthesize |
Configurable specialists and explicit teams; FIFO worker admission, per-run concurrency (default 8), then a leader pass with worker handoffs. Required worker failures remain failures. |
| Turn a process into a repeatable graph |
Dependency DAGs, bounded fan-out, typed conditions, schema-validated results, deterministic aggregation, and bounded feedback loops. |
| Move from findings to a reviewed candidate |
Trusted-host staged coding: investigation, separate implementation approval, private candidate edits, approved checks, independent review, then separate application approval. |
| See the exact agent—not a guessed conversation |
Parent/member/Pi session identities, live text and tool inspection, saved raw branch history, explicit messages and receipts, and a read-only team/run timeline. |
| Stay in your main Pi conversation |
Background native runs, a compact below-editor activity strip, and Alt+G management without waiting for workers to finish. |
| Automate without driving a terminal |
/clankers for humans; clankers_control and createClankersControl(...) for structured control, with read-only action help when you need the exact arguments. A separate local CLI runs approved read-only workflow profiles. |
| Collect a worker's actual answer |
Exact retained final text, explicit unavailable/oversized states, optional checked JSON for standalone agents, and owner-bound completion notices. Result contracts. |
| Keep interrupted work inspectable |
Opt-in run/log snapshots, explicit retry attempts, and conservative workflow recovery with current evidence and fresh trusted-host authorization—not automatic replay. |
Current scope and limits
- Execution: native Pi SDK sessions remain the default and do not require tmux.
The tmux preview adds explicitly selected, persistent
interactive workers and configured teams, sharing eight persistent slots per controller.
Published v1.1.29 remains native-only.
- Permissions: extensions and approved checks run with host permissions.
Tool allowlists and write tracking are not an OS sandbox. Review source before installing.
- Recovery: saved history can be inspected or used in an explicitly approved new task;
it does not reconnect a dead process or resume old permissions.
- Models: use your own configured Pi providers and explicit models. Model work can
incur provider charges; installing Clankers does not include model access or credits.
Workflows
A graph you can inspect. Parallel work you can bound. Decisions you can review.
Start with the built-in read-only-review: discovery → parallel reviews →
finding collection → independent verification → deduplicated report. Then author
your own graphs with the same engine:
- DAG + fan-out: declare dependencies and expand bounded arrays into native
units; independent work shares configured concurrency permits.
- Typed branches: boolean, scalar, and numeric conditions are validated data,
not expression strings. Skips, failures, and missing values stay distinct.
- Bounded refinement: repeat a body DAG with validated feedback state and an
explicit iteration ceiling; exhaustion is non-convergence, not success.
- Structured results: input/output schemas and deterministic aggregates make
agent output usable by downstream steps. Model verdicts remain evidence, not proof.
- Operational controls: monitor attempts → steps → units → bounded results;
pause new admissions, request cancellation, or explicitly start a settled retry.
Matching completed units may be reused; reuse does not establish workspace freshness.
- Restricted script authoring: write the documented
workflow / native /
aggregate / repeat / coding / phase DSL. It is compiled as data into
the existing validated graph, not executed as JavaScript. Compile/save/import
never starts agents or grants approval.
For coding, implementation and application are different human decisions.
Trusted-host configuration enables staged writing and approved deterministic
checks; independent read-only review evaluates the candidate and actual check
evidence. The application gate binds the exact candidate, evidence, and target
baseline. Neither a model response nor an ordinary clankers_control action can
approve these gates. Checks run trusted project code with host permissions—not
inside an OS sandbox.
For interruption, inspect first. Opt-in recovery preserves uncertainty,
reconciles current evidence, and requires an exact trusted-host decision before
a fresh linked attempt. Coding still needs fresh implementation/check/review
and application gates. Unknown native settlement blocks conflicting execution;
recovery is not a reconnect or an exactly-once guarantee.
→ Graphs and controls ·
Script grammar ·
Recovery contract
Command center
One place to choose work, inspect agents, and make deliberate interventions.
Illustrative schematic—not a screenshot, live run, or performance measurement.
- Manage:
/clankers config or Alt+G opens selection, settings, tree/detail,
and intervention views. Configure agent prompts, explicit models, teams, and
tool allow/deny lists; unsupported native options reject before SDK startup.
- Watch: the bounded activity strip distinguishes working/queued agents,
workflow approval waits, checks, cleanup, and uncertainty. It observes this
Pi owner's work—not other processes or the main conversational model.
- Inspect:
/clankers sessions chooses an exact session. Read live text,
available thinking, and tool arguments/results; inspect validated saved raw
branches without changing the native session or reconstructing effective context.
- Message: explicitly send
steer or followUp to an accepting live
session. Receipts distinguish recorded, queued, delivered,
failed, and needs-attention. Delivered means observed native
consumption, not model acknowledgement or task completion.
- Continue deliberately: select saved history, prepare a current-policy
review, then explicitly authorize a new task in a fresh native session.
The old session, permissions, queues, and approvals are not resumed.
- Trace:
/clankers timeline separates operator receipts, native handoffs,
recorded events, and current snapshots with exact identity filters.
Closing a view or hiding the strip does not cancel work. Background work lasts
only while its owning Pi process is alive; recovered history is not live.
Migration: load only one copy
Do not load old and new copies together. Dual installation is unsupported.
Pi identifies packages by npm name, Git repository URL, or local path. Different
sources can load duplicate controllers; the old v1.1.25 copy does not cooperate
with the rename. There is no dual-install guard.
Upgrading to 2.0.0. Every name used before 2.0.0 is gone: use /clankers or
/clank, the clankers_control tool and the pi-clankers-automation executable.
Saved state, snapshots, session metadata and UI preferences written under the old
names are read once and written under the new names on first load; the old files
are left untouched. The CHANGELOG lists the full old-to-new mapping.
- Run
pi list and identify the exact old declaration.
- Before adding a different source, remove the exact old npm or Git declaration
with
pi remove <exact-old-source>; use --local for project settings.
Check both scopes, plus any explicit -e flags or manually configured extension
paths, so the old copy cannot load alongside the new one.
Do not delete saved data. No global configuration is edited automatically.
- Add only the intended source. An unpinned update of the same Git URL retains
one package identity; a pinned version must explicitly select v2.0.0 instead.
The package is pi-clankers and the GitHub repository is now
https://github.com/rustytensor/pi-clankers. GitHub redirects the old repository
URL, but do not configure both URLs in Pi: remove the old declaration before
adding the new URL. Existing local checkout folders remain unchanged.
Storage stays at
.pi/clankers/v1/state.json and <agent-dir>/clankers/ui.json.
Native-session/result custom types retain the pi-clankers/... namespace;
the authority enum remains pi | clankers | operator. No saved-data migration or
runtime authority expansion is implied.
Quickstart
Requires an existing Pi installation and Node.js ≥22.19.0. Review the package
source before installing: Pi extensions run with your host permissions.
Install the v2.0.0 Git tag
using Pi's package manager, then start Pi in the project you want to inspect.
Pin the release so installation does not depend on the default branch:
pi install git:github.com/rustytensor/pi-clankers@v2.0.0
pi
For the extension, use Pi's package manager rather than npm install -g.
The published native release is also available with pi install npm:pi-clankers@1.1.29.
Remove any old package declaration before changing installation sources.
Pi defaults to personal package settings; add --local to the install command
for a project-scoped declaration, which loads only after Pi project trust is granted.
For an already-open Pi, load the installed extension with /reload when ready.
Inside Pi, replace both provider/model placeholders with an explicit model
available in your Pi environment. The following starts read-only workflow work;
it does not enable staged coding or approve application. These commands start
real model work and may incur provider charges:
/clankers agents update generalist --model provider/model
/clankers agents update reviewer --model provider/model
/clankers workflows start {"definitionId":"read-only-review","inputs":{"candidatePaths":["README.md"],"scope":"Review this file without changing it; report evidence and unresolved questions"},"concurrency":8}
/clankers workflows monitor
Clear unsupported turn limits, fallback models, and permission overrides on
these definitions before native workflow execution. In the monitor, Enter
drills down and c opens the selected unit's exact coding view; q/Esc
closes the view without cancelling work. Use Alt+G to open management.
Prefer a specialist or team? Use /clankers agents and /clankers team to configure
explicit definitions, then /clankers run <agent-or-team> <task> --bg --fresh.
Team workers run first; the leader integrates after all workers settle unless
cancelled. Native execution needs no pi-subagents bridge.
Need a local scheduled inspection? The Linux-only pi-clankers-automation CLI
accepts an operator-reviewed, fixed read-only profile and one occurrence
request. Scheduling stays external; there is no daemon, catch-up queue, coding
approval, automatic recovery, or shared cross-process live monitor.
Read the operator setup before enabling a profile.
Reference
The sections below document command grammar, API contracts, limits, and recovery
boundaries. pi-clankers is a Pi coding-agent extension, not a Raspberry Pi
hardware project.
Release status
- Current Git release: v2.0.0. It removes every name used before 2.0.0 (commands, tool, executable, state keys, environment variables) and keeps the tested tmux subset documented below; remaining capabilities are intentionally deferred.
- Npm remains at v1.1.29. No npm publication, installation or operator reload is implied.
- See CHANGELOG.md for release history and compatibility notes.
- Canonical repository: https://github.com/rustytensor/pi-clankers.
Pi compatibility
Pi 1.0.0 is the development/test baseline. Focused offline SDK checks also
passed with Pi 1.4.0 for native worker results and rename compatibility;
this is not certification of every host extension or provider configuration.
Requires Node.js 22.19.0 or newer.
Pi supplies its SDK and TUI libraries to installed extensions. They are declared as host-provided peer dependencies, with Pi 1.0.0 development dependencies for local checks, rather than bundled runtime copies. Native runs use Pi's ModelRuntime for model selection and credentials.
Commands
/clankers — canonical command
/clank — short alias
These commands display help, status, expanded tree visibility, deterministic thinking-step parser output, Claude Code-style runtime agent-definition configuration, native Pi SDK-backed run execution, task-first subagent spawn state, explicit fresh/fork launch-mode metadata, command-host permission queue state, fine-grained lifecycle substate hints, bounded structured log/output inspection, restart-durable run/log recovery snapshots, process-lifetime background run status/interrupt/message support, and a componentized Pi-native interactive management TUI for live tree/detail/settings/chat/footer management views through snapshot-safe shared-state-backed Pi command handlers.
Command-host control grammar is available via /clankers mode status|manual|assisted|automatic|revert [reason], /clankers intervene agent|subagent|leader ..., /clankers agents list|show|create|update|delete with per-agent --model, --fallback-models, --max-turns, tools, and permission settings, /clankers agent//clankers team lifecycle configuration flags for team leaders/members/model metadata, /clankers runs list|show <run-id>, /clankers permission status|list|request|approve|deny|cancel, /clankers logs status|list|show|json, /clankers config, and /clankers run <agent-or-team> <task> [--bg] [--fresh|--fork] [--model <model>]; /clankers run does not require pi-subagents and uses the native Pi SDK runner when no slash bridge responds.