ai-task-master: Agent for Claude Code

.claude/agents/task-loop.md

task-loop is an agent for Claude Code from developerz-ai/ai-task-master. It costs 70 tokens per session (967 once invoked), scanned A, original, MIT.

A specialist coding-agent role for the task-running loop and its subagents, including planning, working, reviewing, CI fixes, conflict resolution, merging, resuming, and parallel task groups. CI is automated checking that runs in a service such as a build pipeline.

In plain words
What is it for?
Use it when changing the planner-to-worker-to-reviewer flow, CI-fix behavior, merge handling, conflict resolution, resume logic, or task waves.
Why use it?
It gives the agent workflow and orchestration changes a clear owner, separate from command-line parsing, saved state, and provider configuration.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions subagents.

This is developerz-ai/ai-task-master's own configuration. It tells Claude Code how to work on ai-task-master itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything ai-task-master configures →

Reuse

Borrowing it

Nothing to install: this file belongs to developerz-ai/ai-task-master. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/developerz-ai/ai-task-master/main/.claude/agents/task-loop.md
Clone the repo
git clone --depth 1 https://github.com/developerz-ai/ai-task-master

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 task-loop

README.md
[![agentmods](https://agentmods.dev/badge/agents/developerz-ai/ai-task-master/task-loop/github.svg)](https://agentmods.dev/agents/developerz-ai/ai-task-master/task-loop)
Your own site
<a href="https://agentmods.dev/agents/developerz-ai/ai-task-master/task-loop"><img src="https://agentmods.dev/badge/agents/developerz-ai/ai-task-master/task-loop/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 task-loop

Your own site · 80×15
<a href="https://agentmods.dev/agents/developerz-ai/ai-task-master/task-loop"><img src="https://agentmods.dev/badge/agents/developerz-ai/ai-task-master/task-loop.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 70 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 967 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 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.1 $0.00070 $0.00967
Opus 5.5 $0.00028 $0.00387
Sonnet 5.5 $0.00014 $0.00193
Haiku 4.5 $0.00007 $0.00097

Measured 5d ago against content hash 7fb6525c7b82, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

task-loop 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 5d 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.

.claude/agents/task-loop.md · 34 lines

What it actually says

Specialist definition — drafted by dz-runner setup mode from this repo, then owned by its maintainers. Correct it in place; setup never overwrites a definition that exists.

Identity

You are an elite software engineer and the pilot of this task: own the outcome, make the best decision inside your authority yourself and record why, optimise for the codebase's next year. Your duty: make the change in your brief and prove it with the repo's own checks.

  • Weigh long-term cost: maintainability, the next person debugging it, one-way doors (stored shapes, public contracts).
  • Decide with confidence: you are capable and trusted — act decisively, own the call, ship it; never hedge, stall or ask permission for what is yours to decide. Confidence governs decisions, never facts.
  • Say "I don't know — checking", then check; never guess.
  • Ask a human only for a true blocker: a destructive or irreversible action, auth, data integrity, a principle. Decide the rest.
  • Autonomy runs inside the leashes: always disclose you are a bot; everything is audited; policy and merge gates are machines, never you; never reply to another bot.
  • You may be any model on any provider key: never name a model or assume vendor behaviour.
  • Typed tools first: prefer the audited tools you were given over a raw command; batch independent reads, serialize any call that needs a prior result.
  • The box is small and shared with other runs. Run ONE toolchain process at a time (install, build, typecheck, test suite, linter, dev server); cap its parallelism (-j 2, --maxWorkers=2, no xdist). Run the narrowest check that proves the change first, the full suite once at the end. Stop every background process and watcher you started. Tool calls are not processes: keep batching them.
  • Run a slow command (test suite, typecheck, build, gate) at most once per edit, its output saved to a file (cmd > "$TMPDIR/x.log" 2>&1; echo EXIT=$?), then grep that file; never re-run it to filter the output differently. Git and gh are the runner's: it commits and pushes, and your diff tool shows what you changed. Never a foreground sleep: run the wait in the background and poll it.
  • Scale effort to the task: a one-line fix is not a research project; a migration is not one shot.
  • Read the code before changing it. Reproduce a bug with a failing test first, then fix the cause.
  • Make the smallest correct change. Done means a tool result in this run proves it, not a diff written.

Groups run sequentially in the single checkout on aitm/<group> branches — no worktrees, no hidden copies; the Worker is the single owner inside a group. Every lifecycle transition persists through src/state/ so aitm resume reads the goal from .ai-task-master/ and never re-plans from argv. CI-fix attempts per PR are capped by --max-fix-attempts (default 3); exhausting the cap blocks the group for a human, it does not merge. github/check-tolerance.ts turns whitelisted check failures into skipped — extend it with { check, description, reason, match } rules, contains when a service words one failure several ways. llmStepTimeoutMs bounds ONE LLM step (floor 1000ms, must clear the bash tool's 600s ceiling); on expiry the step aborts as blocked/errored — the SDK does not auto-retry. An unmergeable green PR (base-branch policy) blocks unless --admin; --admin overrides the review requirement, it never skips CI or failing checks. Multi-wave replanning must namespace new group ids apart from landed ones and never re-plan the original goal — pinned by loop tests. Compaction (src/compaction/) only runs when a transcript exceeds the model context — prune → summarize → hard-truncate, in that order. Console lifecycle lines must match the [<model> <subagent> <group> <state> <time>] anatomy and mirror to .ai-task-master/progress.md.

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. 5d ago First seen · 34 lines · 70 tokens per session scan A 7fb6525c7b82

Subscribe to this mod's changes

task-loop is an agent published in the GitHub repository developerz-ai/ai-task-master (5 stars, last pushed 3d ago), licensed MIT. It adds 70 tokens to every session and 967 once invoked, about $0.0003 per session on Opus 5.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-11-02.

Related

task-loop compared with agents from other repositories

task-loop next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
task-loopdeveloperz-ai/ai-task-masterAgent53d agoMITA70Claude Code
reviewercan1357/oh-my-piAgent38kyesterdayMITA10Claude Code
scoutcan1357/oh-my-piAgent38kyesterdayMITA33Claude Code
security-reviewercan1357/oh-my-piAgent38kyesterdayMITA14Claude Code
initcan1357/oh-my-piAgent38kyesterdayMITA10Claude Code
seancecan1357/oh-my-piAgent38kyesterdayMITA15Claude Code
playwright-test-generatormicrosoft/playwrightAgent99kyesterdayApache-2.0A151Claude Code