openrevoke / frontend
AGENTS.md8 starsChanged 7 days agoMITView on GitHub
Product rules are in ../AGENTS.md. The local stack runs the panel as service web with next dev and the code mounted, so changes show up at once with hot reload: http://localhost:18410. A new package: bun add <pkg> on the host in frontend/, then dc restart web (node_modules live in a volume). Never start bun run dev on the host next to the stack. The browser calls the API on the panel origin (/api/...); Next.js proxies it to API_PROXY_TARGET (the api…
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,117 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 repository10 other files it gives its agents.
- AGENTS.mdAGENTS.md
- backend/AGENTS.mdAGENTS.md
- docs/AGENTS.mdAGENTS.md
- .github/workflows/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- diagnoseSkill
- exploreSkill
- harnessSkill
- shipSkill
- verifySkill
The file
We split this AGENTS.md into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
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
- Very specific: line 24
Never start bun run dev on the host next to the stack.
- Distinctive: line 46
No automated tests and no test frameworks.
≈ “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
Open Revoke frontend (panel)
Product rules are in ../AGENTS.md.
Stack
| Layer | Technology |
| Runtime | Bun |
| Framework | Next.js 16 (App Router, output: "standalone") |
| Language | TypeScript 6 |
| UI | React 19, Base UI, shadcn/ui 4 |
| Styles | Tailwind CSS 4, tw-animate-css, CVA |
| State / fetch | TanStack React Query 5 |
| Icons | Lucide React |
| Lint | ESLint 9 (eslint-config-next) |
Running
The local stack runs the panel as service web with next dev and the code
mounted, so changes show up at once with hot reload:
http://localhost:18410. A new package: bun add <pkg> on the
host in frontend/, then dc restart web (node_modules live in a volume).
Never start bun run dev on the host next to the stack.
The browser calls the API on the panel origin (/api/...); Next.js proxies it
to API_PROXY_TARGET (the api container in the local stack, the API
process in the same container in the self-hosting image). Details:
skills/frontend/api-communication.md;
pages and hooks: skills/frontend/pages.md.
API types (src/lib/api/types.ts) are written by hand from
../docs/openapi.json. After a contract change, update them in the same change.
The self-hosting image builds the panel with next build (Dockerfile target
app, served by bun server.js under supervisor).
Checks
dc exec web bun run lint
dc exec web bun run typecheck
# then open http://localhost:18410/people (sign in first)No automated tests and no test frameworks. Check the page by hand in the running stack.
Files
.dockerignore,.gitignore: build context and git filters (node_modules,.next).README.md: dev quick start for the panel.bun.lock,package.json: dependencies and scriptsdev,build,start,lint,typecheck.components.json: shadcn config (stylebase-nova, aliases@/components,@/lib,@/hooks, CSS insrc/app/globals.css).eslint.config.mjs: ESLint 9 (next config) plus the UI kit rules (no-restricted-syntax: raw controls,onClickon non-interactive elements, palette colours,cursor-default;ui/andcommon/get only the colour and cursor rules).postcss.config.mjs,tsconfig.json: Tailwind 4 PostCSS plugin, TypeScript with@/*alias tosrc/.next.config.ts:output: "standalone", rewrites/api/:path*and/mcptoAPI_PROXY_TARGET(defaulthttp://127.0.0.1:8000, baked in at build time),allowedDevOrigins*.localhost.public/, no map: default Next.js SVGsfile.svg,globe.svg,next.svg,vercel.svg,window.svg; nothing in the panel depends on them.src/, no map:src/app/(own AGENTS.md: routes),src/components/(own AGENTS.md: UI by feature plus theuiandcommonkits),src/hooks/(own AGENTS.md: React Query hooks, one file per API resource),src/lib/(own AGENTS.md: helpers, API client and types).
Code rules
- Build every screen from the shared components in
src/components/ui/andsrc/components/common/; read skills/frontend/ui-kit.md first. No raw<button>,<input>,<select>,<textarea>,<datalist>: the browser draws them in its own style. A missing component goes tocommon/and into the catalogue, never inline in a page. - Anything clickable is a kit component with all four states: pointer
cursor, hover, keyboard focus ring, disabled (
cursor-not-allowed). NoonClickon adivorspan, nevercursor-default. Colours are tokens only (violet accentbrand), neverbg-blue-500or hex. bun run lintenforces these rules (eslint.config.mjs); its message names the component to use. Fix the code, nevereslint-disableit.- SOLID: one job per component, hook and module; extend through props and composition; components use hooks and providers, not services directly.
- Max 600 lines per file.
Next.js 16
<!-- BEGIN:nextjs-agent-rules -->This is NOT the Next.js you know
This version has breaking changes — APIs, conventions, and file structure may all differ from your training data. Read the relevant guide in node_modules/next/dist/docs/ (resolved from this file's directory; in monorepos the next package may not be visible from the repo root) before writing any code. Heed deprecation notices.
This block is written and re-added by next dev — verify at node_modules/next/dist/server/lib/generate-agent-files.js. Removing it from a diff only re-creates the uncommitted change; committing it with your work keeps the tree clean.
<!-- END:nextjs-agent-rules -->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.

