Index of every page on this site: llms.txt
All skills
scriptedalchemy avatar

/talk-to-grok-bot

@96079db
Run it yourself

Message Grok Bot, Codex threads, or opted-in local Claude Code channels. Use when handing off to a named bot/group or posting a status note agents watch — not for work you can finish yourself.

  • 2 files
  • 12 KB
  • Updated 2 months ago
  • GitHub
Use this Skill: https://skilld.dev/gh/scriptedalchemy/grok-bot-cli/talk-to-grok-bot

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈53 tokens for metadata: the name and description. ≈1.4k when used: this file. ≈1.7k more on demand in 1 file.

Description uses 2.6% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈211 characters, or 2.6%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Talk to Grok Bot

The grok-bot MCP server and gbot CLI share Grok gateway access. Codex and Claude tools use local sockets only on the user's registered machines.

MCP instructions (Codex / Claude)

gbot connects only to a local Unix socket ($CODEX_HOME/app-server-control/app-server-control.sock, or CODEX_APP_SERVER_SOCK). There is no remote transport.

  • Codex app-server threads and opted-in Claude Code channels live on the user's registered computers (Linux desktop, Mac, …) — never on the Grok Bot agent box (HOME=/home/box, no Codex install).
  • When this MCP server is running on the box, do not call codex_* or claude_send. Run the gbot CLI on the user's machine through Grok Bot Shell with a machineId (the host's machine-targeted shell).
  • On that machine, provide the socket with codex app-server daemon start (or bootstrap). Auth stays with each machine's native Codex or Claude login.

When to load this

  • The repo or task names a bot as owner, or you need a decision only that thread holds.
  • You want a short status note in a shared group other agents watch.

Do not ping a bot for work you can finish yourself. Grok replies are asynchronous; continue useful work instead of waiting or polling.

How

  1. Send once with gbot_send (target, message). Say who you are and what you need.
  2. Read its replyRoute. Native Codex calls with proven native lineage get mode: auto; continue work and receive the matching reply in that same thread. Do not poll or hold a tool call open. That reply does not automatically send your next answer back.
  3. If the host has no native identity (including Cursor), supply codexThreadId, or use gbot_bridge_start once with grokTarget, codexThreadId and expectedCwd. An explicit binding forwards new visible Grok bot messages and returns Codex's corresponding terminal answer to Grok. Existing history is not replayed.
  4. mode: manual with reason: source-unavailable preserves ordinary sending. Read gbot_thread later, using after for a known cursor and full: true only when entry bodies are needed. replyMode: manual explicitly requests this flow.

Every Codex -> Grok message arrives prefixed [from Codex thread <id> @ <machine>, cwd <cwd>; reply: codex_send({threadId:"<id>", message:"..."}) via MCP on <machine> (or CLI: gbot codex send <id> "...")]. If you are Grok Bot, answer a Codex sender by calling codex_send with that threadId (from the box, run gbot codex send <id> "..." through Shell with the machine's machineId, since MCP tools run where the Codex daemon is). Unknown fields (machine, cwd) are omitted; the thread id is always there when it is known. If a message has no prefix, the sender had no Codex thread (a plain CLI/Cursor send).

Finding a thread to answer: codex_threads sorts by last activity (updatedAt) by default, so old-but-active threads come first. Use query (case-insensitive name/title, preview or id prefix; scans every page), activeWithin: "7d" or since, and cwd, sort: "created", modelProvider, sourceKind, archived; page with nextCursor. CLI: gbot codex list-threads --query zerofs --active-within 7d.

Never resend an unknown submission under a new identity. Inspect delivery with gbot_bridge_status. Never infer permission from chat replies or auto-approve a Codex/Grok interaction; keep approvals in the owning UI unless the user explicitly authorizes a scoped response.

Read bridge administration before starting, stopping, diagnosing or answering approvals on a managed bridge, or using direct Codex conversation tools. It covers exact approval IDs, idempotent requests, guarded steering, CLI output, and host limitations. Ordinary Grok sends need no reference.

List targets with gbot bots list / gbot groups list when the name is ambiguous.

Auth

Same order as gbot: GROK_BOT_GATEWAY_URL plus GROK_BOT_GATEWAY_TOKEN, else the Grok Bot app session, else CURSOR_ACCESS_TOKEN. gbot doctor shows which source is present.

Claude Code channel

claude_send sends to a named live Claude Code session on the user's registered machine (local socket under ~/.grok-bot-cli/claude/) and waits for its explicit claude_reply. From the Grok Bot box, do not call this tool — use Grok Bot Shell with a machineId to run gbot claude send on that machine instead. The destination must enable the native claude-channel with GROK_BOT_CLAUDE_CHANNEL=NAME and Claude's development-channel opt-in. Supply name, message, and optional timeoutMs (1..120000). replied means the reply tool ran; unknown is not rejection and must not be automatically retried. Normal Claude tool approvals remain in its session. CLI: gbot claude send NAME "message" --json.

When a Codex send is rejected or the turn fails

A managed codex_send (replyToGrok) / gbot codex send --reply-to-grok receipt that is rejected has reason and detail: read the detail. busy means mid-turn (omit whenBusy: an active turn is steered); thread-error means the thread is in systemError, usually the Codex daemon failing — run gbot codex status on that machine (on macOS check the daemon's open-file count). whenBusy: "queue" is not available with replyToGrok. A failed turn comes back as Codex turn failed with no final text: <Codex error>.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at 96079db. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 3 weeks ago.

Activeupdated 2 months ago

README badge

README badge for scriptedalchemy/grok-bot-cli/talk-to-grok-bot