OpenAgentd / web
AGENTS.md211 starsChanged 2 months agoApache-2.0View on GitHub
This Bun/Vite React application is shared by browsers and both Tauri shells. It uses strict TypeScript, Tailwind, TanStack Router/Query, and Zustand. Tests run with Bun, Happy DOM, and Testing Library. Always run bun test with --parallel for per-file module-registry isolation. bun run build includes the TypeScript build, Vite production bundle, and the chunk-cycle guard. The root make build-web performs a frozen install before building packaging assets. Do not edit web/dist/ directly. Before finishing frontend changes, run make verify-web from the…
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.
In this repository8 other files it gives its agents.
- AGENTS.mdAGENTS.md
- app/AGENTS.mdAGENTS.md
- appv3/AGENTS.mdAGENTS.md
- desktop/AGENTS.mdAGENTS.md
- documents/AGENTS.mdAGENTS.md
- mobile/AGENTS.mdAGENTS.md
- .openagentd/AGENTS.mdAGENTS.md
- scripts/AGENTS.mdAGENTS.md
The file
We split this AGENTS.md into the rules it gives an agent
4 rules. About 0 are common, 0 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 22
Always run bun test with --parallel for per-file module-registry isolation.
- Very specific: line 28
Before finishing frontend changes, run make verify-web from the repository root.
- Very specific: line 45
Use static ESM imports and the @/ alias for application modules.
- Very specific: line 51
Read root DESIGN.md and reuse tokens from src/index.css and existing primitives before adding colors, spacing, type, radius, elevation, or …
≈ “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
Web Frontend Guide
This Bun/Vite React application is shared by browsers and both Tauri shells. It uses strict TypeScript, Tailwind, TanStack Router/Query, and Zustand. Tests run with Bun, Happy DOM, and Testing Library.
Development
From web/:
bun install --frozen-lockfile
bun dev
bun run lint
bun run typecheck
bunx tsc -p tsconfig.test.json --noEmit
bun test --parallel
bun test --parallel src/__tests__/path/to/file.test.tsx
bun run buildAlways run bun test with --parallel for per-file module-registry isolation.
bun run build includes the TypeScript build, Vite production bundle, and the
chunk-cycle guard. The root make build-web performs a frozen install before
building packaging assets. Do not edit web/dist/ directly.
Before finishing frontend changes, run make verify-web from the repository
root. The web/Makefile is a convenience wrapper for package scripts; the root
Makefile owns the pre-merge contract.
Architecture
src/api/owns backend URLs, auth injection, request/response handling, and SSE parsing.src/queries/owns TanStack Query hooks/mutations and cache updates for server state.src/stores/owns client state and streamed session state.src/routes/contains pages; register and validate route/search state insrc/router.ts.src/components/owns shared and feature UI;src/hooks/owns reusable behavior. Prefer colocated feature hooks/modules before expanding a large component.
Use static ESM imports and the @/ alias for application modules. Keep
same-origin /api desktop-token injection intact; do not attach native access
tokens to arbitrary remote URLs.
UI constraints
- Read root
DESIGN.mdand reuse tokens fromsrc/index.cssand existing primitives before adding colors, spacing, type, radius, elevation, or motion. - Build the shared UI mobile-first. Gate platform behavior through existing
useIsMobile()/usePlatform()hooks, account for safe areas and desktop chrome, and provide touch equivalents for hover/right-click behavior. - Manually inspect narrow and wide layouts for visual changes; this is not
covered by
make verify-web. src/components/ui/contains intentionally dependency-free primitives. Do not introduce shadcn/Base UI/CVA/clsx/tailwind-merge for those primitives; follow the local maps and class helpers.- Route mobile drawer gestures through the shared edge-swipe controller rather than adding competing component-local touch handlers.
Backend API/SSE changes require matching frontend client/store tests and both
make verify-v3 and make verify-web.
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.

