agentleFS
icoretechicoretech/airbroke/app/AGENTS.md

airbroke / app

AGENTS.md221 starsChanged 12 days agoMITView on GitHub

app/ owns route composition and HTTP transport; reusable behavior belongs in components/ or lib/. - Await typed params and searchParams; use notFound() for absent domain records rather than rendering partial detail pages. - Keep pages and layouts server-side by default. Route-local interactive files use explicit "use client" and delegate mutations to lib/actions/. - Keep URL-driven filters and sort state in search parameters; shared parsing and URL updates live under lib/routing/. - API handlers retain transport concerns: credentials, CORS, content encoding,…

  • 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.

The file

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

7 rules. About 0 are common, 3 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

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

    Keep pages and layouts server-side by default.

    line 34
  2. Very specific:

    Keep URL-driven filters and sort state in search parameters.

    line 36
  3. Distinctive:

    Do not move collector normalization or occurrence grouping back into route handlers.

    line 46
  4. Distinctive:

    Do not weaken accepted Airbrake content types or Sentry compressed and decompressed payload limits without protocol tests.

    line 48
  5. Very specific:

    Do not add AppShell to pass-through project layouts.

    line 50
  6. Very specific:

    Do not put reusable feature UI in route folders once another route consumes it.

    line 52
  7. Distinctive:

    Do not add stateful, node-local API session storage.

    line 54

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

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

APP ROUTER GUIDE

OVERVIEW

app/ owns route composition and HTTP transport; reusable behavior belongs in components/ or lib/.

STRUCTURE

api/                         # Auth, MCP, completion, health, and collectors
projects/[project_id]/       # Project shell, notice index, filters, and edit
notices/[notice_id]/         # Notice detail and occurrence list
occurrences/[occurrence_id]/ # Occurrence analysis and actions
bookmarks/                   # User bookmark list
signin/                      # Server provider setup plus client OAuth UI

WHERE TO LOOK

TaskLocationNotes
Root documentlayout.tsxFonts, metadata, dark theme, global CSS
Project shellprojects/[project_id]/layout.tsxBreadcrumbs, AppShell
Airbrakeapi/v3/notices/route.tsJSON and text/plain
Sentryapi/sentry/[project_id]/envelope/route.tsBody limits
Better Authapi/auth/[...all]/route.tsLazy construction
MCP adapterapi/mcp/route.tsDelegates to lib/mcp/

CONVENTIONS

  • Await typed params and searchParams; use notFound() for absent domain records rather than rendering partial detail pages.
  • Keep pages and layouts server-side by default. Route-local interactive files use explicit "use client" and delegate mutations to lib/actions/.
  • Keep URL-driven filters and sort state in search parameters; shared parsing and URL updates live under lib/routing/.
  • API handlers retain transport concerns: credentials, CORS, content encoding, status codes, body limits, and response compatibility. Parsing and shared persistence belong under lib/intake/.
  • Collector routes are public data-plane endpoints authenticated by project keys. They do not inherit page authentication from proxy.ts.

ANTI-PATTERNS

  • Do not move collector normalization or occurrence grouping back into route handlers; both protocols converge on the shared intake service.
  • Do not weaken accepted Airbrake content types or Sentry compressed and decompressed payload limits without protocol tests.
  • Do not add AppShell to pass-through project layouts; nested shells cause duplicate navigation.
  • Do not put reusable feature UI in route folders once another route consumes it; move it to the matching components/ domain.
  • Do not add stateful, node-local API session storage. The app must remain safe across multiple replicas.

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.