agentleFS
gcontinigcontini/resumix/AGENTS.md

resumix

AGENTS.md5 starsChanged 2 months agoMITView on GitHub

Rules the code follows. They are not style preferences; each one is here because breaking it has a cost we have already paid once. - One job per class. HttpApi speaks HTTP and nothing else. Workspace owns paths and moves and nothing else. WorkingProcessor decides where a job folder goes next and makes every move. If you cannot say what a class does in one sentence without "and", split it. - Depend on protocols, not implementations. ResumixApi, JDSource, Confirmer, Tracker…

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

The file

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

4 rules. About 1 is common, 2 are distinctive, and 1 is very specific to this project.

  • ≈1

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Build what was asked: No speculative options, no "while we are here".

    line 30
  2. Very specific:

    Failures carry a cause and a stage: Every response, successful or not, carries a request_id.

    line 53
  3. Common:

    No test may need an API key, a network or a terminal.

    line 66
  4. Distinctive:

    Do not commit or push. Changes are left in the working tree for review.

    line 79

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

Working in this repository

Rules the code follows. They are not style preferences; each one is here because breaking it has a cost we have already paid once.

Shape

  • One job per class. HttpApi speaks HTTP and nothing else. Workspace owns paths and moves and nothing else. WorkingProcessor decides where a job folder goes next and makes every move. If you cannot say what a class does in one sentence without "and", split it.
  • Depend on protocols, not implementations. ResumixApi, JDSource, Confirmer, Tracker exist so the modes can be tested with no server, no terminal and no spreadsheet. A new source of job descriptions should be a new JDSource and no change anywhere else.
  • One-way dependencies: client → contracts ← server. Neither side imports the other; tests/test_architecture.py enforces it. The contracts package imports nothing but pydantic — it is loaded by a web server and by a frozen executable, and has to stay cheap in both.
  • The pipeline is a library. Everything under resumix_server/pipeline/ takes its inputs in memory and returns its outputs. It reads no configuration, resolves no paths and writes nothing outside the scratch directory it is handed. That is what makes it safe to run per request.
  • No hidden global state. Configuration is passed in, not imported. Anything cached at module level must be immutable and identical for every request; anything personal must not be cached at all.

Restraint

  • Build what was asked. No speculative options, no "while we are here". A knob nobody asked for is a knob that must be documented, tested and kept working.
  • Prefer deleting. The three-model rework removed a whole second CV pipeline; the client/server split removed a thread pool and a folder protocol. Less surface has consistently been the better answer here.
  • Simple over clever. Each stage of the watcher takes one posting at a time. The stages run side by side — the inbox and the CV writer on a thread each, you on the main thread — because most postings no longer need a question: a CV takes minutes, and it is written while you read the next posting. That is the one concurrency there is; nothing inside a stage runs in parallel.
  • KISS: this runs for one person, not at scale. Resumix is personal tooling, not a production service with many tenants. Don't add retries, caching layers, queues, connection pools, horizontal scaling or config knobs to handle load that will never arrive. If a single-process, single-user solution works, ship that one.

Correctness

  • Prompt text is behaviour. The Field(description=...) strings end up in the JSON schema shown to the model. Editing one changes what the model produces — treat those classes as prompts, not just as types.
  • Failures carry a cause and a stage. Every response, successful or not, carries a request_id; GET /logs/{id} turns it into what ran and what each model call cost. A user who paid for four attempts is entitled to see all four — but a reply nobody reads should not carry them.
  • The LaTeX subprocess is always sandboxed. Shell escape off, reads and writes confined to the scratch directory, no stdin, a timeout. The template and the .tex can both come from a client: treat them as hostile input.
  • Pure where it can be. render_tex, render_document, static_jd_guess take values and return values. They are the easiest things to test and the hardest things to break.

Tests

  • No test may need an API key, a network or a terminal.
  • Fake at the boundary, not above it: the test double replaces the HTTP client inside a real ModelSelector, so request assembly, structured-output negotiation and usage logging stay under test.
  • server/tests/golden/cv_golden.tex pins the whole render. An escaping regression is otherwise invisible until someone reads a bad PDF.
  • Tests that need pdflatex skip themselves; everything else always runs.

House rules

  • uv for everything: uv sync, uv run pytest, uv lock.
  • Docker: classic builder only. No BuildKit features, no heredocs in a Dockerfile.
  • Do not commit or push. Changes are left in the working tree for review.

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.