Fable Mode

io.github.REX-codebasePublished by GitHub account REX-codebasev1.3.5Updated Oct 27, 2026

Mechanical write gates, evidence receipts, and adversarial review for AI coding agents.

VerifiedSTDIODesktop onlyDeveloper ToolsAI & ML

Overview

AI-generated overview

A local control plane for AI coding agents that gates workspace writes behind timed deliberation, evidence receipts and adversarial review.

What you can do
  • Create and manage coding sessions with an objective and a time budget, starting locked
  • Record evidence and invariants, then request unlocking once the timer and proof prerequisites pass
  • Inspect the active phase, remaining time, evidence counts and lock state
  • Run a five-vector red-team swarm against code before the workspace is unlocked
  • Keep a sealed record of what was verified, optionally audited by an external reviewer model
When to use it
Use it when you want a coding agent to slow down and justify changes before it edits your workspace, for example refactors or other tasks where unverified claims and premature writes are a risk.
Requirements
Runs locally as a stdio MCP server from the PyPI package fable-engine via uvx, or as a pip install; needs Python 3.10+ and no runtime dependencies. An optional setup command copies a bundled Agent Skill into the project's skill directory. Session data is stored in Fable's data directory, overridable with FABLE_DATA_DIR. The optional evidence adjudicator makes one outbound HTTPS call.
Before you install
The server enforces write locks on the agent's workspace, so expect it to block edits until gates pass. The optional AI evidence adjudicator sends session evidence to an external reviewer model over HTTPS and is off by default. Setup writes skill files into the project directory, so preview with a dry run first. It is a checkable workflow, not a guarantee of correct code.

Installation

In SourceWeft

  1. Open Fable Mode in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.

Other MCP clients

Follow the launch instructions in the repository.

README


[Fable Mode]

Fable Mode

Agents that think before they write.


[Python 3.10+]   [MIT]   [MCP]   [Zero Dependencies]   [490 tests passing]





Fable Mode is an open-source control plane for AI coding agents.

It makes an agent deliberate, produce evidence, and survive adversarial review before it earns permission to write to your workspace. The gates are mechanical, not prompt advice: no timer, no proof, no write access.


Demo

KERR // ORRERY

One self-contained HTML file. Raw WebGL, zero libraries, zero external assets, and zero build step.

https://github.com/user-attachments/assets/8287bbfe-e3ee-4dcf-ba0f-f9ff22ae79bd

7 renders rejected before final · 2 bugs caught · 10/10 red-team probes passed


Fable Mode overview

https://github.com/user-attachments/assets/27f4f8a2-b1bb-4398-a08c-bc9fd93d69d7


Quick start

A session starts locked. Confidence does not unlock it.

  1. Install the MCP server using one of the options below.
  2. Add the optional Agent Skill if you want the full workflow.
  3. Ask your agent to use Fable Mode for a concrete coding task and choose a time budget.

A new session starts with execution locked:

json
{  "action": "create_session",  "session_name": "demo-refactor",  "objective": "Refactor the parser without changing public behavior",  "time_budget_minutes": 2}

The agent then records evidence and an invariant. An early unlock_execution request is rejected until the authority timer and proof prerequisites pass. Use get_status at any point to see the active phase, remaining time, evidence counts, and lock state.

The same gates guard every phase: evidence receipts for claims, a five-vector red-team swarm for code, and a sealed record of what was verified.


One package, two agent environments

Fable ships as one PyPI package. The same package contains the runtime, stdio MCP server, and complete Agent Skill. Setup is explicit so installing an MCP server never silently activates workspace instructions.

Run setup from the project the agent will work in:

bash
uvx --from fable-engine==1.3.9 fable-mode setup --yes

This resolves the pinned package in an isolated uv environment and copies the bundled skill to .agents/skills/fable-mode. Use --dry-run to preview or --target <dir> for another skill directory. For a persistent install, use:

bash
python -m pip install fable-enginefable-mode setup --yes

Then choose only the invocation that matches the agent environment.

Native MCP client

Run fable-engine as the stdio server. For example:

jsonc
// Claude Code: claude mcp add fable-engine -- uvx --from fable-engine==1.3.9 fable-engine// Cursor or another JSON-configured client:{  "mcpServers": {    "fable-engine": {      "command": "uvx",      "args": ["--from", "fable-engine==1.3.9", "fable-engine"]    }  }}

[Install MCP server in VS Code]

Shell sandbox with internet, no MCP host

The same package exposes a direct JSON transport. Pipe one fable_session argument object to fable-mode call:

bash
printf '%s\n' '{"action":"create_session","session_name":"demo","objective":"Verify this change","time_budget_minutes":2}' \  | uvx --from fable-engine==1.3.9 fable-mode call

The command uses JSON Lines: one fable_session argument object per input line and one JSON result per output line. Keep that process open for a full workflow so the authority timer and session stay in the same trusted runtime. A one-line pipe is useful for a single inspection call. Each uvx command can resolve an isolated environment; pip install is better when the sandbox keeps a Python environment between calls. Session data persists outside that environment in Fable's data directory (FABLE_DATA_DIR can override it).

Python 3.10+, zero runtime dependencies. Published on PyPI as fable-engine.

Skill activation remains explicit

setup is the unified path. The older install-skill command remains as a compatible alias for skill-only installation. Neither fable-engine nor pip install fable-engine writes instructions into a workspace on its own.


How it works

  1. Think — Time-locked deliberation. The agent cannot write until the timer ends.
  2. Prove — Claims need real evidence (tool receipts, hashes, invariants).
  3. Attack — A red-team swarm tries to break the code.
  4. Write — Only then is the workspace unlocked.

Optional: AI evidence adjudicator

The evidence in a session is written by an AI agent, so Fable can optionally ask an external reviewer model to audit that evidence before the workspace unlocks. Stdlib-only, one bounded HTTPS call, no local model, no extra RAM to speak of. Off by default; fail-closed when enforcing. It raises the cost of fabricated proof - it cannot guarantee deception is impossible, and the mechanical gates stay the primary authority. Setup and honest limits: AI evidence adjudicator.


What it is not

  • Not a claim of flawless code. It is a checkable workflow, not a guarantee.
  • Not a bigger prompt. The locks are enforced by the engine, not by wording.
  • Not a framework lock-in. It speaks MCP and runs beside your current agent.

Docs


Contributing

Issues and pull requests are welcome. See CONTRIBUTING.md.



MIT License · Built by REX

Source: README.md at commit b1d6d12

Tools

0
SourceWeft has not started this package in its sandbox yet, so its tools are not known.

Version history

1
  1. v1.3.5LatestSep 16, 2026

Score

50% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 days25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declared10 pts

    Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.

  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts