next

next is a command for Claude Code from grainulation/wheat. It costs 0 tokens per session (322 once invoked), scanned A, original, MIT.

A command that shows the user what a research sprint just produced and offers possible next actions through Farmer, the interface used to reach the user on their phone. It chooses suggestions based on conflicts, evidence gaps, research state, and available outputs.

In plain words
What is it for?
Use it after research or another batch command to suggest resolving conflicts, gathering evidence, researching more, finding blind spots, creating outputs, or merging sprints.
Why use it?
It makes the next decision visible when the user cannot see the command-line output and helps route unfinished work to the appropriate command.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md). Also seen: names the AskUserQuestion tool.

Good fit Use it after research or another batch command to suggest resolving conflicts, gathering evidence, researching more, finding blind spots, creating outputs, or merging sprints.

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/grainulation/wheat/next"><img src="https://agentmods.dev/badge/commands/grainulation/wheat/next.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 322 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.00322
Opus 5.5 $0.00000 $0.00129
Sonnet 5.5 $0.00000 $0.00064
Haiku 4.5 $0.00000 $0.00032

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

Security

Grade A, and why

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

templates/commands/next.md · 30 lines

What it actually says

/next -- Route next steps through Farmer

You just finished a slash command or a batch of work. The user monitors via Farmer on their phone and cannot see CLI text output.

Use AskUserQuestion to present what just happened and what comes next. This is the ONLY way the user sees results.

Process

  1. Summarize what was just produced in the question text (1-2 sentences -- claim counts, key findings, what changed)

  2. Pick 2-4 next steps based on sprint state. Use this decision tree:

    • Unresolved conflicts exist -> suggest /resolve
    • Claim has no corroboration -> suggest /witness <id> <url>
    • Topic has weak evidence -> suggest /research <topic> or /prototype
    • Sprint is late-phase with gaps -> suggest /blind-spot
    • Sprint ready for output -> suggest /brief, /present, or /handoff
    • Multiple sprints exist -> suggest /merge
  3. Call AskUserQuestion with the summary as the question and next steps as options. Keep option labels short (3-5 words), put detail in descriptions.

  4. Act on the user's choice -- run whatever they picked.

Rules

  • Header should be contextual (e.g., "After /brief", "After research")
  • Don't include a "do nothing" option unless the user might genuinely want to stop
  • If agents just completed, mention how many and what they did
  • multiSelect: false unless the options are independent parallel tasks
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 · 30 lines · 0 tokens per session scan A 9155165ecd3e

Subscribe to this mod's changes

next is a command published in the GitHub repository grainulation/wheat (20 stars, last pushed 6mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 322 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.