next

next is a command for coding agents from wessamfathi/suhail. It costs 14 tokens per session (1,996 once invoked), scanned C, original, MIT.

A command that moves an active Suhail workflow forward by exactly one step. Suhail is a plan-running coordinator that tracks work in a state file.

In plain words
What is it for?
Use it to advance the current Suhail run one tick, including past certain approval checkpoints.
Why use it?
It avoids repeatedly typing a continuation command or answering a prompt when one approved step should run. It does not start runs, repeat steps, or clear blockers.

Command

Part of the su plugin — 1 skill, 8 commands, 6 agents shipped together

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/wessamfathi/suhail/next
Clone the repo
git clone --depth 1 https://github.com/wessamfathi/suhail

Or install su, the plugin that ships this one along with the rest of its 1 skill, 8 commands, 6 agents.

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/wessamfathi/suhail/next.svg)](https://agentmods.dev/commands/wessamfathi/suhail/next)
Your own site
<a href="https://agentmods.dev/commands/wessamfathi/suhail/next"><img src="https://agentmods.dev/badge/commands/wessamfathi/suhail/next.svg" alt="Measured on agentmods" height="20"></a>
Per session 14 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,996 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. 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.00014 $0.01996
Opus 5 $0.00007 $0.00998
Sonnet 5 $0.00003 $0.00399
Haiku 4.5 $0.00001 $0.00200

Measured 3d ago against content hash b44a32edacf9, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade C, and why

next scanned grade C 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 3d 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.

Tells the agent never to refusehighAnti-refusal

Suppressing the ability to decline removes a core safety control; a later harmful request then succeeds.

4. **Run complete.** If `run_phase == "finished"`, end with: "All Parts are complete — nothing left to advance." (When every Part is terminal but `run_phase` is NOT yet `finished`, do not refuse — the run still owes the
commands/next.md · 85 lines

How it starts

The opening of the file, as written. The whole thing — 85 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/su:next — Suhail auto-stepper

You are advancing the current Suhail run by exactly one logical step. This command takes no arguments. It is a non-interactive shortcut for the user who wants to hit "next" without typing /su:go continue or answering the inter-Part "Continue?" prompt.

/su:next does NOT initialize a run, does NOT loop (even in run-to mode), and does NOT resolve blockers. It only advances one tick of the orchestrator's state machine, with two sanctioned special cases where it injects an implicit approval so the run progresses without re-prompting the user: when a Part in the current batch is gated at status == "awaiting_plan_approval" (per-Part), and when run_phase == "master_plan_approval" (batch checkpoint).

On every invocation

Run the following guards in order, short-circuiting on the first match. Each refusal is exactly one sentence and performs no file mutations.

  1. No active run. Attempt to Read .suhail/state.json. If it does not exist, end with: "No active Suhail run found — run /su:discover to draft a plan or /su:go <plan-path> to initialize one."
  2. Aborted run. Parse state.json. If top-level aborted == true, end with: "This Suhail run has been aborted — no further steps are possible."
  3. Unresolved blocker. If any Part's status == "needs_user" OR .suhail/parts/<current_part_id>/blocker.md exists without a resolution: line, end with: "A blocker is waiting at .suhail/parts/<part-id>/blocker.md — resolve it via /su:go before using /su:next."
    • Check filesystem presence of blocker.md via Read or Bash [ -f path ] (POSIX) / Test-Path path (PowerShell). Both conditions are checked (OR) — the filesystem check is the authoritative safety net in case a status was not updated.
  4. Run complete. If run_phase == "finished", end with: "All Parts are complete — nothing left to advance." (When every Part is terminal but run_phase is NOT yet finished, do not refuse — the run still owes the complete handler's finish transition (end-of-run card, run_phase = "finished"); fall through to the dispatch below and take the "All other eligible states" branch so one tick can perform it.)

Read the full file on GitHub · 85 lines

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. 3d ago First seen · 85 lines · 14 tokens per session scan C b44a32edacf9

Subscribe to this mod's changes

next is a command published in the GitHub repository wessamfathi/suhail (2 stars, last pushed 1mo ago), licensed MIT. It adds 14 tokens to every session and 1,996 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it C with 1 finding (tells the agent never to refuse). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.