ai-worker
AGENTS.md4 starsChanged 22 days agoMITView on GitHub
Read this before changing anything in this repository. People read CONTRIBUTING.md; this file is the short version for agents. A Claude Code plugin (.claude-plugin/, hooks/, skills/, web/) on each employee's computer, a connector for Codex, Cursor and Gemini CLI that needs no Claude Code (connectors/), a dashboard server (server/) on one Linux machine, and an optional receiver in Go for large organisations (receiver/, docs/RECEIVER.md). Design: docs/ARCHITECTURE.md. Data: docs/DATA-MODEL.md. Permissions: docs/PERMISSIONS.md. .claude-plugin/, hooks/ and skills/ must stay at the root: Claude…
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 repository27 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- ai-cost-reportSkill
- browser-testing-with-devtoolsSkill
- ce-noslopSkill
- codebase-designSkill
- commit-trailSkill
- diagnosing-bugsSkill
- domain-modelingSkill
- draw-flowSkill
- grillingSkill
- handoffSkill
- improve-codebase-architectureSkill
- interview-meSkill
- keep-lessonSkill
- lesson-generatorSkill
- make-skillSkill
- meeting-notesSkill
- qa-siteSkill
- qa-testSkill
- security-auditSkill
- session-retroSkill
- tddSkill
- ui-ux-pro-maxSkill
- write-paperSkill
- write-patentSkill
- write-specSkill
- wtfSkill
The file
We split this AGENTS.md into the rules it gives an agent
5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 3
Read this before changing anything in this repository.
- Very specific: line 15
Every comment and docstring: an English line, then a Vietnamese line.
- Very specific: line 21
Never commit real names, emails, IPs, domains, keys or company numbers.
- Distinctive: line 27
Run all twelve before calling a change done.
- Very specific: line 79
When you change hooks/ or tests/*.ts(x), also run the type check on your computer.
≈ “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.
Files
Notes for AI coding agents
Read this before changing anything in this repository. People read CONTRIBUTING.md; this file is the short version for agents.
What this is
A Claude Code plugin (.claude-plugin/, hooks/, skills/, web/) on each employee's computer, a connector for Codex, Cursor and Gemini CLI that needs no Claude Code (connectors/), a dashboard server (server/) on one Linux machine, and an optional receiver in Go for large organisations (receiver/, docs/RECEIVER.md). Design: docs/ARCHITECTURE.md. Data: docs/DATA-MODEL.md. Permissions: docs/PERMISSIONS.md.
Do not move
.claude-plugin/, hooks/ and skills/ must stay at the root: Claude Code loads the plugin from there. Installers and self-update rely on the other folder names too.
Rules
- Every comment and docstring: an English line, then a Vietnamese line. Vietnamese only in comments, docstrings or
*.vi.*files. Each document has.mdand.vi.md. - The receiver in
receiver/uses the Go standard library only. Its cleaning copiesserver/board/devices.py: change both, then runpython3 tests/contract/ingest-v2/make_cases.pyif a case changed. - The server uses the Python standard library only (Python 3.8+). Data is in SQLite through
server/board/db.py; a schema change is a new step, never an edit of a shipped one. SQL takes values only as parameters. - A new server path goes into the route table in
server/webhook.pyand the permission table inserver/test_webhook.py. web/ops.js,ops.css,ops3d.js,i18n.js,ops.vi.jsmust equal their copies inserver/static/.server/board/costreport.py,labels.json,prices.jsonmust equalskills/ai-cost-report/report.py,labels.json,prices.json(server/test_projects.pychecks).- Never commit real names, emails, IPs, domains, keys or company numbers. Use
aiworker.example.comandexample.com. - The employee's computer never sends chat content, prompts, file names or project names. Keep it that way. Text for Gemma on a server goes straight to Ollama behind Caddy (
server/gemma.caddy): the dashboard sees only the head of that request, at/gemma/auth. connectors/ai-worker-hook.shandconnectors/ai-worker-hook.ps1do the same thing, as doinstall.shandinstall.ps1: change both. The hook runs with sh, awk, sed, grep and curl or wget only: no Python, no Node.
Checks
Run all twelve before calling a change done. CI runs the same ones.
claude plugin test .cd server && python3 -m unittestpython3 tests/connectors/test_connectors.pypython3 tests/appmeter/test_appmeter.pynode tests/extension/check-extension.jsnode tests/check-map-layout.jspython3 tests/check-i18n.pypython3 tests/check-maps.pypython3 tests/check-frontmatter.pybash tests/test-check-clean.shuvx ruff check .cd receiver && go test ./...Without uv, the ruff check is pipx run ruff check .. The last one needs Go 1.22 or later and python3: the receiver's tests run the Python server as the judge.
When you change hooks/ or tests/*.ts(x), also run the type check on your computer; CI cannot, since it needs the type files Claude Code writes to .claude-plugin/types (see docs/ARCHITECTURE.md):
npx -y -p typescript@5.9.3 tsc -p tsconfig.jsonbash packaging/check-clean.sh is not in this list: it looks for private data in the folder it runs in, so it belongs on what gets published. In a checkout that holds your own packaging/company.json it reports that file, and that is expected.
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
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.

