Grok Build CLI troubleshooting

Recover native CLI deployments; distinct from Grok Bot and Grok web Build

Grok Build troubleshooting

Prompt-first procedure: Describe the outcome you want in your agent conversation. The agent should select and load the appropriate AIWG assets, explain material changes, request any needed approval, and report verification evidence. Exact commands and flags appear only in the CLI reference.

This page covers the `grok` coding-agent CLI (`grok-build` in AIWG), distinct from Grok Bot and Grok web Build. Start with the quickstart and provider reference.

SymptomCheck and recovery
AIWG files exist but project instructions are absentRun `grok inspect` in the intended project. Review the folder before granting trust; an untrusted folder can show user skills while loading no project instructions. Restart the session after changes.
Skills appear in the wrong scopePreview the agent-owned use operation or `the scope option user the dry-run option`. Project kernel skills belong in `.grok/skills`; user mirroring is additive under `$GROK_HOME/skills`. Confirm `GROK_HOME` is absolute; relative paths, filesystem roots, bare `~` and null bytes are rejected. Quote paths containing spaces in PowerShell.
Only `.agents/skills` or `.claude` files existDeploy `the provider option grok-build` and verify native `.grok` surfaces. Compatibility loading is not required by the adapter. Follow the migration guide and retain operator files.
MCP/hooks appear configured but do not executeCheck trust and the MCP sidecar/hook guide. Configuration presence does not establish execution; current live evidence is deferred.
Session content is missingCheck sessions for export/store limits. Export does not include tool output. Preserve provider session storage during removal.
Agent runs with an unexpected modelGrok 1.0.77 ignores agent frontmatter model pins. Select the worker model through the CLI; see models and automation.
Refresh fails or refuses a linked pathPreserve a backup, remove the unsafe link only after reviewing its owner, and retry a dry run. The offline suite proves a staged compilation failure leaves exact project preimages. General I/O failure recovery may require operator restoration from backup.
Uninstall retains filesPreview the agent-owned remove operation. Edited/unverifiable files are retained intentionally. Do not delete `.grok/config.toml`, sessions, operator skills or shared context to force removal.
Smoke skips or failsLogin privately with `grok login`, declare auth mode and opt in using the exact smoke commands. A version mismatch requires reviewed captures, not a bypass. Never paste credentials or raw config into receipts.
Scheduled drift failsReview the named qualification contract, upstream source revision and affected inspect/config owners. Re-run the offline captured comparison with reviewed samples before changing pins.

The adapter stays experimental. Real Windows PowerShell/WSL and new live smoke evidence remain deferred; Linux fixtures and Windows simulation do not close those gaps. The promotion gate lists all native surfaces still needing evidence.