OnlySwitch is a macOS menu bar app that groups system toggles and shortcuts in one customizable control panel. It is used to change settings such as dark mode, desktop icon visibility, notch hiding, and audio controls, with optional widgets and keyboard shortcuts.
Borrowing it
Nothing to install: this file belongs to jacklandrin/OnlySwitch. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/jacklandrin/OnlySwitch/main/AGENTS.mdgit clone --depth 1 https://github.com/jacklandrin/OnlySwitchWrote 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/instructions/jacklandrin/onlyswitch/agents-md)<a href="https://agentmods.dev/instructions/jacklandrin/onlyswitch/agents-md"><img src="https://agentmods.dev/badge/instructions/jacklandrin/onlyswitch/agents-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.
<a href="https://agentmods.dev/instructions/jacklandrin/onlyswitch/agents-md"><img src="https://agentmods.dev/badge/instructions/jacklandrin/onlyswitch/agents-md.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.01271 | $0.01271 |
| Opus 5.5 | $0.00508 | $0.00508 |
| Sonnet 5.5 | $0.00254 | $0.00254 |
| Haiku 4.5 | $0.00127 | $0.00127 |
Grade A, and why
OnlySwitch AGENTS.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 1mo 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 — 46 lines — stays where its author put it; the contents beside it link to each section on GitHub.
OnlySwitch Agent Guidance
This file defines the default workflow for changes to the OnlySwitch project. It applies to the macOS app, widgets, remote app, Swift Package modules, tests, OpenClaw integration, and project documentation.
Workflow
For every task, follow these steps in order. Each phase is delegated to the named subagent/model, and its output is handed to the next phase:
- Identify the task — subagent: 5.6 Luna. Restate the requested outcome, inspect the relevant project files, and analyze the primary use cases, failure modes, and edge cases. Include impacts on macOS permissions, menu-bar behavior, widgets, remote control, persistence, localization, accessibility, and security when relevant.
- Write the implementation plan — subagent: 5.6 Terra. Ask the user whether they want an implementation plan written first. When accepted, load the
writing-plansskill, save the completed plan underdoc/plan/, and use it as the source of truth while implementing. For small, self-contained changes, the user may choose to proceed without a saved plan. - Load relevant skills using Context Routing — subagent: 5.6 Luna. Select only the skills whose routing conditions match the task. Do not load every skill or every skill markdown by default. See Context Routing.
- Summarize constraints — subagent: 5.6 Luna. Before changing files, briefly summarize applicable architecture rules, platform/deployment constraints, compatibility requirements, existing conventions, and any assumptions.
- Implement unit tests — subagent: 5.6 Terra. Ask whether the user wants test-driven development for the task. If yes, write or update tests before production code where practical. If no, still add or update focused regression tests when the risk warrants them. Skip this phase only when tests are not meaningful for the requested change.
- Implement the feature — subagent: 5.6 sol. Make the smallest coherent change that satisfies the task, following the applicable Context Routing guidance and the saved plan when one exists.
- Review the code — subagent: 5.6 Terra. Review the implementation and tests for correctness, architecture compliance, edge cases, concurrency safety, permissions/privacy risks, and regressions. Apply or request fixes before reporting completion. Run the narrowest relevant checks, then broader checks when appropriate, and report what changed, what was verified, and any known limitations.
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.
- 1mo ago Changed · +1 lines · +15 tokens per session 66b660fec28f
- 1mo ago Changed · +1 lines · +70 tokens per session f2fae4b8f8d1
- 2mo ago First seen · 44 lines · 1,186 tokens per session scan A 2a8a612bc504
OnlySwitch AGENTS.md is an instructions file published in the GitHub repository jacklandrin/OnlySwitch (6,039 stars, last pushed yesterday), licensed MIT. It adds 1,271 tokens to every session, about $0.0051 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.
OnlySwitch AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| OnlySwitch AGENTS.mdjacklandrin/OnlySwitch | Instructions file | 6.0k | yesterday | MIT | A | 1,271 | Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | yesterday | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | yesterday | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |