Command Highlights
This page distills the most useful command evidence from GROK_COMMANDS_AND_OUTPUTS.md into a public-facing summary.
Environment Capture
The archive recorded these baseline commands and results:
bun --version->1.3.11node --version->v24.12.0grok --version->1.0.0-rc5
It also confirmed that the globally linked grok command resolved to the checked-out grok-cli snapshot used in the sandbox.
Local Setup and Verification
The raw log includes successful setup and validation runs for the pinned CLI snapshot:
bun install
bun run build
bun run typecheck
bunx vitest run src/grok/client.test.tsObserved result:
- the build completed
- typecheck passed
src/grok/client.test.tsfinished with 11 passing tests
CLI Surface and Headless Mode
The archive captured:
grok --helpgrok modelsnode dist/index.js --version
Important observation:
node dist/index.js --versionfailed withERR_IMPORT_ATTRIBUTE_MISSINGon Nodev24.12.0- the stable path used for verification was the
grokcommand rather than directnode dist/index.js
For headless execution, the archive also recorded:
grok -p "Reply with only pong." --format json
grok -p "Remember this code word exactly: NEBULA-47." --format json
grok -s latest -p "What code word did I just ask you to remember? Reply with only the code word." --format jsonObserved result:
- JSON event output included
step_start,text, andstep_finish --session latestsuccessfully recalledNEBULA-47
Tool Call Coverage
The raw notebook contains concrete examples for these tool families:
search_webtaskdelegatedelegation_readsearch_x
Observed result:
search_webreturned a current xAI-related article title and URLtaskwith theexploreagent summarized theREADME.mdselling pointsdelegatecreated a background delegation artifact even when the immediate headless output was thindelegation_readreturned a one-sentence summary from a prior delegationsearch_xreturned a recent xAI-related post summary
Media Generation
The archive shows both image and video generation flows:
grok -d ./grok-cli -p "Use the generate_image tool ..." --format json
grok -d . -p "Use the generate_video tool ..." --format jsonObserved result:
- the image flow saved a cat-face logo under repo-local generated media
- the video flow produced a 3-second push-in video from that image
- the sample image was copied into
../assets/grok-generated-cat-logo.jpg
Telegram Coverage
The raw notebook recorded several Telegram-oriented checks:
- helper startup and lifecycle logging
- pairing approval flow
- message roundtrip over Telegram chat
search_xplus file write / edit from Telegram instructions- Telegram unit tests
- pairing-store smoke test
- invalid-token bridge failure path
Representative command families captured in the archive:
bunx vitest run src/telegram/limits.test.ts src/ui/telegram-turn-ui.test.ts
@' ... registerPairingCode / approvePairingCode ... '@ | bun -
@' ... createTelegramBridge(...) with invalid token ... '@ | bun -Observed result:
- Telegram unit tests passed with 7 tests
- pairing approval succeeded once and then correctly failed on reuse with
Unknown or expired code. - invalid-token startup returned
Call to 'getMe' failed! (401: Unauthorized)
Why This Page Exists
The raw archive remains useful, but it also contains machine-specific paths and terminal-dependent encoding artifacts. This page keeps the command results visible in the docs set without repeating the full raw notebook verbatim.