grok-cli-runtime
SolidInternal helper contract for calling the grok-companion runtime from Claude Code
AI & Automation 3 stars
0 forks Updated today MIT
Install
Quality Score: 79/100
Stars 20%
Recency 20%
Frontmatter 20%
Documentation 15%
Issue Health 10%
License 10%
Description 5%
Skill Content
# Grok runtime
Primary helper:
- `node "${CLAUDE_PLUGIN_ROOT}/scripts/grok-companion.mjs" <subcommand> [flags]`
Subcommand surface:
- `task [--prompt-file <path>] [--write] [--web] [--memory] [--background] [--resume <uuid>] [--resume-last] [--fresh] [--model <id>] [--effort <level>] [--max-turns <n>] [--cwd <dir>] [--json] [--] [prompt]`
- The upstream Grok CLI has no default turn limit. An unset limit is unlimited, and one turn is one main-agent model call plus its tool cycle, excluding subagent calls. The companion defaults consult and write to `--max-turns 60`; consult previously defaulted to 25. When the limit is reached, Grok prints the complete final JSON envelope to stdout, including partial text, usage, `num_turns`, and `modelUsage`, then exits 1 with stderr `Error: max turns reached`. The companion salvages that envelope and records `failureKind: "turn_limit"`.
- Grok headless JSON has no top-level `model` field. Model names are available only as keys in `modelUsage` when usage attaches, so model capture depends on that map and on error-path salvage. Missing `modelUsage` leaves the resolved model unavailable.
- `review [--base <ref>] [--focus <text>] [--cwd <dir>] [--background] [--json]`
- `status [job-id] [--cwd <dir>] [--json]`
- `history [--all] [--limit <n>] [--cwd <dir>] [--json]`
- `result <job-id> [--cwd <dir>] [--wait] [--wait-timeout-ms <ms>] [--json]`
- `cancel <job-id> [--cwd <dir>] [--json]`
- `stats [--all] [--cwd <dir>] [--json]`
- `setup [--conti...
Details
- Author
- okisdev
- Repository
- okisdev/claude-code-fusion
- Created
- 3 weeks ago
- Last Updated
- today
- Language
- JavaScript
- License
- MIT
Similar Skills
Semantically similar based on skill content — not just same category
AI & Automation Solid
codex-cli-runtime
Internal contract for invoking the Codex companion runtime.
3 Updated today
okisdev AI & Automation Featured
grok
Delegate coding to xAI Grok Build CLI (features, PRs).
221,626 Updated today
NousResearch AI & Automation Listed
grok
Delegate coding to xAI Grok Build CLI (features, PRs).
1 Updated yesterday
dsivov