| name | polydev |
| description | Use when coordinating Polydev workflows for parallel worktrees, background terminal tasks, read-only investigations, recurring jobs, or workflow selection in a Windows-first agent setup. |
Polydev
Polydev is the single top-level skill. Use the internal references in this folder for the specific workflow.
Entry selection
Choose the Polydev workflow before choosing a runtime-specific script. Runtime dimensions decide path style, shell syntax, and adapter details; they do not replace workflow selection.
| Flow | Use when | Primary entry family |
|---|
bg | Hosting one long command, dev server, build, test, SSH, REPL, or CLI probe | run-background.ps1 on Windows Codex; run-background.sh where Bash is the active shell, then capture/send/close scripts |
ag | Starting a read-only agent investigation | start-codex-investigation.ps1 on Windows Codex; spawn-agent.sh or spawn-codex.sh where Bash is the active shell |
wo | Starting worktree-backed implementation branches | start-codex-worktree.ps1 on Windows Codex; spawn-session.sh where Bash is the active shell |
cron | Scheduling future or recurring agent work | polycron-*.sh |
D1 Windows Codex does not mean every Polydev action uses start-codex-*.ps1. Those scripts are for Codex investigation and worktree flows. Background sessions and direct pane control use run-background.ps1, capture-screen.ps1, send-to-session.ps1, close-session.ps1, and pane ids; absence of start-codex-*.ps1 or task.toon is not evidence that Polydev was unused.
Choose the workflow
| Need | Read |
|---|
| Decide which Polydev flow to use | references/using-polydev.md |
| Run parallel worktree sessions | references/worktree-executor.md |
| Host long terminal work | references/terminal-task-runner.md |
| Run a read-only investigation | references/agent-investigator.md |
| Write or revise an implementation plan | references/writing-plans.md |
| Schedule recurring or delayed runs | references/polycron.md |
| Start or explain the Dashboard/Kanban monitor | references/kanban.md |
Core rules
- Use the full absolute path for every Polydev script.
- Resolve the scripts root once from the installed skill directory for the active runtime, then paste literal full script paths in commands.
- Do not invent usernames or home directories. Derive the scripts root from the loaded skill path or an existing installed directory before running any script.
- For Claude Code runtimes, the scripts root is
.claude/skills/polydev/scripts; do not use cache-based install paths.
- Only run public root-level entry scripts. Do not execute
terminal-backend.sh, terminal-backend.ps1, files under scripts/backends/, or files under scripts/adapters/ directly; those are implementation helpers.
- Keep provider-specific launch logic inside adapters.
- Treat Windows and WezTerm as first-class.
- Use
task.toon for worktree session state. Investigation and background sessions are pane-only; inspect them with terminal capture.
- Follow
references/architecture.md for the session model and references/verification-levels.md for verification scope.
- Verify Polydev behavior only with real installed-skill entry points and real terminal backends. Do not use repository-local automated tests, mocked terminal output, or stubbed agents as proof.
Investigation Session Contract
Read-only investigation sessions use a non-blocking lifecycle:
- Start a visible ready TUI with
spawn-agent.sh or spawn-codex.sh.
- Send the task after readiness with
send-prompt.sh.
- Inspect with
--peek N or capture-screen.sh when observation is needed.
send-prompt.sh must not wait for task completion or inject completion protocols. It sends the prompt and returns immediately; --peek is the only built-in observation path. spawn-agent.sh and spawn-codex.sh only accept session-start parameters such as <name>, --cwd, --workspace, --model, --ready-timeout, and --peek. They must not accept prompt, report, or output parameters.
Safe smoke test
When the user asks to test or check this skill, do a non-destructive real-machine smoke test only:
- State the resolved Polydev scripts root as a literal fact.
- Verify expected files exist:
SKILL.md, scripts/list-sessions.sh, and the workflow references.
- If checking runtime behavior, run only public installed-skill entry points against the real backend, with a short timeout.
- If the command hangs or is interrupted, report that exact result and inspect the terminal/backend condition before retrying.
Never test the skill by launching worktree agents, scheduled jobs, cleanup scripts, or internal backend libraries unless the user explicitly asks for that specific action.