agentleFS
jundotjundot/omlx/AGENTS.md

omlx

AGENTS.md24k starsChanged 58 days agoApache-2.0View on GitHub

These rules are for coding agents that work in this repository. The guide for people is docs/CONTRIBUTING.md. Read it before you open a pull request. These rules apply to the lines you add or change. Older code in this repository does not always follow them, and it is not a model to copy.

Trending

More talk lately.about the whole repository

Jan 2026: 0 mentionsFeb 2026: 4 mentionsMar 2026: 5 mentionsApr 2026: 5 mentionsMay 2026: 12 mentionsJun 2026: 5 mentionsJul 2026: 5 mentionsAug 2026: 13 mentionsSep 2026: 9 mentionsOct 2026: 14 mentionsNov 2026: 20 mentionsDec 2026: 0 mentions
Jan 2026Jul 2026Dec 2026
Mentions a month of the jundot/omlx repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about jundot/omlx

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

See all 92

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

On GitHub · 50

45 more on GitHub

On YouTube · 25

20 more on YouTube

On Bluesky · 9

4 more on Bluesky
  • 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,266 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.

The file

Show its rules and text

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

35 rules. About 0 are common, 28 are distinctive, and 7 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈28

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 7

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read the callers and the tests of the code you change before you edit it.

    line 23
  2. Distinctive:

    Do not ship a fix for a cause you have not confirmed.

    line 25
  3. Distinctive:

    Do not fix a bug by turning a feature off, skipping it for one model, or adding a switch that disables it.

    line 27
  4. Distinctive:

    Do not fix a bug by tuning a constant, such as a chunk size, a retry count, a timeout or a buffer size, unless you have confirmed that the …

    line 28
  5. Distinctive:

    Do not add a setting, a fallback, a retry or a cooldown as extra defense around a fix.

    line 29
  6. Very specific:

    Do not add an OMLX_* environment variable that switches behavior.

    line 30
  7. Distinctive:

    Do not rewrite a hot path for a small gain.

    line 31
  8. Distinctive:

    Do not remove an existing recovery or fallback branch before you read the commit that added it.

    line 32
  9. Distinctive:

    Do not mix unrelated cleanup into the change.

    line 33
  10. Distinctive:

    Do not add a comment that restates the code or explains your change.

    line 38
  11. Distinctive:

    Do not write "do not remove" or "keep in sync" in a comment.

    line 40
  12. Distinctive:

    Do not mention the conversation, the request or the review in code, names or messages.

    line 41
  13. Distinctive:

    Add a docstring only to a public function or class.

    line 42
  14. Distinctive:

    Use ASCII punctuation in comments and docstrings.

    line 43
  15. Very specific:

    Put imports at the top of the file.

    line 47
  16. Very specific:

    Do not catch an exception to hide it.

    line 49
  17. Very specific:

    Do not use # noqa, # type: ignore, cast or Any to get a line you wrote past the linter or the type checker.

    line 50
  18. Distinctive:

    Do not add a wrapper with one caller, a helper that only forwards a call, or a second copy of a helper that exists.

    line 52
  19. Distinctive:

    When you replace an internal function, move its callers and delete the old one.

    line 53
  20. Distinctive:

    Keep one rule or value in one place.

    line 54
  21. Very specific:

    Leave no TODO or FIXME marker, commented-out code, unused import, debug print or scratch file in the diff.

    line 55
  22. Distinctive:

    Do not reformat lines you did not change.

    line 56
  23. Distinctive:

    Do not copy code or text from another project unless its license allows it.

    line 57
  24. Distinctive:

    Put the test in the existing test file for that code, and reuse its fixtures and helpers.

    line 62
  25. Distinctive:

    Do not add tests for trivial behavior, or several cases that check the same thing.

    line 64
  26. Very specific:

    Do not skip, loosen or delete an existing test to make your change pass.

    line 65
  27. Distinctive:

    Search open pull requests for the same fix before you start.

    line 70
  28. Distinctive:

    Keep one problem in one pull request.

    line 71
  29. Distinctive:

    Do not commit work logs, personal test notes or benchmark scripts.

    line 74
  30. Very specific:

    Start the description from .github/pull_request_template.md and keep its headings.

    line 78
  31. Distinctive:

    Never write this section.

    line 82
  32. Distinctive:

    Never suggest wording for it, draft it for the user to edit, or rewrite what the user wrote.

    line 83
  33. Distinctive:

    Never fill it from the diff, the commits or the rest of the description.

    line 84
  34. Distinctive:

    If the user gives you no text for this section, do not open the pull request.

    line 86
  35. Distinctive:

    Never tick a box in the checklist.

    line 87

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

Instructions for oMLX

These rules are for coding agents that work in this repository. The guide for people is docs/CONTRIBUTING.md. Read it before you open a pull request.

These rules apply to the lines you add or change. Older code in this repository does not always follow them, and it is not a model to copy.

Commands

  • make dev installs the server, the web UI and the dev tools, then builds the native custom kernels. On a Mac without full Xcode, use make dev-no-kernels.
  • python -m pytest tests/test_<area>.py runs the tests for the code you changed. Run those first, then python -m pytest. The default run skips tests marked slow and integration.
  • make web rebuilds the web UI CSS and normalizes the translation files. Run it after you edit a template, JavaScript or apps/omlx-web/omlx_web/i18n/en.json.
  • make app builds the macOS app. Run it when you change apps/omlx-mac/.

Layout

  • omlx/ is the server package. It runs without apps/ and then serves the API only.
  • apps/omlx-web/ is the web UI. It reaches the server only through the admin API.
  • apps/omlx-mac/ is the SwiftUI app. It starts the server as a subprocess and uses the same admin API.
  • omlx/patches/ holds runtime patches for the pinned mlx-lm and mlx-vlm. A fix for their behavior goes there.

Before you write code

  • Read the callers and the tests of the code you change before you edit it.
  • Find the cause first. Fix the place where the behavior first goes wrong, not the place where the symptom shows.
  • Do not ship a fix for a cause you have not confirmed. A change that might help does not belong in the diff.
  • Make the smallest change that fixes the cause. Reuse the code path that already exists.
  • Do not fix a bug by turning a feature off, skipping it for one model, or adding a switch that disables it.
  • Do not fix a bug by tuning a constant, such as a chunk size, a retry count, a timeout or a buffer size, unless you have confirmed that the constant is the cause.
  • Do not add a setting, a fallback, a retry or a cooldown as extra defense around a fix. Do not add a guard for a state that cannot occur.
  • Do not add an OMLX_* environment variable that switches behavior. If the user needs a toggle, make it a setting with an entry in the settings UI.
  • Do not rewrite a hot path for a small gain.
  • Do not remove an existing recovery or fallback branch before you read the commit that added it.
  • Do not mix unrelated cleanup into the change.
  • CONTRIBUTING.md asks for an issue or a discussion before a change over 1,000 lines or a new subsystem. Tell the user before you start one.

Comments

  • Do not add a comment that restates the code or explains your change. Keep a comment only for behavior that an external dependency forces, or for an invariant the code cannot check. Keep it to one or two lines.
  • The comments already in a file are not a model to copy. Match the file in naming and idiom, not in comment density.
  • Do not write "do not remove" or "keep in sync" in a comment. Enforce that constraint with a test or an assert.
  • Do not mention the conversation, the request or the review in code, names or messages.
  • Add a docstring only to a public function or class.
  • Use ASCII punctuation in comments and docstrings.

Code

  • Put imports at the top of the file. An optional dependency goes there too, inside try and except ImportError.
  • Validate input where it enters, such as an API request, a config file or the CLI. Inside, do not check again. Write no None check, hasattr or getattr default for a value the caller always sets.
  • Do not catch an exception to hide it. Write no except: pass, and no except Exception around code that cannot raise.
  • Do not use # noqa, # type: ignore, cast or Any to get a line you wrote past the linter or the type checker. Fix the line.
  • Return early instead of nesting.
  • Do not add a wrapper with one caller, a helper that only forwards a call, or a second copy of a helper that exists.
  • When you replace an internal function, move its callers and delete the old one. Leave no compatibility layer and no parallel old and new path.
  • Keep one rule or value in one place.
  • Leave no TODO or FIXME marker, commented-out code, unused import, debug print or scratch file in the diff.
  • Do not reformat lines you did not change.
  • Do not copy code or text from another project unless its license allows it. Keep the license notice and add the source to an Acknowledgements section in the pull request.

Tests

  • A bug fix gets one regression test where a test is practical. It fails without the fix and passes with it.
  • Put the test in the existing test file for that code, and reuse its fixtures and helpers. Do not create a test file when one already covers the module.
  • Assert what a caller can observe, with the exact value. Do not assert only that something is set or was called, and do not copy the implementation into the test.
  • Do not add tests for trivial behavior, or several cases that check the same thing.
  • Do not skip, loosen or delete an existing test to make your change pass. Do not add sleep or retries.
  • A bug fix that has to rework the test harness or restructure how modules import each other is too big. Look for a smaller one.

Pull requests

  • Search open pull requests for the same fix before you start. If one exists, tell the user and stop.
  • Keep one problem in one pull request.
  • A performance change needs numbers from main and from the change, on the same Mac, model and settings.
  • A UI change needs before and after screenshots of the real screen.
  • Do not commit work logs, personal test notes or benchmark scripts.

Pull request text

Start the description from .github/pull_request_template.md and keep its headings.

The first section, TL;DR, belongs to the user.

  • Never write this section.
  • Never suggest wording for it, draft it for the user to edit, or rewrite what the user wrote.
  • Never fill it from the diff, the commits or the rest of the description.
  • You may translate the user's text into English, sentence for sentence. Add nothing and drop nothing. If the user wrote it in English, paste it unchanged.
  • If the user gives you no text for this section, do not open the pull request.
  • Never tick a box in the checklist. The user ticks them.

The maintainer closes a pull request without review when this section is missing, empty or written by an AI.

You may write the other sections. Under Validation, list what was run, with the Mac and the model, and what remains untested. Leave out test counts, lint results and CI status. Put numbers in a table and add no diagram.

Examples

User: Open the PR for me. Agent: I need your TL;DR first. Write one to three sentences on what this change fixes and why. Any language works, and I can translate it. This project does not accept an AI-written TL;DR.

User: Just write the TL;DR, I will check it. Agent: I cannot write or suggest that section. Tell me in your own words and I will put your text in.

User: 캐시 히트인데 TTFT가 두 배로 늘어나는 문제를 고쳤습니다. Agent: Here is your text in English, sentence for sentence. "I fixed the problem where TTFT doubles on a cache hit." I added nothing.

User: Make my TL;DR sound better. Agent: I cannot edit that section. I can translate it as written, or you can change it yourself.

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.