computer-use

computer-use is a skill for Claude Code, Codex from PeakCode-AI/PeakCode. It costs 37 tokens per session (2,381 once invoked), scanned A, original, MIT.

A tool for operating macOS applications through their accessibility information and, when needed, real mouse and keyboard input. It is intended for work that is only available in a graphical application rather than through files, commands, or a web browser.

In plain words
What is it for?
Use it to interact with native Mac dialogs, forms, settings, and other application controls that cannot be reached through a command or browser.
Why use it?
It provides a way to inspect and control native Mac app windows while checking the result after each action. Its workflow avoids using fragile GUI actions when a command-line or configuration-file solution exists.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to interact with native Mac dialogs, forms, settings, and other application controls that cannot be reached through a command or browser.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/peakcode-ai/peakcode/computer-use
Install

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.

Any agent
npx skills add PeakCode-AI/PeakCode --skill computer-use
Clone the repo
git clone --depth 1 https://github.com/PeakCode-AI/PeakCode

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for computer-use

README.md
[![agentmods](https://agentmods.dev/badge/skills/peakcode-ai/peakcode/computer-use/github.svg)](https://agentmods.dev/skills/peakcode-ai/peakcode/computer-use)
Your own site
<a href="https://agentmods.dev/skills/peakcode-ai/peakcode/computer-use"><img src="https://agentmods.dev/badge/skills/peakcode-ai/peakcode/computer-use/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.

agentmods 80×15 button for computer-use

Your own site · 80×15
<a href="https://agentmods.dev/skills/peakcode-ai/peakcode/computer-use"><img src="https://agentmods.dev/badge/skills/peakcode-ai/peakcode/computer-use.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,381 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00037 $0.02381
Opus 5 $0.00018 $0.01190
Sonnet 5 $0.00007 $0.00476
Haiku 4.5 $0.00004 $0.00238

Measured today against content hash ce6ba7230d57, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-18, from the pricing page.

Security

Grade A, and why

computer-use 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 today.

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.

plugins/computer-use/skills/computer-use/SKILL.md · 185 lines

How it starts

The opening of the file, as written. The whole thing — 185 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Computer Use

The computer tool drives apps on this Mac through a native helper. It is how you do work that lives in a GUI and nowhere else: a dialog with no CLI, a form in a native app, a preference toggle, confirming what an app actually shows.

Reach for it last

In order:

  1. Files and shell commands. Copying a file is cp, not a Finder drag.
  2. The app's own CLI or config file. Most macOS apps have one, and it is scriptable.
  3. The browser tool, if the work is in a web page. It has element refs and a visible pane the user can watch.
  4. Only then computer.

Skipping to step 4 for something 1–3 could do is slower, more brittle, and it moves the user's cursor around while they are trying to work.

The loop

Observe once, act once, observe again. Never chain GUI actions blind.

  1. action: "list_apps" — what is running. Apps are matched by the name the user would say or by bundle id, so ask for "Finder" even on a system that calls it 访达.
  2. action: "get_state" with that app — returns the accessibility tree of the window in front, with a numbered ref for each element, its position and size, and the actions it actually supports.
  3. action: "act" with a ref from that tree.
  4. Observe again before concluding anything.

Two other reads, for when the tree is not the right lens:

  • action: "list_windows" — every on-screen window with its id, app, title and bounds. Use it to find a window that is not the front one (a sheet, a popover, a background window) and to capture it with screenshot + window_id. Its bounds are already in screen points.
  • action: "displays" — the displays and their scale factors. This is the coordinate space itself: on a second monitor the same pixel is a different point, and this is where that is written down.

get_state also reports a state_id. Pass it back with the ref — a ref is only meaningful for the observation it came from, and a ref from an older one is refused on purpose. The element behind it may be a different control by now. Do not retry a refused ref; take a fresh get_state.

Read the full file on GitHub · 185 lines

Changes

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.

  1. today First seen · 185 lines · 37 tokens per session scan A ce6ba7230d57

Subscribe to this mod's changes

computer-use is a skill published in the GitHub repository PeakCode-AI/PeakCode (134 stars, last pushed today), licensed MIT. It adds 37 tokens to every session and 2,381 once invoked, about $0.0002 per session on Opus 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-09-18.

Related

Other skills, from other repositories