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 SunflowersLwtech/sunkit --skill macos-harnessgit clone --depth 1 https://github.com/SunflowersLwtech/sunkitWrote 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/sunflowerslwtech/sunkit/macos-harness)<a href="https://agentmods.dev/skills/sunflowerslwtech/sunkit/macos-harness"><img src="https://agentmods.dev/badge/skills/sunflowerslwtech/sunkit/macos-harness/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/sunflowerslwtech/sunkit/macos-harness"><img src="https://agentmods.dev/badge/skills/sunflowerslwtech/sunkit/macos-harness.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.00107 | $0.02803 |
| Opus 5.5 | $0.00043 | $0.01121 |
| Sonnet 5.5 | $0.00021 | $0.00561 |
| Haiku 4.5 | $0.00011 | $0.00280 |
Grade A, and why
macos-harness scanned grade A with 1 finding 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 19d 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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
curl -s http://127.0.0.1:9333/json # pick the target whose type == "page" How it starts
The opening of the file, as written. The whole thing — 226 lines — stays where its author put it; the contents beside it link to each section on GitHub.
macOS Harness
Control a Mac from one persistent scripting session: one CLI call per decision point, not per primitive.
macos-harness <<'PY'
app = "Spotify"
mac.see(app)
mac.key("cmd+k", app=app)
mac.type("Alessia Cara", app=app)
print(mac.see(app))
PY
The CLI preloads mac, browser, Path, and subprocess. Prefer bounded stdin
programs; reserve macos-harness repl for manual exploration and always exit it.
This skill documents the browser-use/macos-harness CLI (MIT), pinned to the v0.1.x line — upstream v0.2.0 rewrote the interface, and the six-verb contract below (
see,key,type,click,ax,script) exists only there. Install v0.1.2:uv tool install --python 3.12 --from git+https://github.com/browser-use/[email protected] macos-harnessThe core sections are upstream's
skills/macos-harness/SKILL.md(v0.1.0) with local additions and generalizations — seeUPSTREAM.mdandLICENSEin this directory. If you prefer not to depend on that CLI, wrap your own over the standard pieces (screenshots plus the accessibility tree, e.g. Peekaboo; Quartz event posting viaCGEventPost;osascriptfor Apple Events;screencapture; raw CDP for Chromium surfaces) and follow the same conventions — the behavioral rules and failure modes below are what matter.
Minimize round trips
- Bundle deterministic, reversible steps into one program, then verify once. Opening search, typing a query, and capturing the results is one burst—not three calls.
- Stop at a genuine decision boundary: ambiguous identity, new coordinates, an irreversible action, or unexpected state. Inspect once, then run the next burst.
- Do not screenshot merely to confirm that a known shortcut opened a text field before typing. Let the final screenshot verify the whole sequence.
- Poll exact AX or Apple Events state inside the same program when possible; do not make the agent repeatedly ask whether a transition finished.
- Use the cheapest strong end-state check. Prefer one screenshot for visible state or one exact API/AX query for semantic state; use both only when they prove different things.
What ships with it
2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 19d ago First seen · 226 lines · 107 tokens per session scan A 800208a69cd0
macos-harness is a skill published in the GitHub repository SunflowersLwtech/sunkit (15 stars, last pushed yesterday), licensed Apache-2.0. It adds 107 tokens to every session and 2,803 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-12.
macos-harness compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| macos-harnessSunflowersLwtech/sunkit | Skill | 15 | yesterday | Apache-2.0 | A | 107 | Claude Code |
| dashboard-builderwinstonkoh87/Athena-Public | Skill | 656 | today | MIT | A | 31 | Claude Code |
| browser-doctorjmagly/aiwg | Skill | 233 | yesterday | MIT | A | 56 | Claude Code, Codex |
| visual-verify-uiwinstonkoh87/Athena-Public | Skill | 656 | today | MIT | A | 21 | Claude Code |
| browser-automation-expertroedyrustam/vibes-plug | Skill | 130 | 4d ago | MIT | A | 44 | Cursor |
| web-scraperroedyrustam/vibes-plug | Skill | 130 | 4d ago | MIT | A | 43 | Cursor |
| local-slm-edge-ai-expertroedyrustam/vibes-plug | Skill | 130 | 4d ago | MIT | A | 49 | Cursor |