Fable Mode

io.github.REX-codebase由 GitHub 帳號 REX-codebase 發布v1.3.5更新於 Oct 27, 2026

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

已驗證STDIO僅桌面開發者工具AI 與機器學習

概覽

AI 產生的概覽

針對 AI 編碼代理的在地控制層,透過限時思考、證據回執與對抗式審查來把關工作區寫入權限。

可以做什麼
  • 建立並管理帶有目標與時間預算的編碼工作階段,工作階段一開始為鎖定狀態
  • 記錄證據與不變量,在計時與證明條件滿足後申請解鎖
  • 查看目前階段、剩餘時間、證據數量與鎖定狀態
  • 在解鎖前以五向量紅隊叢集對程式碼發動攻擊測試
  • 保留已驗證內容的封存紀錄,可選擇由外部審查模型稽核
適用情境
當你希望編碼代理在改動工作區前先放慢腳步、為改動提出依據時使用,例如重構或其他擔心未經驗證的說法與過早寫入的任務。
執行需求
以 stdio MCP 伺服器形式在本機執行,來自 PyPI 套件 fable-engine,可用 uvx 或 pip 安裝;需要 Python 3.10+,無執行期相依套件。選用的 setup 指令會把隨套件附帶的 Agent Skill 複製到專案的技能目錄。工作階段資料存放在 Fable 資料目錄,可用 FABLE_DATA_DIR 覆寫。選用的證據裁決器會發出一次外部 HTTPS 呼叫。
安裝前請注意
此伺服器會對代理的工作區寫入上鎖,在門檻通過前會阻擋編輯。選用的 AI 證據裁決器會透過 HTTPS 將工作階段證據傳送給外部審查模型,預設關閉。setup 會把技能檔案寫入專案目錄,建議先以試執行預覽。它是可核查的流程,並不保證程式碼無誤。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Fable Mode,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

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

來源:README.md,提交 b1d6d12

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v1.3.5最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分