Agent skill · Audited from source
Pi Subagent Orchestration
skill · Dicklesworthstone/pi_agent_rustNOASSERTION licenceAudited 10 Oct 2026 · source 46a2537504c9
Is it safe? Yes — SAFE, grade B (89/100). We read this skill's source at commit 46a2537504c9 and found no filesystem, network or shell access and no hard-coded secrets. What it does: Orchestrate subagents in pi with git-based logging and Mission Control. Use when spawning multiple agents that need audit trails, rollback, branching, and real-time monitoring. Covers per-agent git repos, turn-level…
Cite
Cite this page
ModelsAtlas. “Pi Subagent Orchestration (Dicklesworthstone/pi_agent_rust)”. Retrieved 10 Oct 2026. https://modelsatlas.com/skills/dicklesworthstone/pi-subagent-orchestration
Trust audit
Audit 0.4.1 · source read 10 Oct 2026
SAFE means nothing in the source contradicts what the skill says it does. Grade B is shared by 17,406 of 18,389 audited skills.
What the source does
- FilesystemNone observedNo reads or writes in the source
- NetworkNone observedNo outbound calls in the source
- ShellNone observedNo commands run in the source
- DependenciesPinnedNothing floats
- SecretsNone foundNo keys in source
Five audit layers
| Layer | What we check | Result | Findings |
|---|---|---|---|
L0 Provenance | Repo owner, licence, archive status, activity | WARN | 1 |
L1 Static source | Secrets, path traversal, supply chain, hidden code | PASS | 0 |
L2 Instructions | Prompt injection, authority framing, hidden directives | PASS | 0 |
L3 Inventory | The files and declarations match the source | PASS | 0 |
L4 Sandbox | Run in isolation and watch behaviour | SKIPPED why | 0 |
Gates applied: no behavioural pass.
Findings (1)
MEDIUMInventory / provenanceinv.symlink · .beads/beads.jsonl
.beads/beads.jsonl
- Why
- link not followed
- Fix
- —
Audit 0.4.1 · source sha 46a2537504c9 · 10 Oct 2026Report an issue or request a re-scan
Provenance
Who published it, and what the verdict is pinned to
- PublisherDicklesworthstone GitHub userOwner of the repository this skill is read from
- Source folderDicklesworthstone/pi_agent_rust/tests/ext_conformance/artifacts/npm/pi-shadow-git/skills/pi-subagent-orchestrationThe exact folder we audited
- LicenceNOASSERTIONAs the repository states it
- Commit pinned for this verdict46a2537504c9A new audit runs when the source changes
- Repository statusNot archivedPushed today
- Sandboxed runNot runSkills are read, not executed; layer L4 is skipped
What it tells the agent
Full source on GitHub ↗Its description: Orchestrate subagents in pi with git-based logging and Mission Control. Use when spawning multiple agents that need audit trails, rollback, branching, and real-time monitoring. Covers per-agent git repos, turn-level…
---
name: pi-subagent-orchestration-git-only
description: Orchestrate subagents in pi with git-based logging and Mission Control. Use when spawning multiple agents that need audit trails, rollback, branching, and real-time monitoring. Covers per-agent git repos, turn-level commits, workspace setup, and the shadow-git extension.
---
# Pi Subagent Orchestration
**YOU ARE AN ORCHESTRATING AGENT.** Your job is to decompose complex tasks, spawn subagents, coordinate their work, and synthesize results. You never execute leaf-level work yourself when subagents are more appropriate.
---
## ⚠️ THE RESOURCE COMMANDMENTS ⚠️
**SUBAGENTS CONSUME REAL RESOURCES. EVERY AGENT YOU SPAWN:**
- Uses CPU and memory on the user's machine
- Costs money (API calls to LLM providers)
- Runs until killed or max-turns reached
- Can accumulate silently if forgotten
### The 7 Commandments
1. **THOU SHALT KILL WHAT THOU SPAWNS**
- Every spawn must have a corresponding cleanup plan
- Never assume agents will terminate themselves
2. **THOU SHALT TRACK ALL PROCESSES**
- Record PIDs or tmux session names
- Maintain a list of what you spawned
3. **THOU SHALT SET MAX-TURNS**
- Always use `--max-turns` to prevent runaway agents
- 20-30 turns for research, 50 max for complex tasks
4. **THOU SHALT CLEAN UP ON EXIT**
- Before ending your session, kill all spawned agents
- `tmux kill-server` or `kill $(cat agents/*/pid)`
5. **THOU SHALT CHECK BEFORE SPAWNING**
- Run `tmux ls` to see existing sessions
- Run `ps aux | grep pi` to find orphaned agents
- Kill stale processes before starting new work
6. **THOU SHALT NOT SPAWN OPUS LIGHTLY**
- `claude-opus-4-5` costs 15x more than haiku
- Use haiku for research, sonnet for synthesis
- Opus only for genuinely hard problems
7. **THOU SHALT MONITOR RESOURCE USAGE**
- Check `top` or Activity Monitor periodically
- Watch for runaway CPU/memory consumption
- Kill stuck agents immediately
### Cleanup Commands (Memorize These)
```bash
# See all tmux sessions
tmux ls
# Kill ALL tmux sessions (nuclear option)
tmux kill-server
# Kill specific session
tmux kill-session -t agent-name
# Find orphaned pi processes
ps aux | grep -E "[p]i --model"
# Kill by PID
kill <pid>
# Check system load
uptime
```
### Before You Start ANY Orchestration
```bash
# 1. Check for existing agents
tmux ls 2>/dev/null || echo "No tmux sessions"
ps aux | grep -E "[p]i " | grep -v grep
# 2. Kill any stale agents from previous work
tmux kill-server 2>/dev/null
# 3. Check system resources
uptime # Load should be < number of CPU cores
# 4. ⚠️ CRITICAL: Force correct model in settings (CLI flags are IGNORED!)
cat > ~/.pi/agent/settings.json << 'EOF'
{
"defaultProvider": "anthropic",
"defaultModel": "claude-haiku-4-5",
"defaultThinkingLevel": "none"
}
EOF
echo "Model set to: $(jq -r .defaultModel ~/.pi/agent/settings.json)"
```
**⚠️ WARNING: `--model` CLI flag is IGNORED! Pi uses `~/.pi/agent/settings.json` instead.**
**If you skip step 4, you WILL spawn Opus agents at 15x the cost of Haiku.**
**IF YOU SPAWN IT, YOU OWN IT. CLEAN UP AFTER YOURSELF.**
---
## Quick Start: Spawn a Single Agent
If you just need to spawn ONE agent quickly, here's the minimum viable setup:
```bash
# 1. Create workspace
WORKSPACE="$HOME/workspaces/$(date +%Y%m%d)-task"
mkdir -p "$WORKSPACE/agents/scout1"/{workspace,output}
cd "$WORKSPACE"
# 2. Write the plan
cat > agents/scout1/plan.md << 'EOF'
# Plan: Research Task
## Objective
Research X and produce findings.
## Steps
1. Read the codebase/docs
2. Document findings in output/findings.md
## Output
- output/findings.md
EOF
# 3. Spawn (using --print for non-interactive mode)
(cd $WORKSPACE/agents/scout1 && \
pi \
--model claude-haiku-4-5 \
--max-turns 20 \
--print \
'Read plan.md and execute it.' \
2>&1 | tee output/run.log) &
echo $! > agents/scout1/pid
# 4. Check status
ps -p $(cat agents/scout1/pid) >/dev/null 2>&1 && echo "Running" || echo "Done"
# 5. View output when done
cat agents/scout1/output/findings.md
```
**Alternative: Use tmux for observability** (can attach to see progress):
```bash
tmux new-session -d -s scout1 \
"cd $WORKSPACE/agents/scout1 && \
pi --model claude-haiku-4-5 --max-turns 20 \
'Read plan.md and execute it.' \
2>&1 | tee output/run.log"
```
**That's it.** For more complex orchestration (multiple agents, audit trails, coordination), read on.
---
## Table of Contents
0. [THE RESOURCE COMMANDMENTS](#️-the-resource-commandments-️) ← **READ THIS FIRST**
1. [Critical Concepts](#critical-concepts)
2. [Pre-Flight Decisions](#pre-flight-decisions)
3. [Workspace Structure](#workspace-structure)
4. [Spawning Methods](#spawning-methods)
5. [Shadow Git Extension (Audit Trail)](#shadow-git-extension-audit-trail)
6. [Mission Control Dashboard](#mission-control-dashboard)
7. [Output Aggregation Patterns](#output-aggregation-patterns)
8. [Git-Based Coordination](#git-based-coordination)
9. [Logging Protocol](#logging-protocol)
10. [Error Handling and Recovery](#error-handling-and-recovery)
11. [Quick Reference](#quick-reference)
12. [Gotchas and Hard-Won Lessons](#gotchas-and-hard-won-lessons) ← **LEARN FROM THESE**
---
## Critical Concepts
### Why Subagents?
| Problem | Solution |
|---------|----------|
| Task too large for one context window | Decompose into focused subtasks |
| Need parallelism | Spawn multiple agents simultaneously |
| Need isolation | Each agent has clean context |
| Need audit trail | Shadow git tracks everything |
| Task may exceed max turns | Handoff to continuation agent |
### Pi Sessions vs Shadow Git
**Pi has built-in session management** — it stores conversation history in `~/.pi/agent/sessions/`. This is great for single-agent work but has limitations for orchestration:
| Feature | Pi Sessions | Shadow Git |
|---------|-------------|------------|
| Scope | Per-agent, per-cwd | Per-agent repos, unified workspace |
| BranchingExcerpt, first 6,000 characters of SKILL.md, verbatim from the audited commit. It is text from someone else’s repository, quoted so you can judge it before your agent reads it.
Install
Pinned to the audited commit 46a2537
git clone https://github.com/EmZod/pi-subagent-with-logging.git
git clone https://github.com/Dicklesworthstone/pi_agent_rust git -C pi_agent_rust checkout 46a2537504c9
Commands as the repository documents them: shown, never run by us. Our verdict covers commit 46a2537504c9 only.
Works in
The author has not said which agents this skill supports, and we have not tested it in any.
Audit history
Every audit, every source change
- ✓SAFE B 89 / 100
first audit · source
46a2537504c9
README badge
For maintainers · shows the latest audit
[](https://modelsatlas.com/skills/dicklesworthstone/pi-subagent-orchestration/)
The badge shows our verdict and grade for this skill, and links back to this page. It changes when the audit does.
Similar skills
Dicklesworthstone/pi_agent_rust
Austrian public transport (VOR AnachB) for all of Austria. Query real-time departures, search stations/stops, plan routes between locations, and check service disruptions. Use when asking about Austrian trains, buses,…
Dicklesworthstone/pi_agent_rust
Austrian public transport (VOR AnachB) for all of Austria. Query real-time departures, search stations/stops, plan routes between locations, and check service disruptions. Use when asking about Austrian trains, buses,…
Dicklesworthstone/pi_agent_rust
Generate approval workflow generator operations. Auto-activating skill for Business Automation. Triggers on: approval workflow generator, approval workflow generator Part of the Business Automation skill category. Use…
Dicklesworthstone/pi_agent_rust
Create asana task creator operations. Auto-activating skill for Enterprise Workflows. Triggers on: asana task creator, asana task creator Part of the Enterprise Workflows skill category. Use when working with asana task…
Dicklesworthstone/pi_agent_rust
Audit Trail Helper - Auto-activating skill for Enterprise Workflows. Triggers on: audit trail helper, audit trail helper Part of the Enterprise Workflows skill category. Use when analyzing or auditing audit trail…
Dicklesworthstone/pi_agent_rust
Execute backlog grooming assistant operations. Auto-activating skill for Enterprise Workflows. Triggers on: backlog grooming assistant, backlog grooming assistant Part of the Enterprise Workflows skill category. Use…
Add this badge to your README
[](https://modelsatlas.com/skills/dicklesworthstone/pi-subagent-orchestration/)
<a href="https://modelsatlas.com/skills/dicklesworthstone/pi-subagent-orchestration/"><img src="https://modelsatlas.com/skills/dicklesworthstone/pi-subagent-orchestration/badge.svg" alt="ModelsAtlas: SAFE B"></a>
Questions about Pi Subagent Orchestration
What does the Pi Subagent Orchestration skill do?
Is Pi Subagent Orchestration safe to install?
What can Pi Subagent Orchestration access on my machine?
How current is this page?
Sources
- github.com/Dicklesworthstone/pi_agent_rust/tree/main/tests/ext_c — the audited source at commit 46a2537504c9 and every finding aboveObserved · 10 Oct 2026
Spotted something wrong? Report a correction · Methodology
Keep going in your AI
Opens with this page as the source. We add nothing else to the prompt.
- What does the Pi Subagent Orchestration skill do?
- Is Pi Subagent Orchestration safe to install?
- What can Pi Subagent Orchestration access on my machine?