Plan Review
Overview
Plan Review runs terraform plan and shows the changes as a tree you can filter, expand and pin, with a risk badge on each change.
Running terraform plan on a module with 30+ resources produces a wall of text. You must read every line to find the one dangerous delete among 29 creates. There’s no prioritization, no risk signal, no way to focus on what matters. The Plan screen adds:
- Risk badges surface dangerous changes immediately (no scanning required)
- Expand/collapse lets you focus on relevant diffs (attention management)
- Phantom detection separates real changes from computed-attribute noise
- Pin resources to scope the next plan, and the apply after it, to them
Screenshot

Interactive (TUI)
Press p from the home menu. The plugin immediately runs terraform plan against the current context.
Keybindings
| Key | Action | When |
|---|---|---|
j / k / ↑ / ↓ |
Navigate up/down | List |
g / G |
Jump to first/last change | List |
Enter / i |
Expand/collapse a module, or inspect a change’s attribute diffs | List |
/ |
Filter by address (fuzzy), or by action when the text is only an action symbol | List |
Space |
Pin/unpin selected resource | List & detail |
Ctrl+p |
Toggle pinned-only view | List |
Ctrl+u |
Clear all pins | List |
Ctrl+t |
Toggle tree/flat view | List |
[ / ] |
Collapse/expand all (tree) | Tree mode |
← / → |
Horizontal pan | List & detail |
Ctrl+w |
Toggle line wrap | List & detail |
a |
Apply. On a stale plan it replans first, then confirms | List |
A |
Auto-approve (apply immediately, no confirmation). On a stale plan it replans and shows the new plan without applying; press A again on that plan. If the plan goes stale after a or A but before Apply starts, Apply does not start and Plan shows the stale plan. A plan is stale after a pin change (including the App’s pruning of pins with no changes), an invalidation, or a cancelled or failed replan |
List |
t |
Taint – navigates to taint plugin | List |
T |
Untaint – navigates to untaint plugin | List |
e |
Edit in $EDITOR | List & detail |
! |
Batch action palette (apply, auto-apply, taint, untaint) | List (when pins > 0) |
l |
Show the terraform log | After a plan ran |
ctrl+r |
Re-run plan (refresh). With -plan <file> it reads the file again and shows a read or parse error in place; with -plan - there is no ^r, because the stdin snapshot cannot be read again |
Plan finished or failed |
u |
Force-unlock | Locked error |
Esc / q |
Back to home | Always |
Filter by action
When the whole filter text is one of these symbols, the list keeps only the changes of that action:
| Type | Keeps |
|---|---|
+ |
creates |
~ |
updates |
- |
deletes |
-/+ |
replacements, both delete-then-create and create-then-delete |
Any other text is a fuzzy match on the resource address, so +aws or -/ search addresses. The action filter combines with Ctrl+p (pinned only) and with tree view.
Flow
Home ──p──→ Plan (loading) ──→ Plan (results)
│
├── Enter → expand diffs
├── Space → pin for apply
├── a → Apply (pinned resources or all)
└── q → Home
Command Line (CLI)
# Default: spinner with elapsed time
tfui plan -project ./infra
# Headless: tree-view text output (no animation)
tfui plan -project ./infra -ci
# JSON: terraform's own plan document
tfui plan -project ./infra -json
# Targeted: plan only specific resources
tfui plan -project ./infra -target aws_instance.web -target aws_s3_bucket.old
# With chdir
tfui plan -project ./infra -chdir modules/networking
Output Examples
Headless:
+ aws_instance.web
~ aws_security_group.main
- aws_s3_bucket.old
-/+ aws_db_instance.primary
Plan: 1 to add, 2 to change, 1 to destroy.
Risk: critical
Replacements count under “change”. The Risk: line shows the highest risk among the changes and is left out when no change carries risk.
-json: the output is terraform’s own terraform show -json document, passed through unchanged. Risk and phantom analysis are not in it.
Exit codes: see CLI I/O contract. Plan exits 2 when the plan has changes.
Equivalence
| Goal | CLI | TUI |
|---|---|---|
| See what will change | tfui plan -ci |
Press p |
| Get plan as JSON | tfui plan -json |
N/A (TUI is visual) |
| Plan specific resources | tfui plan -target X |
Press p, pin resources |
| Plan then apply | tfui apply |
p → review → a → y |
Configuration
# tfui.hcl (project root)
defaults {
plugin "plan" {
targets = ["module.networking", "aws_instance.web"]
}
}
| Option | Type | Default | Description |
|---|---|---|---|
targets |
list | [] |
Default resource targets for plan, and for a one-shot tfui apply -auto-approve |
targets is a project default, used only when the run carries no explicit
selection. An explicit -target flag or a TUI pin replaces it. A one-shot
apply has no plan to review, so it takes the same list: the default scope is set
in one place. The plan tfui runs when Risk or Phantom Changes opens with no plan
in this session takes the same targets as :plan. With the plugin disabled,
neither uses its targets. To turn the plugin off, see
Enabling/Disabling Plugins.
Related
- Apply – execute the planned changes
- Risk Analysis – risk breakdown by severity
- Blast Radius – module-grouped impact view