glassbox
AGENTS.md34 starsChanged 3 months agoMITView on GitHub
Guidance for AI coding agents. There are two distinct audiences — pick yours: Read CLAUDE.md (project overview, architecture, conventions, the ticket-driven workflow, testing) and the maintained AI summaries in docs/ai/: - docs/ai/code-summary.md — codebase map (directory tree, routes, schema, client modules, "where do I look for X"). - docs/ai/requirements-summary.md — synthesized requirements with status markers. Read those before diving into source. Run npm test, npm run lint, and npm run typecheck before finishing; keep the requirements docs + AI summaries…
- Installs packages
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 33,398 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 repository35 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- .cursor/rules/glassbox.mdcCursor rule
- .cursor/rules/hotsheet-instructions.mdcCursor rule
- .cursor/rules/hotsheet.mdcCursor rule
- .cursor/rules/hs-bug.mdcCursor rule
- .cursor/rules/hs-feature.mdcCursor rule
- .cursor/rules/hs-investigation.mdcCursor rule
- .cursor/rules/hs-issue.mdcCursor rule
- .cursor/rules/hs-requirement-change.mdcCursor rule
- .cursor/rules/hs-task.mdcCursor rule
- hotsheetSkill
- hotsheet-workerSkill
- hs-bugSkill
- hs-featureSkill
- hs-investigationSkill
- hs-issueSkill
- hs-requirement-changeSkill
- hs-taskSkill
- absorb-ticketsSkill
- analyze-code-qualitySkill
- check-code-hygieneSkill
- check-requirements-against-codeSkill
- glassboxSkill
- hotsheetSkill
- hotsheet-workerSkill
- hs-bugSkill
- hs-featureSkill
- hs-investigationSkill
- hs-issueSkill
- hs-requirement-changeSkill
- hs-taskSkill
- kerf-appSkill
- prep-major-releaseSkill
- technical-changelogSkill
- ux-reviewSkill
The file
We split this AGENTS.md into the rules it gives an agent
3 rules. About 0 are common, 2 are distinctive, and 1 is 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.
1
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 7
Read CLAUDE.md (project overview, architecture, conventions, the ticket-driven workflow, testing) and the maintained AI summaries in
- Very specific: line 16
Read those before diving into source.
- Distinctive: line 48
Keep durable repository guidance in CLAUDE.md.
≈ “Common” is an estimate: at least 1 in 5 of the 43,423 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
Guidance for AI coding agents. There are two distinct audiences — pick yours:
You are modifying the Glassbox codebase
Read CLAUDE.md (project overview, architecture, conventions,
the ticket-driven workflow, testing) and the maintained AI summaries in
docs/ai/:
docs/ai/code-summary.md— codebase map (directory tree, routes, schema, client modules, "where do I look for X").docs/ai/requirements-summary.md— synthesized requirements with status markers.
Read those before diving into source. Run npm test, npm run lint, and
npm run typecheck before finishing; keep the requirements docs + AI summaries in
sync with code changes.
You are integrating with Glassbox from your own project
You are an AI tool in a project that uses Glassbox to review your work. Read
docs/ai-integration.md — the full hub. Quick map:
| You want to… | Do this | Doc |
| Open a diff for review | glassbox --uncommitted (or --commit/--branch/--files/--diff/--ground-truth) | 2, 18 |
| Record your rationale/proof on a line | glassbox note add --file <p> --lines <A[-B]> --kind <k> --body <text|-> → commit .pr-notes/ | 20 |
| Prove a visual/behavioral change | write a version: 2 manifest, run glassbox --ground-truth <manifest> | 26, proof-export-guidance |
| Apply the reviewer's feedback | read <repo>/.glassbox/latest-review.md (prose) and act on each annotation by category | 6 |
| Consume feedback programmatically | read the structured <repo>/.glassbox/latest-review.json (annotations grouped by comparison, region pixel coords, ground-truth context) | 6 |
| Act automatically on completion | launch with --on-complete "<cmd>"; <cmd> runs at Complete Review with GLASSBOX_REVIEW_JSON/_MD/_ID/GLASSBOX_REPO_ROOT in env (e.g. file tickets, no AI in the loop) | 2 §2.3a |
| Get feedback pushed to you | respond to the glassbox-channel MCP event: read latest-review.md, apply | 17 |
The CLI is glassbox (npm install -g glassbox, or npx glassbox); it binds to
localhost only. Textual proof (logs, values) belongs in a proof/test-evidence
review note, not a screenshot. See docs/ai-integration.md
for the exact commands, flags, and contracts.
<!-- hotsheet:begin section=claude-adapter v=1 -->Shared Project Guidance (CLAUDE.md)
CLAUDE.md is the shared source of truth for this repository's engineering rules. Read it completely before making or reviewing changes, and follow it as if its contents appeared here. The filename reflects the project's history; the instructions apply equally to this tool.
- Project workflows are exposed as skills under
.agents/skills/. Use a skill when the user names it or the request clearly matches its description. - The skill adapters delegate to
.claude/skills/, the canonical source for workflows shared across AI tools. When changing a shared workflow, edit the canonical file and keep the adapter metadata in sync. - Claude tool names in shared documents describe capabilities, not required product-specific tools — use this tool's equivalent file-search, shell, editing, or web capability.
- Keep durable repository guidance in
CLAUDE.md; provider-specific configuration belongs in its provider's directory.
<!-- hotsheet:end section=claude-adapter -->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.

