Agent skill
zellij-subagents
run and coordinate multiple pi subagents in parallel using zellij panes.
Install this agent skill to your Project
npx add-skill https://github.com/justEstif/dotfiles/tree/main/pi/.pi/agent/skills/zellij-subagents
SKILL.md
Skill: zellij-subagents
Use this skill to orchestrate parallel Pi subagents via Zellij.
What this is for
Typical use cases:
- Parallel research (eg, one subagent per subsystem)
- Multi-step workflows (recon → implementation → review)
- Isolating subagent context windows in separate panes
- Durable handoff artifacts (
handoff.json) per subagent
Requirements
piinstalledzellijinstalled and onPATHnodeinstalled and onPATH
Optional:
- Custom subagent command via
--cmd(overrides the default Pi execution)
Install / Setup
git clone git@github.com:e-beyene/zellij-pi-orchestrator.git
cd zellij-pi-orchestrator
pi
Inside Pi:
/reload
The project-local extension is auto-discovered from .pi/extensions/zellij-orchestrator/.
Data model
Runtime state is stored at:
<cwd>/.orchestrator/<session>/subagents/<id>/
Key files:
inbox/<task_id>.taskprompts/<task_id>.mddone/<task_id>.out.txtstatushandoff.json
Notes
- Timeout behavior: wrap-up steer once, grace period, then force-terminate.
- If force-terminated, no synthetic handoff is created.
- Targeted pane termination is limited by Zellij CLI capabilities; session-wide terminate is most reliable.
Interface (extension-native)
Use friendly extension commands:
/zj-start <session> [worker1 worker2 ...]
/zj-task <session> <worker|all> <taskId> <promptFile|promptText>
/zj-run <session> <worker> <promptFile|promptText>
/zj-wait <session> [worker|all] [timeoutSec] [--grace N]
/zj-results <session>
/zj-stop <session>
/zj-help
Or call the tool zellij_orchestrate directly.
Completion semantics
Treat a subagent as complete only when both:
- worker status is
idle handoff.jsonexists and includesagent_end: true
Failure handling
On timeout:
- assign
_force_wrapup - wait grace period
- force-terminate target
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
philosophy-software-design
Apply "A Philosophy of Software Design" (John Ousterhout) principles to code review and architectural design. Dual mode — reviews existing code for design quality AND advises on new module/API/abstraction design. Use when reviewing code, refactoring modules, designing APIs or abstractions, discussing architecture decisions, or when explicitly asked to apply software design principles. Triggers on code reviews, refactoring tasks, module/API design, architecture discussions, and explicit requests like "review software design", "check design quality", "apply philosophy of software design", "review design complexity", "check module depth".
qry-search
Web search using qry, a terminal-native agent-first search CLI that routes queries through pluggable adapters and always outputs JSON. Use this skill whenever you need to search the web for documentation, APIs, error messages, package info, changelogs, or any current information. Triggers on "search the web", "look up", "find docs for", "what's the latest version of", "check if X exists", or whenever current information is needed. Prefer this over ddgr or other search tools when qry is available.
defuddle
Extract clean markdown content from web pages using Defuddle CLI, removing clutter and navigation to save tokens. Use instead of curl, or WebFetch when the user provides a URL to read or analyze, for online documentation, articles, blog posts, or any standard web page.
mvp-doc
Create an MVP (Minimum Viable Product) document for a new project idea. Covers What, Why, How, and Competition through a collaborative conversation. Use when the user wants to define, scope, or brainstorm an MVP, or says things like "I have a project idea", "let's define an MVP", "help me scope a project".
philosophy-software-design
Apply "A Philosophy of Software Design" (John Ousterhout) principles to code review and architectural design. Dual mode — reviews existing code for design quality AND advises on new module/API/abstraction design. Use when reviewing code, refactoring modules, designing APIs or abstractions, discussing architecture decisions, or when explicitly asked to apply software design principles. Triggers on code reviews, refactoring tasks, module/API design, architecture discussions, and explicit requests like "review software design", "check design quality", "apply philosophy of software design", "review design complexity", "check module depth".
qry-search
Web search using qry, a terminal-native agent-first search CLI that routes queries through pluggable adapters and always outputs JSON. Use this skill whenever you need to search the web for documentation, APIs, error messages, package info, changelogs, or any current information. Triggers on "search the web", "look up", "find docs for", "what's the latest version of", "check if X exists", or whenever current information is needed. Prefer this over ddgr or other search tools when qry is available.
Didn't find tool you were looking for?