grok-cli-runtime skillB
grok-cli-runtime is agent-read markdown (skill) from okisdev/claude-code-fusion: Internal helper contract for calling the grok-companion runtime from Claude Code.
Indexed from public GitHub and served as immutable, content-addressed versions. Install it pinned to an exact SHA-256 with the mdr CLI, and every file is verified against the hash recorded here before it reaches your agent. The deterministic audit below grades the latest version, and the same file always earns the same grade.
What the file says
# 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-schema <schema>] [--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.
…Read the whole file at its exact version.
How to install
mdr add okisdev/claude-code-fusion/grok-cli-runtime@git:20260914.7162c29mdr add okisdev/claude-code-fusion/grok-cli-runtime@sha256:a660daa7d8d0eeccPin to a label to follow the author's releases, or to a sha256 to freeze the exact bytes forever. Either way the resolved hash is written to mdr.lock, and mdr install reproduces it on any machine.
[](https://markdownregistry.com/a/art_vv3aqctcocoqet4i)
1 badge views in 30 days
Versions
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260914.7162c29 latest | 2026-09-14 | 7162c29 | 21,081 B | B | view · diff |
| git:20260901.4e8c2cb | 2026-09-01 | 4e8c2cb | 19,921 B | B | view · diff |
| git:20260813.2cf25d9 | 2026-08-13 | 2cf25d9 | 19,920 B | B | view · diff |
| git:20260807.d13beb6 | 2026-08-07 | d13beb6 | 19,920 B | B | view · diff |
| git:20260801.51a49fa | 2026-08-01 | 51a49fa | 19,527 B | B | view |
Audit of the latest version
- fail: No instruction to read or print local credentials (matched: Read denies for `auth.json`, `mcp_credentials.json)
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (21081 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
okisdev/claude-code-fusion · 3 stars · license MIT · pushed 2026-09-20 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_vv3aqctcocoqet4i GET https://markdownregistry.com/api/v1/resolve?ref=okisdev/claude-code-fusion/grok-cli-runtime GET https://markdownregistry.com/api/v1/blob/a660daa7d8d0eecc6ee993688b2f34a72df8347861b103dc1fb0a5fe5dbfe3bf
Your agent does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.