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 skills/levi-qiao/longgraph-skill/loop-graphnpx skills add levi-qiao/longgraph-skill --skill loop-graphgit clone --depth 1 https://github.com/levi-qiao/longgraph-skillWhat 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.00084 | $0.04999 |
| Opus 5 | $0.00042 | $0.02499 |
| Sonnet 5 | $0.00017 | $0.01000 |
| Haiku 4.5 | $0.00008 | $0.00500 |
Grade A, and why
loop-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 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.
How it starts
The opening of the file, as written. The whole thing — 226 lines — stays where its author put it; the contents beside it link to each section on GitHub.
loop-graph — a graph of agent nodes, not a drifting loop
Module boundary
This is the shared compiler, not a goal-specific workflow. It owns the graph shape, the five runtime artifact schemas, generic interview mechanics, and host handoff. A focused preset owns only its North Star, proof, interview questions, recommended work shape, method guards, knobs, and slug; it never forks templates or adds a runtime node.
Use ../loop-converge/SKILL.md for code cleanup,
../loop-deliver/SKILL.md for requirement delivery,
and ../loop-research/SKILL.md for evidence-led
solution selection. Use this skill directly only when a custom pack is genuinely
needed. The exact contract is in docs/preset-contract.md.
What it does & why
Turns a vague long-horizon request ("make it production-ready", "accuracy above baseline", "finish the migration") into a small graph of agent nodes that stays on-spec across many rounds:
- an executor node — drives the work round by round against a single scoreboard;
- a supervisor node — audits the work from outside the executor's context (re-verifying claimed-done against the shared standards) and corrects course before drift compounds.
Why a graph, not a loop: an agent grinding a long task is inside the context that drifted, so it rationalizes scope creep and calls half-done work "done". The nodes talk only through durable, inspectable state (ledger, git tree, directives file) — never a shared, polluted context.
Each node runs on its own timer, and no node ever wakes another. The executor fires, closes several verified rounds on warm context, and ends. The supervisor fires on a slower cadence, audits, appends corrections, and ends. A correction is picked up on the executor's next fire. Two independent clocks and one file edge — no dispatch, no resume prompt, no liveness protocol, and therefore nothing that can leave the run waiting for a wake that never comes.
What ships with it
31 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- docs/model.md 7.8 KB
- docs/preset-contract.md 2.8 KB
- examples/add-tests-to-cli/executor.md 3.2 KB
- examples/add-tests-to-cli/ledger.md 2.9 KB
- examples/add-tests-to-cli/README.md 2.0 KB
- examples/migrate-blob-storage/archive/directives.md 1.3 KB
- examples/migrate-blob-storage/archive/rounds.md 602 B
- examples/migrate-blob-storage/directives.md 360 B
- examples/migrate-blob-storage/executor.md 6.1 KB
- examples/migrate-blob-storage/ledger.md 3.6 KB
- examples/migrate-blob-storage/README.md 5.0 KB
- examples/redacted-multiday-control-plane/README.md 6.7 KB
- examples/redacted-multiday-control-plane/README.zh-CN.md 5.8 KB
- examples/scout-library-choice/README.md 4.4 KB
- examples/self-iteration-longgraph-skill/README.md 6.5 KB
- examples/self-iteration-longgraph-skill/README.zh-CN.md 6.0 KB
- README.md 16 KB
- README.zh-CN.md 15 KB
- references/claude-code.md 4.2 KB
- references/codex.md 5.4 KB
- references/cursor.md 1.9 KB
- references/grok.md 3.9 KB
- references/shell-cron.md 1.8 KB
- templates/directives.md 2.6 KB
- templates/executor.md 11 KB
- templates/findings.md 1.7 KB
- templates/handoff.md 867 B
- templates/ledger.md 7.8 KB
- templates/ops-and-environment.md 5.0 KB
- templates/scout.md 4.8 KB
- templates/supervisor.md 7.4 KB
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.
- 2d ago First seen · 226 lines · 84 tokens per session scan A 5a80851e182b
loop-graph is a skill published in the GitHub repository levi-qiao/longgraph-skill (67 stars, last pushed 13d ago), licensed MIT. It adds 84 tokens to every session and 4,999 once invoked, about $0.0004 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.
Other skills, from other repositories
team-orchestrator
Spawn an agent team from a predefined role pool (frontend designer, backend developer, researcher, tester, refactorer). Selects the right subset based on the task. Use when the user says "/team", "spawn team", "create team", "start team", or wants to set up a multi-agent development team for a project task.
orchestra
Run an oversized task as a parallel multi-session sprint: one conductor, several work managers in dedicated git worktrees, a file-based mailbox for coordination, watchdog supervision, and a clean teardown. Trigger: /orchestra for a new sprint, /orchestra resume to warm-boot into a running one.
agent-orchestrator
Meta-skill que orquestra todos os agentes do ecossistema. Scan automatico de skills, match por capacidades, coordenacao de workflows multi-skill e registry management.
crewai-multi-agent
Multi-agent orchestration framework for autonomous AI collaboration. Use when building teams of specialized agents working together on complex tasks, when you need role-based agent collaboration with memory, or for production workflows requiring sequential/hierarchical execution. Built without LangChain dependencies…
project-orchestration
Orchestrate multi-agent workflows for feature development using planning agents, context handoff, and stage management.
hyperflow
Use when applying Hyperflow's orchestration doctrine in Codex, Antigravity, Grok, or another single-agent surface. Auto-invoke for non-trivial engineering work: build, implement, add, refactor, debug, fix, review, audit, plan, scope, design, brainstorm, ship, or deploy. Trigger with /hyperflow:hyperflow, "use…