execute

A task-running command for GitHub-based development work. TDD, or test-driven development, means writing or using tests as part of the process, and the command chooses that workflow or a regular one based on the change type.

In plain words
What is it for?
Use it to execute one task or all tasks in an epic, a larger group of related tasks. It can identify a task from its branch or from open GitHub issues, then create a pull request that closes the task.
Why use it?
It removes the need to select the workflow and find the task manually. It also gives the work a standard branch, commit, report, and pull-request process.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/el-feo/ai-context/execute
Clone the repo
git clone --depth 1 https://github.com/el-feo/ai-context
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 4,997 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00020 $0.04997
Opus 5 $0.00010 $0.02499
Sonnet 5 $0.00004 $0.00999
Haiku 4.5 $0.00002 $0.00500

Measured 2d ago against content hash e8b76356efc4, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

execute 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 2d 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/ghpm/commands/execute.md · 620 lines

How it starts

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

  • TDD workflow (/ghpm:tdd-task): For feat, fix, refactor commit types
  • Non-TDD workflow: For test, docs, chore, style, perf commit types

Both workflows produce identical outputs: conventional commits, Task Report, and a PR that closes the Task.

Resolution order if omitted:

  1. If branch name matches ghpm/task-<N>-* or task-<N>-*, use N
  2. Most recent open issue labeled Task assigned to @me: gh issue list -l Task -a @me -s open --limit 1 --json number -q '.[0].number'
  3. Most recent open Task: gh issue list -l Task -s open --limit 1 --json number -q '.[0].number'

<usage_examples> Execute a single task (auto-routes based on commit type):

/ghpm:execute task=#42

Execute all tasks under an epic:

/ghpm:execute epic=#10

Auto-resolve from branch or GitHub:

/ghpm:execute

</usage_examples>

<operating_rules>

  • Always create a feature branch before making changes. Never commit directly to main/master.
  • No local markdown artifacts. Do not write local status files; only code changes + GitHub issue/PR updates.
  • Do NOT use the TodoWrite tool to track tasks during this session.
  • Do not silently expand scope. If needed, create a new follow-up Task issue and link it.
  • All commits and PR titles MUST follow Conventional Commits format for changelog generation.
  • When routing to TDD, delegate fully to /ghpm:tdd-task - do not duplicate its workflow.
  • When handling an Epic, process tasks sequentially (one PR per task, not batched).
    • Exception: If multiple tasks modify the same file(s), batch them into a single PR with separate commits per task. Each commit must reference its task number.
  • Minimize noise: comment at meaningful milestones. </operating_rules>

<routing_logic>

Determining Workflow Type

Read the Task issue body and extract the Commit Type field:

- Commit Type: `<type>`

Read the full file on GitHub · 620 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. 2d ago First seen · 620 lines · 20 tokens per session scan A e8b76356efc4

Subscribe to this mod's changes

execute is a command published in the GitHub repository el-feo/ai-context (12 stars, last pushed 1mo ago), licensed MIT. It adds 20 tokens to every session and 4,997 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-08-30.