loopx-self-repair
Skill6.8k starsChanged 2 months agoApache-2.0View on GitHub
Diagnose and repair LoopX control-plane drift or agent behavior drift. Use when a LoopX task makes unexpectedly small progress, follows a stale or contradictory recommended_action, ignores a higher-priority blocked item while doing fallback work, reports vague owner/user gates, loses todo projection, misaligns benchmark treatment with the real product path, mixes temporary artifacts into commits, or when the user asks for root-cause analysis, self-repair, or why the harness/agent behaved unexpectedly.
1 other project uses a version of this.
Trending
More talk lately.about the whole repository
Most recently taken up by
- huangruiteng/loopxword for word, first seen Sep 26, 2026
Who's talking about loopx-project/loopx
- sudosubin/agents.nix“agent-skills.github.loopx-project.loopx: f7cd7aa → fe41e87”GitHub · Nov 22, 2026
- sudosubin/agents.nix“agent-skills.github.loopx-project.loopx: 2.4.0 → 0-unstable-2026-11-22”GitHub · Nov 22, 2026
- sudosubin/agents.nix“agent-skills.github.loopx-project.loopx: 0-unstable-2026-11-21 → 2.4.0”GitHub · Nov 22, 2026
- awesome-dsh-plugin/awesome-dsh-plugin“chore(loopx): pin published DSH plugin beta.7”GitHub · Nov 21, 2026
- sudosubin/agents.nix“agent-skills.github.loopx-project.loopx: f8d4971 → f0018b1”GitHub · Nov 21, 2026
The biggest 5 of 50 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 50
Talked about on GitHub (50 times).
On GitHub · 50
- Nov 22, 2026agent-skills.github.loopx-project.loopx: f7cd7aa → fe41e87 — sudosubin/agents.nix0 reactions
- Nov 22, 2026agent-skills.github.loopx-project.loopx: 2.4.0 → 0-unstable-2026-11-22 — sudosubin/agents.nix0 reactions
- Nov 22, 2026agent-skills.github.loopx-project.loopx: 0-unstable-2026-11-21 → 2.4.0 — sudosubin/agents.nix0 reactions
- Nov 21, 2026chore(loopx): pin published DSH plugin beta.7 — awesome-dsh-plugin/awesome-dsh-plugin0 reactions · 1 comment
- Nov 21, 2026agent-skills.github.loopx-project.loopx: f8d4971 → f0018b1 — sudosubin/agents.nix0 reactions
45 more on GitHub
- Nov 21, 2026agent-skills.github.loopx-project.loopx: ddba6bf → f8d4971 — sudosubin/agents.nix0 reactions
- Nov 21, 2026agent-skills.github.loopx-project.loopx: 0-unstable-2026-11-20 → 0-unstable-2026-11-21 — sudosubin/agents.nix0 reactions
- Nov 20, 2026agent-skills.github.loopx-project.loopx: 0-unstable-2026-11-18 → 0-unstable-2026-11-20 — sudosubin/agents.nix0 reactions
- Nov 18, 2026agent-skills.github.loopx-project.loopx: b03e7b6 → f9bb5e3 — sudosubin/agents.nix0 reactions
- Nov 18, 2026agent-skills.github.loopx-project.loopx: 0-unstable-2026-11-17 → 0-unstable-2026-11-18 — sudosubin/agents.nix0 reactions
- Nov 17, 2026agent-skills.github.loopx-project.loopx: f89f45a → fd4b559 — sudosubin/agents.nix0 reactions
- Nov 17, 2026agent-skills.github.loopx-project.loopx: 0-unstable-2026-11-16 → 0-unstable-2026-11-17 — sudosubin/agents.nix0 reactions
- Nov 16, 2026agent-skills.github.loopx-project.loopx: f38fae0 → f585427 — sudosubin/agents.nix0 reactions
- Nov 16, 2026agent-skills.github.loopx-project.loopx: 0-unstable-2026-11-15 → 0-unstable-2026-11-16 — sudosubin/agents.nix0 reactions
- Nov 15, 2026agent-skills.github.loopx-project.loopx: eaff94c → fef679d — sudosubin/agents.nix0 reactions
- Nov 15, 2026agent-skills.github.loopx-project.loopx: 0-unstable-2026-11-14 → 0-unstable-2026-11-15 — sudosubin/agents.nix0 reactions
- Nov 14, 2026agent-skills.github.loopx-project.loopx: dd44cdc → f5383cb — sudosubin/agents.nix0 reactions
- Nov 14, 2026agent-skills.github.loopx-project.loopx: 0-unstable-2026-11-13 → 0-unstable-2026-11-14 — sudosubin/agents.nix0 reactions
- Nov 13, 2026agent-skills.github.loopx-project.loopx: 441c607 → eba8a7f — sudosubin/agents.nix0 reactions
- Nov 13, 2026agent-skills.github.loopx-project.loopx: 0-unstable-2026-11-12 → 0-unstable-2026-11-13 — sudosubin/agents.nix0 reactions
- Nov 12, 2026agent-skills.github.loopx-project.loopx: 0-unstable-2026-11-11 → 0-unstable-2026-11-12 — sudosubin/agents.nix0 reactions
- Nov 11, 2026agent-skills.github.loopx-project.loopx: e251264 → eddd08d — sudosubin/agents.nix0 reactions
- Nov 11, 2026agent-skills.github.loopx-project.loopx: beff0f3 → e251264 — sudosubin/agents.nix0 reactions
- Nov 11, 2026agent-skills.github.loopx-project.loopx: 0-unstable-2026-11-10 → 0-unstable-2026-11-11 — sudosubin/agents.nix0 reactions
- Nov 10, 2026agent-skills.github.loopx-project.loopx: 2.3.0 → 0-unstable-2026-11-10 — sudosubin/agents.nix0 reactions
- Nov 9, 2026agent-skills.github.loopx-project.loopx: 0-unstable-2026-11-08 → 2.3.0 — sudosubin/agents.nix0 reactions
- Nov 8, 2026agent-skills.github.loopx-project.loopx: b78246f → fe36f31 — sudosubin/agents.nix0 reactions
- Nov 8, 2026agent-skills.github.loopx-project.loopx: 0-unstable-2026-11-07 → 0-unstable-2026-11-08 — sudosubin/agents.nix0 reactions
- Nov 7, 2026agent-skills.github.loopx-project.loopx: ebb39f4 → fa266a2 — sudosubin/agents.nix0 reactions
- Nov 7, 2026agent-skills.github.loopx-project.loopx: 0-unstable-2026-11-06 → 0-unstable-2026-11-07 — sudosubin/agents.nix0 reactions
- Nov 6, 2026agent-skills.github.loopx-project.loopx: 0-unstable-2026-11-05 → 0-unstable-2026-11-06 — sudosubin/agents.nix0 reactions
- Nov 6, 2026agent-skills.github.loopx-project.loopx: f0a668c → faab5f5 — sudosubin/agents.nix0 reactions
- Nov 5, 2026agent-skills.github.loopx-project.loopx: 2.2.0 → 0-unstable-2026-11-05 — sudosubin/agents.nix0 reactions
- Nov 1, 2026agent-skills.github.loopx-project.loopx: 0-unstable-2026-11-01 → 2.2.0 — sudosubin/agents.nix0 reactions
- Nov 1, 2026agent-skills.github.loopx-project.loopx: 9fdef99 → b000bf3 — sudosubin/agents.nix0 reactions
- Nov 1, 2026agent-skills.github.loopx-project.loopx: 0-unstable-2026-10-31 → 0-unstable-2026-11-01 — sudosubin/agents.nix0 reactions
- Oct 31, 2026agent-skills.github.loopx-project.loopx: 0-unstable-2026-10-30 → 0-unstable-2026-10-31 — sudosubin/agents.nix0 reactions
- Oct 30, 2026agent-skills.github.loopx-project.loopx: 26f7305 → 04c5799 — sudosubin/agents.nix0 reactions
- Oct 30, 2026agent-skills.github.loopx-project.loopx: 2f544f9 → 26f7305 — sudosubin/agents.nix0 reactions
- Oct 30, 2026refactor(accounts): import the LoopX native account owner — huangruiteng/dotfiles0 reactions
- Oct 30, 2026agent-skills.github.loopx-project.loopx: 0-unstable-2026-10-29 → 0-unstable-2026-10-30 — sudosubin/agents.nix0 reactions
- Oct 29, 2026agent-skills.github.loopx-project.loopx: 2.1.1 → 0-unstable-2026-10-29 — sudosubin/agents.nix0 reactions
- Oct 23, 2026agent-skills.github.loopx-project.loopx: 2.1.0 → 2.1.1 — sudosubin/agents.nix0 reactions
- Oct 22, 2026agent-skills.github.loopx-project.loopx: 2.0.0 → 2.1.0 — sudosubin/agents.nix0 reactions
- Oct 20, 2026agent-skills.github.loopx-project.loopx: 1.4.2 → 2.0.0 — sudosubin/agents.nix0 reactions
- Oct 15, 2026agent-skills.github.loopx-project.loopx: 1.4.1 → 1.4.2 — sudosubin/agents.nix0 reactions
- Oct 15, 2026agent-skills.github.loopx-project.loopx: 1.4.0 → 1.4.1 — sudosubin/agents.nix0 reactions
- Oct 15, 2026docs: restore LoopX upstream link and identify the vendored version — GGbond-bo/MemOmics-Agent0 reactions
- Oct 14, 2026agent-skills.github.loopx-project.loopx: init at 1.4.0 — sudosubin/agents.nix0 reactions
- Oct 12, 2026Add LoopX harness detection — auron-labs/harness-detect0 reactions
Other versions1 project uses a version of this.
Word for word · 1
- huangruiteng/loopx★ 6.8k100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
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 repository11 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- loopx-benchmarkSkill
- loopx-change-qualitySkill
- loopx-doc-registrySkill
- loopx-materialSkill
- loopx-performance-diagnosisSkill
- loopx-pr-mergeSkill
- loopx-projectSkill
- loopx-pr-programSkill
- loopx-pr-reviewSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
25 rules. About 0 are common, 15 are distinctive, and 10 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈15
Distinctive · estimate
This author's own choices. Worth a look.
10
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Use this skill to turn a surprising LoopX behavior into a durable fix, not only an apology or a one-off explanation.
- Distinctive: line 13
Pause delivery selection: Do not spend quota or continue adapter work until the control-plane facts explain why that work is valid.
- Distinctive: line 15
Reuse evidence before collecting more: Start with the current failed command's structured response, error code and operation identity.
- Distinctive: line 19
Read targeted diagnostics when deciding which missing fact to collect or investigating slow commands.
- Very specific: line 24
Look up the symptom: Run python3 scripts/find_pattern.py --query '<error code or symptom terms>' from this skill directory, or invoke its …
- Distinctive: line 38
If it is a one-off agent mistake, write back the correct state/todo and size the next scoped effort to its verifiable result, evidence and …
- Very specific: line 40
If the machine projection misled the agent, fix CLI/status/quota projection and add a focused smoke.
- Distinctive: line 42
If a direct user correction changes what counts as success, first update the matching durable outcome requirements through outcome …
- Distinctive: line 45
Read back and reconcile affected work before dependent execution.
- Very specific: line 53
If the corrected requirements also change the execution route, the agent missed the intended loop, or a product bottleneck is invisible in …
- Distinctive: line 62
If a design rule is missing, update the interaction model or todo list before implementing broad behavior.
- Distinctive: line 64
If benchmark evidence is not attributable, add posthoc trace/parity checks before claiming uplift or regression.
- Very specific: line 66
Validate before resuming: Run the smallest smoke or CLI check that would have caught the issue, plus loopx check on changed public surfaces …
- Distinctive: line 69
Write back the lesson: Update active goal state, docs, contributor tasks, or this skill so the same failure mode is visible next time.
- Distinctive: line 72
When work repeatedly enters a receipt-owned retry, first check the caller's typed outcome against the selected Todo.
- Very specific: line 98
Read references/upstream-issue-escalation.md before publishing anything.
- Distinctive: line 105
search open and closed issues by a stable fingerprint before creating one.
- Very specific: line 108
create at most one issue per repair turn, then record the existing or new issue URL in the relevant LoopX todo/evidence writeback.
- Distinctive: line 111
If qualification, authority, authentication, boundary scanning, or duplicate search is uncertain, preserve the draft and stop before …
- Very specific: line 117
Use the bounded vision contract when self-repair discovers that LoopX did not notice a missing outcome, route, or acceptance condition by …
- Very specific: line 147
If the repair concludes that the existing per-agent vision is still correct, close the required checkpoint with --vision-unchanged-reason …
- Distinctive: line 162
Do not read or commit raw private logs, trajectories, verifier output, credentials, internal links, or production material.
- Very specific: line 164
Do not solve contradictory payloads by guessing.
- Distinctive: line 176
Do not let fallback work hide the primary blocker.
- Distinctive: line 179
Do not equate bounded work with a small operation.
≈ “Common” is an estimate: at least 1 in 5 of the 383,637 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
LoopX Self Repair
Use this skill to turn a surprising LoopX behavior into a durable fix, not only an apology or a one-off explanation.
Repair Loop
- Pause delivery selection. Do not spend quota or continue adapter work until the control-plane facts explain why that work is valid.
- Reuse evidence before collecting more. Start with the current failed command's structured response, error code and operation identity. An already loaded packet is evidence for that observation, not permission for a later write. Fetch fresh authority when required by its admission/lease contract. Read targeted diagnostics when deciding which missing fact to collect or investigating slow commands. Do not run diagnose, status, quota and history as a fixed preflight: diagnose already composes status and quota work. Recording an already-understood repair Todo does not require rediscovering the incident.
- Look up the symptom. Run
python3 scripts/find_pattern.py --query '<error code or symptom terms>'from this skill directory, or invoke its absolute path. Use--id <returned-id>to read the relevant full guidance. Search instructions explain pagination and fallback. Do not load the complete catalog, paginate it into context, or reread unchanged references already available in this task. If no pattern fits, diagnose from current facts and add one after the fix. - Assign the responsible layer. Separate:
- agent behavior mistake;
- state projection or quota payload bug;
- active-state authoring gap;
- benchmark harness mismatch;
- docs/process hygiene gap.
- Repair at the lowest durable layer.
- If it is a one-off agent mistake, write back the correct state/todo and size the next scoped effort to its verifiable result, evidence and risk.
- If the machine projection misled the agent, fix CLI/status/quota projection and add a focused smoke.
- If a direct user correction changes what counts as success, first update the matching durable outcome requirements through outcome refinement. Read back and reconcile affected work before dependent execution. Preserve unaffected requirements. A changed purpose or added lasting responsibility in the current Goal uses its objective revision route. For an addition, keep existing commitments and reconcile Todos in that Goal. Use existing creation for an explicit separate Goal and reconcile scope conflicts before revising. Chat, a peer message, a report or Vision alone cannot update acceptance. Do not invent a new approval, goal or text classifier.
- If the corrected requirements also change the execution route, the agent
missed the intended loop, or a product bottleneck is invisible in
quota/status, write a bounded
goal_vision_replan_contract_v0packet withreplan_trigger_summarythrough normalloopx refresh-state --vision-*fields, using the same--agent-idas the current lane, or--agent-vision-jsonfor generated multi-field patches, before returning to delivery. If the next executable step is already known, also add or link the concrete successor todo; do not leave the correction only in chat or an incident note. - If a design rule is missing, update the interaction model or todo list before implementing broad behavior.
- If benchmark evidence is not attributable, add posthoc trace/parity checks before claiming uplift or regression.
- Validate before resuming. Run the smallest smoke or CLI check that would
have caught the issue, plus
loopx checkon changed public surfaces when docs/contracts changed. - Write back the lesson. Update active goal state, docs, contributor tasks, or this skill so the same failure mode is visible next time.
When work repeatedly enters a receipt-owned retry, first check the caller's
typed outcome against the selected Todo. Rejecting a candidate with new,
validated evidence can advance an evaluation Todo while leaving the broader
stage open; it is not automatically an execution blocker. Pure reuse or setup
does not qualify as progress. Use blocked only when the Todo's actual next
step cannot execute, preserve genuine retry clocks, and replan finite answered
questions through the existing Todo/vision. Finishing one question or submitting
its PR does not close an ongoing user objective. Use the retained requirements
and already authorized sources to select the next useful independent slice;
source discovery does not need a new human assignment. Missing cost,
comprehension, adoption or review evidence limits the corresponding claim or
dependent operation, not all research or implementation. Do not retire an
ongoing vision merely to suppress replan. If an earlier authoring mistake did
so, repair the original Todo/vision, keep genuine dependency waits scoped, and
verify that the public entrypoint admits independent work before continuing it.
Preserve actual authority, budget and stop conditions; when no useful authorized
work remains, retain the evidenced wait rather than inventing activity. Never
erase receipts or fabricate progress to escape a wait. See
settlement classification.
Upstream Issue Escalation
A public GitHub issue is an optional final escalation. Consider it only when the responsible layer is a reusable LoopX product, CLI, skill, installer, or control-plane gap and durable upstream tracking adds value beyond the local repair or PR.
Read references/upstream-issue-escalation.md before publishing anything.
Invoking this skill never grants publication permission. The guarded path must:
- reject private, project-specific, support-only, and security-sensitive reports;
- reduce the evidence to a minimal public-safe reproduction and scan the
draft with
loopx check; - search open and closed issues by a stable fingerprint before creating one;
- auto-submit only under explicit current-turn approval or durable owner opt-in; otherwise show the exact draft and ask once for confirmation;
- create at most one issue per repair turn, then record the existing or new issue URL in the relevant LoopX todo/evidence writeback.
If qualification, authority, authentication, boundary scanning, or duplicate search is uncertain, preserve the draft and stop before publication. Prefer a direct fix or PR when no separate issue is needed for coordination.
Vision / Replan Writeback
Use the bounded vision contract when self-repair discovers that LoopX did not notice a missing outcome, route, or acceptance condition by itself. Persist a changed user acceptance requirement through its owner first; Vision records the execution response, not a replacement acceptance contract. The packet is the bridge from human or agent insight to quota-visible replan state:
{
"schema_version": "goal_vision_replan_contract_v0",
"state": "vision_drift_detected",
"vision_patch": {
"vision_summary": "Name the corrected route or acceptance target.",
"acceptance_summary": "Name the machine-visible condition that must hold.",
"replan_trigger_summary": "Name why the current frontier is insufficient."
},
"todo_delta": ["create_successor"]
}Record it with normal inline refresh-state --vision-summary
--vision-acceptance --vision-replan-trigger fields using the same --agent-id
that ran the repair. Use --agent-vision-json when a generated patch is clearer
than a command line. Replan closes only through a typed semantic observation or
an atomic Todo transition bound with --replan-obligation-id, a typed
--action-kind, and a stable --target-key or Explore node ref; do not append
a second --autonomous-replan-recorded repair ACK. A vision patch without a
runnable Todo is still useful: quota should-run can promote its
replan_trigger_summary into goal_frontier_projection.acceptance_gaps[] when
the advancement frontier is empty.
If the repair concludes that the existing per-agent vision is still correct,
close the required checkpoint with --vision-unchanged-reason instead of
writing a fake patch. If a material refresh-state lacks both a patch and an
unchanged/no-follow-up decision, LoopX should preserve a per-agent
vision_checkpoint_v0 with decision=missing_required so the same agent's
next quota check can enter replan. A scheduler wake alone is not a material
vision boundary: when quota explicitly projects a normally admitted open
advancement Todo as delivery_boundary=in_flight_continuation, use the
projected settlement command and do not invent a vision patch. The next
heartbeat keeps that same Todo selected only after accountable
outcome_progress; Todo completion, blocker/gap, durable Next Action change,
replan, or terminal closeout must return to the strict semantic checkpoint.
Evidence Discipline
- Do not read or commit raw private logs, trajectories, verifier output, credentials, internal links, or production material.
- Do not solve contradictory payloads by guessing. If
recommended_action,goal_boundary.write_scope, todos, and interaction contract disagree, treat that as a projection bug or state authoring bug first. - Separate priority advice from authority. Use the planning horizon and current user direction to choose useful in-scope work; do not treat P0/P1 order as a permission gate or relabel every task to escape it. Before explaining a refusal as recovery protection, check whether a settlement identity is actually bound. Priority-only rejection of an eligible explicit choice is a control-plane defect. Preserve real gates and record the changed route in existing Todo/vision state. A committed Turn may finish with progress while its Todo stays open; settle and release before switching, rather than treating the binding as an obligation to finish that entire Todo first.
- Do not let fallback work hide the primary blocker. When a higher-priority path is gated but safe fallback is valid, report both the concrete gate and the fallback progress.
- Do not equate bounded work with a small operation. If turns repeatedly stop after setup or surface-only edits, check whether a verifiable result could have been reached within scope and budget. Repair the premature stop, not by imposing a minimum number of calls/files or ignoring explicit stop conditions.
Reference Routes
- For known symptom-to-repair mappings, search with
scripts/find_pattern.py;references/pattern-lookup.mdexplains the lookup, not a required full read. - For missing facts, slow commands and response truncation, read
references/targeted-diagnostics.md. - For guarded public GitHub issue escalation, read
references/upstream-issue-escalation.md. - For user/agent/state channel semantics, read docs/state-interaction-model.md and docs/concepts/interaction-pattern-catalog.md.
- For quota and heartbeat decisions, read docs/quota-allocation.md and docs/heartbeat-automation-prompt.md.
- For commit/PR hygiene failures, read AGENTS.md.
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.

