/pwdev-code:delegate <task description>from PWDEV Code — Spec-Driven Development
Pick the best external coding CLI for the task (codex, opencode, kimi, gemini, or kiro) and delegate with the standard safety protocol
Ships in PWDEV Code — Spec-Driven Development. Installing the plugin adds it to Claude Code.
Orchestrator: analyzes the task, selects ONE external agent by the selection
matrix, announces the choice, and then follows the standard delegation flow
(confirmation → run-agent.sh → mandatory review).
Protocol details: ${CLAUDE_PLUGIN_ROOT}/references/delegation.md
$ARGUMENTS: the task description. Empty → show usage and STOP.
Follow ${CLAUDE_PLUGIN_ROOT}/references/language.md (resolve lang from
.planning/config.json; ask only if unset).
Selection matrix (canonical copy: references/delegation.md §6):
| Task nature | Agent | Default mode |
|---|---|---|
| Objective implementation, bugfix, well-scoped tests | codex | write |
| A specific model/provider was requested, or provider flexibility matters | opencode | write |
| Large repo, extensive refactor, many files | kimi | write |
| Agentic/spec-driven implementation, AWS-stack tasks | kiro | write |
| Analysis, architecture, documentation, review, second opinion | gemini | read |
Tie-breakers: analysis-only → always gemini (read). Implementation with a model explicitly named by the user → opencode. Otherwise prefer codex for small scope, kimi for wide scope.
Before executing, state in 1–2 sentences WHICH agent was selected and WHY
(reference the matrix row). Check availability with
command -v <binary> (kiro → kiro-cli):
Follow the selected agent's command flow exactly
(commands/codex.md / opencode.md / kimi.md / gemini.md / kiro.md):
"${CLAUDE_PLUGIN_ROOT}/scripts/run-agent.sh" <agent> <mode> "<task>"
(mandatory on the first external run of the session).references/delegation.md §7): full diff,
scope check, run tests yourself, own critical verdict, never commit/push.What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
npx claudepluginhub pwdev-solucoes/pwdev-claude-marketplace --plugin pwdev-code23 commands in this plugin
/audit/pwdev-code:audit — Audit Trail QueryQuery the audit trail database for events, decisions, artifacts, and statistics. Export full PDF report./codex/pwdev-code:codex — Delegate to Codex CLIDelegate an implementation task to the Codex CLI, then critically review the resulting diff/design/pwdev-code:design — Design PhaseRun the design phase to produce spec.md with architecture decisionsOther plugins' commands for the same job