Autonome's Pi package for shared extensions, workflow tooling, and skills.
thread-phase-visualizer— generic TUI monitor and event store forthread-phase-ui/v1workflow events.detach—/detachand/detach-statuscommands for handing an interactive Pi session off to tmux so it can survive an SSH logout.codebase-exploration-workflow— fanout codebase exploration workflow using Pi subagents.code-review-workflow— git diff/commit code review workflow using Pi subagents.dynamic-workflows— simple validated composer for orderedagent,fanout,shell, andartifactphases, plus a separate advanced JavaScript harness tool.mission-workflow— Droid/Missions-style long-running software mission extension with plan approval, validation contracts, strict handoffs, per-feature worktrees/commits, command + adversarial validators, durable registry/resume, coverage artifacts, and repair loops.skills/dynamic-workflowsandskills/mission-workflow— on-demand Pi skills that teach other sessions/configurations how to use these workflow tools safely.
pi install git:git@github.com:autonome-research/autonome-pi@v0.17.1For active development:
pi install git:git@github.com:autonome-research/autonome-pi@mainTo migrate an installation that still uses the old repository identity:
pi remove git:git@github.com:Code4me2/pi-thread-phase-tools@v0.12.0
pi install git:git@github.com:autonome-research/autonome-pi@v0.17.1Pi identifies git packages by repository URL, so remove the old source before installing the renamed one to avoid loading both copies.
/detach [--name <tmux-name>] [--now|--wait] [prompt]hands the current session off to tmux;/detach-statusreports the latest handoff. Seedetach/README.md.- Select
/workflowsfrom the slash-command menu under the editor, or pressctrl+shift+t, to open the interactive thread-phase dashboard; select a run for details or request cooperative cancellation viax. - Background dynamic workflows durably return control to the launching Pi session after success or failure; failed continuations identify failed phases/errors/partial artifacts, while user-cancelled runs never auto-continue.
/codebase-explorestarts codebase exploration in the background by default./code-reviewruns code review workflows.dynamic_workflowcomposes validated subagent workflows directly from flatagent,fanout,shell, andartifactphases.dynamic_workflow_harnessis the separate advanced JavaScript interface;dynamic_thread_phase_workflowis an inactive deprecated compatibility alias.mission_workflowplans and activates approved Droid/Missions-style software missions. Always runaction: "plan"and get user approval beforeaction: "activate".- Tool/API inspection remains available through
thread_phase_runs. - Workflow skills are included in the package and should load automatically when tasks ask for dynamic workflows, mission workflows, structured workflow specs, JS harness workflows, or multi-phase dynamic execution.
Latest release: v0.17.1.
Recent changes:
- Recovered and completed the workflow-agnostic visualizer improvements on the renamed repository baseline.
- Added bounded/corruption-tolerant JSONL reads, immutable owner/session verification, aggregate ownership budgets, and crash-safe index reconciliation.
- Added interactive monitor search/filter/sort, responsive phase/fanout/artifact pagination, safe artifact editor actions, and consistent owner/stale displays.
- Added durable once-only continuation delivery with pending/delivered recovery across extension reloads and Pi session persistence boundaries.
- Added comprehensive visualizer projection, cancellation, continuation, session-scope, large-log, and TUI interaction tests.
- Renamed the package and repository from
pi-thread-phase-toolstoautonome-pi. - Added the tmux-backed
/detachextension and/detach-statuscommand. - Cooperative cancellation uses cancel request files under
~/.pi/agent/thread-phase/cancel/<runId>.jsoninstead of direct monitor PID killing. dynamic_workflownow accepts the workflow directly—no outerspecwrapper—and uses the cleareragent,fanout,shell, andartifactphase names.- Permissions are explicit phase defaults/overrides:
r,w,rw, andrwx; shell and Pibashexecution requirerwx. - Advanced unsandboxed JavaScript control flow moved to
dynamic_workflow_harness, which requires explicitpermissions: "rwx". dynamic_thread_phase_workflowremains registered for compatibility but is inactive by default, avoiding a duplicate legacy schema in normal model context.- Structured specs now have a strict phase schema, semantic reference/permission/resource preflight, bounded supervised fanout, explicit retries, collision-safe artifacts, multipart Pi output handling, partial failure results, and background readiness acknowledgements containing
runId+pid. - Reusable or operationally important workflows should graduate into standalone TypeScript extensions using thread-phase directly.
- Dynamic workflow runs carry system-generated chain provenance. A terminal successful or failed parent accepts at most one session-scoped successor through
after; cancelled parents cannot continue a chain. - Reusable structured workflows and self-contained harnesses can be loaded by safe template name from
~/.pi/agent/workflows/; template loading is bounded, rejects traversal/symlinks, preserves provenance, and still enforces normal validation and permission ceilings. - Structured workflows support fail-closed
resumeRunIdrecovery through atomic checkpoint manifests and bounded, hashed phase-output artifacts; spec, cwd, model, session, phase identity, containment, size, and integrity must verify before reuse. - The workflow dashboard is available through selectable
/workflowsandctrl+shift+tentry points, shows compact elapsed-time and aggregate-token metrics, and labels phase/fanout rows with observed inference models instead of redundant worded statuses. - Usage events are aggregated into run, phase, and fanout-item summaries and rendered in tools/monitor/completion cards.
npm testruns smoke coverage for extension load, permission denial before harness import, structured validation, JS harness mode, structured shell mode, usage projection, and mission registry/resume/strict-handoff checks.- The package now ships workflow skills so fresh Pi sessions get progressive-disclosure guidance for dynamic workflows and mission workflows.
- Hardened
mission_workflowwith adversarial post-milestone validation, runner-owned handoff metadata, durable trusted checkpoints for resume, strict validation-cursor fingerprints/evidence checks, merge-blocking transient lockfile quarantine, stalelastErrorarchival after successful resume/completion, cancellation-safe validation, contaminated-branch detection/reset, assertion coverage reports, generated-junk protection, transientuv.lockcleanup with audit artifacts, short content-addressed repair IDs, runner-provided handoff skeletons, compact result payloads, and capped repair loops. - The generic visualizer now deduplicates repeated artifact paths, closes phase-event-only phases when a workflow reaches a terminal status, keeps compact run/monitor summaries focused on recent or active phases, and removes stale/dead or terminal workflows from the below-editor live-status widget.
- Thread-phase dependency is
^6.1.0, using the built-innode:sqliteruntime plus authoritative lifecycle, supervised fanout, atomic terminal events, cancellation, ownership, heartbeat, defensive error normalization, and bounded cursor reconciliation. - Mission continuation/failure-mode notes are in
docs/mission-workflow-continuation.md; the DX/agent-X roadmap for making missions closer to a full software production pipeline is indocs/mission-workflow-completeness-roadmap.md.
High-value follow-ups:
- Dynamic workflow hardening: add broader permission-matrix coverage.
- Usage budgets: optionally fail/stop workflows when projected token usage exceeds configured limits.
- Mission workflow follow-ups: validation categories/completion levels, operational-readiness contracts, heterogeneous model role policy, smarter repair planning, richer agent handoffs/shared mission notes, registry integrity/resume explain mode, external integration test conventions, and larger dogfood tests.
This package intentionally stores workflow runtime data outside the package under:
~/.pi/agent/thread-phase/
Do not commit generated run logs or artifacts.