airbroke
AGENTS.md221 starsChanged 12 days agoMITView on GitHub
Generated: 2026-07-24 Commit: 8a95b54b Branch: main Airbroke is a self-hosted error collector and triage UI built with Next.js 16, React 19, Prisma 7, and PostgreSQL 19. Development and verification are Docker Compose-first; the repository pins Yarn 4.19.0. Reference counts are unmeasured; relationships below come from direct source imports and route delegation. - Use deps: <concrete dependency change> for dependency-only commits so release-please lists them under Dependencies; reserve fix: for application bug fixes and do not use fix(deps): or chore(deps): for…
- Reads credentials
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,337 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 repository5 other files it gives its agents.
- app/AGENTS.mdAGENTS.md
- components/AGENTS.mdAGENTS.md
- lib/AGENTS.mdAGENTS.md
- prisma/AGENTS.mdAGENTS.md
- __tests__/AGENTS.mdAGENTS.md
The file
We split this AGENTS.md into the rules it gives an agent
11 rules. About 0 are common, 2 are distinctive, and 9 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 57
Use deps: <concrete dependency change> for dependency-only commits so release-please lists them under Dependencies.
- Very specific: line 58
Use the @/ alias for project imports.
- Very specific: line 60
Keep route composition in app, reusable UI in components, UI read models in lib/queries, and mutations in lib/actions.
- Very specific: line 64
Keep local .env values current with .env.dist before runtime debugging.
- Very specific: line 74
Never run Yarn, Node, Next, Prisma, or Vitest directly on the host or through docker exec.
- Very specific: line 77
Never point tests at the development DATABASE_URL.
- Very specific: line 78
Never hand-edit prisma/generated/, migration lock metadata, or registry primitives as if they were ordinary maintained source.
- Very specific: line 80
Never restore deprecated package.json#prisma configuration or legacy NextAuth environment names.
- Very specific: line 82
Do not replace proxy.ts with middleware.ts or swallow Next redirect control-flow errors in broad catch blocks.
- Distinctive: line 84
Do not revert or downgrade user dependency changes unless explicitly asked.
- Distinctive: line 97
Use the explicit base file for tooling when the ignored local override adds Caddy or conflicts on ports 80/443.
≈ “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
PROJECT KNOWLEDGE BASE
Generated: 2026-07-24 Commit: 8a95b54b Branch: main
OVERVIEW
Airbroke is a self-hosted error collector and triage UI built with Next.js 16, React 19, Prisma 7, and PostgreSQL 19. Development and verification are Docker Compose-first; the repository pins Yarn 4.19.0.
STRUCTURE
app/ # App Router pages and external HTTP protocol handlers
components/ # Maintained feature UI plus registry-managed primitives
lib/ # Auth, actions, queries, intake, MCP, and shared server logic
prisma/ # Schema, forward migrations, seed, and generated client output
__tests__/ # Central Vitest suite mirroring runtime boundaries
docs/agents/ # Detailed cross-cutting guidance linked below
site/ # Website for airbroke.icorete.ch, a separate npm projectWHERE TO LOOK
| Task | Location | Notes |
| Routes and layouts | app/ | Read app/AGENTS.md |
| Intake | app/api/, lib/intake/ | Synchronous writes |
| Auth | proxy.ts, lib/auth/ | Server checks are authoritative |
| UI | components/ | Read components/AGENTS.md |
| Mutations | lib/actions/ | Auth plus explicit invalidation |
| UI reads | lib/queries/ | MCP has separate read models |
| MCP API | app/api/mcp/, lib/mcp/ | Read-only tools and static-key auth |
| Data model | prisma/ | Read prisma/AGENTS.md |
| Tests | __tests__/ | Read __tests__/AGENTS.md |
| Website | site/ | Read site/README.md |
CODE MAP
Reference counts are unmeasured; relationships below come from direct source imports and route delegation.
| Symbol | Type | Location | Refs | Role |
db | Prisma proxy | lib/db.ts | unmeasured | Lazy shared database client |
getAuth | Factory | lib/auth/index.ts | unmeasured | Lazy auth setup |
requireAuth | Guard | lib/actions/requireAuth.ts | n/a | Action auth |
upsertNoticeOccurrence | Service | lib/intake/ | n/a | Intake writes |
MCP_TOOLS | Registry | lib/mcp/tools.ts | unmeasured | MCP contract |
handleMcpPost | Handler | lib/mcp/server.ts | unmeasured | MCP transport |
revalidateProjectShellPaths | Helper | lib/actions/ | n/a | Invalidation |
CONVENTIONS
- Use
deps: <concrete dependency change>for dependency-only commits so release-please lists them under Dependencies; reservefix:for application bug fixes and do not usefix(deps):orchore(deps):for routine dependency updates. - Use the
@/alias for project imports. Biome owns formatting and import ordering;biome:lintwrites changes whilebiome:ciis read-only. - Keep route composition in
app, reusable UI incomponents, UI read models inlib/queries, and mutations inlib/actions. - Preserve
typedRoutes, React Compiler, Cache Components, and standalone output contracts innext.config.ts. - Keep local
.envvalues current with.env.distbefore runtime debugging. site/is the static Next.js website, its own npm project published to GitHub Pages by.github/workflows/pages.yml. The app's TypeScript, Biome, Vitest, Tailwind, React Doctor, Docker context and release-please exclude it; keep those exclusions when changing their configuration. The Compose-only rules below cover the app; work on the site with npm fromsite/assite/README.mddescribes.
ANTI-PATTERNS (THIS PROJECT)
- Never run Yarn, Node, Next, Prisma, or Vitest directly on the host or through
docker exec; usedocker compose execagainst a running service ordocker compose run --rmfor the profiled one-shot test service. - Never point tests at the development
DATABASE_URL;testownstestdb. - Never hand-edit
prisma/generated/, migration lock metadata, or registry primitives as if they were ordinary maintained source. - Never restore deprecated
package.json#prismaconfiguration or legacy NextAuth environment names. - Do not replace
proxy.tswithmiddleware.tsor swallow Next redirect control-flow errors in broad catch blocks. - Do not revert or downgrade user dependency changes unless explicitly asked.
COMMANDS
docker compose -f docker-compose.yml up -d web db
docker compose -f docker-compose.yml exec web yarn biome:ci
docker compose -f docker-compose.yml exec web yarn react-doctor:ci
docker compose -f docker-compose.yml exec web yarn typecheck
docker compose -f docker-compose.yml --profile test run --rm test yarn test --run
docker compose -f docker-compose.yml exec web env NODE_ENV=production yarn buildUse the explicit base file for tooling when the ignored local override adds Caddy or conflicts on ports 80/443.
DETAILED GUIDES
- Project Structure
- Development Workflow
- TypeScript and UI
- Next.js 16
- Testing, PRs, and Security
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.

