Grok CLI
An agentic coding harness for Grok...
About Grok CLI
An agentic coding harness for xAI's Grok models. It reads your code, edits it, runs your tests, and iterates — in a terminal, with permission controls you set.
Nothing runs a command or edits a file without your say-so, unless you say so once.
Approval prompts for edits show a diff , so you approve a change rather than a filename. "Always allow" is scoped to the tool and its argument — approving cargo test never approves rm -rf / .
Rules are Tool(pattern) . cmd:* is a prefix match, anything else is a glob, and a bare Tool matches every call. Deny always wins — including over bypassPermissions , and including inside subagents.
Shell commands are matched whole and per segment, so true; rm -rf / cannot slip past a rule by not starting with the denied text. Matching is still textual, though: rm -fr is not rm -rf , and a command built from a variable cannot be inspected. Treat deny rules as a guardrail against mistakes, not a sandbox — plan mode with an explicit allow-list is the stronger control.
Hooks — run a program before or after any tool call. It can veto.
Subagents — .grok/agents/reviewer.md , for work that would otherwise fill the conversation with intermediate output:
A subagent's tools are always a subset of the parent's, so delegating can never escape a restriction.
Discussion
Sign in to join the discussion.
Loading comments…
Tagged
Alternatives to Grok CLI
Tools in the same space, ranked by how they are performing in the directory.
Hexstrike AI
HexStrike AI MCP Agents is an advanced MCP server that lets AI agents (Claude, GPT, Copilot, etc.) autonomously run 150+ cybersecurity tools for automated pent…
/AI AgentsCAIPE
Open-source multi-agent system for AI-powered platform engineering.
Open source/AI AgentsLatticedb
Embedded single-file knowledge graph database with vector search and full-text search for AI/RAG apps - jeffhajewski/latticedb
/DesignCarWatch
Your car as a chat-room agent: Raspberry Pi 5 + dashcam + local AI.
Open source/Video & AudioTexbrain
FOSS browser-based LaTeX editor with live preview, on-demand packages and git integration.
Open source/Writing & Content
Tako VM
Tako VM is a secure file system and Python execution layer for AI agents: gVisor-isolated Docker containers with job queues, workers, retries, and replay.
/Developer Tools