Discover MCPs & agents
Loading MCPs and agents…
Loading MCPs and agents…
A programmable tool and agent runtime for Pi
Jump to setup instructionsFetched from the repository for this visit.
A programmable tool and agent runtime for Pi
One program for tools, MCP, agents, workflows, actors, mesh, councils, and recursion.
🏆 100% on ARC-AGI-3. A Fabric-powered agent won all 25 environments in one 22.4-hour session with 4 minutes of human time ($1,349 in model spend).
Fabric gives Pi one programmable tool called fabric_exec, which composes core tools and MCP servers with captured extension tools. The default kernel runs checked TypeScript in isolated QuickJS; select sandboxed Python (Monty) with executor.kernel: "python". CPython is an explicit native escape hatch via executor.pythonRuntime: "cpython". The configured kernel is exclusive: there is no per-call language selector. Trusted TypeScript workloads can also use unsafe Node/Bun processes. Programs call host providers for agents, actors, and durable coordination, then return the result of their branches, loops, fan-out, and data flow. See execution kernels for Python usage, security boundaries, and guest-helper limitations.
| Capability | What it unlocks | |
|---|---|---|
| ⚡ | Code mode | One flat tool schema; branching, loops, fan-out, and data flow live in TypeScript or configured Python. |
| 🧰 | Capability routing | Call Pi core tools, MCP servers, captured extension tools, or Fabric providers through one runtime. |
| 🧑🤝🧑 | Agent runtime | One-shot workers, durable resident agents, persistent event-driven actors, councils, and bounded recursive queries. |
| 🕸️ | Workflows + mesh | Phased progress plus durable topics, shared tasks, and compare-and-swap state. |
| 🛡️ | Guardrails | Approvals, isolation, timeouts, concurrency, recursion depth, and shared cost budgets. |
| 🎛️ | Native TUI | Live activity, an interactive dashboard, and settings without leaving Pi. |
With the default TypeScript kernel, the model can write this program (TypeScript only):
const [manifest, sources] = await Promise.all([
pi.read({ path: "package.json" }),
pi.find({ pattern: "**/*.ts", path: "src" }),
]);
return {
package: JSON.parse(manifest).name,
sourceCount: sources.split("\n").filter(Boolean).length,
};
Independent calls run in parallel, and the returned object enters the model context. Known providers support concise direct calls such as mcp.fal_ai.get_model_schema(...), memory.recall(...), state.get(), schema.status(), and compact.status(). A provider another extension registers gets a typed global named after it, such as context.task_add(...) (program globals). Refs found or computed at runtime use tools.call({ ref, args }) (TypeScript notation). Python uses await tools.call({"ref": ref, "args": args}), native dictionary results, and asyncio.gather for independent calls.
To select Python, put this in ~/.pi/agent/fabric.json or a trusted project's .pi/fabric.json, or use /fabric settings → Executor → Kernel:
{ "executor": { "kernel": "python" } }
Python defaults to Monty, a sandboxed Python subset with VM resource limits and no ambient filesystem, network, or process access. It is not CPython: arbitrary imports, third-party packages, and some Python features are unavailable. Full CPython 3.10+ requires explicit executor.pythonRuntime: "cpython" and runs trusted native code with full OS privileges outside schema enforce, like TypeScript's Node/Bun escape hatches. CPython enforcement additionally requires macOS sandbox-exec or Linux bwrap, failing closed without isolation. Missing Monty dependencies never trigger a native fallback. executor.runtime only affects TypeScript. See the kernel guide.
Pi's native MCP can optionally supply selected servers beneath the same Fabric API: set mcp.nativeServers to exact server names already configured in Pi. Other servers stay on mcporter; failed native calls never switch transports. See MCP ownership and compatibility.
Requires Node.js 24+ and Pi 1.0.0+. Monty's optional native package installs on supported platforms; only the explicit CPython escape hatch requires CPython 3.10+. Fabric warns when a detectable host is older than the required native loadout and nested-execution contracts.
0.126.1: quieter background optimization. Automatic entropy improvement notices no longer interrupt the conversation. Background compilation, saved plans, and activation continue unchanged; use /fabric entropy to inspect entropy on demand.
0.126.0: idle warming for background work. With Pi's cacheWarming: "idle" enabled, wake-capable spilled shell jobs re-price idle cache refreshes at certain continuation while preserving Pi's savings threshold and 30-minute idle horizon. UI-only monitors, interruption, provider errors, and abandoned branches are excluded; refreshes remain paid native cache_warm usage. The fullscreen dock now preserves other extensions' status rows. Policy verification also covers mesh grants, speculation, and budget admission, with 27 registered kernels and 75 counterexample-backed broken variants.
0.125.2: arbitrary-state policy proofs. The dev-only gdp-wired prover is pinned to 0.30.1. Policy proof runs use {from: 'any'} and accept only proven && checked && !assumes, with counterexample-backed refusals for all 50 broken variants. Generated kernel bodies are unchanged, and default certificates need no environment override. Windows offline continuation tests use a platform-sized cold-start budget.
0.103.1: Pi 1.0 compatibility. Full-code and Schema enforce loadouts own declarations through native prepareLoadout, including built-in codemode, tool search, MCP, late activation, and reload. Captured dispatch and core overrides retain native middleware; capture patches restore on the final shutdown lease without recursive wrapping. Run bun run test:pi1 for public-contract, compiled SDK, and bundled-CLI regressions. Optional/audit mode retains the host loadout.
0.103.0: daemon primitives. Headless, restart-safe sessions get small composable building blocks: a runner contract with hosted runs that persist a locator before start and never relaunch (pi-fabric/runners); durable decisions with escalation chains, headless approvals, and routed child dialogs; mesh timers, scoped external grants, and the pi-fabric CLI; saved programs with host-invoked runs; host-issued principal and scope (pi-fabric/scope) that children only narrow; write confinement, context-inheriting spawn, and worktree results; provider participants, a foreground-tool policy, compaction pressure and carry-forward focus, thinking control, heartbeat liveness across PID namespaces, and incarnation-fenced control commands. New behavior is opt-in or additive. A configured agents.runner id that no extension registers is kept and warned about once per session, without falling back to pi.
0.102.0: opt-in Pi-owned MCP. Select native servers with mcp.nativeServers while keeping Fabric's API, policy pipeline, names/descriptions, and result normalization. Existing defaults remain unchanged. Native identities are indexed by registration snapshot, with live exposure and schema checks; SDK reload and settings-save guards are included.
0.101.1: Pi 0.99 compatibility. Full-code and Schema enforce modes declare only fabric_exec, including with native codemode, tool search, MCP, late registrations, and active-tool changes. Captured tools remain available as extensions.<name>(...) inside Fabric, with host middleware applied. Pi packages and TypeBox are host-supplied peers, never bundled. The same compiled package also passes an isolated Pi 0.99.1 SDK/CLI gate; development pins at that release were 0.99.0.
pi install npm:pi-fabric
Fabric does not bundle third-party chat model provider extensions. Install third-party providers separately; see provider configuration.
From GitHub:
pi install git:github.com/fabric-runtime/pi-fabric
From a local checkout:
bun install
bun run build
pi install /absolute/path/to/pi-fabric
For one development run:
pi -e /absolute/path/to/pi-fabric
Pi loads advanced patterns after direct user invocation. Run /skill:fabric-guide for one recommendation, or invoke the exact /skill:<name> yourself. The same skill names work in both kernels: Fabric loads one complete TypeScript or Python skill/reference tree. An ordinary coding task uses the core fabric-exec reference.
| You want | Run |
|---|---|
| Help choosing the smallest advanced mechanism | /skill:fabric-guide Choose a mechanism to audit every auth file and verify the findings. |
| Parallel audits, migrations, or research with verification | /skill:fabric-workflow Audit every auth file and synthesize verified findings. |
| Work too big for one context window | /skill:fabric-rlm Produce a compact architecture map of this repo. |
| A Jev foreman above coding work, per turn or at settlement | /skill:fabric-foreman Watch this migration, request verification, and flag blockers. |
| A persistent watcher for one measurable goal | /skill:fabric-supervisor Watch this migration until it is complete and tested. |
| A strict auditor for one feature design spec | /skill:fabric-spec Implement docs/specs/checkout.md to the tee; nothing missing, nothing extra. |
| A quiet decision-point reviewer | /skill:fabric-advisor Focus on migration correctness. |
| Independent reviewers, optionally one model per seat, and one decision | /skill:fabric-council Review this design for correctness, security, and operability. |
| Multi-model compare-not-merge deliberation or act mode | /skill:fabric-fusion Deliberate this design across models. |
| One command that chooses advisor or supervisor | /skill:fabric-ambient advisor Focus on migration correctness. |
| A durable team coordinating through versioned tasks | /skill:fabric-swarm Coordinate this migration across owned task partitions. |
| A step graph that survives restarts, with human approval nodes | /skill:fabric-graph Run fetch, test, and an approval gate before release as a resumable graph. |
| Evidence-gated edits with postconditions | /skill:fabric-schema Make this parser change only if focused tests stay green. |
| Typed semantic judgments or bounded reactive loops | /skill:fabric-jev Build a ticket triage loop with an explicit review path and evaluation budget. |
Execution references stay progressive: the model loads the selected kernel's skill after argument-shape errors or when exact advanced contracts are needed. Kernel changes reload Pi so execution and the selected physical skill tree switch together; see kernel-specific skills.
Clipboard screenshots are attached when you submit the prompt. The model can inspect them on its first response without a separate read turn. Fabric recognizes Pi-generated pi-clipboard-<uuid> image files directly in the OS temporary directory and keeps [Attached image: <path>] as provenance. Existing image attachments are preserved and duplicate bytes are attached only once.
Native vision models receive the image directly. With pi-vision-handoff, text-only models receive its description before their first request. Install the companion extension and configure a describer for that route; Fabric does not make its own vision-model calls.
This runs only for interactive input, including queued steering/follow-up prompts, not RPC or extension-injected text. Ordinary image paths, inline/fenced code, and arbitrary temporary files still require an explicit read. Missing, unsupported, oversized, or symlinked clipboard files stay as paths with a warning. Automatic attachments are limited to 8 images, 20 MiB per file and 32 MiB of raw image bytes per message; Pi applies its own normalization and model limits afterwards. Image handling loads only at first use, not at startup.
Press ↓ in an empty editor and Enter on an agent in the list at the bottom of the screen, or run /fabric chat <agent-id-or-name>, to open a live, full-screen child conversation with a multiline editor. Send steering or follow-ups directly, switch between nested agents, and return to Main without stopping its work. Drafts and scroll positions stay with each conversation. Completed one-shot agents are read-only; persistent actors accept further messages. Drag to select transcript text, use /copy or /copy selection, and type /help for the small set of preview-local commands with slash completion. See focused conversations for controls and current limitations.
Fabric includes a live activity surface in Pi:
/fabric (or /fabric dashboard): opens the Activity and Topology views. The user-facing Pi session appears as Main. You can queue or steer participants and inspect the project topology./fabric settings: mirrors Pi's /settings and writes changes to fabric.json. TUI hosts get the searchable settings component; RPC hosts get the same nested sections, value/input/model pickers, list editors, and project/global save scopes through native dialog primitives..bend files using Bend 2 syntax, including laws and proof terms. The grammar loads only when needed, with no Bend installation required.Tool display (compact by default, or full) is configured under /fabric settings → UI; compact elevates the declared display intent, hides the outer program, and applies to the current transcript immediately. Pi's tool-expand keybinding (ctrl+o by default) expands a compact card to the full transcript.See the interface & commands reference for every view, keybinding, and slash command.
fabric.json, code modes, tool capture, approvals, budgets, and third-party model providers.pi-fabric/durable-extension gives a host's own pi-durable Harness the fabric_exec tool: its options and defaults (tools, providers, limits, quickJsWasmModule, onError), default-deny security, replay-safe durability on a task-document journal, a codemode-style prompt section, and Cloudflare Worker setup with the pi-fabric/durable-extension/wasm helper.pi option./fabric decisions, and the pi-fabric decisions CLI.programs.run with the caller's capabilities, /fabric programs, and host runs through /fabric run or an event.memory.walk computation./fabric prewalk, runners, transports, actors, councils, recursive queries, and durable coordination.certify:entropy proof checks.bun install
bun run check:fast
bun run test:smoke
bun run build
The test suite covers:
Claude and Veda fixtures use local test processes with zero billable requests.
If Fabric helps you build or run agent workflows, consider supporting the project on Open Collective. Contributions help fund maintenance, bug fixes, documentation, testing infrastructure, and model/API costs for integration testing and reproducible evaluations.
| Contribution | Monthly support | Helps sustain |
|---|---|---|
| Backer | From $5 USD | Everyday maintenance and documentation |
| Supporter | $25 USD | Integration tests and reproducible evaluations |
| Sponsor | From $100 USD | Long-term development and project infrastructure |
| Custom donation | Any amount, one-time or recurring | The work that needs it most |
Contribute → · View finances and contributors
Contributions are voluntary support, not a purchase of priority support, feature delivery, or influence over the roadmap. The collective page shows current fiscal-host status, available contribution options, and financial contributors.
Code, documentation, bug reports, and examples are just as welcome. Thank you to everyone helping keep Fabric open and sustainable.
MIT
GitHub checked 448h ago - refresh overdue. Recently viewed repositories target hourly refresh.
Find a documented setup for your client. No sign-in, installation, or tool execution.
If this MCP is also published on mcpchannel.ai, you can subscribe from Browse and use the gateway config there instead.