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.
npx agentmods add commands/madarauchiha-314/the-loop/graphgit clone --depth 1 https://github.com/MadaraUchiha-314/the-loopWrote 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.
[](https://agentmods.dev/commands/madarauchiha-314/the-loop/graph)<a href="https://agentmods.dev/commands/madarauchiha-314/the-loop/graph"><img src="https://agentmods.dev/badge/commands/madarauchiha-314/the-loop/graph.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00000 | $0.04435 |
| Opus 5 | $0.00000 | $0.02218 |
| Sonnet 5 | $0.00000 | $0.00887 |
| Haiku 4.5 | $0.00000 | $0.00443 |
Grade A, and why
graph 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 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.
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.
How it starts
The opening of the file, as written. The whole thing — 358 lines — stays where its author put it; the contents beside it link to each section on GitHub.
graph
Inspect and drive the-loop's process graph — the PDLC as an executable graph of nodes with entry and exit hooks, rather than a set of labels somebody remembers to move.
the-loop graph [--repo .] show [--format text|json]
the-loop graph [--repo .] hooks [--format text|json]
the-loop graph [--repo .] status <work-item>
the-loop graph [--repo .] advance <work-item> [--ref REF]
the-loop graph [--repo .] complete <work-item> [--node NODE] [--actor WHO] [--ref REF] [--pr N] [--pr-repo OWNER/REPO]
the-loop graph [--repo .] run <work-item> [--ref REF] [--max-nodes 20] [--dry-run]
the-loop graph [--repo .] skip <work-item> --node TOKEN [--node TOKEN…] --reason TEXT [--actor WHO] [--ref REF]
the-loop graph [--repo .] force <work-item> --to NODE --reason TEXT [--actor WHO] [--ref REF]
--repo (default .) precedes the action.
Resolving the work-item ref
Graph hooks post comments and set labels on the ticket, so they need a work-item ref:
github:OWNER/REPO#N. Every verb that runs hooks takes --ref, and none of them requires
it — the ref is resolved in three tiers
(issue-194):
--ref, when you pass one. It always wins, even against a repository that declares something else.- Derived from
ticketing.githubin the repository's harness config plus the work-item id:issue-194in a repo declaringocto/repobecomesgithub:octo/repo#194. This is what makesthe-loop graph advance issue-194work with no flags. - The bare work-item id, when neither of the above applies — a project that is not
GitHub-ticketed, or an id that is not
issue-<n>. Nothing is guessed: an owner or repository name that is not a shape GitHub accepts derives nothing rather than pointing a comment at the wrong repository.
In case 3 the outbound calls fail, and they say so. Outbound hooks are best-effort by
design — a GitHub outage must not wedge a work item at a node — but best-effort never
means silent: a hook that could not do its job adds a warning line to the command's
output and records a graph.hook_degraded event for anyone reading
the-loop events instead of a terminal.
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.
- 3d ago First seen · 358 lines · 0 tokens per session scan A 00ba345a6da6
graph is a command published in the GitHub repository MadaraUchiha-314/the-loop (4 stars, last pushed 6d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 4,435 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.
Other commands, from other repositories
brainstorm
已弃用 - 请改用 superpowers:brainstorming 技能.
execute-plan
已弃用 - 请改用 superpowers:executing-plans 技能.
gaai-audit
Show workspace audit log with filters and optional JSON export.
gaai-ask
Search workspace memory — ranked entries with 1-hop graph context (cognitive guarantee).
gaai-update
Update the GAAI framework or switch AI tool adapter.
gaai-bootstrap
Initialize or refresh project context via Bootstrap Agent.