yardlet
AGENTS.md48 starsChanged 22 days agoMITView on GitHub
Yardlet is a native macOS app for running coding agents. Each agent keeps its own agent loop, sign-in, capabilities and session history; Yardlet starts the agent's own CLI and stays close to the agent's own app. Maintainers keep working notes outside this repository, in the ignored folder docs/internal/. If docs/internal/AGENTS.md exists, read it first and follow it. - Yardlet must not be harder to use than the agent's own app, and should feel close to it. - Prefer shared paths…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 35,196 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.
In this repositoryOne other file it gives its agents.
- CLAUDE.mdCLAUDE.md
The file
We split this AGENTS.md into the rules it gives an agent
7 rules. About 1 is common, 3 are distinctive, and 3 are very specific to this project.
≈1
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 13
Prefer shared paths across agents.
- Very specific: line 22
Add or change user-visible strings in Sources/NativeHarnessClient/Resources/en.lproj/Localizable.strings only.
- Distinctive: line 42
When a defect comes back after a fix, or the same kind of defect turns up in a second place, the second fix also adds the check that would …
- Very specific: line 53
Before a pull request, build (swift build --build-system native) and run swift test --build-system native --filter <test> for the contract …
- Common: line 66
Keep a provider's session ID and the storage it was saved in together.
- Very specific: line 77
Write documentation, code comments, commit messages and pull request text in English.
- Distinctive: line 79
Keep personal names, private repository names, internal task IDs and paths outside this repository out of tracked files and commit messages.
≈ “Common” is an estimate: at least 1 in 5 of the 45,344 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
Yardlet development
Yardlet is a native macOS app for running coding agents. Each agent keeps its own agent loop, sign-in, capabilities and session history; Yardlet starts the agent's own CLI and stays close to the agent's own app.
Maintainers keep working notes outside this repository, in the ignored folder docs/internal/. If
docs/internal/AGENTS.md exists, read it first and follow it.
Product rules
- Yardlet must not be harder to use than the agent's own app, and should feel close to it.
- Prefer shared paths across agents; add only features that turn on and off easily and leave nothing behind once turned off or removed.
- A feature that one provider's API offers is not, on its own, a reason to add a control, a shortcut or explanatory text. Follow docs/DESIGN_SYSTEM.md and keep the UI native and uncluttered.
- Respect the user's workspace: never silently archive, move or reorganize a person's tasks, drafts or files without explicit request or approval, and keep credentials and trust boundaries host-local.
- Protect MCP tool budgets across harnesses: prefer extending an existing tool over adding a new one, and keep schemas concise without weakening safety rules.
- Add or change user-visible strings in
Sources/NativeHarnessClient/Resources/en.lproj/Localizable.stringsonly. Other.lprojcatalogs fall back to English at run time and are synced separately withscripts/l10n.py(CONTRIBUTING.md). - For session storage, import, resume, titles or the Account Center, read native session storage. See CONTRIBUTING.md for the full contributor principles.
Code and verification
- App and agent adapters:
Sources/NativeHarnessClient/; tests:Tests/NativeHarnessClientTests/; package targets: Package.swift. - docs/ARCHITECTURE.md maps the targets, layers and documents, and says where each kind of change starts.
- Building needs Xcode 27.1 or later. Build with
swift build --build-system native: the default build system also compiles SwiftTerm's Metal shaders and stops when the Metal toolchain is missing. - The product targets build without compiler warnings, and CI fails on one
(
scripts/product-warnings.sh). The test target's warnings are not counted. - Fix a cause where it lives, in the shared rule or path, rather than patching the one case that showed it. Add a test only when it pins a contract that could otherwise break unnoticed; prefer extending an existing test.
- When a defect comes back after a fix, or the same kind of defect turns up in a second place, the second fix also adds the check that would have caught both: a source rule test (see the checks that only tighten) or a contract test on the shared path that CI runs. Remove the narrower tests it covers.
- Main-thread code that runs for every provider event, publication or timer tick does work in proportion to what changed, not to the whole history: a conversation can hold thousands of items and an agent run thousands of events. When such a path changes, check it with a long history and count the publications and redraws, not only the result.
- A test that checks something happened in its own time waits for it with
waitUntil(Tests/NativeHarnessClientTests/Support/WaitUntil.swift), not a fixed sleep: CI runs slower than a Mac. A sleep is only for checking that something did not happen. - Before a pull request, build (
swift build --build-system native) and runswift test --build-system native --filter <test>for the contract you changed. CI runs the build andscripts/test-fast.shon every pull request that changes more than documents, so leave the whole run to it; runscripts/test-fast.shyourself to reproduce a failure CI found, or when a change has to reachmainwithout a pull request. - Launch and bundle commands are in the README. Building, opening a development bundle and replacing the installed app are different actions; use only the ones the task needs.
- UI changes need evidence from the running app or a rendered view. A mocked provider response, a local test, a real provider turn and the installed app establish different facts.
Boundaries
- Keep a provider's session ID and the storage it was saved in together. Existing isolated sessions keep their storage; a new session is no reason to move old history or copy credentials between folders.
- Preserve drafts, reading state, the local index, provider-owned history and existing backups. Do not start a model turn or change authentication merely to inspect saved state.
- Reuse the sign-ins and permissions already there and leave unrelated work alone. Installing builds, changing accounts, sending anything to outside services and deleting data need the person's explicit go-ahead.
Writing in this repository
- Write documentation, code comments, commit messages and pull request text in English. Translations
in
*.lprojfolders are the exception. - Keep personal names, private repository names, internal task IDs and paths outside this repository out of tracked files and commit messages.
- The documents in
docs/describe how Yardlet works now. When a fact changes, update the document that owns it rather than adding a dated note. docs/design/holds design records: a design for something not built yet, or one kept for the reasons behind what was built. Each says so in its first lines and names the document that describes the behavior. A design record is not kept current; behavior goes in that document.- A test file's top doc comment does not list its individual test cases or rendered images: the test names already say what each covers, and a list there makes unrelated pull requests conflict.
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.

