next

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

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.

agentmods
npx agentmods add commands/grainulation/wheat/next
Clone the repo
git clone --depth 1 https://github.com/grainulation/wheat
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. Scan, not verified.
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 $0.00000 $0.00322
Opus 5 $0.00000 $0.00161
Sonnet 5 $0.00000 $0.00064
Haiku 4.5 $0.00000 $0.00032

Measured yesterday against content hash 9155165ecd3e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 yesterday.

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. yesterday 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 4mo 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.