Getting it into your agent
This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.
/plugin marketplace add pwdev-solucoes/pwdev-claude-marketplace/plugin install pwdev-codeWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/pwdev-solucoes/pwdev-claude-marketplace/delegate)<a href="https://agentmods.dev/commands/pwdev-solucoes/pwdev-claude-marketplace/delegate"><img src="https://agentmods.dev/badge/commands/pwdev-solucoes/pwdev-claude-marketplace/delegate.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00032 | $0.00844 |
| Opus 5 | $0.00016 | $0.00422 |
| Sonnet 5 | $0.00006 | $0.00169 |
| Haiku 4.5 | $0.00003 | $0.00084 |
Grade A, and why
delegate scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 77 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/pwdev-code:delegate — Smart External Delegation
Role
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
Input
$ARGUMENTS: the task description. Empty → show usage and STOP.
Flow
STEP 0 — Language
Follow ${CLAUDE_PLUGIN_ROOT}/references/language.md (resolve lang from
.planning/config.json; ask only if unset).
STEP 1 — Classify the Task & Select the Agent
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.
STEP 2 — Announce the Choice ({{LANG}})
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):
- Chosen CLI missing → announce and fall back to the next reasonable candidate; if none is installed, say so and offer to do the task yourself (Claude-only).
STEP 3 — Delegate (standard flow)
Follow the selected agent's command flow exactly
(commands/codex.md / opencode.md / kimi.md / gemini.md / kiro.md):
- Preflight (dirty-tree warning in write mode; record baseline).
- Human confirmation showing the EXACT command:
"${CLAUDE_PLUGIN_ROOT}/scripts/run-agent.sh" <agent> <mode> "<task>"(mandatory on the first external run of the session). - Run via Bash (tool timeout ≥ script timeout + 60s); handle exit codes 127 / 124 / 4 / 3 as in the agent's command.
- MANDATORY review protocol (
references/delegation.md§7): full diff, scope check, run tests yourself, own critical verdict, never commit/push. - Report ({{LANG}}) with files changed, tests, out-of-scope findings, verdict, and the output copy path.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 7d ago First seen · 77 lines · 32 tokens per session scan A 3376fcaab614
delegate is a command published in the GitHub repository pwdev-solucoes/pwdev-claude-marketplace (2 stars, last pushed yesterday), licensed Apache-2.0. It adds 32 tokens to every session and 844 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other commands, from other repositories
checklist
Generate a custom checklist for the current feature based on user requirements.
clarify
Identify underspecified areas in the current feature spec by asking up to 5 highly targeted clarification questions and encoding answers back into the spec.
specify
Create or update the feature specification from a natural language feature description.
converge
Assess the current codebase against the feature's spec, plan, and tasks, then append any remaining unbuilt work as new tasks to tasks.md so implement can complete it.
implement
Execute the implementation plan by processing and executing all tasks defined in tasks.md.
analyze
Perform a non-destructive cross-artifact consistency and quality analysis across spec.md, plan.md, and tasks.md after task generation.