agentleFS
openlitopenlit/openlit/AGENTS.md

openlit

AGENTS.md2.8k starsChanged 5 months agoApache-2.0View on GitHub

Read the relevant canonical guide in agent-guides/ before changing these areas: The second scan may find non-RBAC strings such as CSS variants, cache keys, or encrypted-value prefixes. Review every match and keep RBAC permission literals out of CE.

Trending

Quiet since August.about the whole repository

Dec 2025: 0 mentionsJan 2026: 1 mentionFeb 2026: 1 mentionMar 2026: 1 mentionApr 2026: 2 mentionsMay 2026: 1 mentionJun 2026: 1 mentionJul 2026: 1 mentionAug 2026: 2 mentionsSep 2026: 0 mentionsOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the openlit/openlit repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about openlit/openlit

The biggest 5 of 21 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 21

Talked about on GitHub, Bluesky and Hacker News (21 times).

On GitHub · 15

10 more on GitHub

The file

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

12 rules. About 2 are common, 5 are distinctive, and 5 are very specific to this project.

  • ≈2

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Do not add enterprise implementation here.

    line 6
  2. Very specific:

    Never import @/ee/ from CE or from shared/common files.

    line 17
  3. Distinctive:

    Do not import private enterprise modules from CE.

    line 19
  4. Very specific:

    Keep CE messages in src/client/src/constants/messages/en.ts.

    line 20
  5. Very specific:

    Do not hard-code user-facing strings.

    line 30
  6. Distinctive:

    Keep organisation and project switchers in the header, with breadcrumbs below it.

    line 31
  7. Common:

    Do not persist or log raw passwords, tokens, cookies, API keys, license keys, or authorization headers.

    line 34
  8. Common:

    Use constant-time comparisons for internal API keys and verify payment-provider webhook signatures before processing payloads.

    line 35
  9. Very specific:

    Read the relevant canonical guide in agent-guides/ before changing these areas:

    line 39
  10. Distinctive:

    Add tests for changed security boundaries.

    line 49
  11. Very specific:

    Run focused tests and npm run lint from src/client before handoff.

    line 50
  12. Distinctive:

    Before handoff, scan CE for accidental enterprise leakage:

    line 51

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

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

OpenLIT Agent Rules

CE/OSS Boundary

  • This repository is the open-source CE/OSS codebase.
  • Do not add enterprise implementation here.
  • CE may contain shared contracts, neutral extension hook types, empty feature lists, disabled feature placeholders, upgrade-required responses, and OSS-safe no-op extension fallbacks.
  • CE must not contain enterprise permission names, RBAC policy maps, entitlement feature maps, paid-plan branching, enterprise imports, or private implementation details.
  • Enterprise implementation belongs in openlit-enterprise/src/client/src/ee/.
  • RBAC, audit log, billing, licensing, seats, entitlements, enterprise stores/selectors, enterprise route handlers, and enterprise UI must stay out of CE and live under openlit-enterprise/src/client/src/ee/**.
  • Common/shared behavior must be implemented here in CE first, then synced into openlit-enterprise; enterprise app/** route/page files should be thin wrappers only when they need Next.js filesystem routing.

Extension Points

  • Shared code may import a stable extension hook only when CE provides a no-op fallback.
  • Shared imports must use neutral paths such as @/lib/access/route-access, @/components/rbac/feature-access, or @/store/enterprise. Enterprise implementations are selected by the enterprise repo's path aliases or thin wrappers.
  • Never import @/ee/** from CE or from shared/common files. @/ee/** imports are allowed only inside src/client/src/ee/** and EE-only tests.
  • CE fallback APIs should expose feature-agnostic keys such as dashboard.read, not permission literals such as dashboard:read.
  • Do not import private enterprise modules from CE.
  • Keep CE messages in src/client/src/constants/messages/en.ts; enterprise-only messages belong in src/client/src/ee/constants/messages/en.ts in the private repo.

Project Hierarchy

  • The hierarchy is Organisation -> Project -> Database configuration.
  • Database config reads, writes, selection, and ping state must be scoped by current project.
  • Billing, licensing, seats, and entitlements are organisation-scoped in enterprise.

UI and Security

  • Do not hard-code user-facing strings. Add CE strings to src/client/src/constants/messages/en.ts; enterprise-only strings belong in the private repository.
  • Keep organisation and project switchers in the header, with breadcrumbs below it. Cover loading, empty, disabled, and error states.
  • Server routes must enforce authorization; UI feature checks are presentation only.
  • Parse mutation JSON safely and return 400 for malformed input. Validate identifiers before mutations.
  • Do not persist or log raw passwords, tokens, cookies, API keys, license keys, or authorization headers. Redact audit metadata before persistence.
  • Use constant-time comparisons for internal API keys and verify payment-provider webhook signatures before processing payloads.

Scoped Guidance

Read the relevant canonical guide in agent-guides/ before changing these areas:

  • documentation.md for documentation and README work.
  • frontend.md and security-testing.md for OpenLIT client work.
  • coding-agents-hook.md for hook adapters and coding-agents-convention.md for their telemetry schema.
  • controller-design.md for controller and agent-discovery work.
  • js-sdk-genai-instrumentation.md or js-sdk-genai-framework-instrumentation.md for TypeScript SDK instrumentation.

Validation

  • Add tests for changed security boundaries.
  • Run focused tests and npm run lint from src/client before handoff.
  • Before handoff, scan CE for accidental enterprise leakage:
rg -n "@/ee/" src/client/src
rg -n '"[a-z_]+:[a-z_]+"' src/client/src

The second scan may find non-RBAC strings such as CSS variants, cache keys, or encrypted-value prefixes. Review every match and keep RBAC permission literals out of CE.

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.