FrankenTerm

Open sourceRustft 0.15.21

Stop babysitting your agents.

FrankenTerm is a terminal for people who run several AI coding agents at once. It reads every pane as output arrives, recognizes rate limits, approval prompts and context compaction in Claude Code, Codex and Gemini, and gives your scripts and other agents a checked way to respond.

Nine agent panes running Claude Code, Codex, Gemini and a shell. ft has recorded three events: codex.usage.reached in pane 7, claude_code.approval_needed in pane 4, codex.session.token_usage in pane 9.

01The problem

Agents stall where you aren’t looking.

A coding agent that hits its usage limit stops quietly. One waiting at a permission prompt waits until someone answers. After a context compaction it may have lost the instructions you gave it. With ten panes open you find out late. FrankenTerm reads every pane, so it finds out first.

What it does

What ft does.

ft is the command line and the control plane. FrankenTerm.app is the macOS terminal, and both talk to the same mux server. Together they do the work that usually ends up as bash glue around tmux.

How ft compares
  • Watch

    It reads every pane

    ft watch captures each pane’s new output as it arrives. When it cannot capture a stretch, it records the gap instead of hiding it.

    ft watchft status

  • Detect

    It knows what agents say

    Built-in rules recognize usage limits, rate limits, approval prompts, compaction, sign-in requests and session ends from Claude Code, Codex and Gemini.

    ft eventsft rules

  • Remember

    It keeps a searchable record

    Output is stored in SQLite with secrets redacted, and every read is redacted again. Search by words, by similarity, or both at once.

    ft searchft reproduce

  • Drive

    It answers to code

    Robot Mode and the MCP server return JSON or TOON envelopes, so a script or another agent can read panes, wait for text and send input.

    ft robotft mcp

  • Guard

    It refuses risky input

    Every send passes a policy gate. It types into a pane that shows a prompt, refuses a busy one, and asks for a one-time code when it cannot tell.

    ft approveft audit

  • Everywhere

    It runs on your Mac and phone

    FrankenTerm.app is a native macOS terminal with its own engine. The iPhone and iPad app attaches to the same panes over SSH.

    FrankenTerm.appft mobile

Before and after

What changes for you.

Six situations from the README, each with the commands that handle it. Where a piece is still in progress, the scenario says so.

All scenarios
  1. 01A rate limit in pane 31
  2. 02A permission prompt nobody saw
  3. 03What happened at 2:14 a.m.
  4. 04A refactor across four panes
  5. 05One agent driving ten
  6. 06A new machine for a big swarm

A rate limit in pane 31

Today

One Codex pane hits its usage limit and stops. The screen barely changes, so you notice half an hour later, after the other panes have spent their own quotas.

With FrankenTerm

The rule codex.usage.reached fires with the pane and the reset time. ft watch --auto-handle starts the usage-limit workflow, and a script can take the same event from ft robot events --unhandled.

The commands for it

A permission prompt nobody saw

Today

Claude Code asks before running a command and waits. The pane looks idle, and it stays that way until you happen to scroll past it.

With FrankenTerm

claude_code.approval_needed records an event for that pane, and ft attention next names the item that needs a person first. Nothing types an answer for you unless a rule and the policy gate both allow it.

The commands for it

What happened at 2:14 a.m.

Today

An agent ran something destructive overnight. By morning the scrollback has rolled and the process has exited, so there is nothing left to read.

With FrankenTerm

ft search reads the stored, redacted output for that pane and hour, and ft audit lists every action ft itself took. Capture gaps and retention limits are recorded, so you also know what the record does not cover.

The commands for it

A refactor across four panes

Today

Bash, sleeps and hope. When step three fails halfway, there is no record of what ran and no way back.

With FrankenTerm

ft tx run prepares each step, commits them in order, and runs compensations when a step fails. An idempotency ledger keeps a retry from repeating work. Missions do not yet dispatch work to running agents.

The commands for it

One agent driving ten

Today

tmux send-keys, regexes over scrollback and sleep loops. Three weeks later it is a 2,000-line script with race conditions.

With FrankenTerm

The lead agent calls ft robot state, wait-for, send and search, or the same tools over MCP. Each call returns a typed envelope, and each send passes the policy gate.

The commands for it

A new machine for a big swarm

Today

You start a hundred agents on a fresh server and it runs out of memory at eighty-seven.

With FrankenTerm

ft swarm envelope reports whether new panes would be admitted and which input is the limit, and says no when its telemetry is missing. It models the machine; it does not guarantee the hardware.

The commands for it

1 of 6

02Watch and detect

Every pane, read as it happens.

ft watch captures what each pane prints, remembers what it has already seen, and runs the new text through a rule pack written for the agents you use. A match becomes an event with a rule ID, a severity and the values the rule pulled out of the text.

Capture

Only the new text.

Each pass reads a pane’s recent output and lines it up against the last capture, using up to 1 MiB of overlap, to find where the new text begins. When the two do not line up, ft keeps what it read and records a gap, so you can tell captured history from missing history.

The capture loop

Choose what the pane does before the next poll, and watch what ft stores.

Interactive

Before the next poll, the pane

The panelast readthis read

  1. GET /api/items?page=0 200 3ms
  2. POST /api/cart?page=1 200 10ms
  3. GET /api/user?page=2 200 17ms
  4. GET /api/search?page=3 200 5ms
  5. GET /api/orders?page=4 200 12ms
  6. POST /api/items?page=5 200 19ms
  7. GET /api/cart?page=6 200 7ms
  8. GET /api/user?page=7 200 14ms
  9. GET /api/search?page=8 200 21ms
  10. POST /api/orders?page=9 200 9ms
  11. GET /api/items?page=10 200 16ms
  12. GET /api/cart?page=11 200 4ms
  13. GET /api/user?page=12 200 11ms
  14. POST /api/search?page=13 200 18msnew
  15. GET /api/orders?page=14 200 6msnew

Poll 2: Delta

The end of the last read matches the start of this one (128 B of overlap). Only the new 2 lines are stored: 67 B of the 195 B read.

  1. #2delta2 lines67 B
  2. #1delta6 lines192 B

Read387 B

Stored259 B

Polls2

A miniature: each read here is the pane’s last 6 lines, and the comparison is a port of extract_delta in ingest.rs. ft watch reads every 200 ms by default (ingest.poll_interval_ms) and lines each read up against the last one using up to 1 MiB of overlap. An overlap of 8 bytes or more counts on its own; a shorter one counts only if it is at least 2 bytes and holds more than whitespace.

Detection

Try the rule pack.

This is the built-in pack, read from the Rust source when this page was built, running in your browser. Pick a sample from the test corpus or paste your own output. The near-misses show why a matching keyword alone does not make a detection.

How the engine works

Pick a sample, or paste output from one of your own agents.

Interactive

Recorded answer from the Rust engine: codex.usage.reached. The port agrees.

1 detection: codex.usage.reached.

  1. 1

    Quick reject

    At least one of the pack’s 118 anchors appears: You've hit your usage limit, usage limit.

  2. 2

    Anchors, then regex

    Rules with an anchor in the text: 2. Each one then runs its confirming regex.

    • codex.usage.reachedon You've hit your usage limitregex matched
    • claude_code.usage.warningon usage limitregex missed
  3. 3

    Detections

    • criticalcodex.usage.reached

      Codex usage limit reached

      matched
      try again at 10:30 AM UTC
      reset_time
      10:30 AM UTC
      confidence
      0.95

      Starts handle_usage_limits under --auto-handle

On all 169 fixtures in the repository’s test corpus, this port finds the rule IDs, matched text and extracted values the Rust engine recorded. Every rule’s regex is translated from Rust syntax when the site is built. In Rust the quick reject is a Bloom filter over the anchors, and the anchor search is Aho-Corasick. Unlike this tester, the watcher also skips rules written for an agent other than the pane’s.

Every rule

All forty-two rules.

Each rule is data: the agent, the event it reports, a severity, the keywords that make it a candidate, and an optional regex that confirms it and pulls out values. When an agent changes its wording, the fix starts with a captured sample in the corpus.

Rule drift workflow

Filter by agent or severity. Try it sends a rule’s sample from the corpus to the tester above.

Interactive

Showing all 42 rules.

  1. codex.usage.warning_25info

    Codex usage below 25% remaining

    Anchorsless than 25%then a regex

    no workflow

    3 fixtures

  2. codex.usage.warning_10warning

    Codex usage below 10% remaining

    Anchorsless than 10%then a regex

    no workflow

    3 fixtures

  3. codex.usage.warning_5warning

    Codex usage below 5% remaining - critical threshold

    Anchorsless than 5%then a regex

    no workflow

    2 fixtures

  4. codex.usage.reachedcritical

    Codex usage limit reached

    AnchorsYou've hit your usage limitYou've reached your usage limitYou’ve hit your usage limit+1then a regex

    handle_usage_limits

    8 fixtures

  5. codex.session.token_usageinfo

    Codex session token usage summary

    AnchorsToken usage:then a regex

    handle_session_end

    5 fixtures

  6. codex.session.resume_hintinfo

    Codex session resume hint with session ID

    Anchorscodex resumethen a regex

    no workflow

    5 fixtures

  7. codex.auth.device_code_promptinfo

    Codex device authentication code prompt

    AnchorsEnter this one-time codeenter this one-time codethen a regex

    handle_auth_required

    5 fixtures

  8. codex.rate_limit.detectedcritical

    Codex rate limit detected - provider throttling active

    Anchorsrate limitRate limit429+2then a regex

    handle_usage_limits

    3 fixtures

  9. claude_code.compactionwarning

    Claude Code context compaction event

    AnchorsConversation compactedAuto-compactcontext compacted+2then a regex

    handle_compaction

    7 fixtures

  10. claude_code.bannerinfo

    Claude Code session start banner

    AnchorsClaude Code vclaude-code/then a regex

    handle_session_start_context

    3 fixtures

  11. claude_code.usage.warningwarning

    Claude Code usage warning

    Anchorsusage limitapproaching limittoken limit+5then a regex

    handle_claude_code_limits

    5 fixtures

  12. claude_code.usage.reachedcritical

    Claude Code usage limit reached

    Anchorsrate limitlimit reachedquota exceeded+11then a regex

    handle_claude_code_limits

    10 fixtures

  13. claude_code.session.cost_summaryinfo

    Claude Code session cost summary

    AnchorsTotal cost:Session cost:then a regex

    handle_session_end

    2 fixtures

  14. claude_code.auth.api_key_errorcritical

    Claude Code API key authentication error

    AnchorsInvalid API key ·Use an Anthropic API key insteadno regex

    handle_auth_required

    2 fixtures

  15. claude_code.rate_limit.detectedcritical

    Claude Code rate limit detected - Anthropic throttling active

    Anchorsrate limitRate limit529+1then a regex

    handle_claude_code_limits

    3 fixtures

  16. claude_code.auth.login_requiredwarning

    Claude Code login/authentication required via browser

    AnchorsTo sign inlogin requiredplease authenticate+5no regex

    no workflow

    9 fixtures

  17. claude_code.tool_useinfo

    Claude Code tool invocation

    AnchorsUsing toolTool call:Executing:then a regex

    no workflow

    3 fixtures

  18. claude_code.approval_neededwarning

    Claude Code approval/permission prompt

    AnchorsApprove?Allow?Permission+1then a regex

    no workflow

    3 fixtures

  19. claude_code.context.warningwarning

    Claude Code context window warning

    Anchorscontext windowcontext limitrunning low on context+3then a regex

    no workflow

    4 fixtures

  20. claude_code.thinkinginfo

    Claude Code extended thinking mode

    AnchorsThinkingExtended thinkingultrathinkthen a regex

    no workflow

    3 fixtures

  21. claude_code.error.networkcritical

    Claude Code network/connection error

    AnchorsAPI Error: then a regex

    handle_on_error_cass_search

    2 fixtures

  22. claude_code.error.timeoutwarning

    Claude Code timeout error

    AnchorsAPI Error: then a regex

    handle_on_error_cass_search

    2 fixtures

  23. claude_code.session.endinfo

    Claude Code session ended

    AnchorsSession endedGoodbyesession completethen a regex

    handle_session_end

    2 fixtures

  24. claude_code.model.selectedinfo

    Claude Code model selection

    Anchorsmodel:Using modelclaude-then a regex

    no workflow

    3 fixtures

  25. claude_code.compaction.completeinfo

    Claude Code compaction completed

    AnchorsCompaction completeSummary createdcompacted successfully+1then a regex

    handle_compaction

    3 fixtures

  26. claude_code.error.overloadedwarning

    Claude API is overloaded

    AnchorsAPI Error: then a regex

    handle_on_error_cass_search

    2 fixtures

  27. claude_code.error.serverwarning

    Claude API server error

    AnchorsAPI Error: then a regex

    handle_on_error_cass_search

    2 fixtures

  28. claude_code.error.safeguardswarning

    Claude model safeguards refused the turn

    AnchorsAPI Error: then a regex

    handle_on_error_cass_search

    2 fixtures

  29. claude_code.error.model_unavailablewarning

    Claude Code's selected model is unavailable

    Anchorsissue with the selected model (then a regex

    handle_on_error_cass_search

    1 fixture

  30. claude_code.error.prompt_too_longwarning

    Claude Code's conversation no longer fits the model's context

    AnchorsPrompt is too longInput is too long for requested modelContext limit reachedthen a regex

    handle_on_error_cass_search

    1 fixture

  31. claude_code.error.credit_balancecritical

    The account behind Claude Code is out of API credits

    AnchorsCredit balance is too lowthen a regex

    handle_on_error_cass_search

    1 fixture

  32. gemini.usage.warningwarning

    Gemini usage limit approaching

    AnchorsUsage limit warningapproaching your usage limitusage limit approachingthen a regex

    handle_gemini_quota

    2 fixtures

  33. gemini.usage.reachedcritical

    Gemini usage limit reached

    AnchorsUsage limit reached for all Pro modelsUsage limit reached for Pro modelsUsage limit reached for your Pro models+1no regex

    handle_gemini_quota

    3 fixtures

  34. gemini.rate_limit.detectedcritical

    Gemini rate limit detected - Google API throttling active

    Anchorsrate limitRate limitRESOURCE_EXHAUSTED+2then a regex

    handle_gemini_quota

    4 fixtures

  35. gemini.session.summaryinfo

    Gemini session summary with statistics

    AnchorsInteraction SummarySession Summarythen a regex

    handle_session_end

    3 fixtures

  36. gemini.session.resume_hintinfo

    Gemini session resume hint

    Anchorsgemini resumegemini --resumethen a regex

    no workflow

    2 fixtures

  37. gemini.model.usedinfo

    Gemini model being used

    AnchorsResponding with gemini-Using modelModel:+1then a regex

    no workflow

    5 fixtures

  38. gemini.auth.oauth_requiredwarning

    Gemini CLI OAuth authentication required via browser

    Anchorsauthorize this appcomplete authenticationsign in with Google+2no regex

    no workflow

    5 fixtures

  39. wezterm.build.cargo_failedwarning

    Cargo compilation finished with errors

    Anchorserror: could not compilethen a regex

    no workflow

    No corpus sample

    0 fixtures

  40. wezterm.test.cargo_failedwarning

    Rust test suite finished with failed tests

    Anchorstest result: FAILED.then a regex

    no workflow

    No corpus sample

    0 fixtures

  41. wezterm.mux.connection_lostcritical

    WezTerm mux server connection lost

    Anchorsmux serverMux serverthen a regex

    handle_on_error_cass_search

    2 fixtures

  42. wezterm.pane.exitedinfo

    WezTerm pane process exited

    Anchorspane exitedshell exitedprocess exited+2then a regex

    no workflow

    4 fixtures

Read from crates/frankenterm-core/src/patterns.rs when this page was built. Terminal rules apply to every pane. The others apply to panes ft has identified as running their agent, and to panes whose agent it cannot tell. A rule with no workflow still records an event that ft events, Robot Mode and MCP clients can read.

Workflows

From an event to an action.

Run ft watch --auto-handle and a detection can start a workflow. A workflow that types into a pane goes through the same policy gate as anyone else, and a workflow can name the panes allowed to start it, so text printed in one pane cannot set off a workflow meant for another.

The workflow catalog
  • handle_usage_limits

    Exits Codex, saves a summary of the session, and picks the best available account to continue on.

    codex.usage.reachedcodex.rate_limit.detected

  • handle_session_end

    Saves a structured record of the session from what the agent printed, such as token counts or cost.

    codex.session.token_usageclaude_code.session.cost_summaryclaude_code.session.endgemini.session.summary

  • handle_auth_required

    Works out what kind of sign-in the pane needs, records it, and builds a recovery plan. It waits out a cooldown before handling the same pane again.

    codex.auth.device_code_promptclaude_code.auth.api_key_error

  • handle_compaction

    Waits for the compaction to finish, sends a prompt that has the agent reread critical context such as AGENTS.md, and checks that the prompt went in.

    claude_code.compactionclaude_code.compaction.complete

  • handle_session_start_context

    Looks up hints from your agents’ past sessions and sends them to the new session as a starting prompt.

    claude_code.banner

  • handle_claude_code_limits

    Checks the pane, skips a limit it handled recently, then classifies the limit, records it in the audit log and builds a recovery plan.

    claude_code.usage.warningclaude_code.usage.reachedclaude_code.rate_limit.detected

  • handle_on_error_cass_search

    Searches your agents’ past sessions for fixes to the same error and records what it finds with the workflow’s result and in the audit log.

    claude_code.error.networkclaude_code.error.timeoutclaude_code.error.overloadedclaude_code.error.serverclaude_code.error.safeguardsclaude_code.error.model_unavailableclaude_code.error.prompt_too_longclaude_code.error.credit_balancewezterm.mux.connection_lost

  • handle_gemini_quota

    Does the same for Gemini: classifies the quota, records it in the audit log and builds a recovery plan.

    gemini.usage.warninggemini.usage.reachedgemini.rate_limit.detected

03Record and search

A record you can search.

What ft captures is redacted and stored in a local SQLite database. Search every pane by words, by similarity or both, and gather a whole incident into one bundle when something breaks.

Redaction

Secrets stay out of the record.

Captured text is redacted before it is stored, and again before get-text, search, the web streams or MCP return it. The 33 built-in patterns cover keys from Anthropic, OpenAI, GitHub, GitLab, AWS, Stripe, SendGrid, Datadog and more, as well as JWTs, private keys, Twilio account SIDs and database URLs.

Safety guarantees

Pick a sample or paste your own. Nothing leaves this tab.

Interactive
$ cat .env.local
ANTHROPIC_API_KEY=[REDACTED]
OPENAI_API_KEY=[REDACTED]
GITHUB_TOKEN=[REDACTED]
AWS_ACCESS_KEY_ID=[REDACTED]
[REDACTED]
DATABASE_URL=[REDACTED]db.internal:5432/app
STRIPE_SECRET_KEY=[REDACTED]
[REDACTED]
LOG_LEVEL=debug

8 secrets replaced, by 8 of the 33 patterns.

The 33 patterns, in the order they run

  1. 1anthropic_key×1
  2. 2openai_key×1
  3. 3github_token×1
  4. 4github_fine_grained_pat
  5. 5gitlab_token
  6. 6xai_key
  7. 7groq_key
  8. 8google_api_key
  9. 9google_oauth_token
  10. 10huggingface_token
  11. 11replicate_token
  12. 12anyscale_key
  13. 13perplexity_key
  14. 14ai_provider_keyed_value
  15. 15aws_access_key_id×1
  16. 16aws_secret_key×1
  17. 17bearer_token
  18. 18http_basic_auth
  19. 19slack_token
  20. 20stripe_key×1
  21. 21sendgrid_key
  22. 22datadog_api_key×1
  23. 23database_url×1
  24. 24ssh_private_key
  25. 25pgp_block
  26. 26jwt_token
  27. 27device_code
  28. 28oauth_url
  29. 29generic_api_key
  30. 30generic_token
  31. 31generic_password
  32. 32generic_secret
  33. 33twilio_account_sid
The thirty-three patterns come from SECRET_PATTERNS in crates/frankenterm-core/src/redactor.rs as this page was built, and run here the way Redactor::redact runs them: one pass each, in order, over the text the last pass left. The build checks the port against the redactor’s own 122 test vectors. ft does one more thing this page cannot show: before storing, it keeps a short raw lookback, so a secret split across two captured chunks is still found and masked in both. Every secret in the samples is random, drawn as the page loads.

Incidents

One bundle per incident.

ft reproduce export gathers what a reviewer needs into one portable directory. It runs as its own process, so sources that only a running watcher publishes, such as tailer health, are marked unavailable rather than invented.

Incident bundles
# what pane 7 printed after 02:00
ft search "DROP TABLE" --pane 7 --since 1796349600000

# what ft did to it: actions, undo records, workflows
ft history --pane 7 --since "6 hours ago"

# the policy decision behind each action
ft audit --pane 7 --since 1796349600000

# one directory to hand a reviewer
ft reproduce export --kind crash --out ./incident
Recent events
The last 50 events ft recorded.
Audit tail
Recent policy decisions and their results from audit_actions, without free-text summaries.
Pane rows
Pane and mux state from the stored rows, not a live mux query.
Database metadata
Journal mode, size, schema version and row counts.
Config and git
Your configuration with secrets redacted, and the repository’s git status.
Crash report
The latest crash report ft wrote.
Beads snapshot
The coordination state in .beads/issues.jsonl.
Process treeonly with --process-sample
A bounded, redacted ps snapshot.

Not collected yet GPU state, render-state snapshots, synchronized-output drain telemetry and WAL checkpoint detail.

04Control from code

Your panes, as an API.

Robot Mode gives scripts and agents the view you have: pane state, recent text, events and search, in fifty-two command families that answer in JSON or TOON with stable error codes. The MCP server offers a subset of it to any MCP client. One agent can run ten others without scraping a screen.

Robot Mode

Envelopes, not screen-scraping.

Every ft robot command answers with the same envelope: ok, then the data, or an error code and a hint when it fails, plus the time taken and the version. ft robot why looks up what an error code means. --format toon switches to TOON, an encoding built to spend fewer tokens, and --stats prints how the two compare on that response.

Robot Mode

Pick a command, then switch between JSON and TOON.

Interactive

Command

Format

ft robot --format json --stats rules test "You've hit your usage limit. Please try again at 2026-01-20 12:34 UTC."

[stats] JSON: 91 tokens, TOON: 96 tokens (-5% savings)

{"ok": true,"data": {"text_length": 70,"match_count": 1,"matches": [{"rule_id": "codex.usage.reached","agent_type": "codex","event_type": "usage.reached","severity": "critical","confidence": 0.95,"matched_text": "try again at 2026-01-20 12:34 UTC","extracted": {"reset_time": "2026-01-20 12:34 UTC"}}]},"elapsed_ms": 29,"version": "0.15.21","now": 1796423966709,"schema_version": 1}

Recorded from ft 0.15.21

A rule match: the rule, its severity, and the reset time pulled out of the text.

JSON91tokens
TOON96tokens
Saved−5%by TOON

TOON is 5% larger than compact JSON for this response. Short replies carry little to compact.

The envelope, on every command

ok
true, or false with the error fields
data
the answer
error_code
a stable code, when ok is false
hint
what to try next
elapsed_ms
time taken
version
the ft that answered
now
epoch milliseconds
schema_version
the envelope's own version
Token counts use ft’s own estimate, the larger of bytes ÷ 4 and the word count, over compact JSON and the TOON text. That is what --stats prints, and for the recorded responses this page’s numbers match ft’s.

MCP

Thirty-seven tools over MCP.

ft mcp serve offers a subset of Robot Mode as MCP tools over stdio, plus mission and steering tools of its own, for Claude Code, Codex or any other MCP client. Replies come in a near copy of the robot envelope, with mcp_version in place of schema_version, and sends meet the same policy gate.

What MCP covers

Start the server

$ ft mcp serve

Or name it in an MCP client’s config

{ "mcpServers": { "frankenterm": { "command": "ft", "args": ["mcp", "serve"] } } }

Panes8

  • wa.stateGet current pane states
  • wa.get_textGet text content from a pane
  • wa.domSemantic pane API: flat OSC 133 zones for a pane
  • wa.wait_forWait for a pattern match in pane output
  • wa.sendSend text to a pane with policy gating
  • wa.reservationsList active pane reservations
  • wa.reserveCreate an exclusive pane reservation
  • wa.releaseRelease a pane reservation by ID

Events6

  • wa.eventsGet a bounded, non-resumable newest-first snapshot of pattern detection events
  • wa.await_eventLong-poll DB-backed rule events with storage-authoritative scope-bound cursor tokens
  • wa.events_annotateSet or clear an event note
  • wa.events_triageSet or clear an event triage state
  • wa.events_labelAdd/remove/list event labels
  • wa.attentionRead attention-router status

Rules and search6

  • wa.rules_listList pattern detection rules in the rule library
  • wa.rules_testTest pattern detection rules against provided text
  • wa.searchUnified lexical/semantic/hybrid search across captured pane output
  • wa.cass_searchSearch coding agent session history via cass
  • wa.cass_viewView context for a cass search hit
  • wa.cass_statusCheck cass index status

Workflows and transactions6

  • wa.workflow_runExecute a workflow
  • wa.workflow_statusQuery workflow execution status
  • wa.tx_planValidate and summarize mission transaction contract metadata
  • wa.tx_showInspect mission tx lifecycle, receipts, and legal transitions
  • wa.tx_runExecute deterministic tx prepare+commit and compensation on partial failure
  • wa.tx_rollbackExecute compensation phase for committed tx steps

Missions and planning9

  • wa.mission_objective_planCompile an operator objective into a dry-run mission plan without mutating panes
  • wa.mission_stateQuery mission lifecycle state
  • wa.mission_explainShow legal lifecycle transitions
  • wa.mission_pausePause an active mission, creating a checkpoint
  • wa.mission_resumeResume a paused mission, restoring prior lifecycle state
  • wa.mission_abortPersist a mission abort request
  • wa.steer_planEmit a deterministic steering receipt for a standard scenario
  • wa.rehearsal_scoreScore or explain a demo rehearsal manifest without mutating panes
  • wa.operating_envelopeRead the dry-run swarm operating envelope and optional reason-code explanation

Accounts2

  • wa.accountsList accounts for a service with usage info
  • wa.accounts_refreshRefresh account usage via caut

The policy gate

It types only at a prompt.

Before any send, the gate checks the kill switch, the pane’s reservation, the rate limit, whether a full-screen program is open, whether capture recently lost output and whether the pane is at a prompt, then the command itself. A shell set up with ft setup shell counts as a prompt, and so does a Codex or Claude Code composer at rest. When a check fails, the send is refused or held for a one-time approval code.

The policy engine

Change who is sending, what, and the state of the pane.

Interactive

Who sends it

Untrusted. Wherever the pane’s state is unknown, the send waits for approval.

What it sends

Pane 7

Shell
Screen
Reservation

Conditions

Needs approval · dcg.core.git:reset-hard

The checks, in order

  1. 1Kill switchNot tripped
  2. 2ReservationNo one else holds the pane
  3. 3Rate limitUnder 30 sends in 60 seconds
  4. 4Full-screen programNormal screen
  5. 5Capture gapCapture is continuous
  6. 6PromptAt a prompt
  7. 7Repeated failuresNo failing loop
  8. 8Command checkdcg.core.git:reset-hard
  9. 9Your rulesNot reached

What ft returns

Needs approval

Nothing is sent until a person approves this exact request.

{"decision": "require_approval","reason": "git reset --hard discards uncommitted changes","rule_id": "dcg.core.git:reset-hard","approval": {"allow_once_code": "K7Q2M9XD","allow_once_full_hash": "sha256:5d8263b0e64719421f79ce137ab1da84f51037145a1fe12add57a4b588edface","expires_at": 1796486400000,"summary": "send_text pane 7: git reset --hard HEAD~1","command": "ft approve K7Q2M9XD"}}

To let it through

$ ft approve K7Q2M9XD
# the same text to pane 7 now goes through, once
The checks a send_text meets, in the order evaluate_authorization in crates/frankenterm-core/src/policy.rs runs them, with the default [safety] settings. A heavy cargo build sent by an agent meets one more check, before the command check. Rule codes and messages are ft’s own; the decision’s context is left out.

05Safety

When in doubt, it says no.

ft tells you whether there is room for more agents, and holds back when it cannot measure. A change across several panes runs as a transaction with an undo for each step. Actions and policy decisions go to an audit trail you can query.

Operating envelope

Admission, with reasons.

ft swarm envelope reads five sources (capacity, remote build workers, the Beads queue, Agent Mail and git) and runs eighteen checks in a fixed order. The first that holds sets the verdict and the budget, with reason codes. A source it cannot read lowers the envelope instead of passing. The plan is advice: it changes nothing by itself.

Operating envelope

Change what the five sources report, and watch the first failing check decide.

Interactive
Capacityft robot swarm-capacity status
Telemetry
Pressure
Governor
Target proof
Remote buildsrch status --json
Work queuebv --robot-triage
Ready work
Agent Mailfetch_inbox
Working treegit status --short --branch

Admit · green · 4 agents, 1 proof lane

The eighteen checks, in order

  1. 1A source kept raw pane textblock
  2. 2Deleted paths in the treeblock
  3. 3Kill switch onblock
  4. 4Pressure blackshed
  5. 5Governor blocks heavy workblock
  6. 6Build evidence contradicts itselfblock
  7. 7Build topology check failedblock
  8. 8Pressure redshed
  9. 9Governor decision missingdefer
  10. 10Governor throttles heavy workdegrade
  11. 11Overlapping edits or an active ownerwait
  12. 12No healthy build workerdefer
  13. 13Target hardware not provendefer
  14. 14Agent Mail down or degradeddegrade
  15. 15No ready workwait
  16. 16Stale readingsdegrade
  17. 17Remote proof insufficientdegrade
  18. 18A required source not collecteddefer
  19. →None of themadmit

The plan

Admitgreen · measured

Every required source answered and nothing stands in the way.

Agents4
Proof lanes1
Next safe windowadmit_now
$ ft swarm envelope --scenario healthy
Operating Envelope:
  Tier: green outcome=admit confidence=measured
  Admission: agents=4 proofs=1 windows=3
  Next safe window: admit_now (open) agents=4 proofs=1
  Reasons: envelope.all_required_sources_available, policy.no_local_cargo_proof, source.redacted_summary_only, capacity.governor.allow_heavy
A port of decision_for in crates/frankenterm-core/src/operating_envelope.rs, with the default budget of 4 agents, 1 remote proof lane and 2 static checks. The five presets are the planner’s own fixtures, and each gives the same tier, outcome, counts and reason codes as ft swarm envelope --scenario. Checks 1, 7 and 17 have no control of their own here. The plan is read-only: it does not start, stop or message anything.

Transactions

Plan the undo first.

ft tx run takes a contract of steps, each with its undo. Prepare checks every step before any runs. Commit runs them in order and stops at the first failure, and then the undo runs for each committed step, newest first. An idempotency ledger keeps a retried step from running twice.

Transactional execution

Inject a failure at any step and watch ft undo what it already did.

Worked example
Fail at

$ ft tx run --contract-file tx.json --fail-step tx-step:3

  1. Prepare
  2. Commit
  3. Compensate

Contract state rolled_back

  1. 1pane 3 · tx-step:1git apply rename-tests.patch↺ git apply -R rename-tests.patchundone
  2. 2pane 7 · tx-step:2git apply rename-storage.patch↺ git apply -R rename-storage.patchundone
  3. 3pane 9 · tx-step:3git apply rename-api.patch↺ git apply -R rename-api.patchfailed
  4. 4pane 12 · tx-step:4git apply rename-docs.patch↺ git apply -R rename-docs.patchskipped
  1. tx.prepare.started
  2. tx.prepare.all_ready every step passed its gates
  3. tx.commit.started
  4. tx.commit.step_committed tx-step:1 send_text_succeeded
  5. tx.commit.step_committed tx-step:2 send_text_succeeded
  6. tx.commit.step_failed tx-step:3 commit_step_failed_injected FTX3999
  7. tx.commit.step_failed tx-step:4 skipped_after_failure FTX_SKIPPED
  8. tx.compensation.started undo 2 committed steps, newest first
  9. tx.compensate.step_compensated tx-step:2 rename-storage.patch reversed
  10. tx.compensate.step_compensated tx-step:1 rename-tests.patch reversed
  11. tx.compensation.fully_rolled_back outcome compensated

Idempotency ledger

  1. 1txk:v2:41bdd059…tx-step:1 · actionsuccessfirst record
  2. 2txk:v2:3ebdcba0…tx-step:2 · actionsuccessprev 0f1e211f…
  3. 3txk:v2:3fbdcd33…tx-step:3 · actionfailedprev 76bc23da…
  4. 4txk:v2:d6613800…tx-step:2 · compensationcompensatedprev cd085286…
  5. 5txk:v2:d9613cb9…tx-step:1 · compensationcompensatedprev e8415a16…
Event names, reason and error codes, and lifecycle states are ft’s, from crates/frankenterm-core/src/tx_execution.rs; --fail-step is the real flag for injecting a commit failure. The patches and the ledger’s short hashes are illustrative: ft’s keys are txk:v2: and a SHA-256 of the plan, step and action, and each record holds the hash of the one before it. Compensation can fail too (tx.compensation.failed), and then ft does not report the transaction as rolled back.

Audit

A trail for every action.

Actions and policy decisions are recorded in the audit_actions table. ft audit filters them by pane, actor, action, decision and time, and ft audit tail --follow streams new ones. The policy engine also links its recent decisions in a SHA-256 hash chain, so an edited entry breaks the chain.

Safety guarantees
  • Watching does not type

    By default ft watch captures and stores, and sends no input. Sending and --auto-handle workflows are separate, gated and audited.

  • No silent gaps

    When capture loses continuity, a gap is recorded and shows up in events and diagnostics.

  • Gated reads

    get-text and search pass policy checks and return redacted text.

  • Single-use approvals

    An approval code allows one action, on one pane, for one fingerprint of the request.

  • Trusted triggers

    A high-trust workflow can list the panes allowed to start it, so injected output elsewhere cannot.

  • Evidence before “safe”

    Release-gate checks report safe only after measurements exist, never on a cold start.

06Mac, iPhone and iPad

On your Mac, and in your pocket.

FrankenTerm.app is a native macOS terminal built on its own engine. The iPhone and iPad app connects to your machines over SSH and attaches to the same panes. A Mac can hand its machines and keys to the phone through the camera, with no network involved.

FrankenTerm.app

A terminal built for this.

The app runs on FrankenTerm’s own terminal engine and talks to the same mux server that ft watches. A pane you open in it is a pane ft can read, search and drive.

Why it owns its engine
An illustration, drawn in HTML and set in Pragmasevka, the Nerd Font FrankenTerm can install.
  • Its own engine

    An in-tree fork of WezTerm’s mux and terminal crates that FrankenTerm owns and has diverged. Upstream fixes are ported by hand, each commit naming the upstream one.

  • Installed with ft

    On an Apple-silicon Mac the one-line installer stages and verifies the app alongside the CLI, the mux server and the PTY guardian. --no-app skips it.

  • Ad-hoc signed

    It is not notarized. Placed by the installer, it opens normally. A copy downloaded in a browser needs xattr -dr com.apple.quarantine first.

  • OpenGL by default

    A native Metal renderer and the PageGrid grid engine are opt-in while tab-bar and overlay parity is finished.

iPhone and iPad

Your panes, away from your desk.

A native app for iPhone and iPad. It opens SSH terminals and attaches to the panes already running on your machines, so you can read a failure or answer a prompt from wherever you are.

Four-surface matrix
  • Attach to a running pane

    Over SSH it reaches the mux server already running on your machine, mirrors one pane and sends your keys to it. Nothing else is installed there.

  • See the whole fleet

    Fleet Overview lists every machine and the panes it discovered, filtered to those that need attention or have new output.

  • Search what scrolled past

    Search one pane’s history, or every pane’s, from the phone.

  • Ordinary SSH, done carefully

    Up to four terminals per machine, jump hosts with password and MFA prompts, host-key checks that honour OpenSSH revocation lists, and remote files over SFTP.

  • It stays on the phone

    Workspaces, host-key decisions and history are stored on the device, with keys in the Keychain and no iCloud sync. There is no account, no advertising and no analytics.

Availability

The README lists iOS 1.0 as approved on App Store Connect, and the app’s privacy policy describes an App Store purchase. The repository doesn’t link a store listing yet, and the Swift source under apps/ios and apps/apple is not itself a signed release.

Air-gapped transfer

Machines, through the camera.

The Mac exporter turns your machines, routes and chosen SSH keys into an encrypted, animated stream of QR codes. The stream is fountain-coded, so the phone can start at any frame and miss some. Nothing crosses a network.

Drop frames or change the rate. The phone finishes anyway.

Interactive
Frames shown0by the Mac
Frames caught0by the phone’s camera
Added nothing new0already implied by earlier frames
Parts still missing24solved when this reaches zero

An illustration: these codes are drawn for the page and do not scan. The coding is the real scheme at a small size. Frames 1 to 24 each carry one source part, and later frames carry XOR mixes of parts chosen by a seeded generator. As in FrankenTermKit, the phone solves for the parts by Gaussian elimination, so it needs 24 independent frames, whichever ones they are.
  • What travels

    Your machines, groups and routes with their jump hosts, host-key policy and connection preferences, plus any SSH private keys you choose to include. The Mac reads them from your SSH config or a FrankenTerm workspace.

  • Two ways to lock it

    A generated transfer code that the Mac shows apart from the animation, or Only This iPhone, which seals the transfer with HPKE (RFC 9180, X25519, HKDF-SHA256, ChaCha20-Poly1305) to a key that phone made.

  • What to watch for

    With a transfer code, a recording that captures both the animation and the code can open the transfer. The exporter covers the animation while it shows the code, and says so.

Where it runs

What ships where.

Each status line is quoted from the README’s surface table. A preview is usable today, within limits the docs spell out.

Supported surface matrix
  • Desktop terminal

    • Shipped (macOS arm64)
    • Preview (Linux/Windows)
    • FrankenTerm.app with its mux server and PTY guardian. The installer stages and verifies it on Apple-silicon Macs.
    • OpenGL draws by default. The Metal renderer and the PageGrid engine are opt-in while tab-bar and overlay parity is finished.

    FrankenTerm.appfrankenterm-mux-server

  • The ft control plane

    • Working on matching codec generation
    • Robot Mode, MCP, the web API with SSE, the policy gate and kill switch, and transactions. CLI-to-GUI attach has run live across 77 panes.
    • Signed releases ship for macOS arm64 today. On Linux the installer stops and offers --from-source.

    ft watchft robotft mcp serve

  • iPhone, iPad and the Mac exporter

    • iOS 1.0 approved on App Store Connect
    • notarized FrankenTerm-Exporter.dmg live on companion-appstore channel
    • The encrypted, animated QR transfer is implemented.
    • Adversarial testing of the fountain decoder, and one controller lease shared across devices, are still in progress.

    FrankenTermExport.appft mobile

  • Browser viewer

    • Loopback read-only preview
    • ft web --ui-dir serves a WASM viewer of panes and live detections at /ui/, with optional operator-token sign-in.
    • Authenticated Tailscale access and interactive terminal attach are still to come.

    ft web

07Engineering

Claims you can check.

The README marks what ships, what is partial and what has only passed a benchmark, and an attestation manifest ties its claims to artifacts. This page keeps the same labels. Underneath: unsafe code forbidden in the CLI and core, one async runtime enforced by tooling, and formal models where a bug would be expensive.

How it is built

Rust, tested hard.

scripts/stamp-readme-counts.sh writes these counts into the README, and this page reads them from there when it is built.

Engineering discipline
  • 64,657test annotations
  • 52fuzz targets
  • 305end-to-end shell scripts
  • 119Criterion bench files
  • 97workspace crates
  • 1.42Mlines of Rust in the core library
  • No unsafe code in the CLI or core

    Both declare #![forbid(unsafe_code)]. The GUI and the vendored terminal engine have separately audited exceptions, and the README says so.

  • One async runtime, enforced three ways

    Everything runs on asupersync with explicit cancellation contexts. tokio is banned by cargo-deny, by a sealed trait whose soundness argument is written in Lean, and by a release-gate test.

  • Formal models where they pay

    Nine Loom test files explore thread interleavings in the core’s channels and lock-free buffers. Eleven TLA+ specs cover the transaction kill switch, capture fairness, durable checkpoints and more.

  • Fixtures before rule changes

    Agent output that a rule misses becomes a corpus fixture first, and the rule changes until the corpus passes. The corpus holds 169 fixtures, near-misses included.

Status

What ships, and what doesn’t yet.

Every capability this page mentions, with the status the README gives it and the evidence behind it. Filter to see what is still in progress.

Limitations

Filter by status, or read the whole list.

Interactive

8 of 27 claims, two of each status

  • Supported

    Capture with explicit gaps

    A bounded 1 MiB overlap finds each pane’s new output. When continuity is lost, a gap event is recorded.

    README
  • Supported

    Detection for Claude Code, Codex and Gemini

    42 built-in rules, checked against 169 captured fixtures, near-misses included.

    README
  • Supported

    Workflows started by rules

    ft watch --auto-handle runs them, and every action they take passes the policy gate.

    README
  • Supported (hash embeddings)

    Lexical, semantic and hybrid search

    SQLite FTS5 plus an FNV-1a hash-embedding lane, fused by reciprocal rank fusion. Nothing to download.

    README
  • Safety guarantee

    Redaction before storage and reads

    33 patterns mask secrets before text is stored, and again before get-text, search and every API surface return it.

    README
  • Supported

    Robot Mode

    52 command families, answering in JSON or TOON envelopes with stable error codes.

    README
  • Supported (on by default)

    MCP server

    37 tools over stdio. Parity with Robot Mode is documented family by family.

    README
  • Safety guarantee

    Policy gate and one-time approvals

    Sends check the prompt, the alternate screen, the rate limit and reservations. An approval code allows one action on one pane.

    README
  • Supported

    Operating envelope

    A versioned planner contract with golden fixtures. A missing source defers admission, and red or black pressure sheds load.

    README
  • Supported

    Transactions with compensation

    ft tx run prepares, commits in order, and compensates committed steps in reverse when one fails.

    README
  • Supported (on by default)

    Web API and live streams

    /health, /panes, /events and /search, plus SSE streams of events and deltas.

    README
  • Capture, inspect and export supported

    Session capture, inspection and export

    Snapshots, ft session dump and durable exports ship. Restoring from them is a separate item below.

    README
  • Supported on macOS

    FrankenTerm.app

    A native Apple-silicon bundle that the installer stages and verifies. It is ad-hoc signed, not notarized.

    README
  • iOS 1.0 approved on App Store Connect

    iPhone and iPad app

    The source under apps/ios and apps/apple is not itself a signed release, and the repository links no store listing yet.

    README
  • Implemented; exporter notarized

    Mac exporter and QR transfer

    FrankenTerm-Exporter.dmg is published on the companion release channel. Adversarial testing of the fountain decoder is still open.

    README
  • Partial

    Incident bundles

    Events, pane rows, database metadata, config, git state and the audit tail are collected. GPU and render collectors are not.

    README
  • Shipped with explicit limitations

    Distributed mode

    Remote panes are stored, searchable and visible in state. Live get-text from a remote pane is intentionally unavailable.

    README
  • Preview

    Desktop app on Linux and Windows

    macOS arm64 is the shipped desktop target.

    README
  • Opt-in

    Metal renderer and PageGrid engine

    OpenGL stays the default until tab-bar and overlay parity is finished.

    README
  • Preview: read-only, loopback only

    Browser fleet viewer

    A WASM viewer of panes and detections. Authenticated remote access and terminal attach are still tracked work.

    README
  • Benchmark lane

    200-pane capacity and memory figures

    Synthetic results, not a qualified operating envelope. The target-class hardware gate still reads skipped_not_proven.

    README
  • Benchmark-lane target

    Capture lag under 50 ms

    It does not prove key-to-photon, network, resize or long-session responsiveness.

    README
  • Target

    Under 1% CPU when idle

    It still needs a native workload proof on current source.

    README
  • Execution unavailable

    Restoring sessions, and ft restart

    On every platform both fail closed before touching a process or the mux. A dry run reports metadata only.

    README
  • Not yet

    Missions dispatching work to agents

    ft mission run advances the mission lifecycle only. It does not send work into panes.

    README
  • Not on the production path

    ML embeddings, a reranker and a Tantivy index

    Production search is FTS5 plus hash embeddings.

    README
  • Not drawn yet

    Agent-state pane borders in the app

    The README says the active, thinking and stuck states drive border colours. The app has the drawing code, but nothing fills its state map yet.

    README

Statuses use the README’s wording. Agent-state borders are the one place this list disagrees with the README, because the source does: in crates/frankenterm-gui, the map those borders read from is never filled.

Install

Start with one command.

The installer downloads one signed release for your platform: ft, the mux server and the PTY guardian. It checks the SHA-256 sum and the minisign signature before installing anything, so it needs minisign (brew install minisign). On an Apple-silicon Mac it also stages and verifies FrankenTerm.app, which is ad-hoc signed, not notarized.

curl -fsSL https://raw.githubusercontent.com/Dicklesworthstone/frankenterm/main/install.sh | bash
# check the install and the mux it found
ft doctor
# start watching, and let the built-in workflows respond
ft watch --foreground --auto-handle
# in another shell: what the rules have seen
ft robot events --limit 5

You run agents

Install, watch your panes, and handle what the rules find.

TourCommandsPlaybookFAQ

You build meta-agents

Drive panes from code, and know exactly what the gate allows.

Robot ModeTOONPolicyWorkflows

You operate at scale

Admission, memory tiers, rollbacks and incident bundles.

EnvelopeMemoryTransactionsIncidents

You audit claims

What ships, what is partial, and the evidence for each.

Surface matrixLimitationsEngineeringThreat model