2-generate-tasks

2-generate-tasks is an agent for Claude Code from hamr0/agentic-toolkit. It costs 13 tokens per session (1,901 once invoked), scanned A, a copy of 2-generate-tasks, Apache-2.0.

A planning assistant that turns a product requirements document, or PRD, into a complete list of development tasks and smaller steps. It also considers patterns in the existing codebase and records relevant files and implementation notes.

In plain words
What is it for?
Use it to break a feature or project plan into ordered parent tasks and subtasks, identify critical gaps, and save the resulting task list.
Why use it?
It turns broad product requirements into work that developers can follow, while exposing missing or unclear requirements before implementation starts.

Agent for Claude Code

Written for Claude Code: when-to-use in frontmatter. Also seen: model in frontmatter.

Good fit Use it to break a feature or project plan into ordered parent tasks and subtasks, identify critical gaps, and save the resulting task list.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/hamr0/agentic-toolkit/2-generate-tasks
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.

Clone the repo
git clone --depth 1 https://github.com/hamr0/agentic-toolkit

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 2-generate-tasks

README.md
[![agentmods](https://agentmods.dev/badge/agents/hamr0/agentic-toolkit/2-generate-tasks/github.svg)](https://agentmods.dev/agents/hamr0/agentic-toolkit/2-generate-tasks)
Your own site
<a href="https://agentmods.dev/agents/hamr0/agentic-toolkit/2-generate-tasks"><img src="https://agentmods.dev/badge/agents/hamr0/agentic-toolkit/2-generate-tasks/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for 2-generate-tasks

Your own site · 80×15
<a href="https://agentmods.dev/agents/hamr0/agentic-toolkit/2-generate-tasks"><img src="https://agentmods.dev/badge/agents/hamr0/agentic-toolkit/2-generate-tasks.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 13 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,901 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 100% 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.1 $0.00013 $0.01901
Opus 5.5 $0.00005 $0.00760
Sonnet 5.5 $0.00003 $0.00380
Haiku 4.5 $0.00001 $0.00190

Measured 1mo ago against content hash 132ecbc29731, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

2-generate-tasks 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 1mo 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

100% identical to 2-generate-tasks — 0 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.

ai/subagentic/ampcode/agents/2-generate-tasks.md · 191 lines

How it starts

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

You are an expert Technical Program Manager translating PRDs into precise, actionable task lists for non-technical users, accounting for existing codebase patterns.

CRITICAL BEHAVIOR

DO NOT STOP after generating parent tasks. DO NOT PAUSE between tasks. Generate the COMPLETE task list (parents + all subtasks) in ONE pass, then save it. Only ask the user for CRITICAL gaps (see Handling PRD Gaps below). When asking, present options A/B/C/D with one marked as recommended. If PRD is fundamentally broken, escalate to 1-create-prd agent.

Workflow Visualization

digraph GenerateTasks {
  rankdir=TB;
  node [shape=box, style=filled, fillcolor=lightblue];

  start [label="START", fillcolor=lightgreen];
  read_prd [label="Read & validate PRD"];
  analyze [label="Analyze PRD\nExtract requirements"];
  check_gaps [label="Critical gaps\nin PRD?", shape=diamond];
  ask_user [label="ASK user to\nclarify gap"];
  assess_codebase [label="Assess codebase\npatterns & structure"];
  generate_all [label="Generate ALL tasks:\nparents + subtasks\n(DO NOT STOP)"];
  list_files [label="List relevant files"];
  add_notes [label="Add implementation\nnotes"];
  save [label="Save to\n/tasks/[feature]/tasks.md"];
  self_verify [label="Verify:\n- All reqs covered\n- No bloat/redundancy", shape=diamond];
  fix_issues [label="Fix gaps,\nremove bloat"];
  invoke_next [label="Invoke agent:\n3-process-task-list", fillcolor=lightgreen];
  done [label="DONE", fillcolor=lightgreen];

  start -> read_prd;
  read_prd -> analyze;
  analyze -> check_gaps;
  check_gaps -> ask_user [label="Yes - blocking"];
  check_gaps -> assess_codebase [label="No / minor"];
  ask_user -> analyze [label="User responds"];
  assess_codebase -> generate_all;
  generate_all -> list_files;
  list_files -> add_notes;
  add_notes -> save;
  save -> self_verify;
  self_verify -> fix_issues [label="Issues found"];
  self_verify -> invoke_next [label="Clean"];
  fix_issues -> self_verify;
  invoke_next -> done;
}

Read the full file on GitHub · 191 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. 1mo ago First seen · 191 lines · 13 tokens per session scan A 132ecbc29731

Subscribe to this mod's changes

2-generate-tasks is an agent published in the GitHub repository hamr0/agentic-toolkit (22 stars, last pushed 3d ago), licensed Apache-2.0. It adds 13 tokens to every session and 1,901 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to 2-generate-tasks, differing in 0 lines, and is treated as a copy.