grok-cli is an open-source terminal coding agent that uses the Grok API to work on software projects. Developers use it for interactive or headless coding tasks, with features including web and X search, sub-agents, a terminal interface, and remote control through Telegram.
Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add superagent-ai/grok-cli --skill agent-desktopgit clone --depth 1 https://github.com/superagent-ai/grok-cliWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/superagent-ai/grok-cli/agent-desktop)<a href="https://agentmods.dev/skills/superagent-ai/grok-cli/agent-desktop"><img src="https://agentmods.dev/badge/skills/superagent-ai/grok-cli/agent-desktop/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/superagent-ai/grok-cli/agent-desktop"><img src="https://agentmods.dev/badge/skills/superagent-ai/grok-cli/agent-desktop.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00056 | $0.00615 |
| Opus 5.5 | $0.00022 | $0.00246 |
| Sonnet 5.5 | $0.00011 | $0.00123 |
| Haiku 4.5 | $0.00006 | $0.00061 |
Grade A, and why
agent-desktop scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 59 lines — stays where its author put it; the contents beside it link to each section on GitHub.
agent-desktop
Use this skill when the task involves the host macOS desktop rather than repository files, shell output, or browser-only verification.
This project uses agent-desktop on the host. Prefer the built-in Computer sub-agent for these tasks instead of trying to drive the desktop with plain shell commands.
When to use it
- The user wants to inspect or interact with a native macOS application.
- The task needs app launch, window focus, accessibility snapshots, semantic element refs, clicks, typing, keypresses, or scrolling.
- A browser-only workflow is not enough, or the target is not a web page.
Requirements
agent-desktopmust be installed and its native binary available.- On macOS, the terminal app running
grokneeds Accessibility permission. - Refs from
computer_snapshotare only valid until the next snapshot.
Preferred flow
- Delegate to
taskwithagent: "computer"unless the current agent already has thecomputer_*tools and the task is tiny. - Use
computer_launch,computer_list_windows, orcomputer_focus_windowto get the target app/window ready. - Start with
computer_snapshot. - Pick one ref-based action.
- After any UI transition, snapshot again before reusing refs.
Tool guidance
computer_snapshot: primary observation tool; preferinteractive_only.computer_click: userefvalues from the latest snapshot whenever possible.computer_type: requires a target ref and is preferred over coordinate typing.computer_press: use for shortcuts and special keys such asEnter,Tab,cmd+space, orcmd+k.computer_scroll: pass an element ref, not raw coordinates.computer_get: read text, value, bounds, role, or states from a ref.computer_screenshot: use for visual confirmation or when the accessibility tree is not enough.
Reliability rules
- Use a snapshot -> act -> snapshot loop.
- Prefer refs over coordinates.
- Refs go stale after the next snapshot; do not reuse them blindly.
- Keep actions reversible and low risk unless the user explicitly asked for something destructive.
- If the accessibility tree is poor or ambiguous, use
computer_screenshotfor confirmation and explain the limitation.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3mo ago First seen · 59 lines · 56 tokens per session scan A 5b817bb2fa21
agent-desktop is a skill published in the GitHub repository superagent-ai/grok-cli (3,521 stars, last pushed 4mo ago), licensed MIT. It adds 56 tokens to every session and 615 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
agent-desktop compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| agent-desktopsuperagent-ai/grok-cli | Skill | 3.5k | 4mo ago | MIT | A | 56 | Claude Code, Codex |
| hunk-launch-videomodem-dev/hunk | Skill | 9.9k | yesterday | MIT | A | 60 | Claude Code, Codex |
| gog-workspaceAtomicBot-ai/atomic-agent | Skill | 3.6k | today | MIT | A | 25 | Claude Code, Codex |
| apple-calendarAtomicBot-ai/atomic-agent | Skill | 3.6k | today | MIT | A | 19 | Claude Code, Codex |
| apple-remindersAtomicBot-ai/atomic-agent | Skill | 3.6k | today | MIT | A | 24 | Claude Code, Codex |
| apple-notesAtomicBot-ai/atomic-agent | Skill | 3.6k | today | MIT | B | 21 | Claude Code, Codex |
| onewithoneai/cli | Skill | 423 | yesterday | MIT | A | 222 | Claude Code, Codex |