FrankenTerm

FAQ

643 words3 min read11 subsectionsFrom the README at ft 0.15.21

On this page11
Why "ft"?Is my terminal output stored permanently?Does ft send data anywhere?Can I use ft without running AI agents?How do I add custom patterns?What's the performance overhead?How does the transaction system work?How does the operating envelope decide admission?How does tiered scrollback save memory?Is tokio really banned?What agents does ft detect?

Why "ft"?

FrankenTerm. Short, typeable, memorable.

Is my terminal output stored permanently?

By default, output is retained for 30 days (configurable via storage.retention_days). Data is stored locally in SQLite at <workspace>/.ft/ft.db (the workspace is FT_WORKSPACE or the current directory; relocate it with an absolute storage.db_path or general.data_dir). Long-running watchers periodically sample SQLite page statistics and report when an explicit operator-run VACUUM may be useful; they do not automatically monopolize the single writer with a full database rewrite. Backup and restore is supported via ft backup export / ft backup import.

Does ft send data anywhere?

Default mode is local-first: no telemetry and no cloud dependency. Network activity only occurs when you explicitly enable integrations like webhooks or distributed mode.

Can I use ft without running AI agents?

Yes. The pattern detection and search work for any terminal output. Useful for debugging, auditing, or building custom automation.

How do I add custom patterns?

Custom rules live in a pattern pack file (a TOML doc with name, version, and a [[rules]] array). Drop it into <config_dir>/patterns/ or the workspace's .ft/patterns/, where it is discovered automatically, or reference it from your ft.toml with a file: prefix (a bare path is rejected as an unknown pack):

toml
# ft.toml — load builtin pack + your custom file
[patterns]
packs = ["builtin:core", "file:/path/to/my_lab_pack.toml"]

A minimal my_lab_pack.toml:

toml
name = "lab:my-pack"
version = "0.1.0"

[[rules]]
id = "claude_code.lab.fatal_error" # a reserved prefix must match agent_type
agent_type = "claude_code"          # claude_code / codex / gemini / wezterm / unknown
event_type = "error"                # short, machine-readable event taxonomy key
severity = "critical"               # info / warning / critical
anchors = ["FATAL ERROR"]           # literal strings for Bloom + Aho-Corasick prefilter (required)
regex = "FATAL ERROR:.*"            # optional confirming regex
description = "Application-level fatal error in agent output."

Validate with ft rules test "FATAL ERROR: database connection lost" and lint with ft robot rules lint --fixtures --strict. See the crates/frankenterm-core/src/patterns.rs RuleDef struct for the full optional-field surface (remediation, workflow, manual_fix, preview_command, learn_more_url).

What's the performance overhead?

The current numbers are benchmark budgets, not production guarantees:

  • CPU: <1% idle is a target that still requires current-source native workload proof
  • Memory: the retained benchmark lane budgets ~50 MB at 100 simulated panes and ~200 MB at 200 simulated panes; target-class promotion is currently blocked
  • Disk: ~10 MB/day is a planning estimate for a typical compressed-delta workload, not a qualified upper bound
  • Latency: <50 ms is the capture-lag benchmark target; it does not prove native key-to-photon, LAN, resize, zoom, or long-session responsiveness

How does the transaction system work?

ft tx implements a prepare/commit/compensate lifecycle:

  1. Prepare — validate preconditions (policy checks, pane liveness, reservations)
  2. Commit — execute steps in dependency order with per-step receipts
  3. Compensate — if any commit step fails, undo committed steps in reverse order

Each phase emits observability events with reason codes, and the entire execution is recorded in an idempotency ledger for safe resume after crashes.

How does the operating envelope decide admission?

The planner reads RCH cluster pressure, network pressure, process snapshots, fleet memory tier, and SQLite write-queue depth. Each input has fail-closed semantics: if the input is missing or stale, the envelope denies admission with reasons telemetry.stale / capacity.stale. If any input is critical, admission is denied with capacity.red (critical) or capacity.black (emergency) plus envelope.shed. When everything is healthy, the verdict is envelope.admit with a plan that fits inside the envelope.

How does tiered scrollback save memory?

For the illustrative 200-pane/20-MB-per-backbuffer model above, uncompressed scrollback alone is about 4 GB. This is a sizing example, not a measured cross-terminal claim. ft organizes scrollback into three tiers:

Tier Storage Access Memory per 1000 lines
Hot VecDeque (RAM) Instant ~200 KB
Warm zstd compressed (RAM) Decompress on demand ~40 KB
Cold Evicted (re-fetch from SQLite) Query on demand 0 KB

The default settings keep hot scrollback small and shift older content into compressed or on-demand tiers.

Is tokio really banned?

Yes. cargo-deny's [bans] rule fails the build if any first-party Cargo.toml declares tokio as a direct dependency. The RuntimeProof sealed trait makes tokio::sync::* types fail to compile in RuntimeProof-bounded API surfaces. The asupersync_test! declarative macro plus CI checks prevent #[tokio::test] from landing in supported paths. The classification and release-bundle evidence live at docs/tokio-test-classification.md and docs/attestations/doctrine/tokio-eradication-status.json.

What agents does ft detect?

Currently: Codex (OpenAI), Claude Code (Anthropic), Gemini (Google), and terminal runtime events. Custom patterns can detect any agent or application.