Menerapkan mechanical write gates, persyaratan bukti, dan adversarial red-teaming untuk AI coding agent guna mencegah penulisan workspace yang prematur.
Juga dikenal sebagai REX-codebase/fable-mode, fable-mode, fable-engine
- Stars
- 26
- Tools
- —
- Unduhan, 30 hari
- 1.182
- Versi terbaru
- 1.3.5
- Commit terakhir
- 18 Sep 2026
- Lisensi
- MIT
Apa itu Fable Mode MCP?
Fable Mode adalah MCP server. Menerapkan mechanical write gates, persyaratan bukti, dan adversarial red-teaming untuk AI coding agent guna mencegah penulisan workspace yang prematur.
Ringkasan dibuat dari README proyek
Tentang Fable Mode MCP server
Fable Mode bertindak sebagai control plane bagi AI coding agent untuk mencegah mereka melakukan perubahan prematur pada sebuah workspace. Alih-alih mengandalkan instruksi prompt, sistem ini menggunakan mechanical gates untuk memastikan agent melakukan deliberasi, memberikan bukti, dan melewati pengujian adversarial sebelum mendapatkan akses tulis. Sistem ini dirancang untuk developer yang menggunakan MCP client seperti Claude Code atau Cursor, atau bagi mereka yang bekerja di shell sandbox melalui transport JSON.
User dapat menyiapkan server menggunakan uvx atau pip untuk menginstal package fable-engine. Setelah aktif, sebuah sesi akan dimulai dalam status terkunci di mana agent harus mengikuti workflow spesifik: Think, Prove, Attack, dan Write. Agent harus mematuhi budget waktu yang telah ditentukan dan menyediakan tool receipts atau invariants untuk memenuhi persyaratan bukti. Setelah itu, five-vector red-team swarm akan mencoba mematahkan kode yang diusulkan. Server juga dapat secara opsional menggunakan model reviewer eksternal untuk mengaudit bukti melalui satu kali HTTPS call, meskipun mechanical gates tetap menjadi otoritas utama.
Apa yang bisa Anda lakukan dengannya
- 1Mencegah penulisan workspace yang prematurMemaksa AI agent untuk menjalani periode time-locked deliberation sebelum dapat memodifikasi file apa pun.
- 2Memverifikasi klaim agent dengan buktiMewajibkan agent untuk menghasilkan tool receipts dan invariants guna membuktikan bahwa penalaran mereka sudah benar.
- 3Mengaudit bukti agent dengan AIMenggunakan model eksternal untuk meninjau bukti yang diberikan oleh agent selama sebuah sesi.
Ditulis berdasarkan README proyek. Setiap use case diperiksa terhadap kutipan dari README tersebut.
Cara menginstal Fable Mode MCP
Format diverifikasi 10 Nov 2026Instal Fable Mode MCP di Claude Code
$ claude mcp add fable-mode -- uvx fable-engineInstal Fable Mode MCP di Cursor
~/.cursor/mcp.json
{
"mcpServers": {
"fable-mode": {
"command": "uvx",
"args": [
"fable-engine"
]
}
}
}Instal Fable Mode MCP di VS Code
.vscode/mcp.json
{
"servers": {
"fable-mode": {
"type": "stdio",
"command": "uvx",
"args": [
"fable-engine"
]
}
}
}Instal Fable Mode MCP di Claude Desktop
claude_desktop_config.json
{
"mcpServers": {
"fable-mode": {
"command": "uvx",
"args": [
"fable-engine"
]
}
}
}Instal Fable Mode MCP di Codex
~/.codex/config.toml
[mcp_servers.fable-mode] command = "uvx" args = ["fable-engine"]
Instal Fable Mode MCP di Gemini CLI
~/.gemini/settings.json
{
"mcpServers": {
"fable-mode": {
"command": "uvx",
"args": [
"fable-engine"
]
}
}
}Pengecekan otomatis
Berjalan 14 Nov 2026Laporan lengkap →Lolos checks otomatis kami. Ini bukan audit keamanan: baca kodenya dan berikan server akses paling terbatas yang dibutuhkannya. Cara kerja checks
- Source repository terhubung dan dapat dijangkaurex-codebase/fable-mode is public and reachablegithub.com/rex-codebase/fable-mode ↗Lolos
- Paket menyebut repo ini sebagai sumbernyafable-engine names rex-codebase/fable-mode as sourcepypi.org/project/fable-engine/ ↗Lolos
- Provenance build (atestasi Sigstore)Sigstore attestation for fable-enginepypi.org/project/fable-engine/ ↗Lolos
- Lisensi open source (OSI)MITspdx.org/licenses/MIT.html ↗Lolos
- Ada commit atau release dalam satu tahun terakhirLast commit or release 2026-09-18github.com/rex-codebase/fable-mode ↗Lolos
- OpenSSF ScorecardTidak diperiksa
- Nama package tidak mirip dengan package populerNo popular package one edit away from fable-engineLolos
- Tidak ada advisory kritis di paket maupun dependensinya1 resolved dependencies checked; no critical advisoryosv.dev ↗Lolos
- Tidak ada instruksi tersembunyi untuk model0 tool descriptions and the README read; no override phrases, credential paths or hidden charactersLolos
- Tools yang bersifat destruktif telah diberi labelTidak diperiksa
- Endpoint remote menjawab handshake MCPTidak diperiksa
README
Lihat di GitHubFable Mode
Agents that think before they write.
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.
- Install the MCP server using one of the options below.
- Add the optional Agent Skill if you want the full workflow.
- Ask your agent to use Fable Mode for a concrete coding task and choose a time budget.
A new session starts with execution locked:
{
"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:
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:
python -m pip install fable-engine
fable-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:
// 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"]
}
}
}
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:
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
- 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.
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
- Start here: practical guide
- Agent Skill reference
- V1 → V2 migration
- V2 architecture
- System 3 (experimental)
- AI evidence adjudicator (optional)
Contributing
Issues and pull requests are welcome. See CONTRIBUTING.md.
MIT License · Built by REX
Pertanyaan tentang Fable Mode MCP
Bagaimana cara menambahkan Fable Mode MCP ke Claude Code?
Jalankan claude mcp add fable-mode -- uvx fable-engine di terminal Anda. Tambahkan --scope user agar tersedia di semua proyek.
Bagaimana cara menambahkan Fable Mode MCP ke Cursor?
Buka ~/.cursor/mcp.json dan tambahkan server di bawah mcpServers, menggunakan config Cursor yang ditunjukkan di bagian instalasi di atas.
Bagaimana Fable Mode mencegah agent menulis terlalu dini?
Fable Mode menggunakan mechanical gates alih-alih sekadar instruksi prompt, termasuk time-locked deliberation dan prasyarat bukti yang harus dipenuhi sebelum workspace dibuka akses tulisnya.
Apakah Fable Mode membutuhkan RAM tambahan atau model lokal untuk audit bukti?
Tidak, AI evidence adjudicator opsional menggunakan satu kali bounded HTTPS call ke model reviewer eksternal dan tidak membutuhkan RAM lokal tambahan.
Apakah Fable Mode menjamin kode yang tanpa cela?
Tidak, ini adalah workflow yang dapat diperiksa untuk membuat agent lebih berhati-hati, namun tidak mengklaim dapat menghasilkan kode yang sempurna.
Dapatkah saya menggunakan Fable Mode dengan agent saya yang sudah ada?
Ya, ini bukan framework lock-in dan dapat bekerja berdampingan dengan agent Anda saat ini melalui Model Context Protocol.