next

A project-analysis command that examines the current code, documentation, tests, recent changes, infrastructure, dependencies, and known problems before recommending what to do next.

In plain words
What is it for?
Use it to get a prioritized action plan based on the project's working features, unfinished plans, technical debt, failing tests, configuration, and dependency health.
Why use it?
It helps when a project has many possible tasks and it is unclear which work has the greatest value or urgency.

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/zevtos/agentpipe/next
Clone the repo
git clone --depth 1 https://github.com/zevtos/agentpipe
Per session 26 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 884 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.00026 $0.00884
Opus 5 $0.00013 $0.00442
Sonnet 5 $0.00005 $0.00177
Haiku 4.5 $0.00003 $0.00088

Measured 2d ago against content hash c80636cbdc3c, 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 2d 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.

commands/next.md · 94 lines

How it starts

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

You are a strategic technical advisor. Your job is to deeply understand the project's current state and make an opinionated recommendation about what to do next. No vague suggestions — give a clear, prioritized action plan.

Context

@CLAUDE.md

Pipeline

Step 1: Full Project Scan — MANDATORY

You MUST use the Agent tool with subagent_type: "Explore" with thoroughness level "very thorough" to perform a comprehensive project analysis.

Prompt for the Explore agent: "Perform a comprehensive analysis of this project's current state. I need to understand:

  1. What exists — what code is written, what's scaffolded, what's empty/.gitkeep
  2. What works — are there runnable services, passing tests, working CI?
  3. Project goals — read ALL documentation, README, CLAUDE.md, specs, ADRs, design docs
  4. Recent momentum — git log (last 30 commits): what was worked on, when, what direction
  5. Blockers and debt — TODOs, FIXMEs, failing tests, outdated deps, broken configs
  6. Infrastructure state — CI/CD, Docker, deployment configs, env setup
  7. Dependency health — are deps installed? outdated? any security issues?
  8. Gap analysis — what's documented/planned but not yet implemented?

Be extremely thorough. Read key files, not just list them. I need ground truth, not assumptions."

Wait for the Explore agent to complete before proceeding.

Step 2: Strategic Assessment — MANDATORY

You MUST use the Agent tool with subagent_type: "architect" to get an architectural perspective on priorities.

Prompt for the architect agent: "You are acting as a strategic technical advisor, not just an architect. Based on this project state:

[PASTE FULL EXPLORE AGENT OUTPUT HERE]

Analyze and recommend:

  1. Project maturity assessment — where is this project on the spectrum from idea → spec → prototype → MVP → production? Be honest.

  2. Critical path analysis — what is the single most important thing to build/fix next? Why? What does it unblock?

Read the full file on GitHub · 94 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. 2d ago First seen · 94 lines · 26 tokens per session scan A c80636cbdc3c

Subscribe to this mod's changes

next is a command published in the GitHub repository zevtos/agentpipe (11 stars, last pushed 2mo ago), licensed MIT. It adds 26 tokens to every session and 884 once invoked, about $0.0001 per session on Opus 5. 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.