agentleFS
brianwestphalbrianwestphal/glassbox/AGENTS.md

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

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

    Read CLAUDE.md (project overview, architecture, conventions, the ticket-driven workflow, testing) and the maintained AI summaries in

    line 7
  2. Very specific:

    Read those before diving into source.

    line 16
  3. Distinctive:

    Keep durable repository guidance in CLAUDE.md.

    line 48

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

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

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 thisDoc
Open a diff for reviewglassbox --uncommitted (or --commit/--branch/--files/--diff/--ground-truth)2, 18
Record your rationale/proof on a lineglassbox note add --file <p> --lines <A[-B]> --kind <k> --body <text|-> → commit .pr-notes/20
Prove a visual/behavioral changewrite a version: 2 manifest, run glassbox --ground-truth <manifest>26, proof-export-guidance
Apply the reviewer's feedbackread <repo>/.glassbox/latest-review.md (prose) and act on each annotation by category6
Consume feedback programmaticallyread the structured <repo>/.glassbox/latest-review.json (annotations grouped by comparison, region pixel coords, ground-truth context)6
Act automatically on completionlaunch 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 yourespond to the glassbox-channel MCP event: read latest-review.md, apply17

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 -->

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.