macbot-mcp: Instructions file for Claude Code

CLAUDE.md

macbot-mcp CLAUDE.md is an instructions file for Claude Code from anomalous3/macbot-mcp. It costs 1,377 tokens per session, scanned A, original, MIT.

A set of instructions for controlling macOS apps through their accessibility controls, AppleScript, and Quartz, including browser and other graphical interfaces.

In plain words
What is it for?
Use it to read interface trees, find buttons and fields, press controls, retrieve browser URLs, and use screenshots when visual details are necessary.
Why use it?
It helps an agent inspect and operate interface elements without relying on screenshots or mouse coordinates in many cases.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions Claude Code.

This is anomalous3/macbot-mcp's own configuration. It tells Claude Code how to work on macbot-mcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything macbot-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to anomalous3/macbot-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/anomalous3/macbot-mcp/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/anomalous3/macbot-mcp

Made for: Claude Code.

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 macbot-mcp CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/anomalous3/macbot-mcp/claude-md/github.svg)](https://agentmods.dev/instructions/anomalous3/macbot-mcp/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/anomalous3/macbot-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/anomalous3/macbot-mcp/claude-md/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 macbot-mcp CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/anomalous3/macbot-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/anomalous3/macbot-mcp/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,377 This file is loaded in full into every session.
When invoked 1,377 The same file — it is already loaded in full.
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.01377 $0.01377
Opus 5.5 $0.00551 $0.00551
Sonnet 5.5 $0.00275 $0.00275
Haiku 4.5 $0.00138 $0.00138

Measured 28d ago against content hash 6e2f1d1a2b53, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

macbot-mcp CLAUDE.md 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 28d 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.

CLAUDE.md · 133 lines

How it starts

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

macbot-mcp

macOS GUI automation via the Accessibility API, AppleScript, and Quartz.

When to use which tool

Prefer accessibility tools over screenshots. They're 5-15x cheaper in tokens and return structured, searchable data.

Goal Tool Tokens
Read UI state (windows, buttons, tabs, text) mac_ui_tree ~200-700
Find a specific element (button, link, field) mac_ui_find ~100-300
Get the browser URL mac_ui_url ~50
See what something looks like visually mac_screenshot + Read ~3000

Use screenshots only when you genuinely need visual information — layout, colors, images, charts, or anything the accessibility tree can't describe.

Common workflows

Batch known actions into one call

Use mac_batch(app="Firefox", actions=[{"tool": "mac_key_press", "args": {"key": "l", "modifiers": ["command"]}}, {"tool": "mac_type_text", "args": {"text": "https://example.com"}}, {"tool": "mac_key_press", "args": {"key": "return"}}]) for a sequence that needs no intermediate interpretation. All steps validate before execution; the batch stops on its first error and reports the zero-based failed index. Earlier effects are not rolled back. Split at decision points; an empty search result does not halt the batch. The default app applies to tools accepting app, with per-step overrides. Every nested action must be authorized; batch approval covers the whole sequence.

Wait for the action's result in the same batch

Follow actions with mac_wait, for example {"tool": "mac_wait", "args": {"condition": "exists", "name": "Pause", "role": "AXButton", "timeout": 5}} after pressing Play. Waits return observed evidence and stop the batch on timeout. Supported conditions: exists, absent, enabled, value_equals, value_changed, url_equals, url_contains, url_changed, title_contains. For element conditions, supply name and/or role; value/URL/title comparisons also need value. For *_changed, value must be the known previous value. Timeout defaults to 10 seconds, max 30; polling defaults to 0.2 seconds. Do not substitute arbitrary sleeps or repeated model turns when a condition can be checked locally. An absence wait can succeed before an element appears; wait for appearance first if the workflow needs a full appear/disappear cycle.

Read the full file on GitHub · 133 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. 28d ago Changed · +26 lines · +378 tokens per session 6e2f1d1a2b53
  2. 2mo ago First seen · 107 lines · 999 tokens per session scan A cb41d4234619

Subscribe to this mod's changes

macbot-mcp CLAUDE.md is an instructions file published in the GitHub repository anomalous3/macbot-mcp (0 stars, last pushed 29d ago), licensed MIT. It adds 1,377 tokens to every session, about $0.0055 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-31.

Related

macbot-mcp CLAUDE.md compared with instructions from other repositories

macbot-mcp CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
macbot-mcp CLAUDE.mdanomalous3/macbot-mcpInstructions file029d agoMITA1,377Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file144ktodayMITA8,130Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA5,685GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file150ktodayMITA4,680Codex, OpenCode
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file283ktodayMITA4,342Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA3,153GitHub Copilot