Set hunk tracker mode in Grok Build
Set hunk tracker mode in Grok Build
hunk_tracker_mode under [ui] chooses which dirty hunks the TUI tracks. Official values: Settings reference.
Values
| Value | Default? | Meaning |
|---|---|---|
agent_only |
yes | Track hunks from agent edits |
all_dirty |
Track all dirty hunks in the working tree |
Pin it in user config
[ui]
hunk_tracker_mode = "all_dirty"
Or keep the default:
[ui]
hunk_tracker_mode = "agent_only"
File path: ~/.grok/config.toml / $GROK_HOME/config.toml. You can also change UI options from /settings (alias /config).
How to choose
Stay on agent_only when you only care about what this session's agent wrote. Switch to all_dirty when you already have local edits outside the agent and want the tracker to cover the whole dirty tree.
Pitfalls
- Editing project
.grok/config.tomlfor[ui]— project scope is limited to MCP, plugins, and permission rules; put hunk tracker in user config. - Treating this as a git commit setting — it only changes what the Build TUI tracks as hunks.