autotask-mcp: Command for Claude Code

.claude/commands/tm/next/next-task.md

next-task is a command for Claude Code from WYRE-AI/autotask-mcp. It costs 0 tokens per session (415 once invoked), scanned A, original, Apache-2.0.

A command that examines Task Master’s current work and recommends the next action. It considers task status, recent activity, priorities, dependencies, and optional preferences such as quick or important work.

In plain words
What is it for?
Finding or resuming a task, showing its context and history, and choosing work based on urgency, effort, priority, or dependencies.
Why use it?
It reduces the time spent deciding what to work on when several tasks are open or blocked.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

This is WYRE-AI/autotask-mcp's own configuration. It tells Claude Code how to work on autotask-mcp 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 autotask-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to WYRE-AI/autotask-mcp. 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/WYRE-AI/autotask-mcp/main/.claude/commands/tm/next/next-task.md
Clone the repo
git clone --depth 1 https://github.com/WYRE-AI/autotask-mcp

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/wyre-ai/autotask-mcp/next-task.svg)](https://agentmods.dev/commands/wyre-ai/autotask-mcp/next-task)
Your own site
<a href="https://agentmods.dev/commands/wyre-ai/autotask-mcp/next-task"><img src="https://agentmods.dev/badge/commands/wyre-ai/autotask-mcp/next-task.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 415 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.00000 $0.00415
Opus 5 $0.00000 $0.00208
Sonnet 5 $0.00000 $0.00083
Haiku 4.5 $0.00000 $0.00042

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

Security

Grade A, and why

next-task 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 7d 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

Copies of this mod

7 near-identical copies found in the catalogue:

.claude/commands/tm/next/next-task.md · 66 lines

What it actually says

Intelligently determine and prepare the next action based on comprehensive context.

This enhanced version of 'next' considers:

  • Current task states
  • Recent activity
  • Time constraints
  • Dependencies
  • Your working patterns

Arguments: $ARGUMENTS

Intelligent Next Action

1. Context Gathering

Let me analyze the current situation:

  • Active tasks (in-progress)
  • Recently completed tasks
  • Blocked tasks
  • Time since last activity
  • Arguments provided: $ARGUMENTS

2. Smart Decision Tree

If you have an in-progress task:

  • Has it been idle > 2 hours? → Suggest resuming or switching
  • Near completion? → Show remaining steps
  • Blocked? → Find alternative task

If no in-progress tasks:

  • Unblocked high-priority tasks? → Start highest
  • Complex tasks need breakdown? → Suggest expansion
  • All tasks blocked? → Show dependency resolution

Special arguments handling:

  • "quick" → Find task < 2 hours
  • "easy" → Find low complexity task
  • "important" → Find high priority regardless of complexity
  • "continue" → Resume last worked task

3. Preparation Workflow

Based on selected task:

  1. Show full context and history
  2. Set up development environment
  3. Run relevant tests
  4. Open related files
  5. Show similar completed tasks
  6. Estimate completion time

4. Alternative Suggestions

Always provide options:

  • Primary recommendation
  • Quick alternative (< 1 hour)
  • Strategic option (unblocks most tasks)
  • Learning option (new technology/skill)

5. Workflow Integration

Seamlessly connect to:

  • /project:task-master:start [selected]
  • /project:workflows:auto-implement
  • /project:task-master:expand (if complex)
  • /project:utils:complexity-report (if unsure)

The goal: Zero friction from decision to implementation.

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. 7d ago First seen · 66 lines · 0 tokens per session scan A fa6f89578514

Subscribe to this mod's changes

next-task is a command published in the GitHub repository WYRE-AI/autotask-mcp (50 stars, last pushed 3d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 415 tokens. 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-30.