agentleFS
Mohidkz05Mohidkz05/tack/AGENTS.md

tack

AGENTS.md0 starsChanged 13 days agoMITView on GitHub

A stack-agnostic harness for AI-assisted development: one verification contract (tack.toml), guardrail hooks, skills and subagents, installed into any project (new or existing). These rules apply to every coding agent (Claude Code, Codex, Cursor, Gemini, ...) and every human. The commands for each check live in tack.toml, one entry per component (each language or package in the repo). Run them all with python3 .claude/hooks/tack verify, or pick some with --only lint,test and --component <name>. If a check is missing or wrong,…

  • Reads credentials
  • 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,117 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 repository8 other files it gives its agents.

The file

Show its rules and text

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

14 rules. About 0 are common, 6 are distinctive, and 8 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 8

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Very specific:

    After changing runtime.py or templates, run uv run tack update .

    line 8
  2. Very specific:

    Get your bearings: Read SPEC.md (what we are building and why) and PROGRESS.md (where we left off).

    line 15
  3. Distinctive:

    Plan anything non-trivial: Write a short plan with the files to touch, the approach, and how you will prove it works.

    line 16
  4. Distinctive:

    Test first: Write or update a failing test, make it pass, then clean up.

    line 17
  5. Very specific:

    Verify: Run python3 .claude/hooks/tack verify --changed.

    line 18
  6. Very specific:

    Record: Update PROGRESS.md: what changed, decisions made and why, and what's next.

    line 20
  7. Very specific:

    Run them all with python3 .claude/hooks/tack verify, or pick some with --only lint,test and --component <name>.

    line 26
  8. Very specific:

    If a check is missing or wrong, fix tack.toml.

    line 27
  9. Very specific:

    Never weaken a check to make it pass: no deleting tests, no skip, no broad lint ignores, no any or # type: ignore without a written reason.

    line 31
  10. Distinctive:

    Never edit lockfiles by hand.

    line 32
  11. Very specific:

    Never read, print, or commit secrets (.env, keys, tokens).

    line 33
  12. Distinctive:

    Add a dependency only when it clearly earns its place, and say why in the commit message.

    line 34
  13. Distinctive:

    Keep changes small and in scope.

    line 35
  14. Distinctive:

    When unsure about intent, ask.

    line 36

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

tack

A stack-agnostic harness for AI-assisted development: one verification contract (tack.toml), guardrail hooks, skills and subagents, installed into any project (new or existing).

  • src/tack/runtime.py: stdlib-only engine (detect, verify, hooks). Vendored into user projects, so it must stay dependency-free and Python 3.11 compatible.
  • src/tack/install.py: safe file writer (managed / block / merge / seed kinds plus the lock file).
  • src/tack/templates/: what gets installed (dot- maps to ., .tmpl files are rendered).
  • After changing runtime.py or templates, run uv run tack update . so this repo's own .claude/ copy stays in sync.
<!-- tack:begin (managed by tack; edit outside this block, refresh with `tack update`) -->

How we work

These rules apply to every coding agent (Claude Code, Codex, Cursor, Gemini, ...) and every human.

  1. Get your bearings. Read SPEC.md (what we are building and why) and PROGRESS.md (where we left off).
  2. Plan anything non-trivial. Write a short plan with the files to touch, the approach, and how you will prove it works. Get it approved before large changes.
  3. Test first. Write or update a failing test, make it pass, then clean up.
  4. Verify. Run python3 .claude/hooks/tack verify --changed. Work is not done until it passes. Show the output; don't just claim success.
  5. Review your diff as if someone else wrote it: correctness, edge cases, naming, dead code, secrets.
  6. Record. Update PROGRESS.md: what changed, decisions made and why, and what's next.
  7. Commit small, focused changes with Conventional Commit messages (feat:, fix:, refactor:, test:, docs:, chore:).

Checks

The commands for each check live in tack.toml, one entry per component (each language or package in the repo). Run them all with python3 .claude/hooks/tack verify, or pick some with --only lint,test and --component <name>. If a check is missing or wrong, fix tack.toml. Don't skip the check.

Rules

  • Never weaken a check to make it pass: no deleting tests, no skip, no broad lint ignores, no any or # type: ignore without a written reason.
  • Never edit lockfiles by hand. Use the package manager.
  • Never read, print, or commit secrets (.env, keys, tokens). Use .env.example for documentation.
  • Add a dependency only when it clearly earns its place, and say why in the commit message.
  • Keep changes small and in scope. Match the existing style before introducing a new one.
  • When unsure about intent, ask. When unsure about code, read it or run it.

Memory

  • SPEC.md: the goal, users, scope, and non-goals. Update it when the scope changes.
  • PROGRESS.md: current status, decisions (with reasons), and next steps. Update it before you stop.
<!-- tack:end -->

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.