agentleFS
lidge-junlidge-jun/opencodex/gui/AGENTS.md

opencodex / gui

AGENTS.md17k starsChanged 2 months agoMITView on GitHub

This file applies to gui/ and inherits the repository-wide rules in /AGENTS.md. Hardcoding English (or German) in JSX to “fix” a bad translation is not allowed. Add or fix the key in all locale files instead. Use proportional validation during implementation. For a scoped local GUI change: Before creating or updating a PR as review-ready, or when the user explicitly asks for full GUI validation, run: After any UI-copy or locale change, also run: Do not rerun an already-passing check…

Trending

More talk lately.about the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 4 mentionsAug 2026: 7 mentionsSep 2026: 15 mentionsOct 2026: 21 mentionsNov 2026: 6 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the lidge-jun/opencodex repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about lidge-jun/opencodex

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

See all 53

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

On GitHub · 50

45 more on GitHub

On Hacker News · 1

  • 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,773 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 repository7 other files it gives its agents.

The file

Show its rules and text

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

15 rules. About 0 are common, 10 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈10

    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
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Use the existing component, state, routing, styling, and data-access patterns before introducing a new abstraction.

    line 9
  2. Distinctive:

    Keep dashboard behavior aligned with the management API and provider configuration model.

    line 10
  3. Distinctive:

    Every new user-facing string goes into all locale files:

    line 16
  4. Very specific:

    Keep code comments (including shell # … comments in samples).

    line 29
  5. Very specific:

    Run bun run lint:i18n after UI copy changes.

    line 30
  6. Distinctive:

    Do not introduce a dependency for behavior already provided by the current stack or a small local implementation.

    line 35
  7. Very specific:

    Update docs-site/ when dashboard behavior, setup, or configuration changes for users.

    line 37
  8. Distinctive:

    Use proportional validation during implementation.

    line 45
  9. Distinctive:

    Run the smallest focused test file(s) that directly cover the changed behavior.

    line 49
  10. Very specific:

    If visible UI copy or locale keys changed, run bun run lint:i18n.

    line 50
  11. Very specific:

    Run bun run build once before claiming the GUI change is complete.

    line 51
  12. Distinctive:

    Stop when those checks pass.

    line 52
  13. Distinctive:

    Before creating or updating a PR as review-ready, or when the user explicitly asks for full GUI validation, run:

    line 54
  14. Distinctive:

    After any UI-copy or locale change, also run:

    line 63
  15. Distinctive:

    Do not rerun an already-passing check on unchanged code unless a later change can affect what that check proved.

    line 70

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

OpenCodex GUI — agent rules

This file applies to gui/ and inherits the repository-wide rules in /AGENTS.md.

Ownership and generated output

  • gui/ is the React + Vite dashboard.
  • gui/dist/ is generated packaged output. Do not edit it by hand.
  • Use the existing component, state, routing, styling, and data-access patterns before introducing a new abstraction.
  • Keep dashboard behavior aligned with the management API and provider configuration model.
  • gui/design-system/ is the token and component contract for src/styles.css and src/ui.tsx; read it before adding a visual value or a shared component, and update it in the same change when a token moves.

Text and i18n

  • No hardcoded visible UI text in src/pages, src/components, src/App.tsx, or src/ui.tsx.
  • Every new user-facing string goes into all locale files:
    • src/i18n/en.ts — source of truth / TKey
    • plus every other src/i18n/{locale}.ts module (discovered automatically by bun run lint:i18n; when adding a language, add {locale}.ts and wire it in src/i18n/shared.ts)
  • Render copy with useT() / t("key") or <Trans k="key" cmd="..." /> for {cmd} chips.
  • Allowed literals without i18n keys (see .eslint/i18n-allowlist.ts):
    • Company / product names (e.g. OpenAI, Anthropic, GitHub, Codex).
    • Model identifiers from APIs/catalogs (e.g. gpt-4o, deepseek-v4-flash-free) when displaying provider data, not labels like "Default model".
    • Technical / machine text — do not put these in locale files:
      • CLI/shell samples (curl …, export VAR=…, ocx claude)
      • Content inside <pre> / <code>
      • HTTP headers, env var names, protocol field dumps (model=…, thinking)
      • Units/abbreviations next to numbers (ms, k, 1M, cache c/w)
      • URLs / localhost endpoints, adapter ids (oauth, passthrough, npm channels)
    • Keep code comments (including shell # … comments in samples). Never strip them to “satisfy” i18n.
  • Run bun run lint:i18n after UI copy changes; fix real violations before committing. If a hit is technical, extend the allowlist or put the string in <pre>/<code> — do not invent nonsense translation keys.

Implementation rules

  • Preserve accessibility: keyboard operation, labels, focus behavior, semantic controls, and readable validation errors.
  • Do not introduce a dependency for behavior already provided by the current stack or a small local implementation.
  • Dependency changes require explicit security review.
  • Update docs-site/ when dashboard behavior, setup, or configuration changes for users.

Failure mode

Hardcoding English (or German) in JSX to “fix” a bad translation is not allowed. Add or fix the key in all locale files instead.

Required validation

Use proportional validation during implementation.

For a scoped local GUI change:

  • Run the smallest focused test file(s) that directly cover the changed behavior.
  • If visible UI copy or locale keys changed, run bun run lint:i18n.
  • Run bun run build once before claiming the GUI change is complete. This is the browser/bundler validation gate.
  • Stop when those checks pass. Do not expand into adjacent test suites, unrelated component tests, cleanup, or additional verification unless a failure, ambiguous result, or changed shared dependency gives a concrete reason.

Before creating or updating a PR as review-ready, or when the user explicitly asks for full GUI validation, run:

cd gui
bun test tests
bun run lint
bun run build

After any UI-copy or locale change, also run:

cd gui
bun run lint:i18n

Do not rerun an already-passing check on unchanged code unless a later change can affect what that check proved.

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.