docs(agents): slim AGENTS.md to essentials and move deep guides to skills/docs
What
Root AGENTS.md had grown to 171 lines of always-on context. This cuts it to the things an agent genuinely can't infer from the code, and relocates the long-form material to places that load on demand.
Moved, not deleted:
| Content | New home | Why |
|---|---|---|
CDP UI verification (evidence rules, from root) + CDP mechanics (port/worktree matching, auth repair, from apps/desktop/AGENTS.md) | .agents/skills/cdp-verification/SKILL.md | Only relevant when actually verifying UI; a skill loads on description match |
| Cross-agent-CLI config notes (Codex, Cursor, OpenCode, Vibe, Kimi, Grok) | docs/agent-tooling.md | Only matters when editing .agents/ or a tool config |
| iOS-only scope | apps/mobile/AGENTS.md | Belongs with the app it constrains |
Cut:
- The MCP config rule. It was factually wrong:
.mcp.json,.cursor/mcp.json, and.vibe/don't exist in this repo. Current state is recorded indocs/agent-tooling.mdinstead. - "Avoid
any" and "read the ticket-format skill" — generic, and that skill self-triggers on its description. - Release/canary prose, compressed to a pointer at
scripts/release/README.md, keeping only the canary-vs-stable distinction that's easy to confuse.
Fixed:
- The desktop localStorage guardrail pointed entity-scoped data at
createElectronSQLitePersistence, deleted in #6328. It now names the real destination (host-side SQLite via@superset/local-dboverelectronTrpc) and notes that since #6328 everyCollectionsProvidercollection is localStorage-backed, sowithQuotaGuard/notifyQuotaExhausted/evictInactiveOrgsare pressure absorption rather than headroom.
Added:
- A short "Orchestrating agents and workspaces" section pointing agents at the
supersetCLI for isolated workspaces and parallel agents rather than hand-rolling git worktrees.
Kept (verified still load-bearing, not just assumed): Bun-only; Next 16 proxy.ts (5 apps use it, zero middleware.ts); root-level Biome with warnings-as-errors; the useLiveQuery cache-first rule (TanStack DB is not removed — 68 call sites in apps/desktop/src, and CollectionsProvider still builds @tanstack/db collections); conventional-commit PR titles; no em dashes; prod-DB and drizzle/ prohibitions; ask_user; plan/doc placement; and the full Project Structure tree, restored verbatim.
Sizes
| File | Before | After |
|---|---|---|
AGENTS.md | 171 | 116 |
apps/desktop/AGENTS.md | 58 | 18 |
Inbound references in CONTRIBUTING.md and both AGENTS.md files repointed to the new locations.
Test plan
-
bun run lintexits 0 - CDP mechanics diffed byte-identical against the original, except one intentionally repathed script reference (
scripts/…→apps/desktop/scripts/…, no longer read from insideapps/desktop) - Project Structure section diffed byte-identical against the original
- Verified every symbol/path the surviving rules mention still exists (
persisted-key-registry.test-data.ts,DEAD_KEYS,proxy.ts,scripts/release/README.md,.agents/skills/db-migrations/SKILL.md) - Every
supersetCLI invocation in the new section checked againstsuperset --helpoutput
Docs-only; no code paths touched.
Summary by cubic
Slims AGENTS.md to essentials and moves deep guides to on-demand docs/skills to reduce always-on context. Clarifies CDP auth repair with the single valid ./.superset/setup.sh --force exception and updates workspace/agent CLI examples to use explicit placeholders. No code paths changed.
- Moved deep guides: CDP UI verification to
.agents/skills/cdp-verification/SKILL.md; per-tool CLI config todocs/agent-tooling.md; iOS-only scope toapps/mobile/AGENTS.md. - Fixed desktop guardrail: entity-scoped data now points to host-side SQLite via
@superset/local-dboverelectronTrpc; since #6328 allCollectionsProvidercollections are localStorage-backed, so quota helpers absorb pressure rather than expand headroom. - Added: short “Orchestrating agents and workspaces” section recommending the
supersetCLI for isolated workspaces and parallel agents.
Review and rollout
- Validate references resolve:
CONTRIBUTING.md→.agents/skills/cdp-verification/SKILL.md;AGENTS.mdandapps/desktop/AGENTS.mdlink to new homes. - Required actions: for UI verification, follow
.agents/skills/cdp-verification/SKILL.md; use thesupersetCLI instead of hand-rolled worktrees for new/parallel workspaces. - Update any external docs that deep-link to removed
AGENTS.mdsections.
Summary by CodeRabbit
- Documentation
- Added comprehensive guidance for reliable end-to-end UI verification of desktop applications.
- Clarified agent tooling locations, command and skill discovery, and supported development tools.
- Simplified repository, database, release, and workspace guidance.
- Updated desktop storage recommendations and verification references.
- Documented mobile app project structure and iOS-only conventions.
- Refreshed contribution guidance for screenshot-based verification workflows.