index

index is a command for Claude Code from MadaraUchiha-314/the-loop. It costs 0 tokens per session (1,310 once invoked), scanned A, original, MIT.

A command reference for the-loop, a system that runs services around software work items such as GitHub issues and pull requests.

In plain words
What is it for?
Use it to find commands for service control, daemon operations, repository work, and maintenance.
Why use it?
It shows which commands control the system and explains what each one does. This helps you start, stop, inspect, and maintain its services.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions Claude Code.

Part of the the-loop plugin — 2 skills, 37 commands, 2 hooks 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/madarauchiha-314/the-loop/index
Clone the repo
git clone --depth 1 https://github.com/MadaraUchiha-314/the-loop

Made for: Claude Code.

Or install the-loop, the plugin that ships this one along with the rest of its 2 skills, 37 commands, 2 hooks.

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 index

README.md
[![agentmods](https://agentmods.dev/badge/commands/madarauchiha-314/the-loop/index.svg)](https://agentmods.dev/commands/madarauchiha-314/the-loop/index)
Your own site
<a href="https://agentmods.dev/commands/madarauchiha-314/the-loop/index"><img src="https://agentmods.dev/badge/commands/madarauchiha-314/the-loop/index.svg" alt="Measured on agentmods" height="20"></a>
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 1,310 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.1 $0.00000 $0.01310
Opus 5 $0.00000 $0.00655
Sonnet 5 $0.00000 $0.00262
Haiku 4.5 $0.00000 $0.00131

Measured yesterday against content hash ba270c4940b9, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

index 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.

docs/cli/commands/index.md · 91 lines

How it starts

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

Commands

the-loop --help
the-loop --version
the-loop --config path/to/cli-config.yaml <command>   # must precede the subcommand

The control plane

Since issue-161 every command below that touches the-loop's state runs through the control-plane service, which is the single implementation of each capability. It is started for you on first use, so nothing here needs setting up first.

Command What it does
start Bring up every service the CLI config enables — the control-plane service (+ /mcp), the webhook receiver, the poller.
stop Stop every running the-loop service, whatever the enabled flags say now.
status Per-service liveness and the poller's progress; exit 0 iff everything enabled is running.
restart stop then start, optionally upgrading the CLI in between (--with-upgrade). Also POST /api/v1/restart.

Daemon commands

Long-running or machine-scoped. Their own settings come from the CLI config and from nowhere else — no repository configures the daemon (decision-044). When they act on a work item they still read that item's own checkout, the same way the repo-scoped commands do.

Command What it does
sessions The work-item ↔ session registry, execution control (start/pause/resume/stop), and reset — forget a work item's state so it starts over.
standing The sessions the-loop keeps for itself — no work item, addressed by name: list, start, stop, restart, and say to talk to one.
ask Post an agent's question on its work item — marker stamped centrally, wait recorded as session.awaiting_input.
add-collaborator Give one GitHub login a voice on one work item: their comments become input for its session, and nothing else.
remove-collaborator Take that voice back; it lapses on the next event.
channels Operate the conversation channels (the Slack bot): status, one poll cycle, or the Socket Mode listener.
events Query the structured event log — the answer to "why did nothing happen?".

Read the full file on GitHub · 91 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. yesterday Changed · +2 lines ba270c4940b9
  2. 5d ago First seen · 89 lines · 0 tokens per session scan A df61d01605f0

Subscribe to this mod's changes

index is a command published in the GitHub repository MadaraUchiha-314/the-loop (4 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,310 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-31.