architect-next

architect-next is a command for Claude Code from Hainrixz/the-architect. It costs 66 tokens per session (1,713 once invoked), scanned A, original, MIT.

A command that resumes a project build by finding the first unfinished task in a task list whose dependencies are complete.

In plain words
What is it for?
Run it with a project directory or tasks.json file when continuing a multi-session build.
Why use it?
It answers what should be done next in a fresh session and shows how to check whether that task is finished.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the the-architect plugin — 1 skill, 6 commands, 3 agents shipped together

Good fit Run it with a project directory or tasks.json file when continuing a multi-session build.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add Hainrixz/the-architect
Claude Code
/plugin install the-architect

Made for: Claude Code.

Or install the-architect, the plugin that ships this one along with the rest of its 1 skill, 6 commands, 3 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 architect-next

README.md
[![agentmods](https://agentmods.dev/badge/commands/hainrixz/the-architect/architect-next.svg)](https://agentmods.dev/commands/hainrixz/the-architect/architect-next)
Your own site
<a href="https://agentmods.dev/commands/hainrixz/the-architect/architect-next"><img src="https://agentmods.dev/badge/commands/hainrixz/the-architect/architect-next.svg" alt="Measured on agentmods" height="20"></a>
Per session 66 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,713 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.00066 $0.01713
Opus 5 $0.00033 $0.00856
Sonnet 5 $0.00013 $0.00343
Haiku 4.5 $0.00007 $0.00171

Measured 8d ago against content hash 501729d1bf8a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

architect-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 8d 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/architect-next.md · 130 lines

How it starts

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

/architect-next — the resume protocol

You are being invoked as /architect-next. A build that spans sessions needs one question answered in a fresh context with no memory: what do I do next, and how do I know when it is done?

This command answers it from tasks.json. Nothing else. No interview, no redesign.

Field names are defined by ${CLAUDE_PLUGIN_ROOT}/templates/tasks-schema.md — read it first and use its names verbatim. If a bundle's tasks.json disagrees with the schema, report the mismatch instead of guessing what a field meant.

Locate the bundle

Argument Do
A directory Read <dir>/tasks.json.
A tasks.json path Read it.
Empty Glob ./blueprints/*/tasks.json, then ./tasks.json. One match → use it. Several → list them and ask.
Nothing found Say so and point at /architect (new project) or /architect-brownfield (existing repo). Do not invent a task list.

Verify commands run from the target project root — the repo being built — not from the bundle directory. Every command in a task's verify array is written to be runnable from that root. If the bundle is not inside the project it builds (a design session that produced ./blueprints/<slug>/ in some other directory), say so and stop: running verify from the wrong working directory produces failures that have nothing to do with the code, and a red result nobody can trust is worse than no result. Tell the user to move the bundle into the project, or to re-run /architect-next <path-to-bundle> from the project root.

Handle an interrupted task first

Before selecting anything, look for a task whose status is in_progress. That is not a ready task — it is crash recovery. A previous session wrote in_progress before touching code and never got to finish, so the working tree may already be half-changed.

Exactly one such task can exist. When you find it:

  1. Print its card, labelled RESUMING.
  2. Run every command in its verify array. All pass → set its status to done and continue to selection. Any fail → this is the task to work on; report which commands failed and stop.
  3. Never hand out a different task while one is in_progress. Re-handing an interrupted task out as fresh work is how a build ends up applying the same migration twice.

Read the full file on GitHub · 130 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. 8d ago First seen · 130 lines · 66 tokens per session scan A 501729d1bf8a

Subscribe to this mod's changes

architect-next is a command published in the GitHub repository Hainrixz/the-architect (488 stars, last pushed 1mo ago), licensed MIT. It adds 66 tokens to every session and 1,713 once invoked, about $0.0003 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.