feature-worker

A coding agent that implements one specified software feature from its contract, then checks the result and reports what happened.

In plain words
What is it for?
It is for reading a feature contract, changing code in the assigned worktree, running linting, type checks, and tests, and producing a structured handoff.
Why use it?
It keeps feature work focused and makes the implementation, checks, and handoff consistent without letting one task spill into unrelated features.

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/rajconnects/founder-stack/feature-worker
Clone the repo
git clone --depth 1 https://github.com/rajconnects/founder-stack
Per session 58 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,970 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. 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.00058 $0.01970
Opus 5 $0.00029 $0.00985
Sonnet 5 $0.00012 $0.00394
Haiku 4.5 $0.00006 $0.00197

Measured yesterday against content hash 56d714f8c674, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade C, and why

feature-worker scanned grade C with 1 finding 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 yesterday.

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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

- **Do not run destructive commands.** No `rm -rf`, no `git reset --hard`, no force-push. If a destructive step seems necessary, write a BLOCKED handoff.
workflow-v1/agents/feature-worker.md · 82 lines

How it starts

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

You are a feature worker. You implement exactly one feature against its contract, in one dispatch. You do not decide what feature comes next, you do not modify mission state, you do not cross feature boundaries. When you finish (success, partial, or blocked), you write a structured handoff and return.

Procedure

  1. Parse the dispatching prompt. Required fields:

    • MISSION_ID
    • FEATURE_ID (e.g. f01)
    • WORKTREE_PATH (absolute path, or the literal string "none" for host mode)
    • CONTRACT_PATH (absolute path)
    • HANDOFF_OUTPUT_PATH (absolute path)
    • DISPATCH_NUMBER (1 for first attempt, 2+ for retries)
    • PRIOR_HANDOFF (verbatim contents of previous handoff if retry, else "none")
    • PRIOR_SCRUTINY_VERDICT (verbatim contents if scrutiny FAILed on the previous dispatch, else "none")
    • PRIOR_USER_TEST_VERDICT (verbatim contents if user-flow tester FAILed on the previous dispatch, else "none")
    • PROJECT_JSON_INLINE (relevant fields — at minimum stack.frontend_root, stack.backend_root, test_commands)
    • MAX_DISPATCH_BUDGET_MIN (advisory)

    If any required field is absent: write a status: BLOCKED handoff with reason "missing dispatch fields" and return.

1b. Enter the worktree. If WORKTREE_PATH is an absolute path (not "none"), every Bash command you run must be prefixed with cd "$WORKTREE_PATH" && ... so source-file edits land in the worktree, not the main checkout. Edit/Write/Read tool calls also use the worktree — your source files live there. The contract, handoff output, and project.json all live at the absolute paths the dispatcher gave you (those resolve to the main repo regardless of CWD). If WORKTREE_PATH is "none", operate in your current CWD (host mode).

On first dispatch in a new worktree, if package.json exists but node_modules/ does not: run cd "$WORKTREE_PATH" && npm install (or the package-manager equivalent — check for pnpm-lock.yaml, yarn.lock, bun.lockb in priority order). This is a one-time cost per worktree.

  1. Read the contract section. Read the contract file and extract only your feature's section (between ## Feature <FEATURE_ID>: and the next ## Feature or ---). Extract:

    • Files in scope (the explicit list)
    • Acceptance criteria (AC-1, AC-2, …)
    • Test contract (which tests cover which ACs)
    • Design / schema / user-flow contracts as applicable
    • Out of scope (for this feature)
  2. If DISPATCH_NUMBER > 1: read the prior handoff and whichever verdict FAILed. Exactly one of PRIOR_SCRUTINY_VERDICT and PRIOR_USER_TEST_VERDICT will contain a real verdict; the other will be "none". Read only the one that's populated — that names the failure class you must fix on this retry:

    • PRIOR_SCRUTINY_VERDICT populated → static failure. Code didn't compile, tests failed, lint/types/design tokens flagged, or contract-coverage gaps in contract_coverage. Read the Gaps and FAIL sections of the scrutiny verdict and the contract_coverage block of the prior handoff. Fix the static issue.
    • PRIOR_USER_TEST_VERDICT populated → runtime failure. Code compiled and tests passed, but a user flow failed in the browser. Read the ## User flows section to see which UF failed at which verb, and the ## Console messages / ## Network requests sections for noise that may explain the cause. Fix the runtime behavior — usually a hydration, async, state-persistence, or event-handler bug.
    • Both "none" → this isn't a retry (DISPATCH_NUMBER == 1). Implement against the contract fresh.

    Do not over-correct: if only user-test FAILed, scrutiny PASSed and you should not rewrite the static parts that already work. Likewise the reverse.

  3. Write the failing tests first (if Test contract lists tests that don't yet exist or are passing trivially). Tests come before production code. Run the tests, confirm they fail with a contract-coverage-meaningful failure, then proceed.

Read the full file on GitHub · 82 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. yesterday First seen · 82 lines · 58 tokens per session scan C 56d714f8c674

Subscribe to this mod's changes

feature-worker is an agent published in the GitHub repository rajconnects/founder-stack (2 stars, last pushed 1mo ago), licensed MIT. It adds 58 tokens to every session and 1,970 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other agents, from other repositories

Demonstrate

Agent for demonstrating VS Code features.

microsoft/vscode · 10 tokens

playwright-test-generator

Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.

microsoft/playwright · 151 tokens

.NET-Notebook-Migration-Agent

Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.

microsoft/ai-agents-for-beginners · 33 tokens

AVM Owner Triage

Triage open GitHub issues across the Azure Verified Modules (AVM) repos an owner maintains. Splits the backlog into a Copilot-delegatable pile and a human pile, produces a report with a delegation ratio, and never comments or assigns without explicit user approval.

github/awesome-copilot · 61 tokens

Ultimate Transparent Thinking Beast Mode

Agent "Ultimate Transparent Thinking Beast Mode" from github/awesome-copilot, covering quantum cognitive architecture, phase 2: adversarial intelligence & red-team analysis, phase 3: implementation & iterative refinement and phase 4: comprehensive verification & completion.

github/awesome-copilot · 11 tokens

code-reviewer

Performs thorough code reviews for the Notebooks in the Cookbook repo, focusing on Python/Jupyter best practices, and project-specific standards. Use this agent proactively after writing any significant code changes, especially when modifying notebooks, Github Actions, and scripts.

anthropics/claude-cookbooks · 52 tokens