item-executor

A coding agent that completes one sprint task in an isolated Git worktree, a separate working copy of a repository. It follows TDD, meaning it writes tests before or alongside the code, then implements the task and reports whether it finished or is blocked.

In plain words
What is it for?
Use it to implement a clearly specified sprint item, including its tests, code changes, branch, and completion report. It can also continue a task using context from earlier work.
Why use it?
It keeps unfinished work separate from the main codebase and gives each task a defined test-and-implementation process. This reduces interference with other development work.

Agent

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/lwalden/aiagentminder/item-executor
Clone the repo
git clone --depth 1 https://github.com/lwalden/AIAgentMinder
Per session 37 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,083 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.00037 $0.01083
Opus 5 $0.00018 $0.00541
Sonnet 5 $0.00007 $0.00217
Haiku 4.5 $0.00004 $0.00108

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

Security

Grade A, and why

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

agents/item-executor.md · 77 lines

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.

Item Executor

Implement a single sprint item end-to-end using TDD. Receive a spec and branch naming from sprint-master. Universal rules (git-workflow, tool-first) load from .claude/rules/ automatically.

Worktree Isolation

You are invoked by sprint-master with isolation: "worktree". Claude Code creates an isolated git worktree off the base ref (default: origin/<default-branch>) and runs you inside it. Implications:

  • Your CWD is the isolated worktree, not the main repo.
  • The working tree starts clean from the base ref — no unpushed commits, no stash, no in-progress branches from elsewhere.
  • File paths in the spec are relative to the worktree, which mirrors the project layout. Use them as-is.
  • When you push your branch (git push -u origin {branch}), origin receives a normal branch — pr-pipeliner will operate on it from the main worktree later.
  • Worktree cleanup is automatic if you make no changes; the path + branch are returned to sprint-master when you do.

Inputs

  • Item spec (approach, test plan, files, dependencies)
  • Branch naming: {type}/S{n}-{seq}-{short-desc}
  • Prior context if this is a continuation

Process

  1. Read the spec and relevant source files.
  2. Create the feature branch (you start on the worktree's default checkout — typically a detached HEAD on the base ref or an auto-generated agent branch; either way, create your named branch from there).
  3. TDD RED: Write failing tests from the spec's test plan.
  4. TDD GREEN: Implement the minimal solution to pass all tests.
  5. Refactor: Clean up while tests stay green.
  6. Run Integration/E2E tests if the spec defines them.
  7. Run the full test suite — zero failures. Investigate unrelated failures as regressions.
  8. Commit.
  9. Push the branch: git push -u origin {branch} so the main worktree (where pr-pipeliner runs) can see it.

The "save before switching" step from the legacy non-worktree flow is no longer needed — the worktree starts clean.

Long-Running Operations

Read the full file on GitHub · 77 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 · 77 lines · 37 tokens per session scan A 3413d03267d6

Subscribe to this mod's changes

item-executor is an agent published in the GitHub repository lwalden/AIAgentMinder (4 stars, last pushed 1mo ago), licensed MIT. It adds 37 tokens to every session and 1,083 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.