hazmat
AGENTS.md177 starsChanged 7 months agoMITView on GitHub
This project uses bd (beads) for issue tracking. Run bd prime for current workflow context, or install hooks (bd hooks install) for auto-injection. This repo intentionally has no Dolt remote for beads. Beads state is local only here; do not run bd dolt pull or bd dolt push during Hazmat closeout unless a remote is explicitly configured later. ALWAYS use non-interactive flags with file operations to avoid hanging on confirmation prompts. Shell commands like cp, mv, and rm may be…
- Deletes or force-pushes
- Commits and pushes
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 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 repositoryOne other file it gives its agents.
- CLAUDE.mdCLAUDE.md
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
17 rules. About 0 are common, 13 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈13
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
- Distinctive: line 44
Ask the user for explicit approval before running any sudo-adjacent command, and name the exact command you want to run.
- Distinctive: line 49
If approval is needed, ask first.
- Very specific: line 57
Update the relevant tla/MC_*.tla model and companion .md design note first.
- Distinctive: line 58
Run TLC for the affected spec and confirm "No error has been found."
- Distinctive: line 59
Only then update the implementation/tests to match the proved design.
- Very specific: line 71
Run bd prime at the start of a session or after context compaction to load the current AI workflow guidance.
- Distinctive: line 86
Create or claim a bead before writing code.
- Very specific: line 88
Use priority values 0-4 or P0-P4.
- Very specific: line 89
Do not use bd edit; it opens an editor and can block non-interactive agents.
- Distinctive: line 102
File issues for remaining work: - Create issues for anything that needs follow-up
- Distinctive: line 105
Remote sync (approval-gated): - After explicit approval for git push, run:
- Distinctive: line 113
If approval is absent, stop after local commits/status and state: "Approval needed for exact command: git push." Do not claim remote …
- Distinctive: line 117
Verify: - All intended changes committed, with remote sync completed when in scope
- Distinctive: line 121
Do not run git push without explicit approval for the exact command.
- Distinctive: line 122
Do not say work is remotely complete until git push succeeds.
- Distinctive: line 123
If push approval is absent, report the local commit/status and the exact approval needed: git push.
- Distinctive: line 125
If an approved push fails, resolve and retry only commands that are not approval-gated.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 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
Agent Instructions
This project uses bd (beads) for issue tracking. Run bd prime for current workflow context, or install hooks (bd hooks install) for auto-injection.
Quick Reference
bd ready # Find available work
bd show <id> # View issue details
bd update <id> --claim # Claim work atomically
bd close <id> # Complete workThis repo intentionally has no Dolt remote for beads. Beads state is local
only here; do not run bd dolt pull or bd dolt push during Hazmat closeout
unless a remote is explicitly configured later.
Non-Interactive Shell Commands
ALWAYS use non-interactive flags with file operations to avoid hanging on confirmation prompts.
Shell commands like cp, mv, and rm may be aliased to include -i (interactive) mode on some systems, causing the agent to hang indefinitely waiting for y/n input.
Use these forms instead:
# Force overwrite without prompting
cp -f source dest # NOT: cp source dest
mv -f source dest # NOT: mv source dest
rm -f file # NOT: rm file
# For recursive operations
rm -rf directory # NOT: rm -r directory
cp -rf source dest # NOT: cp -r source destOther commands that may prompt:
scp- use-o BatchMode=yesfor non-interactivessh- use-o BatchMode=yesto fail instead of promptingapt-get- use-yflagbrew- useHOMEBREW_NO_AUTO_UPDATE=1env var
Sudo-Adjacent Command Consent
Ask the user for explicit approval before running any sudo-adjacent command,
and name the exact command you want to run. This applies to more than literal
sudo: hazmat check, hazmat doctor --fix, native helper-backed smokes,
live harness probes, Codex desktop attach probes, launchctl/pf paths,
DTrace/dtruss-style probes, and git push when hooks may invoke these gates.
If approval is needed, ask first; do not try the command speculatively.
TLA+ Governance
Changes in verified areas must start from the TLA+ model. For setup/init,
rollback, seatbelt policy, credential delivery, session permission repair,
launch fd isolation, and other areas listed in tla/VERIFIED.md:
- Update the relevant
tla/MC_*.tlamodel and companion.mddesign note first. - Run TLC for the affected spec and confirm "No error has been found."
- Only then update the implementation/tests to match the proved design.
For hazmat/init.go specifically, adding a setup step, changing step order, or
adding a persistent mutation inside an existing setup step requires model work
first. If rollback intentionally preserves the mutation, document that boundary
in the setup/rollback spec.
<!-- BEGIN BEADS INTEGRATION -->Issue Tracking
This project uses bd (beads) for all issue tracking. Do not use markdown TODOs, task lists, or external trackers.
Run bd prime at the start of a session or after context compaction to load the current AI workflow guidance. bd onboard intentionally stays minimal and points agents back to bd prime.
Quick reference:
bd ready- Find unblocked workbd show <id>- View issue detailsbd create --title="Title" --description="Context" --type=task --priority=2- Create issuebd update <id> --claim- Claim work atomicallybd close <id> --reason="Done"- Complete workbd remember "insight"- Store durable local project memory for future agents
Dolt remote policy: Hazmat intentionally has no Dolt remote configured for
beads. Use local bd state and persistent bd remember memories; skip
bd dolt pull / bd dolt push unless a remote is explicitly added later.
Rules:
- Create or claim a bead before writing code.
- Link discovered follow-up work with
--deps discovered-from:<parent-id>. - Use priority values
0-4orP0-P4; do not use textual priorities. - Do not use
bd edit; it opens an editor and can block non-interactive agents.
<!-- END BEADS INTEGRATION -->Landing the Plane (Session Completion)
When ending a work session, complete all local closeout steps below. Remote
sync is required for a fully landed session, but git push is sudo-adjacent in
this repo because hooks may invoke gated checks. Do not run git push unless
the user explicitly approves that exact command.
MANDATORY WORKFLOW:
- File issues for remaining work - Create issues for anything that needs follow-up
- Run quality gates (if code changed) - Tests, linters, builds
- Update issue status - Close finished work, update in-progress items
- Remote sync (approval-gated) - After explicit approval for
git push, run:
If approval is absent, stop after local commits/status and state: "Approval needed for exact command:git pull --rebase # Do not run bd dolt pull/push in this repo; Hazmat has no Dolt remote. git push git status # MUST show "up to date with origin"git push." Do not claim remote completion. - Clean up - Clear stashes, prune remote branches
- Verify - All intended changes committed, with remote sync completed when in scope
- Hand off - Provide context for next session
CRITICAL RULES:
- Do not run
git pushwithout explicit approval for the exact command. - Do not say work is remotely complete until
git pushsucceeds. - If push approval is absent, report the local commit/status and the exact
approval needed:
git push. - If an approved push fails, resolve and retry only commands that are not approval-gated; ask again before rerunning any sudo-adjacent command.
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.

