OnlySwitch
AGENTS.md6k starsChanged 5 years agoMITView on GitHub
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. 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: When a task is explicitly urgent or the user has already answered one of the workflow questions in the current conversation, do not ask the…
Trending
Quiet since August.thin dataabout the whole repository
Who's talking about jacklandrin/OnlySwitch
- A Hacker News story“OnlySwitch”Hacker News · Feb 27, 2024 · 1 points
- serhii-londar/open-source-mac-os-apps“Fix dead links in README”GitHub · Aug 27, 2026
- validatedev/BrewServicesManager“When Only Switch is running, Brew Services Manager doesn't appear in the menu”GitHub · Jan 4, 2026
- nalmeida/dotfiles“Only switch”GitHub · Dec 20, 2024
- 521xueweihan/HelloGitHub“【开源自荐】OnlySwitch”GitHub · Mar 11, 2022
The biggest 5 of 7 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 7
Talked about on GitHub and Hacker News (7 times).
On GitHub · 6
- Aug 27, 2026Fix dead links in README — serhii-londar/open-source-mac-os-apps0 reactions
- Jan 4, 2026When Only Switch is running, Brew Services Manager doesn't appear in the menu — validatedev/BrewServicesManager0 reactions · 5 comments
- Dec 20, 2024Only switch — nalmeida/dotfiles0 reactions
- Mar 11, 2022【开源自荐】OnlySwitch — 521xueweihan/HelloGitHub0 reactions · 1 comment
- Jan 2, 2022add OnlySwitch — serhii-londar/open-source-mac-os-apps0 reactions
1 more on GitHub
- Dec 29, 2021作者认证 - OnlySwitch — oschina-cn/oschina_authentication0 reactions
On Hacker News · 1
- Feb 27, 2024OnlySwitch1 point
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
The file
We split this AGENTS.md into the rules it gives an agent
8 rules. About 0 are common, 6 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Summarize constraints — subagent: 5.6 Luna: Before changing files, briefly summarize applicable architecture rules, platform/deployment …
- Distinctive: line 17
When a task is explicitly urgent or the user has already answered one of the workflow questions in the current conversation, do not ask the …
- Very specific: line 35
Treat ARCHITECTURE.md as the source of truth for architectural constraints.
- Very specific: line 36
Keep implementation plans in doc/plan/.
- Distinctive: line 37
Keep business logic out of SwiftUI views.
- Distinctive: line 39
Prefer focused, composable modules and reusable abstractions over expanding monolithic files.
- Distinctive: line 41
Treat shell commands, Apple Events, keychain access, system settings, and user permissions as security-sensitive effects that require …
- Distinctive: line 44
Avoid unrelated formatting or refactoring.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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.
When a task is explicitly urgent or the user has already answered one of the workflow questions in the current conversation, do not ask the same question again; carry that decision forward for the task.
Context Routing
Skills are opt-in by task context. First inspect the task and repository; then load only the matching skill instructions. A skill is not loaded merely because it is available.
| Context or trigger | Load skill guidance when | Do not load when |
swiftui-pro (doc/skills/swiftui-pro/SKILL.md) | Reviewing, designing, or implementing SwiftUI views, view state, navigation, accessibility, animations, or SwiftUI performance | The task does not inspect or change SwiftUI code |
swift-concurrency-pro (doc/skills/swift-concurrency-pro/SKILL.md) | Reviewing, designing, or implementing Swift concurrency, actors, Sendable, isolation, async streams, cancellation, or strict-concurrency fixes | The task does not inspect or change concurrency code |
swift-testing-pro (doc/skills/swift-testing-pro/SKILL.md) | Writing, migrating, reviewing, or improving Swift Testing/XCTest code or test strategy | No test code or test strategy is in scope |
app-store-review (doc/skills/app-store-review/SKILL.md) | Reviewing macOS app code for App Store Review Guidelines, submission readiness, safety, privacy, legal, design, business, or performance risks | The task is not related to App Store compliance or release readiness |
writing-plans (doc/skills/writing-plans/SKILL.md) | The user requests a multi-step implementation plan, or the workflow's plan step is accepted | The user declines a plan or the task is small and self-contained |
Use the narrowest applicable skill. If several conditions match, load the smallest set that covers the work and state the selection in the task update. Skill instructions may route to more specific references; follow only those references needed for the current task. For the project-local writing-plans skill, always save plans as doc/plan/YYYY-MM-DD-<feature-name>.md; this project location overrides any generic default path in the skill.
Project-specific working rules
- Treat
ARCHITECTURE.mdas the source of truth for architectural constraints. - Keep implementation plans in
doc/plan/. Keep reusable skill notes, routing supplements, and project-specific skill instructions indoc/skills/. - Keep business logic out of SwiftUI views. Move state transitions, validation, orchestration, and side effects into TCA reducers, domain types, or injected clients.
- Preserve the boundaries between the macOS app, widget extension, remote app, and reusable Swift Package modules.
- Prefer focused, composable modules and reusable abstractions over expanding monolithic files.
- Maintain Swift 6 concurrency safety, including explicit sendability and actor isolation at networking, persistence, and process-boundary crossings.
- Treat shell commands, Apple Events, keychain access, system settings, and user permissions as security-sensitive effects that require explicit dependencies and testable failure handling.
- Design new or substantially changed UI with modern platform styling, adopting Liquid Glass where supported, providing compatible fallbacks, supporting light and dark modes, and adapting layouts for macOS, iPhone, and iPad sizes as applicable.
- Translate every new user-facing string into every language supported by OnlySwitch; do not ship newly added source-only strings.
- Avoid unrelated formatting or refactoring. Update documentation when a change alters an architectural decision or workflow.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

