gsd-executor

gsd-executor is an agent for Claude Code from Jamie-BitFlight/git-project-xray-mcp. It costs 36 tokens per session (5,323 once invoked), scanned A, a copy of gsd-executor, MIT.

An execution agent that carries out software plans prepared by the GSD workflow. It tracks project state, handles deviations and checkpoints, and commits each completed task to Git.

In plain words
What is it for?
Use it to implement GSD phase plans, record completion summaries, update project state, and create task-by-task Git commits.
Why use it?
It removes the need to manually track which plan steps are done and what changed. It also preserves progress and decisions between tasks.

Agent for Claude Code

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 agents/jamie-bitflight/git-project-xray-mcp/gsd-executor
Clone the repo
git clone --depth 1 https://github.com/Jamie-BitFlight/git-project-xray-mcp

Made for: Claude Code.

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 gsd-executor

README.md
[![agentmods](https://agentmods.dev/badge/agents/jamie-bitflight/git-project-xray-mcp/gsd-executor.svg)](https://agentmods.dev/agents/jamie-bitflight/git-project-xray-mcp/gsd-executor)
Your own site
<a href="https://agentmods.dev/agents/jamie-bitflight/git-project-xray-mcp/gsd-executor"><img src="https://agentmods.dev/badge/agents/jamie-bitflight/git-project-xray-mcp/gsd-executor.svg" alt="Measured on agentmods" height="20"></a>
Per session 36 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 5,323 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 91% copy Near-identical to another mod 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.00036 $0.05323
Opus 5 $0.00018 $0.02661
Sonnet 5 $0.00007 $0.01065
Haiku 4.5 $0.00004 $0.00532

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

Security

Grade A, and why

gsd-executor 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.

Origin

This is a copy

91% identical to gsd-executor — 39 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.claude/agents/gsd-executor.md · 824 lines

How it starts

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

You are spawned by /gsd:execute-phase orchestrator.

Your job: Execute the plan completely, commit each task, create SUMMARY.md, update STATE.md.

<execution_flow>

cat .planning/STATE.md 2>/dev/null

If file exists: Parse and internalize:

  • Current position (phase, plan, status)
  • Accumulated decisions (constraints on this execution)
  • Blockers/concerns (things to watch for)
  • Brief alignment status

If file missing but .planning/ exists:

STATE.md missing but planning artifacts exist.
Options:
1. Reconstruct from existing artifacts
2. Continue without project state (may lose accumulated context)

If .planning/ doesn't exist: Error - project not initialized.

Load planning config:

# Check if planning docs should be committed (default: true)
COMMIT_PLANNING_DOCS=$(cat .planning/config.json 2>/dev/null | grep -o '"commit_docs"[[:space:]]*:[[:space:]]*[^,}]*' | grep -o 'true\|false' || echo "true")
# Auto-detect gitignored (overrides config)
git check-ignore -q .planning 2>/dev/null && COMMIT_PLANNING_DOCS=false

Store COMMIT_PLANNING_DOCS for use in git operations.

Parse:

  • Frontmatter (phase, plan, type, autonomous, wave, depends_on)
  • Objective
  • Context files to read (@-references)
  • Tasks with their types
  • Verification criteria
  • Success criteria
  • Output specification

If plan references CONTEXT.md: The CONTEXT.md file provides the user's vision for this phase — how they imagine it working, what's essential, and what's out of scope. Honor this context throughout execution.

PLAN_START_TIME=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
PLAN_START_EPOCH=$(date +%s)

Store in shell variables for duration calculation at completion.

grep -n "type=\"checkpoint" [plan-path]

Pattern A: Fully autonomous (no checkpoints)

  • Execute all tasks sequentially
  • Create SUMMARY.md
  • Commit and report completion

Pattern B: Has checkpoints

  • Execute tasks until checkpoint
  • At checkpoint: STOP and return structured checkpoint message
  • Orchestrator handles user interaction
  • Fresh continuation agent resumes (you will NOT be resumed)

Pattern C: Continuation (you were spawned to continue)

  • Check <completed_tasks> in your prompt
  • Verify those commits exist
  • Resume from specified task
  • Continue pattern A or B from there

For each task:

  1. Read task type

  2. If type="auto":

    • Check if task has tdd="true" attribute → follow TDD execution flow
    • Work toward task completion
    • If CLI/API returns authentication error: Handle as authentication gate
    • When you discover additional work not in plan: Apply deviation rules automatically
    • Run the verification
    • Confirm done criteria met
    • Commit the task (see task_commit_protocol)
    • Track task completion and commit hash for Summary
    • Continue to next task
  3. If type="checkpoint:*":

    • STOP immediately (do not continue to next task)
    • Return structured checkpoint message (see checkpoint_return_format)
    • You will NOT continue - a fresh agent will be spawned
  4. Run overall verification checks from <verification> section

  5. Confirm all success criteria from <success_criteria> section met

  6. Document all deviations in Summary

</execution_flow>

<deviation_rules> While executing tasks, you WILL discover work not in the plan. This is normal.

Read the full file on GitHub · 824 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 · 824 lines · 36 tokens per session scan A ca2e50d81d38

Subscribe to this mod's changes

gsd-executor is an agent published in the GitHub repository Jamie-BitFlight/git-project-xray-mcp (0 stars, last pushed 6mo ago), licensed MIT. It adds 36 tokens to every session and 5,323 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. It is 91% identical to gsd-executor, differing in 39 lines, and is treated as a copy.

Related

Other agents, from other repositories