Brief Grok Build
Grok Build (grok) is the local TUI/CLI. Official docs live under ~/.grok/docs/user-guide/ when installed.
Surfaces: interactive grok · headless grok -p · ACP grok agent stdio|serve.
Open with grok dashboard or /dashboard. Set location with Ctrl+L or /cd <path> before + New Agent.
Charter: Default lane is review-only. Implement / always-approve babysits only when the owner authorizes that pass. Never silent-patch product code.
Default launch hygiene
/always-approvefor owner-authorized implement passes you are babysitting;/autowhen safer classifier gates are enough; ask mode for unfamiliar trees./effort xhighfor hard art/architecture; default for small fixes./planfirst when approach is ambiguous. Approve before product edits;/view-planto reopen. Plan mode blocks edit tools (not bash redirection).- Subagent hole: parent plan mode does not lock write-capable children — only spawn
explore/plan(or read-only) until the plan is approved; then spawngeneral-purpose. /remember …for standing constraints (off main, skin-only, tip SHA).- Worktree for risky parallel edits.
- Prefer dashboard multi-agent dispatch over one mega-prompt when work parallelizes.
- Review-only:
grok --sandbox read-only+ explore / review skills — no product edits.
Slash commands worth using
| Command | When |
|---|---|
/dashboard |
Top-level multi-session roster |
/plan / /view-plan |
Ambiguous approach; art strategy; large refactors |
/effort / /model |
Raise reasoning for hard passes |
/always-approve / /auto |
Unattended implement vs safer mode |
/compact keep … |
Long babysits before context dies |
/fork |
Branch after a good survey |
/btw … |
Side question without derailing |
/deep-research … |
Background researched claims with sources |
Keys: Ctrl+C cancels (Esc does not); Esc Esc clears draft / opens rewind when idle.
Deny rules and PreToolUse hooks still win under always-approve.
Subagents — ask explicitly in the prompt
explore— read/search/shell; no file edits.plan— structured plan; no file edits.general-purpose— full implement/test/commit.
Good parallel shape:
- Parent orchestrates.
explore×N survey / measure.- Parent
/plan(orplansubagent) → approve. general-purposeimplementers (worktree OK) for disjoint batches.- Final explore/GP: tests + proof composites.
Watchable vs headless
When the owner may want to watch the job, use a visible interactive TUI — paste into a live grok window or start interactive grok with high effort (and --always-approve when that pass is authorized). Do not run headless-only grok -p / --prompt-file for those jobs. Headless -p stays for true unattended automation nobody is expected to watch.
Brief recipe (clipboard into dashboard)
- Goal + success criteria + off-main / no-merge.
- Explicit slash/subagent choreography (explore → plan → approve → implement).
- Paths, tip/branch, prior notes.
- In/out of scope.
- Deliverables: notes md, proof dir, test command + expected green.
- Permission stance: always-approve only if the owner authorized implement babysit.
After finish
Read notes + proofs; sync to a local play tree only when the owner asks; Origin push in the same session when a watched tip lands unless they said keep it local.