exec

exec is a command for Claude Code from pwdev-solucoes/pwdev-claude-marketplace. It costs 20 tokens per session (1,301 once invoked), scanned A, original, Apache-2.0.

A command that runs an existing action plan by handing it to a fresh executor agent.

In plain words
What is it for?
Use it to execute a feature plan identified by its feature slug or the latest unfinished plan.
Why use it?
It connects written planning to implementation and reports whether the plan was found or already executed.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: mentions CLAUDE.md; mentions subagents.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the pwdev-feat plugin — 7 commands shipped together

Good fit Use it to execute a feature plan identified by its feature slug…

Compare 6 commands from other repositories ↓
Install

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.

Claude Code
/plugin marketplace add pwdev-solucoes/pwdev-claude-marketplace
Claude Code
/plugin install pwdev-feat

Made for: Claude Code.

Or install pwdev-feat, the plugin that ships this one along with the rest of its 7 commands.

Wrote 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.

agentmods badge for exec

README.md
[![agentmods](https://agentmods.dev/badge/commands/pwdev-solucoes/pwdev-claude-marketplace/exec.svg)](https://agentmods.dev/commands/pwdev-solucoes/pwdev-claude-marketplace/exec)
Your own site
<a href="https://agentmods.dev/commands/pwdev-solucoes/pwdev-claude-marketplace/exec"><img src="https://agentmods.dev/badge/commands/pwdev-solucoes/pwdev-claude-marketplace/exec.svg" alt="Measured on agentmods" height="20"></a>
Per session 20 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,301 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00020 $0.01301
Opus 5 $0.00010 $0.00651
Sonnet 5 $0.00004 $0.00260
Haiku 4.5 $0.00002 $0.00130

Measured 3d ago against content hash 4c5ba22ed49c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

exec 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 3d 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.

plugins/pwdev-feat/commands/exec.md · 121 lines

How it starts

The opening of the file, as written. The whole thing — 121 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/pwdev-feat:exec — Execute Plan

Role (orchestrator — you do NOT implement; the executor subagent does)

Load the plan, detect the mode, spawn ONE fresh pwdev-feat:executor via the Task tool with a self-contained prompt, collect its ≤10-line status, present it.

Input

$ARGUMENTS: feature slug (e.g., "user-crud") or "latest".

Flow

STEP 0 — Language

Follow ${CLAUDE_PLUGIN_ROOT}/references/language.md (resolve lang from .planning/config.json; ask only if unset).

STEP 1 — Load Plan

if [ "$ARGUMENTS" = "latest" ] || [ -z "$ARGUMENTS" ]; then
  FEATURE_DIR=$(ls -td .planning/feat/features/*/ 2>/dev/null | while read dir; do [ ! -f "$dir/plan.done.md" ] && echo "$dir" && break; done)
  PLAN="${FEATURE_DIR}plan.md"
else
  FEATURE_DIR=".planning/feat/features/${ARGUMENTS}/"
  PLAN="${FEATURE_DIR}plan.md"
fi

if [ -z "$FEATURE_DIR" ] || [ ! -f "$PLAN" ]; then
  echo "PLAN_NOT_FOUND"
else
  grep -m1 '\*\*Type:\*\*' "$PLAN"
  [ -f "${FEATURE_DIR}plan.done.md" ] && echo "ALREADY_EXECUTED"
  cat "$PLAN"
fi
  • PLAN_NOT_FOUND → show the create-plan hints and STOP — do not spawn:
    ❌ No plan found. Create one first:
      /pwdev-feat:feat 'description'  |  /pwdev-feat:backend ...  |  /pwdev-feat:frontend ...
    
  • ALREADY_EXECUTED → warn and ask whether to re-run before continuing.

STEP 1.5 — Detect Mode

Per the mode rule in ${CLAUDE_PLUGIN_ROOT}/references/spawn-contracts.md: Type reviewMODE: REPORT; otherwise, Output Format with no code files to create/modify (report-only) → MODE: REPORT; else → MODE: IMPLEMENT.

STEP 1.7 — Project Memory (optional, read-only)

If .planning/memory/MEMORY.md exists (curated by pwdev-code — pwdev-feat NEVER writes there), read ONLY that index. Select ≤3 entries by keyword overlap with the plan's scope (convention first; expand 1 hop via the [rel: ...] suffixes within the cap of 3). Build a RELEVANT MEMORY block with descriptions + file paths (spawn-contracts template). No match or no index → omit the block entirely.

Read the full file on GitHub · 121 lines

Changes

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.

  1. 3d ago First seen · 121 lines · 20 tokens per session scan A 4c5ba22ed49c

Subscribe to this mod's changes

exec is a command published in the GitHub repository pwdev-solucoes/pwdev-claude-marketplace (2 stars, last pushed today), licensed Apache-2.0. It adds 20 tokens to every session and 1,301 once invoked, about $0.0001 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-09-03.