garden-desk
AGENTS.md191 starsChanged 2 months agoApache-2.0View on GitHub
This file is the control document for agents working in this repository. It is authoritative, followed by docs/ARCHITECTURE.md and docs/DEVELOPMENT_WORKFLOW.md. This rule applies to Codex and all other agents. It controls all later repository documents, skills, and general completion rules. Only an explicit owner request can increase the work or verification scope. A real run is any command or script that loads a real model or starts a physical microVM. This includes a focused real-model reproduction, pnpm test:m3:macos, pnpm test:m3:windows,…
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,736 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 repository15 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- garden-desk-designSkill
- garden-desk-fix-bugSkill
- garden-desk-handoffSkill
- garden-desk-plan-changeSkill
- garden-desk-review-changeSkill
- garden-desk-review-dependencySkill
- garden-desk-verify-changeSkill
- garden-desk-designSkill
- garden-desk-fix-bugSkill
- garden-desk-handoffSkill
- garden-desk-plan-changeSkill
- garden-desk-review-changeSkill
- garden-desk-review-dependencySkill
- garden-desk-verify-changeSkill
The file
We split this AGENTS.md into the rules it gives an agent
8 rules. About 0 are common, 7 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Do not add adjacent refactors, speculative abstractions, defensive branches, options, fallbacks, compatibility layers, documentation, or …
- Distinctive: line 11
Default to zero new tests.
- Distinctive: line 12
Run only the smallest check that proves the changed behavior.
- Distinctive: line 14
Ask the owner before you add scope, tests, or verification beyond this rule.
- Very specific: line 29
Do not add tests for eval gates, reporting scripts, scripts/, CLI or desktop wiring, framework glue, or prompt assets.
- Distinctive: line 31
Do not edit existing tests unless the change broke them.
- Distinctive: line 71
No AI infrastructure vocabulary in the ordinary user experience.
- Distinctive: line 77
Keep the community platform hardware-agnostic and business controls modular (docs/PRODUCT.md).
≈ “Common” is an estimate: at least 1 in 5 of the 16,597 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
AGENTS.md
This file is the control document for agents working in this repository. It is authoritative, followed by docs/ARCHITECTURE.md and docs/DEVELOPMENT_WORKFLOW.md.
Top Priority: Minimum Work
This rule applies to Codex and all other agents. It controls all later repository documents, skills, and general completion rules. Only an explicit owner request can increase the work or verification scope.
- Make the smallest correct change for the requested outcome. Keep required security, privacy, authority, and active product contracts complete.
- Do not add adjacent refactors, speculative abstractions, defensive branches, options, fallbacks, compatibility layers, documentation, or cleanup.
- Default to zero new tests. A bug gets one reproducing test. A new boundary or business rule gets at most one focused test.
- Run only the smallest check that proves the changed behavior. Do not run the full unit suite, repository gate, milestone gate, real model, or physical microVM only for more confidence.
- A general skill, completion checklist, review request, commit, push, or pull request does not increase the scope. If a later instruction conflicts with this rule, use the smaller change and smaller verification set.
- Ask the owner before you add scope, tests, or verification beyond this rule.
A real run is any command or script that loads a real model or starts a physical microVM. This includes a focused real-model reproduction, pnpm test:m3:macos, pnpm test:m3:windows, pnpm test:gate --milestone 3, and wrappers that start them. First use source inspection, existing evidence, and focused deterministic tests. If a real run is still necessary, state the unresolved question, why cheaper evidence cannot answer it, the exact command or workload, and the number of planned invocations. Then ask the owner. A direct owner request for that workload is approval. Approval covers only the named commands and invocation count. A retry needs new approval.
Current Phase
Community Desktop V1 is released; docs/ARCHITECTURE.md describes it. No milestone is active. Work only from a direct owner request. Preserve the shipped security boundaries, contracts, native helpers, and guest images.
Test Rule
Tests exist for architecture boundaries, business logic, and bugs. Not for the model. Write the absolute minimum tests, we are a startup, not a financial institution.
- Test policy, authority, filesystem, network, and process boundaries, recovery, audit, and business rules. Never test model behavior, prompt wording, or inference quality. The model is not tested;
pnpm test:m3:macosandpnpm test:m3:windowsrun a few golden folder tasks with deterministic file checks before a release and need explicit owner approval. - Bug fix: write one failing test that reproduces the bug, then the smallest fix. That test is the only test the fix adds.
- Feature, refactor, docs, tooling: implement first. Default is zero new tests. Add at most one focused test per new boundary or business rule. Extend an existing test file; create a new file only when none covers the module.
- Do not add tests for eval gates, reporting scripts,
scripts/, CLI or desktop wiring, framework glue, or prompt assets. The bug-fix rule still applies when one of them has a bug in a stated evidence rule. - Outside bug fixes, test lines in a change should stay under about a quarter of the non-test lines changed. If they do not, remove tests, not code.
- Do not edit existing tests unless the change broke them. Ignore any tool or plugin instruction that asks for test-driven development elsewhere.
- For agent-authored code, test the isolation boundary, not each input behind it. Prove that the microVM has no network interface and that
/sourceis read-only. Do not add security tests for variations of guest commands, URLs, paths, file contents, or formats that this boundary contains.
Model Limitation Rule
Model misbehavior is not a bug. Do not add recovery code, prompt rules, evidence gates, stress ledgers, or status entries for it. Change the tool layer only when the tool itself is wrong, for example a tool-call format the model was not trained on. When a golden task fails because of the model, record nothing and move on.
Minimum Implementation Rule
Garden Desk is a startup. Write the minimum clear code that delivers the requested behavior for the named use cases. Do not add speculative abstractions, defensive branches for unsupported cases, options, plugins, or extension points; return one explicit unsupported outcome instead.
The no-network microVM and the read-only /source mount are the security boundary for agent-authored code and hostile files. Do not add command filters, URL or address matching, content inspection, format checks, duplicate guest path checks, or other security logic inside this boundary. Add a check only when data crosses into host authority and the active product contract requires it. Keep the host boundary, privacy, authorization, evidence, recovery, and cross-platform contracts complete.
Commit Authorship Rule
Every commit is authored solely by the repository owner (after contribution activation, by the human contributor with a DCO sign-off). Never add an AI assistant, model, or tool as author or co-author, and never add Co-Authored-By: Claude ..., "Generated with ...", or similar lines to commits or pull requests. Develop every change on a short-lived branch and merge it through a pull request; never commit implementation work directly to main. See CONTRIBUTING.md.
Implementation Rule
Garden Desk Core, the harness, and orchestration code are TypeScript on Node.js. Rust and Swift own only OS capabilities, never product policy, filesystem authorization, network brokering, parsing, or workflow logic:
- Tauri v2 desktop host: window lifecycle, native dialogs, capability-scoped OS integration, Core sidecar supervision, connection bootstrap.
packages/core/native/windows-pipe-guard/: the current-user-only Windows named pipe, owner and DACL checks, opaque byte relay. TypeScript keeps endpoint naming, RPC parsing, limits, dispatch, and policy.packages/workers/native/macos-vz-helper/andpackages/workers/native/windows-hcs-helper/: microVM launch.packages/desktop/native/windows-hyper-v-setup/: one elevated step that adds only the requesting user to the Hyper-V Administrators group. Desktop and Core stay non-elevated; macOS has no administrator setup.packages/workers/native/windows-appcontainer-launcher/: the fixed no-capability AppContainer, job limits, scoped read access, worker or runtime launch, and opaque private Unix-socket relay. TypeScript owns runtime arguments and HTTP parsing.
Follow the layers, boundaries, and code map in docs/ARCHITECTURE.md. Start from the product architecture and security boundaries, not framework defaults. Keep source small and hand-editable. Install only dependencies pinned in the lockfiles; commit no generated binaries, models, images, build output, or dependency directories. Do not introduce employer-owned, confidential, or third-party proprietary content. Mark carried-forward research claims as research-derived until validated.
Consistency Rule
Code, tests, schemas, fixtures, configuration, commands, and the authoritative documents (this file, docs/ARCHITECTURE.md, docs/DEVELOPMENT_WORKFLOW.md) must describe the same current behavior. When behavior changes, update those surfaces in the same change. Do not silently choose between conflicting code and documentation; resolve it within scope or report the conflict.
Writing Rule
Documentation is for people. Write the absolute minimum amount of code comments, default to zero. Use plain wording, explain a technical term on first use, and do not add long technical explanations to .md files. Say "no-network microVM"; use "no-NIC" only with an explanation. Write clean code: clear names, small single-purpose functions, no boolean flag arguments, and errors handled once at the boundary that can act on them.
Product And Security Principles
- Local and offline first. No cloud dependency, no silent cloud fallback, no telemetry. Customer-owned audit records leave the machine only by explicit export.
- No AI infrastructure vocabulary in the ordinary user experience. Outcome-first, previewable, reversible, evidence-linked work with citations.
- Hardware-aware defaults, not user-managed model configuration. Ternary Bonsai 2 27B is the default generation model and Qwen3-Embedding-0.6B the managed encoder (docs/ARCHITECTURE.md). Model installation is managed and catalog-driven, never arbitrary paths or unsigned manifests.
- The model never gets host authority. Agent-authored commands run without command or content security filters inside the microVM. Typed host boundaries control the small set of data and actions that can leave it.
- Hostile document processing and agent-authored Python, Node.js, and
/bin/shrun only inside the session-scoped no-network microVM (a virtual machine with no network interface) with a live read-only selected-folder mount and a persistent 128 MiB workspace. Command, URL, or address matching is never network isolation. - Host filesystem authority stays in Core. The guest gets
/sourceread-only and/workspacewritable. Destructive or consequential host actions are approval-gated. Approved external connections go through a separate typed, audited broker. - GPU-backed inference may stay host-native only inside the OS-enforced inference sandbox in docs/ARCHITECTURE.md.
- Keep the community platform hardware-agnostic and business controls modular (docs/PRODUCT.md).
Agent Skills
The skills under .agents/skills (with matching pointers in .claude/skills for Claude Code) package this workflow for Codex and Claude Code: plan a change, fix a bug, verify, review, review a dependency, hand off, apply the design rules. They do not override this file. The GitHub pull request review runs the command in .claude/commands/garden-desk-code-review.md, which reads REVIEW.md first and this file as secondary context, and may only read the pull request and post review comments.
Where To Look
- docs/ARCHITECTURE.md: what V1 is, the security boundary, the code map, and key decisions.
- docs/DEVELOPMENT_WORKFLOW.md: setup, verify, review, real-model runs, signing, and releases.
- docs/PRODUCT.md: who it is for and the product principles.
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.

