# Grok Cli Agent

> >

- **Type:** Skill
- **Install:** `agentstack add skill-iml1s-agent-cli-skills-grok-cli-agent`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [ImL1s](https://agentstack.voostack.com/s/iml1s)
- **Installs:** 0
- **Category:** [AI & ML](https://agentstack.voostack.com/c/ai-and-ml)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [ImL1s](https://github.com/ImL1s)
- **Source:** https://github.com/ImL1s/agent-cli-skills/tree/main/skills/grok-cli-agent
- **Website:** https://iml1s.github.io/agent-cli-skills/

## Install

```sh
agentstack add skill-iml1s-agent-cli-skills-grok-cli-agent
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Grok Build CLI (`grok`) Executor

## When to use

- User wants **grok** / Grok Build as the coding agent
- Need Grok `spawn_subagent`, `--agents` JSON, or `--worktree` isolation from an orchestrator

## Wrapper

```bash
./grok-exec.sh -C /path/to/repo -t 1800s "Implement X. NO git."
./grok-exec.sh -r -C /path/to/repo "Review lib/foo for races"
./grok-exec.sh -T -C /path/to/repo "Parallel research + implement"
./grok-exec.sh -f /tmp/bundle.txt -m grok-4.5 -e high -o json
./grok-exec.sh -w feat-branch -C /path/to/repo "Isolated worktree edit"
```

Flags: `-m` · `-t` · `-C` · `-e` effort · `-o` plain|json|streaming-json · `-f` · `-r` (plan + deny write/shell) ·
`-s PROFILE` · `-T` native subagent preamble · `-w [NAME]` worktree · `--agents JSON` ·
`--max-turns` · `--json-schema` · `--rules` · `--disable-web-search` · `--no-git` · `--` passthrough.

Default model: `grok-4.5` (`grok models`). No PTY needed — headless `-p` works on pipes.
`-C` is absolutized before use.

## Native multi-agent

Grok has first-class `spawn_subagent` (types: `general-purpose`, `explore`, `plan`),
`--agents` JSON definitions, `--no-subagents`, `--worktree` isolation.
`-T` asks the model to fan out freely and synthesize.

## Discipline

- Exit code untrusted — verify results yourself
- Orchestrator owns git (`--no-git`)
- Long prompts: always `-f` file

## Raw surface

See `grok --help`: permission modes, sandbox, json-schema, tools allow/deny, resume/continue,
`grok agent` (stdio/headless/serve/leader), `worktree`, `export`, `doctor`.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [ImL1s](https://github.com/ImL1s)
- **Source:** [ImL1s/agent-cli-skills](https://github.com/ImL1s/agent-cli-skills)
- **License:** MIT
- **Homepage:** https://iml1s.github.io/agent-cli-skills/

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-iml1s-agent-cli-skills-grok-cli-agent
- Seller: https://agentstack.voostack.com/s/iml1s
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
