agentleFS
jacklandrinjacklandrin/OnlySwitch/AGENTS.md

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

Dec 2025: 0 mentionsJan 2026: 1 mentionFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 0 mentionsAug 2026: 1 mentionSep 2026: 0 mentionsOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the jacklandrin/OnlySwitch repository that our weekly crawl found: only 7 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

Who's talking about jacklandrin/OnlySwitch

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

1 more on GitHub

On Hacker News · 1

  • 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
  1. Distinctive:

    Summarize constraints — subagent: 5.6 Luna: Before changing files, briefly summarize applicable architecture rules, platform/deployment …

    line 12
  2. Distinctive:

    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 …

    line 17
  3. Very specific:

    Treat ARCHITECTURE.md as the source of truth for architectural constraints.

    line 35
  4. Very specific:

    Keep implementation plans in doc/plan/.

    line 36
  5. Distinctive:

    Keep business logic out of SwiftUI views.

    line 37
  6. Distinctive:

    Prefer focused, composable modules and reusable abstractions over expanding monolithic files.

    line 39
  7. Distinctive:

    Treat shell commands, Apple Events, keychain access, system settings, and user permissions as security-sensitive effects that require …

    line 41
  8. Distinctive:

    Avoid unrelated formatting or refactoring.

    line 44

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

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.

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 triggerLoad skill guidance whenDo not load when
swiftui-pro (doc/skills/swiftui-pro/SKILL.md)Reviewing, designing, or implementing SwiftUI views, view state, navigation, accessibility, animations, or SwiftUI performanceThe 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 fixesThe 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 strategyNo 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 risksThe 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 acceptedThe 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.md as the source of truth for architectural constraints.
  • Keep implementation plans in doc/plan/. Keep reusable skill notes, routing supplements, and project-specific skill instructions in doc/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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.