FrankenTerm

Agent Profiles, Personas, and Fleet Templates

253 words1 min read4 subsectionsFrom the README at ft 0.15.21

On this page4
Three-level compositionRegistryApply semantics (idempotent on identical input)Why profile-driven spawning?

A profile is a reusable specification of a pane: which agent (codex / claude_code / gemini), what cwd, what env overrides, what session settings, what tools it can use. Profiles let you say "spawn 3 of codex_ws" without re-stating the details every time.

Three-level composition

Level What it specifies Example
Persona Behavioral defaults (skill mix, prompt preludes, tool palette) codex_engineer, claude_reviewer
Profile Concrete pane spec (persona + cwd + env + session settings) codex_ws (codex_engineer + workspace cwd)
Fleet template A composition of profiles (counts + dependencies) swarm_5x_codex_1x_claude

Registry

Profiles persist in agent_profiles (DB-backed). ft robot profile list enumerates them; ft robot profile show <name> shows the full definition. ft robot profile validate <name> validates the definition without spawning.

Apply semantics (idempotent on identical input)

ft robot profile apply codex_ws --count 3 is idempotent on (name, count, env_overrides, dry_run). Re-running with identical inputs returns the same plan + same idempotency key. The mutation receipt is persisted to profiles_applied_log for replay.

Non-dry-run apply spawns panes through the mux bridge with rollback on mid-apply failure. The full contract (including idempotency rules, failure semantics, side-effect surface, and concurrency contract) is the canonical example for the broader robot-contract methodology (docs/robot-contracts/profile.md).

Why profile-driven spawning?

  • Reproducibility. Two operators running ft robot profile apply codex_ws --count 3 get the same fleet shape.
  • Audit. The applied-log records who applied what when, with the content hash as the idempotency key.
  • Composability (planned). Personas and fleet templates exist as types (session_profiles.rs) but cannot yet be loaded or applied from ft; profiles are created with ft robot profile create and applied directly.