Real-World Scenarios
702 words3 min read6 subsectionsFrom the README at ft 0.15.21
On this page6
These are the workloads ft was built for. Each scenario describes the operator pain without ft, then how the platform addresses it.
Scenario 1 — Detect and recover from rate limits across a 50-pane swarm
Without ft: You're driving 50 Codex/Claude Code panes in parallel. One agent hits its usage limit and silently stops making progress. You don't notice for 30 minutes. The other 49 agents continue burning tokens until they hit their limits.
With ft: the native rule packs recognize supported usage-limit output and record the originating pane_id and rule_id. Provider wording changes and unknown forms still require detection updates; the 50-pane journey needs target-class qualification. Two approaches:
# A) Let the built-in workflow handle it (preferred)
ft watch --foreground --auto-handle # registers handle_usage_limits, handle_compaction, …
# B) Inspect detected events before choosing a provider-specific recovery
ft robot --format json events --unhandled --limit 50 | \
jq -c '.data.events[] | {id, pane_id, rule_id}'
# Wait for literal output on one pane (this does not subscribe to a rule ID)
ft robot wait-for 7 "Usage limit" --timeout-secs 3600
ft robot wait-for takes a single pane_id and a substring (or regex with --regex). For fleet-wide reactions, inspect ft robot events --unhandled or use --auto-handle. Context compaction does not reset an account quota. A custom consumer must deduplicate and acknowledge events after an observed outcome, and pause when recovery needs operator approval. Workflow sends pass the same policy gate as ft robot send: they go through when the pane shows prompt evidence (OSC 133 from an integrated shell, or a recognized Codex / Claude Code composer at rest) and stop at an approval request or a denial otherwise, so a busy agent or an open menu is never typed into.
Scenario 2 — Coordinate a multi-pane mission with safe rollback
Without ft: You need to run a 5-step refactor across 4 panes (e.g., "pane 1 rewrites tests, panes 2–4 update implementations in parallel, then pane 1 verifies"). You wire this with bash, shell sleeps, and prayer. When step 3 fails halfway, you have no way to roll back the partial work.
With ft:
ft mission plan --mission-file refactor.json # validate the contract
ft mission status # see the dispatch summary
ft tx run --contract-file refactor-tx.json # prepare + commit deterministically
# if a step fails mid-commit, ft tx automatically runs compensation
ft tx show --include-contract # see the receipt + per-step audit
The tx engine uses prepare/commit/compensate phases with an idempotency ledger. Compensation can fail, and an interrupted external effect can remain indeterminate; inspect the receipt before retrying. Mission planning and lifecycle metadata do not yet drive or cancel running agent tasks (ft-majms, ft-xxfwy.48). This scenario remains a product goal until that driver and crash/recovery path are qualified.
Scenario 3 — Reconstruct what an agent did six hours ago
Without ft: A coding agent did something destructive at 02:14 AM and you find out at 08:00. The terminal scrollback rolled. The pane process exited. You have no record.
With ft: captured pane deltas are redacted and stored in SQLite with FTS5 indexing. Capture gaps, truncation, retention, and periods without a running watcher limit the history; it is not a byte-perfect record of all terminal activity. Policy audit records cover instrumented action and denial paths; the supported-surface audit tracks the remaining coverage gaps.
# Search captured output for the timeframe (--since takes epoch ms)
SIX_HOURS_AGO_MS=$(( $(date +%s) * 1000 - 6 * 3600 * 1000 ))
ft search "the suspicious string" --pane 7 --since $SIX_HOURS_AGO_MS
# `ft history` accepts human-readable since strings
ft history --pane 7 --since "6 hours ago"
ft history --pane 7 --since "2026-05-16T02:00:00" --until "2026-05-16T03:00:00"
# Check the audit trail for actions ft itself took (--since takes epoch ms)
ft audit --pane 7 --since $SIX_HOURS_AGO_MS
# Pull a long tail of the pane's current buffer (audit history covers the rest)
ft robot get-text 7 --tail 5000
Scenario 4 — Stand up a fresh swarm host with a known-safe envelope
Without ft: You provision a new VPS, install your CLI tools, kick off 100 agents, and the box OOMs at 87. You have no model of what "safe" capacity is for this hardware.
With ft: The operating-envelope planner evaluates available pressure snapshots and configured bounds. Admission is a model decision, not a hardware safety guarantee. Target-class resource evidence remains unproven, and authenticated receipt consumption is tracked in ft-7h5da.10.4.4. Inspect the evidence state and limiting inputs before starting a large fleet.
ft swarm envelope # current admission verdict and the limiting inputs
ft mission objective-plan --objective "spawn 100 codex panes" --strictness strict \
--capacity-posture defer
# objective-plan does not read the envelope; pass the posture the envelope implies
Scenario 5 — Drive one AI by another, safely
Without ft: You want Claude Code (the meta-agent) to control 10 specialist Codex panes. You build glue with tmux send-keys, regex parsing of scrollback, and brittle sleep loops. Three weeks later you have a 2000-line Python script with seven race conditions.
With ft: The meta-agent runs ft robot --format toon state for fleet snapshots, ft robot wait-for for condition-based blocking, ft robot send for input (with policy gates), and ft robot search for cross-pane retrieval. Every call returns a structured envelope. The meta-agent never sees raw scrollback unless it explicitly asks.
# Snapshot every pane the mux can see (use TOON to save tokens)
ft robot --format toon state
# Wait for a specific condition on a single pane
ft robot wait-for 7 "Press Enter to continue" --timeout-secs 600
ft robot send 7 "" # respond
# Pull unhandled events across the fleet, react per rule_id
ft robot --format json events --unhandled --limit 50 | \
jq -c '.data.events[]' | while read -r e; do
rule=$(echo "$e" | jq -r .rule_id); pane=$(echo "$e" | jq -r .pane_id)
case "$rule" in
*.usage.reached) printf 'Review provider recovery for pane %s\n' "$pane" ;;
*.approval_needed) printf 'Operator approval required for pane %s\n' "$pane" ;;
esac
done
Scenario 6 — Investigate a crash without losing context
Without ft: A pane crashes. You have a core file maybe, scrollback definitely gone, no way to correlate with the other panes' state at the moment of failure.
With ft:
ft reproduce export --kind crash --out /tmp/incident
# Bundle includes: recent events, audit tail, stored pane/mux rows, SQLite metadata,
# redacted config, git status, latest crash report, beads coordination snapshot
# (add --process-sample for a redacted process-tree snapshot)
Live collectors snapshot the world at the moment of failure. The bundle is portable; you can attach it to a bug report and a reviewer can reconstruct the incident without the original host.