agentleFS
icoretechicoretech/airbroke/AGENTS.md

airbroke

AGENTS.md221 starsChanged 6 months 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 18. Development and verification are Docker Compose-first; the repository pins Yarn 4.17.1. Reference counts are unmeasured; relationships below come from direct source imports and route delegation. - Use the @/ alias for project imports. Biome owns formatting and import ordering; biome:lint writes changes while biome:ci is read-only. - Keep route composition in app, reusable UI…

  • Reads credentials
  • 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 repository5 other files it gives its agents.

The file

We split this AGENTS.md into the rules it gives an agent

10 rules. About 0 are common, 2 are distinctive, and 8 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.

  • 8

    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
  1. Very specific:

    Use the @/ alias for project imports.

    line 55
  2. Very specific:

    Keep route composition in app, reusable UI in components, UI read models in lib/queries, and mutations in lib/actions.

    line 57
  3. Very specific:

    Keep local .env values current with .env.dist before runtime debugging.

    line 61
  4. Very specific:

    Never run Yarn, Node, Next, Prisma, or Vitest directly on the host or through docker exec.

    line 65
  5. Very specific:

    Never point tests at the development DATABASE_URL.

    line 68
  6. Very specific:

    Never hand-edit prisma/generated/, migration lock metadata, or registry primitives as if they were ordinary maintained source.

    line 69
  7. Very specific:

    Never restore deprecated package.json#prisma configuration or legacy NextAuth environment names.

    line 71
  8. Very specific:

    Do not replace proxy.ts with middleware.ts or swallow Next redirect control-flow errors in broad catch blocks.

    line 73
  9. Distinctive:

    Do not revert or downgrade user dependency changes unless explicitly asked.

    line 75
  10. Distinctive:

    Use the explicit base file for tooling when the ignored local override adds Caddy or conflicts on ports 80/443.

    line 88

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

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 18. Development and verification are Docker Compose-first; the repository pins Yarn 4.17.1.

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

WHERE TO LOOK

TaskLocationNotes
Routes and layoutsapp/Read app/AGENTS.md
Intakeapp/api/, lib/intake/Synchronous writes
Authproxy.ts, lib/auth/Server checks are authoritative
UIcomponents/Read components/AGENTS.md
Mutationslib/actions/Auth plus explicit invalidation
UI readslib/queries/MCP has separate read models
MCP APIapp/api/mcp/, lib/mcp/Read-only tools and static-key auth
Data modelprisma/Read prisma/AGENTS.md
Tests__tests__/Read __tests__/AGENTS.md

CODE MAP

Reference counts are unmeasured; relationships below come from direct source imports and route delegation.

SymbolTypeLocationRefsRole
dbPrisma proxylib/db.tsunmeasuredLazy shared database client
getAuthFactorylib/auth/index.tsunmeasuredLazy auth setup
requireAuthGuardlib/actions/requireAuth.tsn/aAction auth
upsertNoticeOccurrenceServicelib/intake/n/aIntake writes
MCP_TOOLSRegistrylib/mcp/tools.tsunmeasuredMCP contract
handleMcpPostHandlerlib/mcp/server.tsunmeasuredMCP transport
revalidateProjectShellPathsHelperlib/actions/n/aInvalidation

CONVENTIONS

  • Use the @/ alias for project imports. Biome owns formatting and import ordering; biome:lint writes changes while biome:ci is read-only.
  • Keep route composition in app, reusable UI in components, UI read models in lib/queries, and mutations in lib/actions.
  • Preserve typedRoutes, React Compiler, Cache Components, and standalone output contracts in next.config.ts.
  • Keep local .env values current with .env.dist before runtime debugging.

ANTI-PATTERNS (THIS PROJECT)

  • Never run Yarn, Node, Next, Prisma, or Vitest directly on the host or through docker exec; use docker compose exec against a running service or docker compose run --rm for the profiled one-shot test service.
  • Never point tests at the development DATABASE_URL; test owns testdb.
  • Never hand-edit prisma/generated/, migration lock metadata, or registry primitives as if they were ordinary maintained source.
  • Never restore deprecated package.json#prisma configuration or legacy NextAuth environment names.
  • Do not replace proxy.ts with middleware.ts or 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 build

Use 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

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.