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.
https://github.com/user-attachments/assets/27f4f8a2-b1bb-4398-a08c-bc9fd93d69d7
See it work
A session starts locked. Confidence does not unlock it.
>>> session = create_session('demo-refactor', budget='2 min')
state=INIT execution_locked=True can_execute_code=False
>>> session.unlock_execution('the plan looks fine, let me write code now')
PermissionError: HARD TIME-LOCK VIOLATION: Execution unlock rejected!
The immutable 2.0m authority budget has not elapsed yet
(Remaining: 1m 59s / 120.0s).
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.
Install
pip install fable-engine
Or install the MCP server in your editor:
These links configure Fable Engine for AI agents in VS Code Chat or Cursor. They do not install a standalone editor extension. Both use uvx, which downloads and runs the pinned PyPI release in an isolated environment.
Point your agent at the MCP server manually:
// Claude Code: claude mcp add fable-engine -- uvx --from fable-engine==1.3.4 fable-engine
// Cursor: ~/.cursor/mcp.json
{
"mcpServers": {
"fable-engine": {
"command": "uvx",
"args": ["--from", "fable-engine==1.3.4", "fable-engine"]
}
}
}
Python 3.10+, zero runtime dependencies. Published on PyPI as fable-engine.
Optional: the Agent Skill
Installing fable-engine gives your agent the MCP tools. It does not install
or activate the Fable Mode Agent Skill - the prompt-side workflow in
skills/fable-mode. Nothing in the package
activates those instructions on its own; the skill is always a separate,
explicit opt-in.
The complete skill tree ships inside the wheel. To install it into your
project's skills directory (the cross-client .agents/skills/ convention):
uvx --from fable-engine==1.3.4 fable-mode install-skill --yes
This copies the skill to .agents/skills/fable-mode. Preview first with
--dry-run, choose another location with --target <dir>, and reload your
agent afterwards so it picks up the skill.
How it works
- Think — Time-locked deliberation. The agent cannot write until the timer ends.
- Prove — Claims need real evidence (tool receipts, hashes, invariants).
- Attack — A red-team swarm tries to break the code.
- Write — Only then is the workspace unlocked.
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
- V1 → V2 migration
- V2 architecture
- System 3 (experimental)
- Stop AI coding agents from writing too early
Contributing
Issues and pull requests are welcome. See CONTRIBUTING.md.
MIT License · Built by REX
Release files for fable-engine 1.3.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| fable_engine-1.3.4.tar.gz | 560.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| fable_engine-1.3.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.2 MB
Release files / fable_engine-1.3.4.tar.gz
| Download URL | fable_engine-1.3.4.tar.gz |
|---|---|
| Size | 560.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1d0859e7ae6e95cfd96d066333de0ba0f32072a0c690c1fa67bbe18df14b5a94
|
|
BLAKE2b-256 checksum How to use checksums |
c0f325b5e4c08382e2b8d44eed121fecb88c24fc64734f88b33f6771b9229cec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 16, 2026.
Transparency logRelease files / fable_engine-1.3.4-py3-none-any.whl
| Download URL | fable_engine-1.3.4-py3-none-any.whl |
|---|---|
| Size | 625.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b398ce01569e138decb0c789c00deae8da168701cf03b0c1d52623ca1c2c3093
|
|
BLAKE2b-256 checksum How to use checksums |
f7480df84c2f45edf4a9a10574204527817dfd24bd9f20107e27a1d70821722a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 16, 2026.
Transparency log