Skip to content
Back to skills

Rule Daemon Grok

ASecurity

Grok Build transport — launch argv and env, the vendor notification prefix, the account refusal, and which features are built without a live turn. A repository rule for apps/daemon/src/v1/agents/adapters/grok/**; read it before editing a file there.

  • 8 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added December 4, 2026
ai-agentsgoapi

Works with

  • cursor
  • cli
  • api

Security analysis

A100/100

Scanned December 4, 2026

npx -y skills add geniro-io/geniro-app --skill rule-daemon-grok --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Rule Daemon Grok?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Rule Daemon Grok
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/geniro-io-rule-daemon-grok/badge)](https://www.skillsdirectory.com/skills/geniro-io-rule-daemon-grok)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: rule-daemon-grok
description: "Grok Build transport — launch argv and env, the vendor notification prefix, the account refusal, and which features are built without a live turn. A repository rule for apps/daemon/src/v1/agents/adapters/grok/**; read it before editing a file there."
---
<!-- GENERATED by scripts/sync-agent-rules.mjs from .claude/rules/daemon-grok.md. DO NOT EDIT: edit the source, then run `pnpm sync:agent-rules`. -->

# Grok Build adapter

The `grok` adapter (`adapters/grok/`) composes the shared ACP client in `adapters/acp/`, beside `CursorAcpAdapter`. Cursor's transport rules stay in `daemon-cursor-acp.md`.

## Launch

- Argv `agent --no-leader stdio`. `grok agent` has no `--no-auto-update` flag (it answers "unexpected argument"); updates are off by the env `GROK_DISABLE_AUTOUPDATER=1`.
- Env `GROK_ASK_USER_QUESTION=0`: grok's own question card is off, and agents ask through geniro's `ask_user_question`.
- A named configuration is a folder, passed as `GROK_HOME` to sign-in, the probes and every run of that configuration.
- Credential env keys, inherited by grok only and never by another CLI: `XAI_API_KEY`, `GROK_CODE_XAI_API_KEY`, `GROK_BUILD_API_KEY`, `GROK_BUILD_AUTH_TOKEN`, `GROK_BUILD_AUTH_TOKEN_FILE`, `GROK_BUILD_SERVICE_ACCOUNT_KEY`.

## Vendor notifications

- Grok's extension methods arrive with a leading underscore: `_x.ai/session_notification`, `_x.ai/session/prompt_complete`, `_x.ai/models/update`. The docs spell them `x.ai/…`; match the underscored names through one prefix constant.

## Account refusal

- An account whose Cursor team is not unified with Grok Build gets JSON-RPC `-32602` with `data` "Permission Denied: Grok Build isn't available for this account yet." on every prompt. Grok also sends it as `_x.ai/session_notification` `turn_completed` with `stop_reason: "error"`.
- The turn fails with that sentence, without its "Permission Denied:" category or the driver's "acp prompt failed:", followed by "An admin of your Cursor team has to unify the team with Grok Build first. Until then, use Cursor (legacy)." The error carries the `service-refusal` recovery, so its row offers no Retry. Nothing is remembered: the next message tries again.
- A background command or sub-agent is described to grok's agent by grok's own tools, which say its end wakes the agent; geniro holds and wakes nothing for grok, so `backgroundWork.agentNote` stays null.

## Evidence classes

- **L — seen live** on grok 2.0.9, with no turn: `initialize`; the `session/new` reply (modes `default`, `plan`, `ask`; models; configOptions `model`, `reasoning_effort`, `fast`); `session/set_config_option` for `model`; `grok whoami --format json`; `grok --version`; `grok update --check --json`; `grok usage --json`, which answers `{"status":"managedByTeam"}` on this account; the refusal frames; "Authentication required" when signed out.
- **D — built from Grok's docs, NOT confirmed on a live turn.** Re-check each one once an account can run a turn:
  - approval posture: `_meta.yoloMode` (auto) and `_meta.autoMode` (Auto review) on the session;
  - reasoning effort: `session/set_config_option` with `reasoning_effort`;
  - geniro's `/compact`;
  - Geniro's instructions through `_meta.rules`;
  - session listing and history: `session/list`, `session/load`;
  - per-turn tokens from the prompt reply's `_meta.usage`;
  - spend per conversation from `grok usage <session-id>` (`costUsdTicks`, 10^10 per USD), polled like Cursor's account spend;
  - plan limits from `grok usage --json`;
  - sub-agent blocks: a `spawn_subagent` tool call opens one, and its result closes it;
  - a background command's end wakes grok's own agent, so geniro starts no wake turn.
- **N — not built: the docs describe no source for these.** A sub-agent's inner steps; the per-category context breakdown; grok's own question card; a context-window or auto-compaction control; whether a backgrounded command is reported as running over ACP (geniro finds detached commands from the process tree instead); a public list price.

## Built without a live turn

- `agent-adapters.md` builds a flag or env var only after a throwaway run proves its effect. This adapter is the recorded exception: no turn could run on the team's account, so every D item stays listed here until a live turn on a unified account re-checks it. A D figure found wrong is fixed then.

## Team YAML

- `autoReview` is a one-way door in team YAML: `ApprovalModeSchema` only widens, so no later release may remove it.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.