Skip to main content

TUI

The interactive terminal interface is the primary way to use TF Code.

Start

tfcode

Switch Agents

Use Tab to cycle between Build, Plan, and TF Engineer.

Ask Questions

How is authentication handled in @src/api/index.ts

Use @ to fuzzy search for files in the project.

Plan → Build Workflow

  1. Switch to Plan with Tab
  2. Describe what you want — Plan explores and writes a plan to .tfcode/plans/
  3. When satisfied, switch back to Build with Tab
  4. Build implements the plan

Undo & Redo

/undo
/redo

Run /undo multiple times to undo multiple changes.

Context Compaction

When conversations get long, compact context while preserving what matters:

/compact Keep the API endpoint definitions and the authentication logic
/compact Preserve all database schema changes and the migration steps

TF Code also auto-compacts when context exceeds the model's window. Plugins can customise compaction behavior via the experimental.session.compacting hook — see Plugins.

Diff View

TF Code provides an enhanced diff view when reviewing file changes, with clearer syntax highlighting and side-by-side comparison.

Help

/help