Grok Build CLI v0.2.97: Cost Tracking, Faster Ripgrep, and Voice Mode for API Users
Grok Build CLI v0.2.97 adds per-prompt cost tracking, fixes process leaks, and removes ripgrep prompts. Learn what this maintenance release means for your workflow.

xAI released Grok Build CLI v0.2.97 on July 11, 2026. This terminal coding agent plans, edits, and runs shell commands directly in your working tree. Therefore, it differs from standard chat-based coding assistants. This update is a maintenance release rather than a major feature drop. However, it addresses critical issues for users running scripts or working on remote devboxes.
Key Features in Grok Build CLI v0.2.97
Cost visibility is the most significant addition. Headless JSON output now includes token usage and cost per prompt. Additionally, the SDK exposes this data through Turn.usage. Teams can now pull exact numbers programmatically instead of guessing from billing dashboards. Consequently, you can accurately attribute costs to specific automated workflows.
Two other changes improve interactive sessions significantly:
- Edit previous messages: You can now double-click or press Enter on past user messages to edit and resubmit them directly.
- Faster code search: Shell commands using
rgno longer trigger permission prompts. This removes friction during agent sessions.
Furthermore, voice mode is now available for API-key sessions. New environment variables also help tune display performance on high-refresh-rate monitors.
Critical Bug Fixes
This update resolves several annoying daily issues. First, background tasks in headless mode are now properly killed on exit. Previously, these leaked processes after runs finished. Second, failed spawns no longer leave orphaned agent processes behind.
MCP and skills reload freezes are also fixed. This prevents entire sessions from hanging on devboxes. Importantly, HTTP-based MCP servers now auto-recover from disconnects. Finally, clipboard copying over iTerm2 SSH connections works reliably again.
Market Context and Practical Takeaways
Grok Build remains in beta behind premium subscriptions. The underlying Grok 4.5 model scores competitively on agentic coding benchmarks. For instance, pricing aligns with heavy seats for similar tools rather than pay-as-you-go APIs. You might compare this value against options discussed in Claude AI India Pricing Revealed: What Pro, Max, and Team Plans Cost in Rupees.
This release signals operational maturity over new capabilities. xAI is focusing on cost accounting and connection resilience. Therefore, update immediately if you use HTTP MCP servers. While still best for exploratory workflows, Grok Build CLI v0.2.97 shows xAI is treating this as production tooling.