fable-loop

A workflow for completing technical tasks through planning, action, checking, and reporting, with extra agents gathering evidence and trying to find faults. An agent is a separate task-focused AI worker.

In plain words
What is it for?
It is for code and project changes that need research during planning and adversarial checking afterward. Supporting agents search for evidence and try to disprove the result, while the main agent makes edits.
Why use it?
It reduces the chance that important evidence or defects are missed before work is considered complete. The main agent keeps control of decisions and file changes.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/ardhaecosystem/fable-method/fable-loop
Any agent
npx skills add ardhaecosystem/fable-method --skill fable-loop
Clone the repo
git clone --depth 1 https://github.com/ardhaecosystem/fable-method

Made for: Claude Code, Codex.

Per session 108 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,497 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00108 $0.02497
Opus 5 $0.00054 $0.01248
Sonnet 5 $0.00022 $0.00499
Haiku 4.5 $0.00011 $0.00250

Measured 2d ago against content hash bd3387216dd7, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

fable-loop 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.

skills/software-development/fable-loop/SKILL.md · 91 lines

How it starts

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

fable-loop

fable-method is the single-thread loop: one agent classifies, gathers, decides, edits, verifies, reports. fable-loop is the same loop with the expensive parts parallelized: evidence gathering fans out to subagents during planning, and verification turns adversarial with attacker subagents that try to refute the finished work. The structure does not change - only who does the searching and who does the attacking.

Division of labor, binding. The main thread decides and edits. Subagents only gather (evidence) and attack (refute). Nothing that changes the working tree, the build, or any external surface is ever delegated. If a subagent returns a finding that demands a decision, that decision is made in the main thread.

Model economy. Evidence subagents and attacker subagents are cheap-model-friendly: they run narrow, well-scoped tasks (search this, read that, try to break this) where the cost of a wrong first pass is a retry, not a damaged repo. Run the main thread on the strongest model you have - it holds the plan, makes the irreversible calls, and writes the edits. A cheap-model subagent that returns a wrong file path costs one re-dispatch; a strong-model main thread that made the wrong architectural call costs the whole task.

Usage

/fable-loop <task> full four-stage loop
/fable-loop plan <task> Stage 1 only: deliver the plan artifact and stop for approval
/fable-loop resume <task> continue from Stage 2 after an approved plan

Load fable-method first. This skill assumes its steps 0-6 and its rules (intent gate, recall gate, authorization gate, twin check, artifact gate). When this skill and fable-method disagree on a rule, fable-method wins; this skill only adds orchestration on top.

When NOT to use fable-loop

  • Trivial. fable-method's triviality gate (one file, under ~10 lines, no new behavior, you already know the change) fires before this skill. Trivial work gets the change, the one obvious check, and a one-sentence report. Spinning up subagents for that is waste.
  • Pure questions and assessments. Step 0 classified the ask as a question or assessment with no change required: run fable-method single-threaded. There is nothing to fan out edits for, and adversarial verification of a non-change is theater.
  • Already-orchestrated phases. If the user has already set up a multi-agent workflow, a pipeline, or a fable-judge suite run, do not wrap it in this loop. This skill orchestrates work that is not yet orchestrated; layering two orchestrators hides which one owns each decision.
  • Attended and high-touch. When the user is actively steering each step, the parallelism buys nothing and the decision gates just add latency. Run fable-method inline.

Read the full file on GitHub · 91 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. 2d ago First seen · 91 lines · 108 tokens per session scan A bd3387216dd7

Subscribe to this mod's changes

fable-loop is a skill published in the GitHub repository ardhaecosystem/fable-method (10 stars, last pushed 1mo ago), licensed MIT. It adds 108 tokens to every session and 2,497 once invoked, about $0.0005 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-31.

Related

Other skills, from other repositories

brain-periodic-refactor

CIRAAF 大脑定期整理框架 — 分类→整合→反思→完善→整理→定稿。周期性扫描大脑中某领域全部事实,清理过期/矛盾/冗余数据,重构为清晰层次。适合每2-4周跑一次,每次聚焦一个领域。.

Zhao961215/DIKW-Memory-System · 81 tokens

verify-answer

Stress-test any answer against its evidence. Extracts every factual claim, checks each against the provided sources, and marks claims as VERIFIED / UNVERIFIED / CONTRADICTED. Use before trusting a research answer, summary, or analysis — especially on multi-hop topics where one bad link corrupts the whole argument.

TheAiSingularity/agentic-research-engine-oss · 66 tokens

python-debugging

Use this skill when fixing failing Python tests.

Loveca/tiny-claude-code · 0 tokens

dsh-pre-push-checks

Use before pushing, force-pushing, marking ready for review, or claiming checks pass on a deepseek-harness branch, and immediately after gh stack sync publishes rewritten branches, to select the smallest tests and checks that cover the outgoing or just-published diff without reflexively running the full repository…

SparkElf/deepseek-harness-plus · 68 tokens

cordis-plugin-development

Create, modify, debug, or extend dynamic Cordis Plugins, including Host Services and Events, Client Slot and theme UI, Package-private Client-to-Host calls, dynamic Tools, version updates, approval failures, and runtime diagnostics. Use this Skill to route a user request to the correct platform and Inspect Provider…

SparkElf/deepseek-harness-plus · 80 tokens

record-browser-gif

Record browser or Web UI interaction demos as optimized GIFs using the available built-in browser, state-based frame capture, and deterministic encoding, then publish to a dedicated assets branch when the task includes attaching the GIF to a pull request. Use when asked to make, record, or generate a GIF that…

SparkElf/deepseek-harness-plus · 99 tokens