agentleFS
HighwayofLifeHighwayofLife/agent-kaizen/AGENTS.md

agent-kaizen

AGENTS.md1 starsChanged 32 days agoMITView on GitHub

A Claude Code plugin: Markdown skills (skills/*/SKILL.md), one agent (agents/), hooks (hooks/), stdlib-only Python and shell scripts (scripts/), and starting-point templates (templates/). README.md explains the loop; docs/ has the details. Use python3, not python (which often isn't on PATH). CI (.github/workflows/ci.yml) also checks that every JSON file parses and that each script answers --help. It also runs tools/host-probe when the codex or copilot CLI is installed.

The file

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

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    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. Very specific:

    Use python3, not python (which often isn't on PATH).

    line 7
  2. Very specific:

    Privacy: no home-directory paths, personal emails or key-like strings in any file git tracks (tests/test_repo.py).

    line 22
  3. Very specific:

    Scratch: put previews, logs and temporary output in out/ (git-ignored).

    line 26
  4. Distinctive:

    Don't commit or push unless asked.

    line 28

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

Agent Kaizen: notes for coding agents

A Claude Code plugin: Markdown skills (skills/*/SKILL.md), one agent (agents/), hooks (hooks/), stdlib-only Python and shell scripts (scripts/), and starting-point templates (templates/). README.md explains the loop; docs/ has the details.

Commands

Use python3, not python (which often isn't on PATH).

python3 -m unittest discover -s tests      # unit, hook, repo-consistency and privacy tests
shellcheck -S warning hooks/*.sh
claude plugin validate .
tools/host-probe --host codex           # install check in an isolated home; prints SKIP when codex is missing

CI (.github/workflows/ci.yml) also checks that every JSON file parses and that each script answers --help. It also runs tools/host-probe when the codex or copilot CLI is installed.

Rules

  • Version and changelog: any change under skills/ (including skills/*/agents/openai.yaml), agents/, hooks/, scripts/, templates/ or .claude-plugin/, or to docs/autonomy.md, docs/hosts.md or docs/outcome-log.md (skills read them at runtime), bumps version in .claude-plugin/plugin.json and adds a ## x.y.z (date) entry to CHANGELOG.md. CI runs on PRs to main and fails when the current version has no CHANGELOG entry; it does not check that the version was bumped, so do it.
  • Skills: frontmatter name equals the folder name, description is quoted, and disable-model-invocation: true. Every skill is listed in the README skills table. Tests check all three.
  • Privacy: no home-directory paths, personal emails or key-like strings in any file git tracks (tests/test_repo.py). Never commit audit reports or transcripts.
  • Scripts: Python 3.9+, standard library only. token-audit must stay zero-token and fast; time it against git show HEAD:scripts/token-audit when changing the scan.
  • Prices: scripts/pricing.json is copied by hand from the vendors' pricing pages; update source.checked when you change it. Never fill in a price from memory.
  • Assets: generated by assets/src/*.py (teaser, banner title). Change the script and regenerate; don't hand-edit the images. teaser.gif stays under 3 MB. assets/loop.svg is hand-written SVG with light/dark themes and CSS-only animation.
  • Scratch: put previews, logs and temporary output in out/ (git-ignored).
  • Writing: plain, short sentences; no marketing language. Claims and numbers come from docs/what-we-learned.md or a measured ledger row, never estimates presented as results.
  • Don't commit or push unless asked.

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.