loop-start

A command that starts the loop-engineering workflow for reporting, planning, or building a feature.

In plain words
What is it for?
Use it to run a health report, turn an idea into a backlog specification, or implement one planned feature with tests and review.
Why use it?
It gives each type of work a defined sequence, including reading project rules, checking the backlog, and stopping when the project is paused or unsafe to modify.

Command for Claude Code

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/muzafferkadir/nextjs-loop-engineering-starter/loop-start
Clone the repo
git clone --depth 1 https://github.com/muzafferkadir/nextjs-loop-engineering-starter

Made for: Claude Code.

Per session 19 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 485 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.00019 $0.00485
Opus 5 $0.00010 $0.00243
Sonnet 5 $0.00004 $0.00097
Haiku 4.5 $0.00002 $0.00049

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

Security

Grade A, and why

loop-start 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.

.claude/commands/loop-start.md · 52 lines

What it actually says

Read the following files in order:

  1. AGENTS.md — project context, stack, rules
  2. LOOP.md — loop lifecycle, limits, denylist
  3. STATE.md — current state (if it says loop: paused, STOP immediately)
  4. BACKLOG.md — feature backlog

Then based on the argument:

If the argument is "report" or empty: Run the $loop-report skill:

  • Check open PRs, CI status, BACKLOG.md
  • Update STATE.md (High Priority, Watch List, Resolved)
  • Append to loop-run-log.md
  • DO NOT write code
  • Commit the state update: ask first if a human is present in this session; if this is an unattended scheduled run, commit and push directly to main and report the change — no PR needed for loop memory

If the argument starts with "plan": Run the $loop-plan skill with the rest of the argument as the idea (or the top BACKLOG.md ## Ideas item if no idea is given):

  • Check precedent (BACKLOG-DONE.md, loop-run-log.md, git log)
  • Fits one run → spec it into the Backlog
  • Too broad → propose a split and ASK THE HUMAN — never spec silently
  • DO NOT write code

If the argument is "build": Run the $loop-build skill:

  • Sync main: git checkout main && git pull --ff-only — dirty tree or failed pull → report in STATE.md and STOP
  • Check the lock: bash scripts/loop-lock.sh status
  • If free: acquire the lock, pick the highest-priority Backlog item
  • Implement all acceptance criteria with tests
  • Visually inspect UI changes with the $ui-verify skill
  • Run the verifier: bash scripts/run-verifier.sh — must APPROVE
  • Open a PR per the git protocol in AGENTS.md
  • Release the lock

Always run bash scripts/budget-check.sh at the start and end.

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 · 52 lines · 19 tokens per session scan A 81bae0173ca2

Subscribe to this mod's changes

loop-start is a command published in the GitHub repository muzafferkadir/nextjs-loop-engineering-starter (10 stars, last pushed 1mo ago), licensed MIT. It adds 19 tokens to every session and 485 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-31.