harness-score
AGENTS.md545 starsChanged 2 months agoMITView on GitHub
A monorepo shipping AI coding harness engineering as a product: a guide (VitePress → GitHub Pages), the deterministic, harness-agnostic harness-score CLI, a growing family of thin per-tool plugins under plugins/ (Cursor is the flagship/most fully-developed target; see PLUGINS-ROADMAP.md for the others), and a GitHub Action. The repo dogfoods its own scanner: it must always score L4 (npm run scan). - packages/cli/ — the scanner. TypeScript, ESM, zero runtime deps. - packages/cli/src/checks/ — one file per dimension (see .cursor/rules/checks.mdc) - packages/cli/src/score.ts…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 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 repository5 other files it gives its agents.
- .cursor/rules/checks.mdcCursor rule
- .cursor/rules/core.mdcCursor rule
- .cursor/rules/docs-i18n-parity.mdcCursor rule
- pr-release-auditSkill
- releaseSkill
The file
We split this AGENTS.md into the rules it gives an agent
4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 59
Check IDs (CTX-01, …) are public API: never renumber or reuse them.
- Distinctive: line 62
Don't make them async as a perf fix.
- Very specific: line 66
Credit issue reporters and external contributors: When a fix closes a community-reported bug or lands work suggested in an issue, name the …
- Very specific: line 77
Fix external PRs on the contributor's branch: When finishing or correcting someone else's open PR, commit and push to that PR's head branch …
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 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
Agent Guide — harness-score
What this is
A monorepo shipping AI coding harness engineering as a product: a guide
(VitePress → GitHub Pages), the deterministic, harness-agnostic
harness-score CLI, a growing family of thin per-tool plugins under
plugins/ (Cursor is the flagship/most fully-developed target; see
PLUGINS-ROADMAP.md for the others), and a GitHub Action. The repo
dogfoods its own scanner: it must always score L4 (npm run scan).
Layout
packages/cli/— the scanner. TypeScript, ESM, zero runtime deps.packages/cli/src/checks/— one file per dimension (see.cursor/rules/checks.mdc)packages/cli/src/score.ts— the maturity model (levels L0–L4)
docs/— the VitePress guide.docs/guide/measure-and-improve.mdholds the check catalog with one{#<check-id>}anchor per check.plugins/— one directory per tool (cursor/,claude-code/, …), plusshared/holding the single prose source templated into each (npm run plugins:generate, checked bynpm run plugins:sync-check). Root.claude-plugin/marketplace.jsonlists the Claude Code entry.action/— composite GitHub Action wrapping the CLI.fixtures/level-0..4/— sample repos pinned to each maturity level by tests. Changing a check usually changes a fixture.
Project-local agent skill:
.agents/skills/pr-release-audit/SKILL.md— complete PR/release audit, including current official vendor documentation, site/docs parity, release metadata, and explicit contributor credit. Use it for PR and release work; its release-note and attribution gates are mandatory.
Build & test
npm test— builds the CLI (tsup), typecheckspackages/cli/src/and the packaging-level consumer smoke test (packages/cli/test/types/smoke.ts, imports fromdist/, notsrc/), then runs vitest.npm run lint— Biome (lints + checks formatting).npm run scan— self-audit; must report L4.npm run docs:build— builds the guide; must pass (dead links fail it).npm run bench— scan-time benchmark against a synthetic large repo; use it before/after touchingpackages/cli/src/scan.ts.- Tests MUST pass before any commit.
Non-negotiable conventions
- The CLI stays 100% deterministic: no LLM calls, no network, no telemetry,
no
Date.now()-dependent output. Filesystem reads and parsing only. packages/clikeeps zero runtime dependencies (fastnpx, no supply chain surface). Dev dependencies are fine.- The maturity model lives in three places that must change together:
packages/cli/src/score.ts(implementation),docs/guide/maturity-model.md(levels- dimension point totals),
docs/guide/measure-and-improve.md(check catalog).packages/cli/test/docs.test.tsandpackages/cli/test/maturity-sync.test.tsenforce that check IDs, points, dimension totals, and level thresholds all stay in sync across every one of those three files — not just anchors in the check catalog.
- dimension point totals),
- Check IDs (
CTX-01, …) are public API: never renumber or reuse them. Check.run(ctx)andScanContext.read()/.matching()are synchronous by contract — part of the public API (packages/cli/src/index.ts). Don't make them async as a perf fix; that's a breaking (major-version) change, not a drive-by tweak.- User-facing changes get a changeset (
npm run changesetat the repo root) in the same PR — seeRELEASING.md. - Credit issue reporters and external contributors. When a fix closes a
community-reported bug or lands work suggested in an issue, name the reporter
in the PR body, the changeset (per
RELEASING.md), and the eventual release notes — even if they did not open the PR. Use their public GitHub handle; do not invent attribution. - Public GitHub communication is English. PR and issue comments, review
bodies, and maintainer replies on this repository must be written in English,
even when a contributor wrote in another language. (You may use another
language in private chat elsewhere.) Changesets and release-note text are
English unless a maintainer explicitly requests otherwise — see
RELEASING.mdandCONTRIBUTING.md. - Fix external PRs on the contributor's branch. When finishing or
correcting someone else's open PR, commit and push to that PR's head
branch (usually on their fork). Do not land the work on local
mainahead oforigin/main; merge through GitHub after review.
Do not touch
fixtures/files unless you are deliberately changing what a maturity level means — they are test assertions, not examples to "improve".- Version numbers are bumped by the release skill, not ad hoc.
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.

