next-todo

next-todo is a command for Claude Code from peterfabakker/todo-mcp. It costs 0 tokens per session (477 once invoked), scanned A, original, MIT.

A command for finding the next task in a connected todo list. It ranks unfinished work by overdue status, priority, and due date.

In plain words
What is it for?
Use it to ask what to work on next, find overdue or urgent tasks, or identify the highest-priority open item.
Why use it?
It turns a long task list into a single recommended starting point based on urgency and importance.

Command for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it to ask what to work on next, find overdue or urgent tasks, or identify the highest-priority open item.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/peterfabakker/todo-mcp/next-todo
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/peterfabakker/todo-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-todo

README.md
[![agentmods](https://agentmods.dev/badge/commands/peterfabakker/todo-mcp/next-todo/github.svg)](https://agentmods.dev/commands/peterfabakker/todo-mcp/next-todo)
Your own site
<a href="https://agentmods.dev/commands/peterfabakker/todo-mcp/next-todo"><img src="https://agentmods.dev/badge/commands/peterfabakker/todo-mcp/next-todo/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 next-todo

Your own site · 80×15
<a href="https://agentmods.dev/commands/peterfabakker/todo-mcp/next-todo"><img src="https://agentmods.dev/badge/commands/peterfabakker/todo-mcp/next-todo.svg" alt="Reviewed on agentmods" width="80" 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 477 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00477
Opus 5 $0.00000 $0.00238
Sonnet 5 $0.00000 $0.00095
Haiku 4.5 $0.00000 $0.00048

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

Security

Grade A, and why

next-todo scanned grade A 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 9d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

Fetch open todos (MCP direct if available, else curl):
skills/.claude/commands/next-todo.md · 54 lines

What it actually says

/next-todo

Triggers

Use this command when the user says any of: "next-todo", "next todo", "what's next", "what's my next task", "what should I work on", "what should I do now", "what's most important", "what's at the top of my list", "most urgent task", "highest priority", "what's pressing", "what's due", "what's overdue", "anything urgent", "what's first on my list", "top priority", "what's critical right now"

Priority order

  1. Overdue items — oldest due date first
  2. High priority with an upcoming due date
  3. High priority, no due date
  4. Med priority

What to do

Read URL:

URL=$(cat ~/.config/todo-mcp/url 2>/dev/null || echo "")
[ -z "$URL" ] && echo "Run /setup-todo first" && exit 1

Fetch open todos (MCP direct if available, else curl):

curl -s -N -X POST "$URL/mcp" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"todo_list","arguments":{"params":{"done":false}}}}' \
  | grep '^data:' | python3 -c "
import sys,json
d=json.loads(sys.stdin.read()[5:])
for c in d.get('result',{}).get('content',[]):
    if c.get('type')=='text': print(c['text'])"

Pick the single top item per priority order. Present it as:

Next up [ID]: <text>
Priority: high  |  Tag: work  |  Due: 2026-04-01 (OVERDUE)

Offer two follow-ups:

  • Mark as done: tell user to say "mark [ID] done"
  • See full list: tell user to say "/list-todo"

Examples

/next-todo
what's next on my list?
what should I work on today?
anything overdue?
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. 9d ago First seen · 54 lines · 0 tokens per session scan A 0e24313e1d4b

Subscribe to this mod's changes

next-todo is a command published in the GitHub repository peterfabakker/todo-mcp (0 stars, last pushed 5mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 477 tokens. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.