Yapay zeka kodlama ajanlarının çalışma alanına (workspace) vaktinden önce yazma yapmasını önlemek için mekanik yazma kapıları, kanıt gereksinimleri ve adversari red-teaming süreçlerini uygular.
Ayrıca bilinen adı REX-codebase/fable-mode, fable-mode, fable-engine
- Yıldızlar
- 26
- Araçlar
- —
- İndirmeler, 30 gün
- 1.182
- En son sürüm
- 1.3.5
- Son commit
- 18 Eyl 2026
- Lisans
- MIT
Fable Mode MCP nedir?
Fable Mode bir MCP sunucusudur. Yapay zeka kodlama ajanlarının çalışma alanına (workspace) vaktinden önce yazma yapmasını önlemek için mekanik yazma kapıları, kanıt gereksinimleri ve adversari red-teaming süreçlerini uygular.
Özet, projenin README dosyasından oluşturuldu
Fable Mode MCP sunucusu hakkında
Fable Mode, yapay zeka kodlama ajanlarının çalışma alanında vaktinden önce değişiklik yapmalarını önlemek için bir kontrol düzlemi görevi görür. Prompt talimatlarına güvenmek yerine; bir ajanın yazma erişimi kazanmadan önce muhakeme yapmasını, kanıt sunmasını ve adversari testlerden geçmesini sağlamak için mekanik kapılar kullanır. Bu sistem, Claude Code veya Cursor gibi MCP istemcilerini kullanan geliştiriciler veya JSON transport üzerinden kabuk (shell) sandbox'larında çalışanlar için tasarlanmıştır.
Kullanıcılar, fable-engine paketini yüklemek için uvx veya pip kullanarak sunucuyu kurabilirler. Aktif hale geldiğinde, ajan belirli bir iş akışını takip etmek zorundadır: Think (Düşün), Prove (Kanıtla), Attack (Saldır) ve Write (Yaz). Ajan, tanımlanmış bir zaman bütçesine uymalı ve kanıt gereksinimlerini karşılamak için araç makbuzları (tool receipts) veya değişmezler (invariants) sunmalıdır. Ardından, beş vektörlü bir red-team swarm grubu önerilen kodu bozmaya çalışır. Sunucu, mekanik kapılar birincil otorite olmaya devam etmekle birlikte, kanıtları denetlemek için tek bir HTTPS çağrısı ile harici bir inceleyici modeli isteğe bağlı olarak kullanabilir.
Neler yapabilirsiniz
- 1Vaktinden önce yapılan workspace yazımlarını önleyinBir yapay zeka ajanını, herhangi bir dosyayı değiştirmeden önce zaman kilitli bir muhakeme sürecinden geçmeye zorlayın.
- 2Ajan iddialarını kanıtlarla doğrulayınAjanın muhakemesinin doğru olduğunu kanıtlamak için araç makbuzları ve değişmezler üretmesini zorunlu kılın.
- 3Ajan kanıtlarını AI ile denetleyinBir oturum sırasında ajan tarafından sağlanan kanıtları incelemek için harici bir model kullanın.
Projenin README dosyasından alınmıştır. Her kullanım durumu, oradaki bir alıntı ile kontrol edilir.
Fable Mode MCP nasıl yüklenir
Biçimler 10 Kas 2026 tarihinde doğrulandıCursor'a ekleGoose'a ekleFable Mode MCP'yi Claude Code içine yükleyin
$ claude mcp add fable-mode -- uvx fable-engineFable Mode MCP'yi Cursor içine yükleyin
~/.cursor/mcp.json
{
"mcpServers": {
"fable-mode": {
"command": "uvx",
"args": [
"fable-engine"
]
}
}
}Fable Mode MCP'yi VS Code içine yükleyin
.vscode/mcp.json
{
"servers": {
"fable-mode": {
"type": "stdio",
"command": "uvx",
"args": [
"fable-engine"
]
}
}
}Fable Mode MCP'yi VS Code CLI içine yükleyin
$ code --add-mcp '{"name":"fable-mode","type":"stdio","command":"uvx","args":["fable-engine"]}'Fable Mode MCP'yi Claude Desktop içine yükleyin
claude_desktop_config.json
{
"mcpServers": {
"fable-mode": {
"command": "uvx",
"args": [
"fable-engine"
]
}
}
}Fable Mode MCP'yi Codex içine yükleyin
$ codex mcp add fable-mode -- uvx fable-engineFable Mode MCP'yi Codex config.toml içine yükleyin
~/.codex/config.toml
[mcp_servers.fable-mode] command = "uvx" args = ["fable-engine"]
Fable Mode MCP'yi Gemini CLI içine yükleyin
$ gemini mcp add -s user fable-mode uvx -- fable-engineFable Mode MCP'yi Gemini settings.json içine yükleyin
~/.gemini/settings.json
{
"mcpServers": {
"fable-mode": {
"command": "uvx",
"args": [
"fable-engine"
]
}
}
}Otomatik kontroller
Çalıştırıldı 14 Kas 2026Tam rapor →Otomatik kontrollerimizden geçti. Bu bir güvenlik denetimi değildir: kodu okuyun ve sunucuya ihtiyaç duyduğu en dar erişimi verin. Kontroller nasıl çalışır
- Kaynak deposu bağlantılı ve erişilebilirrex-codebase/fable-mode is public and reachablegithub.com/rex-codebase/fable-mode ↗Geçti
- Paket, bu depoyu kaynağı olarak gösteriyorfable-engine names rex-codebase/fable-mode as sourcepypi.org/project/fable-engine/ ↗Geçti
- Derleme kökeni (Sigstore onayı)Sigstore attestation for fable-enginepypi.org/project/fable-engine/ ↗Geçti
- Açık kaynak lisansı (OSI)MITspdx.org/licenses/MIT.html ↗Geçti
- Son bir yıl içinde commit veya sürüm mevcutLast commit or release 2026-09-18github.com/rex-codebase/fable-mode ↗Geçti
- OpenSSF ScorecardKontrol edilmedi
- Paket adı popüler bir pakete yakın değilNo popular package one edit away from fable-engineGeçti
- Pakette veya bağımlılıklarında kritik uyarı yok1 resolved dependencies checked; no critical advisoryosv.dev ↗Geçti
- Modele yönelik gizli talimat yok0 tool descriptions and the README read; no override phrases, credential paths or hidden charactersGeçti
- Yıkıcı araçlar etiketlenmişKontrol edilmedi
- Uzak uç nokta MCP el sıkışmasına yanıt veriyorKontrol edilmedi
Fable 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
Fable Mode MCP soruları
Fable Mode MCP'yi Claude Code'a nasıl eklerim?
Terminalinizde claude mcp add fable-mode -- uvx fable-engine komutunu çalıştırın. Her projede kullanılabilir olması için --scope user ekleyin.
Fable Mode MCP'yi Cursor'a nasıl eklerim?
~/.cursor/mcp.json dosyasını açın ve yukarıdaki yükleme bölümünde gösterilen Cursor yapılandırmasını kullanarak sunucuyu mcpServers altına ekleyin.
Fable Mode, ajanların çok erken yazmasını nasıl engeller?
Prompt tavsiyeleri yerine, çalışma alanı kilidi açılmadan önce karşılanması gereken zaman kilitli muhakeme ve kanıt ön koşulları gibi mekanik kapılar kullanır.
Kanıt denetimi için Fable Mode ekstra RAM veya yerel modeller gerektirir mi?
Hayır, isteğe bağlı AI kanıt hakemi, harici bir inceleyici modele tek bir sınırlı HTTPS çağrısı yapar ve ekstra yerel RAM gerektirmez.
Fable Mode kusursuz kod garantisi mi verir?
Hayır, ajanları daha temkinli hale getirmek için tasarlanmış denetlenebilir bir iş akışıdır ancak mükemmel kod üretme iddiasında bulunmaz.
Fable Mode'u mevcut ajanımla kullanabilir miyim?
Evet, bir framework kısıtlaması değildir ve Model Context Protocol aracılığıyla mevcut ajanınızla birlikte çalışır.