long-run-protocol

long-run-protocol is a cursor rule for Cursor from yonatangross/orchestkit. It costs 31 tokens per session (974 once invoked), scanned A, original, MIT.

A set of rules for long coding runs involving one or more agents. It requires a named finish condition, continued work until human input is needed, and checked claims rather than assumptions.

In plain words
What is it for?
Use it to plan and supervise extended implementation runs, including deciding when work is truly done and when a human must approve a risky action.
Why use it?
It prevents agents from stopping just because a phase ended and helps distinguish verified results from unconfirmed statements.

Cursor rule for Cursor

Written for Cursor: a Cursor plugin manifest. Also seen: mentions subagents; names the AskUserQuestion tool.

Good fit Use it to plan and supervise extended implementation runs, including deciding when work is truly done and when a human must approve a risky action.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/yonatangross/orchestkit/long-run-protocol
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.

Clone the repo
git clone --depth 1 https://github.com/yonatangross/orchestkit

Made for: Cursor.

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 long-run-protocol

README.md
[![agentmods](https://agentmods.dev/badge/rules/yonatangross/orchestkit/long-run-protocol/github.svg)](https://agentmods.dev/rules/yonatangross/orchestkit/long-run-protocol)
Your own site
<a href="https://agentmods.dev/rules/yonatangross/orchestkit/long-run-protocol"><img src="https://agentmods.dev/badge/rules/yonatangross/orchestkit/long-run-protocol/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 long-run-protocol

Your own site · 80×15
<a href="https://agentmods.dev/rules/yonatangross/orchestkit/long-run-protocol"><img src="https://agentmods.dev/badge/rules/yonatangross/orchestkit/long-run-protocol.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 974 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.
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.00031 $0.00974
Opus 5.5 $0.00012 $0.00390
Sonnet 5.5 $0.00006 $0.00195
Haiku 4.5 $0.00003 $0.00097

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

Security

Grade A, and why

long-run-protocol 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 8d 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.

plugins/ork/.cursor-plugin/rules/long-run-protocol.mdc · 74 lines

How it starts

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

Long-Run Protocol

Source: Anthropic, "Getting the most out of Opus 5.5" (claude.dev/blog/getting-the-most-out-of-opus-5-5), read 2026-09-22. Quoted lines below are verbatim.

1. Name the finish line before starting

"Name the finish line, like 'the tests pass' or 'every endpoint is migrated.'" Each skill that loads this rule states its own line as Done means: .... Work until that line is met, not until the phases are ticked.

2. Keep going, and stop only where a human is needed

"When a step doesn't need my input, keep going. Put status notes in the same message as your next action. Stop and ask only when you can't continue without me, or before anything destructive: deleting data, force-pushing, or changing anything outside this repository."

Incorrect: ending a phase with "Want me to continue with phase 4?" when phase 4 needs no decision. Correct: a one-line status note, then the first action of phase 4, in the same message.

A skill's own AskUserQuestion gates (intent, scope, blast radius) still apply: they are decisions only the user can make, which is the case the rule stops for. So does the end-of-run question: when the run reaches its finish line, ask the one sign-off question from done-signoff.md (Accept done, Show me the evidence, Not satisfied) instead of declaring the work done. Non-interactive runs return the verdict as data.

3. Keep a TASKS.md for runs that can outlive the session

"Keep a checklist in TASKS.md. Tick each item when it's done, and add anything new you find." TaskCreate tracks the live session; a rate-limit kill or a relaunch loses it. When a run spans many phases or several sessions, mirror the task list into TASKS.md at the worktree root and read it first on resume. Never stage or commit it.

4. Check each subagent's evidence before accepting it

"When a subagent reports back, check its evidence before you accept it." A subagent's DONE is a claim. Accept it only when the evidence it cites is present: re-run the command, read the file and line, or open the artifact.

Read the full file on GitHub · 74 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. 8d ago Changed · +2 lines b329b96ce8f8
  2. 20d ago Changed · +10 lines f099c903ee7c
  3. 22d ago First seen · 62 lines · 31 tokens per session scan A 5a7cbd427618

Subscribe to this mod's changes

long-run-protocol is a cursor rule published in the GitHub repository yonatangross/orchestkit (295 stars, last pushed today), licensed MIT. It adds 31 tokens to every session and 974 once invoked, about $0.0001 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-09-24.