agentleFS
paladinipaladini/harness-score/AGENTS.md

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.

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
  1. Very specific:

    Check IDs (CTX-01, …) are public API: never renumber or reuse them.

    line 59
  2. Distinctive:

    Don't make them async as a perf fix.

    line 62
  3. Very specific:

    Credit issue reporters and external contributors: When a fix closes a community-reported bug or lands work suggested in an issue, name the …

    line 66
  4. Very specific:

    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 …

    line 77

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

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

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.md holds the check catalog with one {#<check-id>} anchor per check.
  • plugins/ — one directory per tool (cursor/, claude-code/, …), plus shared/ holding the single prose source templated into each (npm run plugins:generate, checked by npm run plugins:sync-check). Root .claude-plugin/marketplace.json lists 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), typechecks packages/cli/src/ and the packaging-level consumer smoke test (packages/cli/test/types/smoke.ts, imports from dist/, not src/), 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 touching packages/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/cli keeps zero runtime dependencies (fast npx, 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.ts and packages/cli/test/maturity-sync.test.ts enforce 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.
  • Check IDs (CTX-01, …) are public API: never renumber or reuse them.
  • Check.run(ctx) and ScanContext.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 changeset at the repo root) in the same PR — see RELEASING.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.md and CONTRIBUTING.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 main ahead of origin/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.

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.