yoloai
CLAUDE.md216 starsChanged 7 months agoMITView on GitHub
Everything above is the shared agent contract (AGENTS.md), imported so that Claude Code and the agents that follow the AGENTS.md convention read the same rules. Only Claude-specific mechanics belong in this file. .claude/settings.json registers the hooks below, all committed so any clone picks them up: - .claude/hooks/post-edit.sh stamps the project when a source file is edited. - .claude/hooks/on-stop.sh runs make check at end of turn if the stamp exists. On failure it blocks completion and feeds the output back. -…
In this repositoryOne other file it gives its agents.
- AGENTS.mdAGENTS.md
The file
Files
@AGENTS.md
Claude Code specifics
Everything above is the shared agent contract (AGENTS.md), imported so that Claude Code and
the agents that follow the AGENTS.md convention read the same rules. Only Claude-specific
mechanics belong in this file.
The quality gate runs itself here
.claude/settings.json registers the hooks below, all committed so any clone picks them up:
.claude/hooks/post-edit.shstamps the project when a source file is edited..claude/hooks/on-stop.shrunsmake checkat end of turn if the stamp exists. On failure it blocks completion and feeds the output back.scripts/check_citation_provenance.pyblocks on an edit that cites aresearch/*.mddoc nothing in the session ever opened (D122). It reads the transcript, so it keys off what you actually did rather than what you believe — which is the point, since a summary in context and a source you read are indistinguishable from the inside. The remedy is always the same: open the file. Scoped to research paths becauseD<n>/DF<n>citations land in every other commit and a hook that noisy gets disabled; that half stays review-caught, deliberately.
So you rarely need to run make check by hand — but it is still the gate, and a change is not
done until it passes.
Two things the hooks do not do:
post-edit.shexemptsdocs/*, so a docs-only edit never stamps andmake checknever runs on it. Docs sit outside the gate entirely.on-stop.shcapturesmake checkoutput and discards it on success, so a target that skips rather than fails reports that into a void.
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.

