fable-loop

fable-loop is a skill for Claude Code, Codex from Sahir619/fable-method. It costs 111 tokens per session (1,229 once invoked), scanned A, original, MIT.

An orchestrated method for handling substantial coding tasks from investigation through implementation and review. It gathers evidence in parallel, creates one plan, applies the work, and uses separate checks to challenge the result.

In plain words
What is it for?
Use it for non-trivial changes that need repository research, coordinated execution, an approval checkpoint, adversarial verification, and an outcome report.
Why use it?
It reduces missed dependencies and untested assumptions when a task spans several parts of a codebase.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present. Also seen: reads .claude/ paths; mentions subagents.

Part of the fable plugin — 5 skills shipped together

Good fit Use it for non-trivial changes that need repository research, coordinated execution, an approval checkpoint, adversarial verification, and an outcome report.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sahir619/fable-method/fable-loop
About the project

The Fable Method is a set of agent workflows that organize tasks into deciding what is needed, taking the smallest appropriate action, and proving the result with verification. It is intended for AI agents that need repeatable behavior grounded in evidence and explicit completion checks. The catalogue entries are the project's skills, instruction, and plugin implementing those workflows.

Sahir619/fable-method · 2,313 stars · on GitHub

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 Sahir619/fable-method --skill fable-loop
Clone the repo
git clone --depth 1 https://github.com/Sahir619/fable-method

Made for: Claude Code, Codex.

Or install fable, 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 fable-loop

README.md
[![agentmods](https://agentmods.dev/badge/skills/sahir619/fable-method/fable-loop/github.svg)](https://agentmods.dev/skills/sahir619/fable-method/fable-loop)
Your own site
<a href="https://agentmods.dev/skills/sahir619/fable-method/fable-loop"><img src="https://agentmods.dev/badge/skills/sahir619/fable-method/fable-loop/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 fable-loop

Your own site · 80×15
<a href="https://agentmods.dev/skills/sahir619/fable-method/fable-loop"><img src="https://agentmods.dev/badge/skills/sahir619/fable-method/fable-loop.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 111 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,229 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 21
    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.00111 $0.01229
Opus 5.5 $0.00044 $0.00492
Sonnet 5.5 $0.00022 $0.00246
Haiku 4.5 $0.00011 $0.00123

Measured 2mo ago against content hash 9a317740231b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 2mo 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/fable-loop/SKILL.md · 52 lines

How it starts

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

The Fable Loop

This skill orchestrates the fable-method: read its SKILL.md first; its rules govern every stage. It is installed alongside this skill (in this plugin's skills/fable-method/ directory, or ~/.claude/skills/fable-method/ for manual installs). The method says WHAT to check; this loop says WHO does the work: what runs in the main thread, what fans out to subagents, and what gets attacked before delivery.

Gate first. Trivial per the method's triviality gate: just do it, verify with the one obvious check, report in two sentences. No stages, no subagents. Everything else runs the four stages below in order.

Stage 1 - PLAN (the first bookend)

  1. Apply method Steps 0-3: classify the ask, define done with a named verification, state load-bearing assumptions.
  2. Evidence fan-out. Spawn the evidence gatherers as parallel subagents in ONE message, never sequentially:
    • codebase questions: an Explore agent per distinct area ("how does X work", "what depends on Y");
    • library or fact questions: a research agent that fetches current docs or searches the web;
    • each subagent returns distilled findings with citations, never raw file dumps. One batch plus one follow-up batch is the budget; a third needs a stated reason.
  3. Produce the plan artifact in this shape: classification; definition of done plus its verification; evidence found (cited); ONE recommended approach (alternatives dismissed in a line each); the scope (the exact files or surfaces the work will touch); risks and assumptions; and the execution checklist.
  4. Decision gate. Task-shaped and reversible: proceed to Stage 2 without asking. Plan-first shape (ambiguous scope, irreversible or outward-facing actions, or the user asked for a plan): present the plan artifact and STOP for approval.

Stage 2 - EXECUTE

  1. Work the checklist in the main thread (use the todo tool if the harness has one; tick items as they complete). Deciding and editing stay in the main thread; only searching and verifying fan out.
  2. Every edit follows method Step 4: intent gate before behavior changes, recall gate before first use of anything unopened, smallest correct change, precise edits, never destroy without looking.
  3. Independent mechanical items (same change across many files, isolated file generation) may fan out to parallel subagents, in one message, with worktree isolation if they could touch the same files.
  4. A surprise mid-execution re-routes per method Step 2 rule 7: say it, then update the plan or go back to Stage 1. Never force the plan through a surprise.
  5. Mid-item ignorance is a pause, not a guess: the moment an edit would carry a fact from memory (a signature, a key, a figure), stop that item, fan out one research subagent per the method's recall gate, and resume when it returns.
  6. Outward-facing checklist items obey the method's authorization gate: no quoted user authorization, no action; the item converts to a proposed next step in the report.

Read the full file on GitHub · 52 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 2mo ago First seen · 52 lines · 111 tokens per session scan A 9a317740231b

Subscribe to this mod's changes

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

fable-loop compared with skills from other repositories

fable-loop next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
fable-loopSahir619/fable-methodSkill2.3k1mo agoMITA111Claude Code, Codex
session-handoffwanshuiyin/HERO-Anti-OverDefenseSkill7864d agoMITA34Claude Code, Codex
goal-pulsewanshuiyin/HERO-Anti-OverDefenseSkill7864d agoMITA64Codex
cw-gatesHmbown/CodewhaleSkill41k1mo agoMITA48Claude Code, Codex
feishuHmbown/CodeWhaleSkill41k5d agoMITA33Claude Code, Codex
interviewHmbown/CodeWhaleSkill41k5d agoMITA40Claude Code, Codex
eval-dataset-designbojieli/ai-agent-bookSkill57k29d agoApache-2.0A138Claude Code, Codex