Harness Eval
Deterministic lint, security audit and merge-gate checks for the configuration your AI coding agents run on — 92 rules, no LLM, no network, identical output every run.
- Source repo
- redhat-community-ai-tools/harness-eval
- Stars
- ★ 36
- Last updated
- 1d ago
- FARS reviewed
- Nov 23, 2026
- License
- Apache-2.0
- Primary language
- Python
- FA score
- 61/100 · Some gaps
At a glance
- How it runs
- Works with
- Universal · cross-platformClaude Code · OpenAI API · Claude API
- Cost
- Free, no paid service needed
- Setup effort
- Low · running in minutes
- You'll need
- Typical use
- A platform or DevEx team wiring configuration health into an agent-driven auto-merge policy: harness-autonomy emits PASS / FAIL / REVIEW_REQUIRED and the JSON evidence block is read by the policy engine for caching and audit.
- Not a fit if
- Teams that need runtime behaviour testing; this only reads configuration files.
- Teams wanting a tool to approve a pull request for merge; it explicitly does not decide that.
- Repositories without a Python 3.11+ runtime available in CI.
- Maintenance
- Commits in the last 30 dayslast commit 2026-11-22
- Source review
- 61/100 · Some gaps
What does this agent do, and when should you use it?
Harness Eval is a Python command-line tool that checks the configuration an AI coding agent runs with: instruction files, skills, commands, hooks, MCP configs, agent definitions and pipeline harnesses. It auto-detects which assistants a repository uses (Claude Code, Cursor, Copilot, Gemini CLI, Codex CLI, OpenCode, Windsurf, Cline, fullsend), merges every discovered component into a single component graph, and runs 92 deterministic rules over that graph — so it can see problems that span files. No LLM is called and no network request is made, which means the same input produces the same answer every run. Four primary commands sit on top: harness-autonomy, harness-gate, harness-security and harness-lint, plus harness-review (LLM rubric review), rules, baseline and doctor. Every rule declares its effect (block, policy, signal or advice), its tier and its scope, and commands select only on effect — which is why the autonomy set is 'decidable and corpus-passed' by construction. Output is available as text, JSON or SARIF with coverage and evidence blocks (setup fingerprint, git revision, rule-catalog digest), so a policy engine can cache or audit a verdict.
Discovery comes first: the tool walks documented per-assistant paths — CLAUDE.md, .claude/settings.json, .claude/agents/, .mcp.json and .claude/rules/ for Claude Code; .cursor/rules/, .cursor/hooks.json and .cursor/mcp.json for Cursor; .github/copilot-instructions.md, .github/instructions/ and .github/prompts/ for Copilot; plus AGENTS.md, GEMINI.md, .opencode/, .codex/ and harness/*.yaml pipeline harnesses, and .lola/modules/ third-party packages. All discovered components land in one graph, which lets PAIRWISE and SETUP rules fire: a hook that reads credentials and forwards them to a network-capable MCP server, a command whose allowed-tools does not cover what its instructions use, a permissions.deny that blocks a tool CLAUDE.md tells the agent to use. Rules are then executed with three declared axes: effect (block = a defect, policy = a fact needing a trust decision, signal = a heuristic claim, advice = quality), tier (gating, provisional, advisory) and scope (FILE, FILE_FS, PAIRWISE, SETUP). Each command selects a subset: harness-autonomy runs corpus-passed block and policy rules and returns PASS, FAIL or REVIEW_REQUIRED (exit 0/1/2, 64 for usage errors, 70 for internal errors); harness-gate runs block rules at gating tier; harness-security runs policy, signal and security-category block rules with optional YARA, OSV lookup and LLM review; harness-lint runs advice rules plus system analysis of token budget, triggers and dependencies. The report — text, JSON or SARIF — carries a coverage block (which rules ran, which did not apply and why, skipped composed layers, baseline suppressions) and an evidence block; --compare narrows the verdict to findings the change introduced, baseline supports incremental adoption, and .harness-eval/autonomy-policy.yaml records accepted policy facts as waived with a reason.
- A platform or DevEx team wiring configuration health into an agent-driven auto-merge policy: harness-autonomy emits PASS / FAIL / REVIEW_REQUIRED and the JSON evidence block is read by the policy engine for caching and audit.
- A repository that uses Claude Code, Cursor and Copilot at once and wants one inventory instead of one linter per assistant.
- A security reviewer who needs a prioritised reading list: harness-security surfaces disabled permission prompts, wildcard Bash grants, floating image tags and injection phrases found in prompts.
- A PR author who only wants problems introduced by this change to gate: --compare against a base checkout keeps pre-existing findings in a separate pre_existing list.
- A team maintaining fullsend pipeline harnesses that needs agent prompt, model, image, policy, scripts and output contract to agree with each other.
- A legacy repository adopting the tool gradually: generate a baseline first and pass --baseline afterwards instead of fixing all historical findings at once.
Key setup facts
Pulled from the install and usage notes below. The project README has the current values.
- Install / run
pip install harness-eval
- Config files
.harness-eval/autonomy-policy.yaml.harness-eval-baseline.json- Runtime
- Python 3.11
How do you install or deploy this agent?
The tool is published on PyPI as harness-eval and requires Python 3.11 or newer.
pip install harness-evalConfirm the CLI and the rule catalog are available:
harness-eval rules --effect blockThe README also documents a GitHub Action, a Tekton Task, a Claude Code plugin, Cursor commands and a pre-commit hook; their setup lives in docs/INSTALL.md in the repository.
How do you use this agent?
Run any of the four main commands against a repository root. No API key is needed and nothing leaves the machine.
harness-eval harness-autonomy .
harness-eval harness-gate .
harness-eval harness-security .
harness-eval harness-lint . --allharness-autonomy exits 0 for PASS, 1 for FAIL, 2 for REVIEW_REQUIRED, 64 on a usage error and 70 on an internal error. To let only findings introduced by a change decide the verdict, compare against the base revision:
harness-eval harness-autonomy . --compare ../base-checkoutRecord the policy facts you accept in a file kept out of the scanned tree or protected by CODEOWNERS:
# .harness-eval/autonomy-policy.yaml
accept:
- rule: harness/image-unpinned
file: harness/*.yaml
reason: platform images float by design; tracked in SEC-42Wire it into pull requests as a GitHub Actions step; the step's autonomy-verdict output is PASS, FAIL or REVIEW_REQUIRED:
- uses: redhat-community-ai-tools/harness-eval/.github/actions/harness-eval@main
with:
autonomy-policy: .harness-eval/autonomy-policy.yaml
autonomy-allow-review: "false"Adopt incrementally by writing a baseline and passing it on later runs:
harness-eval baseline . --output .harness-eval-baseline.json
harness-eval harness-lint . --baseline .harness-eval-baseline.jsonSuppress single findings in place with <!-- evaluator-ignore: rule/id --> for a whole file or <!-- evaluator-ignore-next-line: rule/id --> for one line; block-effect rules cannot be suppressed this way. Custom YAML regex rules go in .harness-eval/rules/ and are loaded into harness-lint with --rules-from-target:
harness-eval harness-lint . --rules-from-targetid: custom/no-sudo
severity: error
description: Flag sudo usage in skills
suggestion: Remove sudo; skills should not require root access.
target: skill
category: security
patterns:
- label: sudo command
regex: '\bsudo\b'
message: "Found '{{label}}' on line {{line}}"Project YAML rules always carry effect signal, so they can run in lint but never enter a gate.
Safety boundaries, hardening & integrations
Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.
Declared capability surface (blast radius)
Can run terminal commands; pair with approval gates or container/OS sandboxing.
Modifies local files; work on a clean Git branch or dedicated worktree.
What are this agent's strengths and limitations?
- Runs fully offline with no LLM: 92 deterministic rules mean the same configuration yields the same verdict on every run, which is what a CI gate needs.
- One component graph across every detected assistant, so rules catch cross-file problems a per-file linter cannot see — a hook leaking credentials to an MCP server, an allowed-tools list that does not cover its own command instructions.
- The effect axis separates hard defects (block), trust decisions (policy), heuristics (signal) and quality (advice); harness-autonomy only ever consumes block and policy rules at gating or provisional tier.
- JSON and SARIF output carry coverage plus evidence (setup fingerprint, git revision, rule-catalog digest), so a policy engine can cache or audit a verdict.
- --compare restricts the verdict to findings the change introduced, with the rest listed under pre_existing; the GitHub Action does this on pull requests by default.
- Nothing from the scanned tree executes: project YAML rules are declarative regexes whose effect is always signal, so they can never enter a gate.
- Static configuration analysis only — it says nothing about how the agent actually behaves at runtime.
- Discovery is tied to the documented per-assistant paths (.claude/, .cursor/rules/, harness/*.yaml and so on); bespoke layouts need custom rules to be covered.
- Needs a Python 3.11+ runtime; no standalone binary distribution is documented.
- harness-review needs your own Gemini, Anthropic or OpenAI-compatible endpoint credentials, and --cve OSV lookup needs network access — both depart from the deterministic path.
- 25 of the 92 rules are provisional and 45 are advisory, so a clean report does not mean every check ran at gating confidence.
- It explicitly does not decide whether a pull request is safe to merge; branch protection, required checks and CODEOWNERS evidence are still needed.
How does this agent compare with similar options?
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| Harness Eval This agent | 61 · Some gaps | CLIFree | ★ 36 | 1d ago | Python | Claude Code · OpenAI API · Claude API |
| LintLang | 81 · Good | CLIFree | ★ 147 | 17d ago | Python | Claude Code |
| Aurite Agent Verifier | 60 · Some gaps | Agent plugin / skillFree | ★ 44 | 1mo ago | — | Codex · Claude Code |
| OpenQodex | 67 · Some gaps | CLIFree + model costs | ★ 1.2k | today | TypeScript | Codex · Claude Code |
How does FollowAgents rate this agent?
Why each dimension lost points
Evidence shows offline-by-default operation, no execution of scanned files, size limits, default exclusion of .env/credentials/*.pem, and redaction of likely secrets before LLM prompts; skills declare only Bash and Read. Deductions: dependencies use loose lower bounds (click>=8.0, pydantic>=2.0, scikit-learn>=1.0) with no lockfile or hash pinning, so dependency-security evidence is thin; rollback is limited to baseline and policy acceptance with no guidance on undoing applied changes; source attribution rests on Apache-2.0 and an author name while publisher identity is unverified.
README and CLAUDE.md agree on commands, exit codes (0/1/2/64/70), rule count (92), and CI checks (badge count vs registry), giving good self-consistency; dependencies are common PyPI packages split into optional extras with clear availability notes; failure messaging includes a doctor command, distinct usage/internal error codes, and skip reasons. Deduction: no complete degradation story for missing dependencies or restricted networks, so not full marks.
Docs cover many tools (Claude Code, Cursor, Copilot, Gemini CLI, Codex, OpenCode, Windsurf, Cline, fullsend) and install forms (CLI, GitHub Action, Tekton, plugin, pre-commit), showing broad scenario fit; skill descriptions state clear boundaries (lint does not judge qualitatively, review does, security audits) with distinct triggers; environment fit includes offline, air-gapped, resource caps, and recursive exclusions. Deduction: no explicit statement on non-Python or Windows platforms.
Information architecture is clear with sectioned README, generated tables, and doc links; INSTALL.md is thorough; naming is stable (commands, rule ids, exit codes); examples are plentiful (YAML rules, GitHub Action, policy file); LICENSE is full Apache-2.0; CHANGELOG, release script, and version 8.0.1 are consistent. Deductions: known limitations are scattered rather than centralized; maintenance responsibility rests on SECURITY.md contacts and an author name while the publisher is unverified.
Output usability is strong: JSON/SARIF structured output, coverage and evidence blocks, report-format files, and clear exit-code semantics for CI and policy engines; marginal value is clear because the cross-file component graph and effect/tier axes exceed what per-file linters offer; cost-benefit is favorable with offline determinism, no default LLM, resource caps, and incremental baselines. Deduction: optional LLM review and CVE lookup add network dependencies and some cost.
claim_traceability is good: the rule catalog is generated into docs/rules-reference.md, CI checks the README badge count against the registry, and evidence blocks carry fingerprint, revision, and digests; cross_source_corroboration is supported by README, CLAUDE.md, INSTALL.md, and CI workflows agreeing; fact_inference_separation is explicit via block/policy/signal/advice and gating/provisional/advisory, with heuristics excluded from gates. Deduction: some precision claims (e.g., >=97%) depend on a corpus whose details are not in the sample, so not full marks.
- Publisher identity is unverified; verify the PyPI package and repository provenance before installing.
- Dependencies use loose lower bounds with no lockfile; pin versions and audit dependencies for production use.
- harness-security --cve and LLM review make network calls and may send redacted content; confirm redaction meets compliance needs.
- The GitHub Action example references @main; pin to a specific commit or version.
- Precision claims depend on a corpus whose details are not in the sample; do not infer real false-positive rates from them.
FAQ
Does it call an LLM or send my configuration anywhere?
What do I do with findings I don't want to fix right now?
<!-- evaluator-ignore: rule/id --> or <!-- evaluator-ignore-next-line: rule/id --> (block rules cannot be suppressed inline); or adopt incrementally with harness-eval baseline . --output .harness-eval-baseline.json and --baseline. Accepted findings appear as waived with the recorded reason and are never hidden, and a block rule cannot be accepted.Which assistants does it understand?
Can I add my own checks?
--rules-from-target; such rules are fixed at effect signal and can never enter a gate. For anything beyond a regex, write a Python rule loaded only from the installed harness_eval.rules entry point, as described in CONTRIBUTING.md.Is a PASS from harness-autonomy a merge approval?
Is Harness Eval free?
Is Harness Eval open source?
Is Harness Eval safe to use?
Is Harness Eval still maintained?
Who makes Harness Eval?
Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.