loop-graph

loop-graph is a skill for Claude Code from levi-qiao/longgraph-skill. It costs 42 tokens per session (4,976 once invoked), scanned A, original, MIT.

A planning tool that turns a long, multi-round request into a graph of agent steps and saved work records. It also prepares prompts for handing the work between hosts.

In plain words
What is it for?
Use it for custom projects with checkpoints, independent reviews, work across different computers or agents, and durable progress records. It is not intended for the predefined code-cleanup, delivery, or research workflows covered by related tools.
Why use it?
It keeps complex work aligned with one agreed standard and preserves its state between rounds. An independent supervisor checks claimed results so the work does not gradually drift.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: mentions Claude Code; mentions Codex.

Part of the longgraph plugin — 5 skills shipped together

Good fit Use it for custom projects with checkpoints, independent reviews, work across different computers or agents, and durable progress records. It is not intended for the predefined code-cleanup, delivery, or research workflows covered by related tools.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/levi-qiao/longgraph-skill/loop-graph
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.

Any agent
npx skills add levi-qiao/longgraph-skill --skill loop-graph
Clone the repo
git clone --depth 1 https://github.com/levi-qiao/longgraph-skill

Made for: Claude Code.

Or install longgraph, the plugin that ships this one along with the rest of its 5 skills.

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 loop-graph

README.md
[![agentmods](https://agentmods.dev/badge/skills/levi-qiao/longgraph-skill/loop-graph/github.svg)](https://agentmods.dev/skills/levi-qiao/longgraph-skill/loop-graph)
Your own site
<a href="https://agentmods.dev/skills/levi-qiao/longgraph-skill/loop-graph"><img src="https://agentmods.dev/badge/skills/levi-qiao/longgraph-skill/loop-graph/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for loop-graph

Your own site · 80×15
<a href="https://agentmods.dev/skills/levi-qiao/longgraph-skill/loop-graph"><img src="https://agentmods.dev/badge/skills/levi-qiao/longgraph-skill/loop-graph.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,976 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Excessive Agency · line 112
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
How audits are shown
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.00042 $0.04976
Opus 5.5 $0.00017 $0.01990
Sonnet 5.5 $0.00008 $0.00995
Haiku 4.5 $0.00004 $0.00498

Measured 1mo ago against content hash ac2dea1cf33f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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 1mo 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.

skills/loop-graph/SKILL.md · 227 lines

How it starts

The opening of the file, as written. The whole thing — 227 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.

Read the full file on GitHub · 227 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. 1mo ago Changed · +1 lines · -42 tokens per session ac2dea1cf33f
  2. 1mo ago Changed 9422562aa970
  3. 1mo ago First seen · 226 lines · 84 tokens per session scan A 5a80851e182b

Subscribe to this mod's changes

loop-graph is a skill published in the GitHub repository levi-qiao/longgraph-skill (78 stars, last pushed 1mo ago), licensed MIT. It adds 42 tokens to every session and 4,976 once invoked, about $0.0002 per session on Opus 5.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.

Related

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.

Jacky040124/claude-team-orchestrator · 74 tokens

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.

ElazarKrispel/orchestra · 67 tokens

sparc-methodology

SPARC (Specification, Pseudocode, Architecture, Refinement, Completion) comprehensive development methodology with multi-agent orchestration.

ruvnet/RuView · 29 tokens

agent-framework-py-release

Use when cutting a Python release for the microsoft/agent-framework monorepo. Triggers on "bump py versions", "cut a python release", "prepare release PR for python", "release py packages", "bump python to X.Y.Z", or similar requests to bump Python package versions and prepare a release PR. Handles all four lifecycle…

microsoft/agent-framework · 103 tokens

foundry-hosted-agent-validation

Step-by-step process for validating a Python Foundry hosted agent sample (under python/samples/04-hosting/foundry-hosted-agents/) end to end — running it locally (native runtime and azd ai agent run) and after deploying it to an Azure AI Foundry project with azd. Use this when asked to validate a hosted agent sample.

microsoft/agent-framework · 82 tokens

build-and-test

How to build and test .NET projects in the Agent Framework repository. Use this when verifying or testing changes.

microsoft/agent-framework · 26 tokens