FrankenTerm

Configuration

109 words1 min read1 subsectionFrom the README at ft 0.15.21

On this page1
Environment variables

Configuration is discovered in canonical precedence order:

  1. Explicit --config <path> CLI option
  2. Workspace-local configuration via FT_WORKSPACE ($FT_WORKSPACE/.ft/config.toml, $FT_WORKSPACE/.ft/ft.toml, or $FT_WORKSPACE/ft.toml)
  3. Current working directory (./.ft/config.toml, ./.ft/ft.toml, or ./ft.toml)
  4. Platform default configuration (~/Library/Application Support/ft/ft.toml on macOS; elsewhere, Windows included, $XDG_CONFIG_HOME/ft/ft.toml or else ~/.config/ft/ft.toml under the home directory)
toml
[general]
log_level = "info"                # trace, debug, info, warn, error
log_format = "pretty"             # pretty (human) or json (machine)
data_dir = "~/.local/share/ft"

[ingest]
poll_interval_ms = 200
[ingest.panes]
include = []
[[ingest.panes.exclude]]
id = "exclude_htop"
title = "htop"
[[ingest.panes.exclude]]
id = "exclude_vim"
title = "vim"

[ingest.priorities]
default_priority = 100
[[ingest.priorities.rules]]
id = "critical_codex"
priority = 10
title = "codex"

[ingest.budgets]
max_captures_per_sec = 0          # 0 = unlimited
max_bytes_per_sec = 0

[storage]
writer_queue_size = 100
retention_days = 30

[gc]
enabled = true
interval_seconds = 3600
vacuum_threshold = 0.20           # Advise explicit VACUUM when >20% pages are free
log_report = true

[vendored]
mux_socket_path = "~/.local/share/wezterm/default.sock"

[vendored.mux_pool]
max_connections = 64
idle_timeout_seconds = 60
acquire_timeout_seconds = 10
pipeline_depth = 32
pipeline_timeout_ms = 5000
max_frame_bytes = 4194304
max_outbound_codec_bytes = 1073741824
max_outbound_in_flight_requests = 256
compression = "auto"

[vendored.sharding]
enabled = false
socket_paths = ["/tmp/ft-shard-0.sock", "/tmp/ft-shard-1.sock"]
assignment = { strategy = "round_robin" }

[backup.scheduled]
enabled = false
schedule = "daily"                # hourly, daily, weekly, or 5-field cron
retention_days = 30
max_backups = 10
destination = "~/.local/share/ft/backups"

[patterns]
packs = ["builtin:core"]          # Claude Code, Codex, Gemini, terminal runtime events

[workflows]
enabled = ["handle_compaction"]   # empty = all built-in workflows
max_concurrent = 10

[safety]
require_prompt_active = true      # needs OSC 133 prompt markers in the pane's shell: run `ft setup shell` (bash/zsh/fish, idempotent)
block_alt_screen = true
rate_limit_per_pane = 30
rate_limit_global = 100

[safety.redaction]
enabled = true                    # T1/T2/T3 sensitivity tiers

[agent_detection]
enabled = true
active_output_threshold_ms = 5000     # Output within 5s → Active (green)
thinking_silence_ms = 5000            # Input sent, no output for 5s → Thinking (yellow)
stuck_silence_ms = 30000              # No output for 30s after input → Stuck (red)
idle_silence_ms = 60000               # No activity for 60s → Idle (gray)

Operator-tunable runtime constants live under [tuning] sections such as [tuning.runtime], [tuning.patterns], and [tuning.search]. See docs/tuning-reference.md for every key, default, unit, validation guard, and provisional starting ranges for 10-pane, 50-pane, and 200+-pane benchmark workloads. Those ranges are not target-class certification.

Environment variables

Variable Purpose
FT_OUTPUT_FORMAT Default format (json or toon)
TOON_DEFAULT_FORMAT Fallback default format
FT_WORKSPACE Workspace root directory
FT_SKIP_BUNDLED_FONT_INSTALL Skip automatic font install