alibi
AGENTS.md1 starsChanged 3 months agoMITView on GitHub
You are reading this because a user pasted something like: Install the alibi skill from https://github.com/codegobrrrr9/alibi, refer to the repo's AGENTS.md. Do the install for the agent you are, confirm in one line, and then follow the rules below for the rest of the session. Do not explain what alibi is unless asked. <repo> is a clone of this repository, or the raw files fetched from https://raw.githubusercontent.com/codegobrrrr9/alibi/main/. Hooks block for a non-plugin Claude Code install (~/.claude/settings.json), with <skill> being the…
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 repository3 other files it gives its agents.
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/alibi.mdcCursor rule
- alibiSkill
The file
We split this AGENTS.md into the rules it gives an agent
6 rules. About 0 are common, 2 are distinctive, and 4 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.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 7
Do the install for the agent you are, confirm in one line, and then follow the rules below for the rest of the session.
- Very specific: line 36
After installing, say: alibi on.
- Very specific: line 43
Never say tests pass without a receipt id: Run alibi status and quote the line.
- Distinctive: line 45
Any edit after a run makes the receipt STALE: Run again before you say anything about tests.
- Very specific: line 47
Never write into
.alibi/: If the tests cannot run, say exactly that and stop. - Distinctive: line 49
Do not rephrase the claim to get past it.
≈ “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
alibi — instructions for coding agents
You are reading this because a user pasted something like:
Install the alibi skill from https://github.com/codegobrrrr9/alibi, refer to the repo's AGENTS.md.
Do the install for the agent you are, confirm in one line, and then follow the rules below for the rest of the session. Do not explain what alibi is unless asked.
Install
<repo> is a clone of this repository, or the raw files fetched from
https://raw.githubusercontent.com/codegobrrrr9/alibi/main/.
| Agent | Do this |
| Claude Code | Run /plugin marketplace add codegobrrrr9/alibi then /plugin install alibi@alibi. The plugin ships the hooks: test commands are receipted automatically and a "tests pass" claim without a VALID receipt is sent back. If plugins are unavailable, copy <repo>/skills/alibi/ to ~/.claude/skills/alibi/ and add the hooks block below to ~/.claude/settings.json. |
| Codex | Copy <repo>/skills/alibi/ to ~/.codex/skills/alibi/, or run npx skills add codegobrrrr9/alibi. Append the Rules below to the project's AGENTS.md. Run tests as node <path>/alibi.js run -- <cmd>. |
| Cursor | Copy <repo>/.cursor/rules/alibi.mdc to .cursor/rules/alibi.mdc and <repo>/skills/alibi/scripts/alibi.js to scripts/alibi.js in the project. |
| Gemini CLI | Run gemini extensions install https://github.com/codegobrrrr9/alibi. |
| GitHub Copilot | Copy <repo>/.github/copilot-instructions.md into the project's .github/ (merge if one exists). |
| Anything else | Append the Rules below to the instruction file the agent reads, keep alibi.js in the project, and run tests through it. |
Hooks block for a non-plugin Claude Code install (~/.claude/settings.json), with <skill> being the
absolute path of the copied skills/alibi directory and <repo> the cloned repo:
{
"hooks": {
"PreToolUse": [{ "matcher": "Bash|PowerShell", "hooks": [{ "type": "command", "command": "node \"<repo>/hooks/pre-tool-use.js\"", "timeout": 10 }] }],
"Stop": [{ "hooks": [{ "type": "command", "command": "node \"<repo>/hooks/stop.js\"", "timeout": 30 }] }]
}
}After installing, say: alibi on. Test runs are receipted; I will quote the receipt before saying tests pass.
Rules
"Tests pass" is a claim. A receipt is evidence. The user cannot see your terminal.
- Tests run through alibi. Under Claude Code this is automatic. Elsewhere:
alibi run -- <cmd>. - Never say tests pass without a receipt id. Run
alibi statusand quote the line.VALID r-3f9a2c1e · npm test · 23 passed · tree matchesis a claim. "They should pass" is not. - Any edit after a run makes the receipt STALE. Run again before you say anything about tests.
- Every done message ends with the status line from
alibi status. - Never write into
.alibi/. If the tests cannot run, say exactly that and stop. Do not claim. - If the Stop hook sends you back, run the tests, read the footer, finish with the status line. Do not rephrase the claim to get past it.
Commands
alibi run -- <cmd…> run, stream output, write a receipt, exit with the command's code
alibi status VALID / STALE (lists changed files) / FAILED / MISSING / TAMPERED
alibi verify [id|last] full verdict, --json for tooling, exit 0 only on VALID
alibi check CI gate: VALID receipt, clean tree, receipt HEAD == current HEAD
alibi list · show <id>Overrides
- Throwaway prototype, user says skip verification: say once that alibi is off. Still do not say tests pass.
- Receipt is TAMPERED: say so, do not use it, run the tests again.
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.

