hermes-toolbox / templates
AGENTS.md1 starsChanged 5 months agoMITView on GitHub
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,266 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.
- AGENTS.mdAGENTS.md
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
19 rules. About 1 is common, 12 are distinctive, and 6 are very specific to this project.
≈1
Common · estimate
Many files like this have a rule of this kind.
≈12
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 13
When tools access a subdirectory, Hermes may find nested AGENTS.md, CLAUDE.md, or .cursorrules files inside the active working tree and …
- Distinctive: line 14
Before working in a narrower subtree, inspect and apply its discovered context.
- Very specific: line 17
Keep plans, reports, backups, and source studies under .hermes/.
- Very specific: line 18
Keep disposable source worktrees under .hermes/worktrees/.
- Distinctive: line 20
Keep the workspace root outside Git and don't put production code there.
- Common: line 21
Never place secrets or raw sensitive archives in plans, reports, AGENTS.md files, or the vault.
- Very specific: line 25
Keep installed Hermes source at $HERMES_HOME/hermes-agent read-only.
- Distinctive: line 35
Use supported Hermes settings first for profile configuration.
- Distinctive: line 36
Don't commit, push, publish, or deploy scratch work.
- Very specific: line 37
If scratch work becomes durable, stop.
- Very specific: line 41
Commit its Mise tasks, run local CI through mise run ci, and make GitHub CI run mise run ci.
- Distinctive: line 44
Use the GitHub owner and commit identity configured for the workspace.
- Distinctive: line 45
Don't add AI co-author credit or AI-generated commit trailers.
- Distinctive: line 46
Every repository or worktree must have a root AGENTS.md.
- Distinctive: line 47
Add a nested AGENTS.md only when a real subtree needs different local rules, and keep only that difference in it.
- Distinctive: line 48
Before any Git or GitHub action, ask the user to start an explicit source or version-control task for the GitHub-backed repository.
- Distinctive: line 51
Keep each profile and paired workspace isolated unless the user directs a cross-profile change.
- Distinctive: line 52
Verify the local gateway process, platform adapter, and transport before promising cross-surface delivery.
- Distinctive: line 59
Add a pairing section to each workspace's AGENTS.md.
≈ “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
<Profile name> workspace
Pairing
- Profile:
<profile-name> - Profile config home:
<profile-config-home> - Workspace:
<workspace-root> - The profile config home and workspace are separate boundaries. Never treat one as the other.
- Neither boundary is a sandbox.
Context and authority
- Scope: this workspace's paths, conventions, and work modes.
- At startup, Hermes loads one project context type.
.hermes.mdorHERMES.mdwins and walks from the current directory to the Git root. Otherwise,AGENTS.mdoragents.md,CLAUDE.md,.cursorrules, or.cursor/rules/*.mdcloads from the current directory in that order. - When tools access a subdirectory, Hermes may find nested
AGENTS.md,CLAUDE.md, or.cursorrulesfiles inside the active working tree and append their rules to the tool result. - Before working in a narrower subtree, inspect and apply its discovered context.
Workspace layout and safety
- Keep plans, reports, backups, and source studies under
.hermes/. - Keep disposable source worktrees under
.hermes/worktrees/. They're test labs, not canonical profile output. - Reserve
plugins/<slug>/for durable plugin repository roots andprojects/<slug>/for other durable project repository roots. - Keep the workspace root outside Git and don't put production code there.
- Never place secrets or raw sensitive archives in plans, reports, AGENTS.md files, or the vault.
Coding policy bridge
PD-001:global-coding-policyowns the detailed reusable code and Markdown procedure. Load it through SOUL'sCode and Markdownrule, which also owns the profile's added limits and move rules. This bridge stays here, adds only workspace-specific boundaries, and links both owners.- Keep installed Hermes source at
$HERMES_HOME/hermes-agentread-only. Use.hermes/worktrees/hermes-agent/<task>/for disposable source study. - For Hermes code work, identify the installed commit and check the relevant installed source and live official docs. Align the commit, docs, code, runtime, and memory behavior before claiming compatibility.
Work modes
- Read-only study: may read installed source, docs, and profile files. Cite paths, commit, and source alignment.
- Plan-only: may write plans and evidence only under
.hermes/. It mustn't change runtime, source, config, skills, plugins, cron, or memory. Parse the resulting plan and reports as proof. - Scratch experiment: may write only under
.hermes/worktrees/hermes-agent/<task>/and use a localmise.toml. Apply the TDD workflow fromglobal-coding-policy, then run focused tests for the changed behavior. Every selected test must pass. - Durable repository: may write only in its own
plugins/<slug>/orprojects/<slug>/repository after explicit source and version-control authorization, and must meet every rule inDurable repositoriesbelow.
Scratch and durable transitions
- Use supported Hermes settings first for profile configuration.
- Don't commit, push, publish, or deploy scratch work.
- If scratch work becomes durable, stop. Follow the authorization rule in
Git and AGENTS.md files, then move plugin code toplugins/<slug>/or other project code toprojects/<slug>/.
Durable repositories
- Each durable repository under
plugins/<slug>/orprojects/<slug>/must have its own Git repository, GitHub repository, and remote for that GitHub repository. - Commit its Mise tasks, run local CI through
mise run ci, and make GitHub CI runmise run ci.
Git and AGENTS.md files
- Use the GitHub owner and commit identity configured for the workspace.
- Don't add AI co-author credit or AI-generated commit trailers.
- Every repository or worktree must have a root
AGENTS.md. An inherited upstream file is valid only while it fits that repository or worktree. - Add a nested
AGENTS.mdonly when a real subtree needs different local rules, and keep only that difference in it. - Before any Git or GitHub action, ask the user to start an explicit source or version-control task for the GitHub-backed repository. That task must authorize each specific action before it occurs.
Profile isolation and delivery
- Keep each profile and paired workspace isolated unless the user directs a cross-profile change. This includes config, sessions, skills, plugins, cron, and memory.
- Verify the local gateway process, platform adapter, and transport before promising cross-surface delivery.
- A local TUI stores cron output without live delivery. Notifications need an explicit gateway-connected destination.
Future profile contract
- Pair
<profile-config-root>/<name>with<profile-workspaces-root>/<name>using the same profile name. - Set that profile's
terminal.cwdto its paired workspace. - Define a different role in each named profile's
SOUL.mdand assign a different Honcho AI peer. - Add a pairing section to each workspace's
AGENTS.md.
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.

