OnlySwitch AGENTS.md

Repository instructions for OnlySwitch, a macOS app with related widgets, remote controls, Swift packages, tests, and integrations.

In plain words
What is it for?
They help guide work across the macOS app, widgets, remote features, localisation, persistence, security, tests, and OpenClaw integration.
Why use it?
They define a staged workflow for analysing tasks, planning changes, loading relevant instructions, and considering platform concerns such as permissions and accessibility.

Instructions file for CodexOpenCode

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.

agentmods
npx agentmods add instructions/jacklandrin/onlyswitch/agents-md
Clone the repo
git clone --depth 1 https://github.com/jacklandrin/OnlySwitch

Made for: Codex, OpenCode.

Per session 1,186 This file is loaded in full into every session.
When invoked 1,186 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.01186 $0.01186
Opus 5 $0.00593 $0.00593
Sonnet 5 $0.00237 $0.00237
Haiku 4.5 $0.00119 $0.00119

Measured 2d ago against content hash 2a8a612bc504, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

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 2d 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.

AGENTS.md · 44 lines

How it starts

The opening of the file, as written. The whole thing — 44 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:

  1. 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.
  2. Write the implementation plan — subagent: 5.6 Terra. Ask the user whether they want an implementation plan written first. When accepted, load the writing-plans skill, save the completed plan under doc/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.
  3. 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.
  4. Summarize constraints — subagent: 5.6 Luna. Before changing files, briefly summarize applicable architecture rules, platform/deployment constraints, compatibility requirements, existing conventions, and any assumptions.
  5. 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.
  6. 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.
  7. 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.

Read the full file on GitHub · 44 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. 2d ago First seen · 44 lines · 1,186 tokens per session scan A 2a8a612bc504

Subscribe to this mod's changes

OnlySwitch AGENTS.md is an instructions file published in the GitHub repository jacklandrin/OnlySwitch (5,902 stars, last pushed 2d ago), licensed MIT. It adds 1,186 tokens to every session, about $0.0059 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-08-30.