The README, ft 0.15.21
The documentation.
The whole FrankenTerm README, split into 82 pages: about 29,000 words on commands, Robot Mode, configuration, architecture and 44 deep dives. Every link inside it still works.
Where to start
New here
What ft is, ten minutes of commands, and what it does not do yet.
You run agents
Watching panes, rules, workflows, and what to do when something goes wrong.
You build meta-agents
JSON and TOON envelopes, the MCP server, and the policy gate in front of every send.
You operate at scale
Admission, memory tiers, transactions and incident bundles.
You want the internals
The architecture, the async runtime, the storage schema and the algorithms.
You audit claims
What ships, what is partial, and how each claim maps to an artifact.
Start here
10 pagesThe Problem. Running large AI coding swarms across ad-hoc terminal panes is chaos. When you're driving 50–200 Claude Code / Codex / Gemini agents at once, a single undetected rate limit wastes hours of compute. A…
8 parts959 words10-Minute TourA guided walkthrough from I cloned this to I have an AI driving an AI. Each step builds on the previous one.
2 parts651 wordsWhy use ft?Now that you've seen it run, here's the full capability surface:
One part566 wordsSupported Surface MatrixHonest status of every shipped surface, without migration-era hand-waving.
One part299 wordsHow ft ComparesWhen to use ft:
6 parts702 wordsReal-World ScenariosThese are the workloads ft was built for. Each scenario describes the operator pain without ft , then how the platform addresses it.
5 parts773 wordsInstallationThe one-liner installs a prebuilt ft binary (no Rust toolchain required) and, on Apple-Silicon macOS, the FrankenTerm.app GUI bundle:
7 parts147 wordsSetup & First-Run ChecklistFor setting up a new host (font, daemon, persistent config). For learning the tool , see the 10-Minute Tour above.
2 parts210 wordsLimitations11 parts643 wordsFAQF ranken T erm. Short, typeable, memorable.
Use it
12 pagesft attention ranks what needs an operator or agent next, without changing anything. Without --input it reads live sources:
14 parts701 wordsRobot Mode (JSON API)The ft robot subcommand provides machine-optimized output for AI agents. Always use --format toon for token-efficient output when piping results to another AI.
1 parts109 wordsConfigurationConfiguration is discovered in canonical precedence order:
One part199 wordsOperating EnvelopeThe operating envelope contract is the system's answer to is it safe to do more work right now?
One part162 wordsMission Objective Plannerft mission objective-plan invokes the capacity-aware mission objective planner (ft-auy2g). Inputs and behavior:
One part229 wordsIncident BundlesWhen something goes wrong (a crash, a stuck pane, a fleet-wide degradation), ft packages what it knows into an incident bundle . ft reproduce export runs as its own process, so sources that only a running watcher…
2 parts294 wordsCompile-Time Feature MatrixThe ft binary ( -p frankenterm ) turns nearly every surface on by default; the features exist so trimmed builds still compile. Defaults below come from crates/frankenterm/Cargo.toml .
7 parts406 wordsOperator Playbook ExcerptsCurated runbook fragments. The full operator playbook lives in docs/operator-playbook.md ; these excerpts are the highest-frequency ones.
3 parts218 wordsPattern Detectionft detects state transitions across multiple AI coding agents:
5 parts309 wordsObservability Surfacesft is designed to be observable from the outside in five distinct ways. Each is useful in a different operational context.
One part199 wordsSecure Distributed ModeSecure distributed mode is compiled into default builds ( distributed is in the default Cargo feature set of crates/frankenterm/Cargo.toml ) and activated at runtime via [distributed].enabled = true . To build a…
7 parts265 wordsTroubleshootingFor a step-by-step operator guide (triage → why → reproduce), see docs/operator-playbook.md .
How it works
6 pagesThe default observation loop does not send pane input, but it is not side-effect-free: ft watch owns persistence lifecycle work, including schema migration, capture writes, and retention pruning. With --auto-handle ,…
One part482 wordsGlossary of TermsTerminology used throughout this document and the codebase. Reading these once saves grepping later.
3 parts450 wordsWhy FrankenTerm Owns Its Terminal EngineFrankenTerm runs on its own terminal engine — a fully vendored, in-tree fork of WezTerm's mux / termwiz / term crates that the project now owns and has diverged, not a live dependency on upstream WezTerm and not an…
7 parts1,051 wordsArchitectureft is composed of cleanly-separated subsystems. Each owns a specific responsibility surface; cross-subsystem communication goes through typed event-bus messages, the policy gate, or the storage layer, never direct…
6 parts874 wordsAlgorithm & Data Structure CatalogThis section catalogs every non-trivial algorithm or data structure the project uses, why it was chosen, and where to read more.
11 parts972 wordsDesign Decisions ExplainedThis section catalogues the non-obvious design decisions the project has made, the choices a reasonable engineer might second-guess. For each, the rationale.
Deep dives
44 pagesRegex patterns catch known failure modes. But what about novel failures that nobody wrote a pattern for? ft includes a Bayesian Online Change-Point Detection (BOCPD) engine that detects statistical regime changes in…
One part175 wordsProbabilistic Data StructuresSeveral subsystems use space-efficient probabilistic data structures to avoid costly exact lookups:
One part273 wordsSession Persistence and RestoreThe session-restoration library/test substrate can identify sessions that did not shut down cleanly ( shutdown_clean = 0 ), load a checkpoint, and exercise a restore state machine:
One part117 wordsDisaster Recovery DrillsThe disaster_recovery_drills module provides structured, repeatable DR drill scenarios that exercise the backup/restore pipeline and measure RTO/RPO compliance. Each drill scenario specifies:
One part227 wordsConnection Pool and Circuit BreakerThe mux connection pool reduces overhead by reusing persistent connections to the WezTerm mux server. Key design choices:
4 parts384 wordsPattern Engine ArchitectureThe pattern engine is a four-stage filter chain optimized for the common case (most text matches zero rules):
4 parts271 wordsSearch Modes — Lexical, Semantic, Hybridft search and ft robot search support three modes, selected via --mode :
5 parts330 wordsPolicy EngineThe policy engine sits between every action and its target. Its job: turn a request like send text to pane 7 into a decision: Allow , Deny , or RequireApproval .
4 parts222 wordsWorkflow EngineA workflow is a registered handler that triggers on detected patterns. The engine runs them safely:
4 parts165 wordsTransactional Mission ExecutionMulti-pane operations use a prepare/commit/compensate lifecycle borrowed from distributed transaction protocols.
5 parts466 wordsFleet Memory ControllerThe fleet memory controller synthesizes pressure from three independent subsystems into a single 4-tier model that drives uniform action across the system.
5 parts242 wordsThree-Tier ScrollbackIn a simple sizing model, 200 panes retaining roughly 20 MB of uncompressed backbuffer each consume about 4 GB before other process costs. That is an illustrative calculation, not a measured comparison against every…
3 parts196 wordsDistributed Wire ProtocolDistributed mode lets remote hosts stream pane state into an aggregator. The wire protocol is designed defensively: every input is validated, dedup'd, and bounded.
4 parts203 wordsRuntimeProof Sealed TraitThe no tokio rule is enforced at three layers: dependency (cargo-deny), test (CI checks), and type (RuntimeProof sealed trait).
4 parts204 wordsAttestation Bundle FormatA release attestation bundle is a content-addressed, Sigstore-signed JSON file under docs/attestations/ version .json . Its job: prove that every load-bearing README/AGENTS claim is backed by a hash-verified artifact.
4 parts232 wordsThe Watcher Capture Loopft watch runs the main capture loop that produces every byte of observed data. Understanding the loop is essential to understanding what ft is doing while it's doing nothing visible.
6 parts540 wordsStorage Schema and Migration Strategyft stores everything in a single SQLite database. The schema is versioned and migrations are tracked.
4 parts267 wordsRecorder and ReplayBeyond delta capture, ft has a separate recorder subsystem that produces high-fidelity execution traces, and a replay harness that runs those traces back deterministically. Together they enable post-incident…
4 parts341 wordsConnector FabricThe connector subsystem lets ft talk to external systems (issue trackers, monitoring, secret stores, log aggregators, custom internal services) through a unified bridge model.
4 parts253 wordsAgent Profiles, Personas, and Fleet TemplatesA profile is a reusable specification of a pane: which agent (codex / claude_code / gemini), what cwd, what env overrides, what session settings, what tools it can use. Profiles let you say spawn 3 of codex_ws…
4 parts321 wordsThe Cx Cancellation ModelCx is asupersync's capability and cancellation context. When FrankenTerm threads it explicitly through a call graph, it preserves typed cancellation, deadline, budget, and capability state at each audited operation…
4 parts256 wordsError TaxonomyEvery ft error is a typed envelope with a stable code, a human-readable message, and an optional actionable hint. The taxonomy is operator-readable and machine-routable.
3 parts159 wordsResource Pressure CockpitWhen operators see high memory, the cockpit contract demands they classify the residency source first. The contract is at docs/resource-pressure-cockpit-contract.md .
3 parts206 wordsMux Server Federationfrankenterm-mux-server is the headless mux daemon. frankenterm-mux-server-impl houses the shared implementation. Together they enable federated multi-host setups where one operator runs the GUI / Robot Mode and…
4 parts225 wordsNative Event Bridge (push mode)The default capture mode is poll: ft watch queries the mux for pane state every poll_interval_ms . A complementary push mode is available when the native event bridge is wired up.
3 parts192 wordsWASM Extension Surface (type substrate; runtime not yet wired)ft has a typed extension contract surface in extensions.rs designed for out-of-process WASM execution via wasmtime (component-model, async, std). The wasmtime runtime itself is not yet wired in the current shipped…
4 parts246 wordsNotification PipelineWhen detections fire, ft watch can notify operators through desktop notifications and webhooks.
3 parts210 wordsIPC and Local Authft exposes a local IPC surface so the Robot Mode CLI and the watcher can talk to each other without going through the database for every request (the GUI does not use it yet).
4 parts144 wordsBackup, Restore, and RetentionEach backup uses the SQLite online backup API for a consistent snapshot. The output archive contains:
3 parts244 wordsFormal Methods in This RepoThe project uses formal methods where they earn their keep, typically on invariant-critical paths where the cost of an undetected bug is high.
6 parts243 wordsTOON EncodingTOON (Token-Optimized Object Notation) is a compact tree serialization optimized for AI-to-AI envelopes. The goal is fewer tokens for the same payload when the consumer is an LLM, not byte-level compression.
One part243 wordsTerminal Emulator Capabilitiesft inherits its terminal-emulation surface from the vendored term + termwiz crates. The discipline here is implement upstream WezTerm correctness, then patch fixes upstream-wards. Recent correctness work:
3 parts524 wordsRecording vs Replay vs Snapshot vs BackupThese four words refer to four distinct mechanisms. They are often conflated; the codebase treats them as separate concerns.
5 parts164 wordsPane Filter Rules[ingest.panes] lets you control which panes the watcher observes. Filter rules are deterministic; ft list --json and ft robot state report each pane's observed flag and, for an excluded pane, its ignore_reason .
4 parts318 wordsCapacity PlanningProvisional sizing hypotheses gathered from operator practice and the perf substrate. They are inputs to measurement, not qualified upper bounds. In particular, the 100/200-pane memory rows are synthetic…
5 parts367 wordsSignal Handling and Clean Shutdownft watch attempts a bounded clean shutdown for catchable signals and reports an unclean result when task acknowledgement or storage flush does not finish. SIGKILL , blocking OS work, and independently delegated work…
4 parts125 wordsThe .ft Directory and Platform Layoutft manages workspace-local state under .ft/ in the workspace root, while global defaults and shared tooling follow OS platform conventions.
7 parts293 wordsasupersync Primitive ReferenceThe runtime_async module re-exports asupersync primitives with project-curated ergonomics. Quick reference for what's available:
2 parts162 wordsBuilt-in Workflow Handler CatalogThe workflow engine ships with the following built-in handlers ( crates/frankenterm-core/src/workflows/ ):
3 parts129 wordsSaved Searches and Scheduled Queriesft search saved lets operators bookmark FTS queries and optionally schedule them to re-run periodically.
4 parts150 wordsNotification Identity KeysA notification identity key is the deduplication primitive for the notification pipeline. Two notifications with the same identity key are treated as duplicates and the second is suppressed (subject to the throttling…
4 parts340 wordsThreat ModelWhat ft is designed to resist, and what's explicitly out of scope.
2 parts240 wordsSample Mission and Tx ContractsFor operators writing their first mission or tx contract, the authoritative shapes are the Rust types in crates/frankenterm-core/src/plan.rs — pub struct Mission ( MISSION_SCHEMA_VERSION = 2 ) and pub struct…
One part169 wordsGUI Render StateThe native GUI ( frankenterm-gui , shipped as FrankenTerm.app on macOS) is fully render-state-aware. Live state is plumbed through paint and reduce-motion gates:
Trust and proof
7 pagesLatest reality-check drumbeat: docs/reports/reality-check-2026-11-20.md (2026-11-20). Fourth full pass (RC4): docs/reality-check-bridge-plan-2026-11-20.md , epic ft-mgy5t2 (four-surface truth, cross-platform…
One part195 wordsSubstrate Audit DisciplineThe codebase is swept by family rather than by spot. Each family is a defect class with a known pattern; the discipline is that every audit closes every member of the family it touches.
5 parts765 wordsEngineering DisciplineThe project uses asupersync exclusively. Direct tokio usage is forbidden at three layers:
2 parts470 wordsPerformance BenchmarksBenchmarks live under crates/frankenterm-core/benches/ ( 119 Criterion bench files) and use human-readable budgets with machine-readable artifacts. In the shared agent checkout, proof and closeout benchmark runs must…
1 parts209 wordsTestingThe project maintains extensive test coverage:
One part85 wordsReference CardOne part212 wordsMaintainers: how counts stay honestEvery numeric claim in this README is wrapped in !--count:* -- markers and refreshed by scripts/stamp-readme-counts.sh . The default worktree recipe each marker maps to:
The project
3 pagesThis is the engineering-process surface: what's around ft and how it integrates.
One part165 wordsAbout ContributionsPlease don't take this the wrong way, but I do not accept outside contributions for any of my projects. I simply don't have the mental bandwidth to review anything, and it's my name on the thing, so I'm responsible…
One part50 wordsLicenseMIT License (with OpenAI/Anthropic Rider). See LICENSE for details.