Hashi
AGENTS.md1 starsChanged 2 months agoMITView on GitHub
Instructions for AI/coding agents contributing to this repository. For installing or configuring Hashi on behalf of a user, follow docs/AGENT_SETUP.md. For human contributor detail, see CONTRIBUTING.md. - hashi/ — MCP service, Manager API, CLI, Node service, agent plugins and their supervisor, run coordination, diagnostics, notifications. - web/ — Manager UI (build output packaged under hashi/static/dist/). - runtime/pi-host-adapter/ — Pi plugin (npm package). - tests/test_*.py, runtime/pi-host-adapter/test/*.test.mjs, web/tests/*.spec.ts — test suites. - docs/ — public docs indexed by docs/README.md. - .workspace-handoff/ is…
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,040 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.
- frontend-designSkill
- shadcn-uiSkill
- web-design-guidelinesSkill
The file
We split this AGENTS.md into the rules it gives an agent
11 rules. About 1 is common, 6 are distinctive, and 4 are very specific to this project.
≈1
Common · estimate
Many files like this have a rule of this kind.
≈6
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
- could be automatic: a setting could enforce it
- Distinctive: line 29
Write scope governs ChatGPT's file mutation and checks.
- Distinctive: line 36
No per-chat ACL, automatic updater, or automatic support upload.
- Very specific: line 40
Read the relevant source, callers, and tests with the normal file tools before changing behavior.
- Distinctive: line 50
Prefer focused checks first, then the full suite once.
- Distinctive: line 65
Run each check as its own command.
- Common: line 88
Keep the public information architecture (see docs/README.md and CONTRIBUTING.md): no internal milestone labels, diary prose, obsolete …
- Distinctive: line 91
After renames or removals, grep Markdown for old filenames and fix every inbound link.
- Distinctive: line 96
Commit, push, tag, or open a pull request only when the task authorizes it (see CONTRIBUTING.md).
- Very specific: line 99
Commit subjects use Conventional Commits with an optional scope: fix(manager): ..., feat: ..., test: ..., chore(release): ....
- Very specific: line 105
Add user-visible behavior changes to the ## Unreleased section of CHANGELOG.md.
- Very specific: line 111
Do not bump versions, edit release metadata, or hand-edit lockfiles unless the task is a release or dependency change.
≈ “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
AGENTS.md
Instructions for AI/coding agents contributing to this repository. For installing or configuring Hashi on behalf of a user, follow docs/AGENT_SETUP.md. For human contributor detail, see CONTRIBUTING.md.
Source map
hashi/— MCP service, Manager API, CLI, Node service, agent plugins and their supervisor, run coordination, diagnostics, notifications.web/— Manager UI (build output packaged underhashi/static/dist/).runtime/pi-host-adapter/— Pi plugin (npm package).tests/test_*.py,runtime/pi-host-adapter/test/*.test.mjs,web/tests/*.spec.ts— test suites.docs/— public docs indexed by docs/README.md..workspace-handoff/is internal ignored audit state: never rewrite, delete, or scan it in tests. Never touch vendored.agents/skillscontent.
Mandatory architecture invariants
- The Bridge never opens workspace roots directly and never falls back to a
local checkout; the authoritative Node owns files, Git, handoffs, and
adapter secrets under its host
allowed_rootsceiling. - A runtime type never selects a destination; only an exact same-Node
(workspace_id, adapter_id)route with its security binding admits a run. - Write scope governs ChatGPT's file mutation and checks; route enablement governs runs. One never implies the other.
- Bridge never replays prompts or approvals. Recovery rebinds only what the adapter positively identifies; everything else becomes interrupted or orphaned with stale interactions.
- Tokens stay out of APIs, diagnostics, logs, errors, events, docs, and chat. One-time token output stays local.
- No per-chat ACL, automatic updater, or automatic support upload.
Inspect before edits
Read the relevant source, callers, and tests with the normal file tools
before changing behavior. Check current --help output and package bin
entries before documenting a command. Cross-check claimed tool names,
counts, scopes, route admission, continuation rules, service paths, logging
bounds, and image limits against hashi/ and tests. If docs
expose a real source inconsistency, report it instead of changing
architecture outside the task scope.
Test commands
Prefer focused checks first, then the full suite once. Preserve real failure status; do not mask exits. Do not install dependencies or browsers implicitly; report environment-blocked checks instead.
Pick checks by what the change touches. These mirror the CI jobs in
.github/workflows/ci.yml:
| Change touches | Run |
hashi/, scripts/, tests/ | uv run pytest -q tests/test_<area>.py, then uv run pytest -q |
web/ | npm --prefix web run lint, npm --prefix web run format:check, npm --prefix web run build; npm --prefix web run test:e2e only if a Playwright browser is already installed |
runtime/pi-host-adapter/ | npm --prefix runtime/pi-host-adapter test |
| Tracked Markdown | uv run pytest -q tests/test_public_docs.py |
pyproject.toml or uv.lock dependencies | Full Python suite |
Run each check as its own command. Full-suite commands:
uv run pytest -qcd runtime/pi-host-adapter && npm testcd web && npm run lint && npm run format:check && npm run buildCLI smoke that mutates nothing:
uv run hashi --help
uv run hashi doctor --offlineDocumentation consistency
Keep the public information architecture (see docs/README.md and CONTRIBUTING.md): no internal milestone labels, diary prose, obsolete paths, personal data, or secrets in tracked docs. After renames or removals, grep Markdown for old filenames and fix every inbound link. Use generic paths and valid shell in code blocks.
Commits and pull requests
Commit, push, tag, or open a pull request only when the task authorizes it (see CONTRIBUTING.md).
- Commit subjects use Conventional Commits with an optional scope:
fix(manager): ...,feat: ...,test: ...,chore(release): .... Mark breaking changes with!(feat!: ...). Keep the subject short and imperative; explain the why in the body. - Name branches
<type>/<short-topic>, for examplefix/notification-lock-test, unless the task names a branch. - Add user-visible behavior changes to the
## Unreleasedsection of CHANGELOG.md. Internal refactors, test-only changes, and doc wording fixes don't need an entry. hashi/static/dist/is tracked. After anyweb/source change, runnpm --prefix web run buildand commit the regenerated assets in the same commit, removing stale hashed files the build replaced.- Do not bump versions, edit release metadata, or hand-edit lockfiles unless
the task is a release or dependency change; regenerate lockfiles with
uv lockornpm installin the owning package. - Pull request descriptions state the behavior change, affected boundaries (especially any invariant above), the checks run with their results, and screenshots for Manager UI changes.
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.

