Built-in Workflow Handler Catalog
162 words1 min read2 subsectionsFrom the README at ft 0.15.21
The workflow engine ships with the following built-in handlers (crates/frankenterm-core/src/workflows/):
| Handler | Triggers on | Action |
|---|---|---|
HandleCompaction |
session.compaction detections (rule ids containing compaction) |
Re-injects critical context (AGENTS.md) after the agent compacts its conversation |
HandleUsageLimits |
Codex only: codex.usage.reached, codex.usage_limit, codex.rate_limit.detected |
Codex usage-limit recovery |
HandleClaudeCodeLimits |
Claude-Code-specific limit detections | Claude-specific recovery flows |
HandleGeminiQuota |
gemini.usage.reached |
Gemini quota recovery |
HandleSessionEnd |
*.session.end patterns |
Records session-end + writes a checkpoint |
HandleSessionStartContext |
New session detection | Captures context (CWD, env, agent type) at session start |
HandleProcessTriageLifecycle |
Process state changes | Records process triage info + lifecycle events |
HandleAuthRequired |
Auth-prompt detections | Surfaces an auth required signal; optionally invokes the ft auth flow |
HandleOnErrorCassSearch |
Error patterns in pane output | Queries cass (Cross-Agent Session Search) for past fixes and surfaces them as event metadata |
HandleSwarmLearningIndex |
Mass swarm activity | Indexes swarm interactions for the learning system |
Workflow opt-in via config
toml
[workflows]
enabled = ["handle_compaction", "handle_usage_limits"] # empty = all built-ins
max_concurrent = 10
Source-pane trust policy (per-handler)
Each handler can declare trigger_policy() returning WorkflowTriggerPolicy::allow_all() (default) or WorkflowTriggerPolicy::allowlist([pane_ids...]). Allowlist refusals surface as WorkflowStartResult::SourcePaneNotTrusted and the originating source_pane_id is recorded for forensics (ft-j0ufc).