agentleFS
doggy8088doggy8088/agentready/AGENTS.md

agentready

AGENTS.md34 starsChanged 3 months agoMITView on GitHub

AgentReady.js: a zero-dependency browser drop-in (Bun + TypeScript 7 strict) that turns semantic HTML into WebMCP tools. Safety model is the product: read README.md's "Safety model" section before touching src/policy.ts, src/semantic.ts, src/tools/, or src/inspector.ts. These are git-tracked build artifacts, regenerated by bun run build (+ bun run build:min): - dist/agentready.js, dist/agentready.min.js (the shippable bundles) - demo/store/vendor/agentready.js (bundle copy used by the demo store) - demo/store/app.js, demo/test-page/status.js (compiled from their .ts siblings) Rule: after editing anything under src/ or demo/**/*.ts, run…

The file

Files
AGENTS.md

AGENTS.md — working in this repo

AgentReady.js: a zero-dependency browser drop-in (Bun + TypeScript 7 strict) that turns semantic HTML into WebMCP tools. Safety model is the product: read README.md's "Safety model" section before touching src/policy.ts, src/semantic.ts, src/tools/, or src/inspector.ts.

Generated files — do not hand-edit

These are git-tracked build artifacts, regenerated by bun run build (+ bun run build:min):

  • dist/agentready.js, dist/agentready.min.js (the shippable bundles)
  • demo/store/vendor/agentready.js (bundle copy used by the demo store)
  • demo/store/app.js, demo/test-page/status.js (compiled from their .ts siblings)

Rule: after editing anything under src/ or demo/**/*.ts, run bun run build (and build:min when the min bundle exists in your change) and commit the regenerated artifacts in the SAME commit as the source change. CI fails if committed artifacts don't match a fresh build. Gitignored: build/, dist/*.d.ts.

Commands

  • bun install — deps (Bun only; npm/yarn lockfiles are not maintained)
  • bun run typecheck — strict tsc, covers src/demo/tests/scripts
  • bun run lint / bun run format — Biome check / format
  • bun test tests/agentready.test.ts — unit tests (happy-dom; fast)
  • bun run build && bun test tests/e2e — E2E (Playwright; real Chrome preferred, bundled Chromium fallback)
  • bun run size — bundle budget gate (75 KB raw / 45 KB min)
  • make ci — full local gate (typecheck → lint → types → build → min → unit → size → e2e)
  • bun run demo / make demo — dev server at :8788 (make demo PORT=… overrides)

Conventions

  • TypeScript strict everywhere; no any in src/ (tests may stub loosely).
  • Unit tests: tests/agentready.test.ts, bun:test + happy-dom, mount()/makeEnv() helpers; add to a topical describe block.
  • Registration/log failures: console.warn('[AgentReady] …'), never throw out of boot.
  • Safety refusals: human-readable strings starting with Refused:.
  • Commits: conventional (fix(policy): …, docs: …, test: …).
  • video/ is a separate package (own lockfile + lint config) — root configs don't apply there.

Safety-sensitive files

Changes to src/policy.ts (classification regexes/levels), src/semantic.ts (discovery + redaction), src/inspector.ts (human approval gate), and src/tools/** require matching unit tests asserting both the refused and allowed cases. The README "Safety model" table is the contract; the test suite (tests/agentready.test.ts) pins its guarantees.

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.