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
- Switch to Plan with Tab
- Describe what you want — Plan explores and writes a plan to
.tfcode/plans/ - When satisfied, switch back to Build with Tab
- 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