operate
Skill2 starsChanged 6 months agoMITView on GitHub
Supervise a long-running, unattended agent run — an autonomous loop or a scheduled wake-up — that self-checkpoints against the repo's eval skills so it can't silently drift. Rides the platform's /loop + /schedule; adds halting guardrails (iteration cap, wall-clock budget, drift) and durable run state. Opt-in; not wired into the default pipeline. Use when a task needs many iterations or to run on a cadence without a human watching each step.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- Mumega-com/mcpwp-claude-plugintheir own version, first seen Jun 9, 2026
- uac-ops/founder-stacktheir own version, first seen Jun 8, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- Mumega-com/mcpwp-claude-plugin★ 4same name
- uac-ops/founder-stack★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository35 other files it gives its agents.
- rules/agents.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- architectSkill
- benchmarkSkill
- build-fixSkill
- deploySkill
- design-reviewSkill
- designSkill
- discoverSkill
- evalSkill
- extractSkill
- fixSkill
- harness-implementSkill
- harness-maintainSkill
- harness-planSkill
- harnessSkill
- harness-verifySkill
- healthSkill
- implementSkill
- lazySkill
- observeSkill
- onboardSkill
- orchestrateSkill
- plan-checkSkill
- planSkill
- refactor-cleanSkill
- researchSkill
- resume-sessionSkill
- reviewSkill
- save-sessionSkill
- security-reviewSkill
- shipSkill
- specSkill
- testSkill
- verifySkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 45
Scheduled / cron: use the platform /schedule to wake on a cadence.
- Very specific: line 50
Report on halt: Always end with the run summary: iterations run, budget spent, last verdict, halt reason.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
/operate — run long, without silent drift
Goal: let an agent work unattended across many iterations (or wake on a schedule) and
guarantee it halts rather than drifting — spinning on a dead end, burning budget, or
quietly breaking the repo. This skill is the discipline layer: the platform /loop and
/schedule are the engine; /harness-claude:operate adds guardrails, durable state, and a drift check
wired to the harness's own eval skills.
Opt-in. No default-pipeline skill or hook starts a run. Running long is always explicit. Git boundary: a run never commits or pushes unless you explicitly arm it for that in the objective; branch creation for the run's non-trivial work follows
rules/git.md(branch-at-first-write).
How it works
Each iteration the operator does one increment of work, then runs a checkpoint:
node scripts/operate/step.js --id <run-id> [--spec <path>] [--cmd '<check>' ...] \
[--max-iterations <n>] [--max-fails <n>] [--budget-ms <n>]step.js loads the durable run state (.claude/runs/<id>.json), runs the drift check —
harness-claude:health (test/lint pulse) and, when --spec is set, harness-claude:eval
(acceptance-criteria gate) — updates and persists state, evaluates the guardrails, and exits:
- 0 = continue — schedule the next iteration.
- 1 = halt — a guardrail tripped (
drift|budget|iteration-cap); stop and report. - 2 = usage/error — fix the invocation (e.g. missing
--id).
The state file is the sole source of truth across firings — each /loop firing may be a
fresh context, so iteration count, budget spent, and the consecutive-fail counter persist there
and resume automatically. Config flags are honored only when the run is first created; later
firings ignore them so counts accumulate rather than reset.
Do this
- Frame the run. Name a one-line objective, a
--max-iterationsceiling, a drift threshold--max-fails(default 2 — one failure can be transient, two is a trend), and a--budget-mswall-clock cap. Point--specat the spec the run must keep satisfying when one exists (that arms theharness-claude:evalhalf of the drift check). - Pick a trigger.
- Interval / autonomous: drive iterations with the platform
/loop(fixed interval) or let the model self-pace; each firing advances the work one increment, then callsstep.js. - Scheduled / cron: use the platform
/scheduleto wake on a cadence; each wake runs one checkpointed iteration.
- Interval / autonomous: drive iterations with the platform
- Supervise by exit code. Continue on
0; on1, stop the loop, read the printed summary, and surface the halt reason and the failing criterion — never restart blindly past adrifthalt. Delegate the per-iteration work to theharness-claude:loop-operatoragent. - Report on halt. Always end with the run summary: iterations run, budget spent, last
verdict, halt reason. (
step.jsprints it; relay it.)
Guardrails (each can HALT — priority: drift > budget > iteration-cap)
- drift —
--max-failsconsecutive failing checkpoints → stop and surface. The "can't silently diverge" guarantee. Outranks the benign ceilings. On a drift halt the failing check itself is recorded secret-safely in the eval artifact.claude/eval/continuous/latest.json(check name + command + pass, never output) — read it to see what failed after the fact. - budget — wall-clock (
--budget-ms) exceeded. (Token/cost is best-effort in v1 — a plain/loopdoesn't expose token spend; lean on wall-clock + iteration count.) - iteration-cap —
--max-iterationsreached.
0is a live cap, not "off".--max-iterations 0halts before any work,--max-fails 0halts on the first checkpoint,--budget-ms 0halts at once. To disable a cap, omit the flag.
Security & trust
step.jsshells the eval runners, which execute the repo's own check commands / specevalfences with your privileges — same trust boundary asharness-claude:health/harness-claude:eval. Don't/operatea repo whose checks you don't trust.- Secret-safe: the run state records only metrics, verdicts, and the halt reason — never a check's output (the eval runners stream output to the tty and capture nothing).
Notes
- Self-contained: pure Node (
scripts/operate/{step,state,guardrails}.js) + the existing eval runners. No new dependency, no new MCP server. - Distinct from a one-shot
harness-claude:verify: this is a bounded, guarded, many-iteration run with durable state.
Exit criterion
A run has reached a clean halt (done, iteration-cap, budget, or drift) with its summary
reported, and on drift the failing criterion surfaced — never a run left silently looping.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

