/pwdev-code:kimi [--read-only] <task description>from PWDEV Code — Spec-Driven Development
Delegate a large-scale exploration or extensive refactor to the Kimi Code CLI, then critically review the resulting diff
Ships in PWDEV Code — Spec-Driven Development. Installing the plugin adds it to Claude Code.
Orchestrator: sends the task to the external Kimi Code CLI via the
standardized delegation script, then performs a MANDATORY critical review.
Best for: large repos, multi-file implementations, extensive refactors
(long-context exploration).
Protocol details: ${CLAUDE_PLUGIN_ROOT}/references/delegation.md
Newer Kimi versions accept --quiet --prompt "<prompt>"; older ones take the
prompt positionally. The script auto-detects via kimi --help — no action
needed here.
$ARGUMENTS: the task description. --read-only → MODE=read (default: write).
Follow ${CLAUDE_PLUGIN_ROOT}/references/language.md (resolve lang from
.planning/config.json; ask only if unset).
--read-only (→ MODE=read); the remainder is the
task. Empty task → show usage and STOP.git status --porcelain — if the tree is dirty in write mode, warn the
user that delegation results will be hard to attribute; offer to continue
or abort.git rev-parse HEAD and git status --short.Show the EXACT command that will run:
"${CLAUDE_PLUGIN_ROOT}/scripts/run-agent.sh" kimi <write|read> "<task>"
If this is the FIRST external CLI run in this session → require explicit confirmation before executing. Never proceed silently.
Execute the command via Bash with a tool timeout ≥ the script timeout + 60s.
Extensive refactors are slow — consider external_models.kimi.timeout_s: 900
or higher (default 600s).
curl -LsSf https://code.kimi.com/install.sh | bash, then run kimi and
/login once); STOP.external_models.kimi.timeout_s..planning/ exists): .planning/delegation/<ts>-kimi.mdgit status --short — list every touched file.git diff --stat, then read the FULL git diff (per-file if large —
expected here; review file by file, never skim)..env*, secrets, lockfiles not
implied by the task, or CI configs.git checkout -- <files> / git clean -n.📋 Delegation Complete — kimi (mode: write|read)
Files changed: [N] ([list])
Tests: [pass/fail/not run — what you ran]
Out-of-scope changes: [none | list]
Verdict: [APPROVED FOR COMMIT | NEEDS ADJUSTMENTS | RECOMMEND REVERT]
Output copy: .planning/delegation/<ts>-kimi.md
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/delegate/pwdev-code:delegate — Smart External DelegationPick the best external coding CLI for the task (codex, opencode, kimi, gemini, or kiro) and delegate with the standard safety protocol