agentleFS
sheldonxxxxsheldonxxxx/Hashi/AGENTS.md

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.

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
  1. Distinctive:

    Write scope governs ChatGPT's file mutation and checks.

    line 29
  2. Distinctive:

    No per-chat ACL, automatic updater, or automatic support upload.

    line 36
  3. Very specific:

    Read the relevant source, callers, and tests with the normal file tools before changing behavior.

    line 40
  4. Distinctive:

    Prefer focused checks first, then the full suite once.

    line 50
  5. Distinctive:

    Run each check as its own command.

    line 65
  6. Common:

    Keep the public information architecture (see docs/README.md and CONTRIBUTING.md): no internal milestone labels, diary prose, obsolete …

    line 88
  7. Distinctive:

    After renames or removals, grep Markdown for old filenames and fix every inbound link.

    line 91
  8. Distinctive:

    Commit, push, tag, or open a pull request only when the task authorizes it (see CONTRIBUTING.md).

    line 96
  9. Very specific:

    Commit subjects use Conventional Commits with an optional scope: fix(manager): ..., feat: ..., test: ..., chore(release): ....

    line 99
  10. Very specific:

    Add user-visible behavior changes to the ## Unreleased section of CHANGELOG.md.

    line 105
  11. Very specific:

    Do not bump versions, edit release metadata, or hand-edit lockfiles unless the task is a release or dependency change.

    line 111

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

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 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 internal ignored audit state: never rewrite, delete, or scan it in tests. Never touch vendored .agents/skills content.

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_roots ceiling.
  • 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 touchesRun
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 Markdownuv run pytest -q tests/test_public_docs.py
pyproject.toml or uv.lock dependenciesFull Python suite

Run each check as its own command. Full-suite commands:

uv run pytest -q
cd runtime/pi-host-adapter && npm test
cd web && npm run lint && npm run format:check && npm run build

CLI smoke that mutates nothing:

uv run hashi --help
uv run hashi doctor --offline

Documentation 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 example fix/notification-lock-test, unless the task names a branch.
  • Add user-visible behavior changes to the ## Unreleased section of CHANGELOG.md. Internal refactors, test-only changes, and doc wording fixes don't need an entry.
  • hashi/static/dist/ is tracked. After any web/ source change, run npm --prefix web run build and 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 lock or npm install in 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.