ai-task-master: Agent for Claude Code

.claude/agents/run-state.md

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

A specialist coding-agent role for the repository's saved run state, migrations, run locks, cached pull-request context, transcripts, and on-disk task files. A migration changes stored data from one schema, or shape, to another.

In plain words
What is it for?
Use it when changing run state, state schemas, migrations, resume data, plan.md, or the .ai-task-master files.
Why use it?
It gives state-related changes a clear owner and keeps them separate from Git operations and the main task loop. This helps protect stored formats and resume behavior.

Agent for Claude Code

Written for Claude Code: installed under .claude/.

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/run-state.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 run-state

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/developerz-ai/ai-task-master/run-state"><img src="https://agentmods.dev/badge/agents/developerz-ai/ai-task-master/run-state.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 74 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 859 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.00074 $0.00859
Opus 5.5 $0.00030 $0.00344
Sonnet 5.5 $0.00015 $0.00172
Haiku 4.5 $0.00007 $0.00086

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

Security

Grade A, and why

run-state 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/run-state.md · 33 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.

The on-disk .ai-task-master/ format is a compatibility contract — state/config files written by an older version must keep parsing — this is the repo's ONLY sanctioned legacy exception. Schema migrations live inside src/state/; a field rename ships as a migration, not a fallback branch. Writes go through src/fs/atomic-write.ts (temp + fsync + rename) — never a bare write to a state file. The run lock guards concurrent runs on one checkout — acquire/release is tested, keep it that way. plan.md and progress.md are human-readable mirrors — plan checkboxes and the timestamped lifecycle log — rendered by src/plan/plan-markdown.ts, never hand-formatted. Transcripts and the PR-context cache are spill targets for large payloads — tool-output-spill.test.ts pins the behavior. legacy-state.test.ts is the migration contract — extend it whenever the schema moves. Resume reads the goal from state, so a resumed run never silently targets a different goal than the plan was built for.

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 · 33 lines · 74 tokens per session scan A 9b6aaf7960ec

Subscribe to this mod's changes

run-state is an agent published in the GitHub repository developerz-ai/ai-task-master (5 stars, last pushed 3d ago), licensed MIT. It adds 74 tokens to every session and 859 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

run-state compared with agents from other repositories

run-state next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
run-statedeveloperz-ai/ai-task-masterAgent53d agoMITA74Claude 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