agentleFS
anhle9xanhle9x/ai-worker/AGENTS.md

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…

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
  1. Distinctive:

    Read this before changing anything in this repository.

    line 3
  2. Very specific:

    Every comment and docstring: an English line, then a Vietnamese line.

    line 15
  3. Very specific:

    Never commit real names, emails, IPs, domains, keys or company numbers.

    line 21
  4. Distinctive:

    Run all twelve before calling a change done.

    line 27
  5. Very specific:

    When you change hooks/ or tests/*.ts(x), also run the type check on your computer.

    line 79

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

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 .md and .vi.md.
  • The receiver in receiver/ uses the Go standard library only. Its cleaning copies server/board/devices.py: change both, then run python3 tests/contract/ingest-v2/make_cases.py if 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.py and the permission table in server/test_webhook.py.
  • web/ops.js, ops.css, ops3d.js, i18n.js, ops.vi.js must equal their copies in server/static/.
  • server/board/costreport.py, labels.json, prices.json must equal skills/ai-cost-report/report.py, labels.json, prices.json (server/test_projects.py checks).
  • Never commit real names, emails, IPs, domains, keys or company numbers. Use aiworker.example.com and example.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.sh and connectors/ai-worker-hook.ps1 do the same thing, as do install.sh and install.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 unittest
python3 tests/connectors/test_connectors.py
python3 tests/appmeter/test_appmeter.py
node tests/extension/check-extension.js
node tests/check-map-layout.js
python3 tests/check-i18n.py
python3 tests/check-maps.py
python3 tests/check-frontmatter.py
bash tests/test-check-clean.sh
uvx 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.json

bash 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.

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.