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.

Stars
★ 36
Last updated
1d ago
FARS reviewed
Nov 23, 2026
License
Apache-2.0
Primary language
Python

At a glance

How it runs
CLIAgent plugin / skill
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
Python 3.11+Shell / CLILocal filesystem
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.

  1. 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.
  2. A repository that uses Claude Code, Cursor and Copilot at once and wants one inventory instead of one linter per assistant.
  3. 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.
  4. 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.
  5. A team maintaining fullsend pipeline harnesses that needs agent prompt, model, image, policy, scripts and output contract to agree with each other.
  6. 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-eval

Confirm the CLI and the rule catalog are available:

harness-eval rules --effect block

The 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 . --all

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

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

Wire 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.json

Suppress 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-target
id: 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)

Local shell command execution

Can run terminal commands; pair with approval gates or container/OS sandboxing.

Local filesystem read/write

Modifies local files; work on a clean Git branch or dedicated worktree.

What are this agent's strengths and limitations?

Pros
  • 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.
Limitations
  • 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?

FollowAgents source review · FARS-2.1
Some gaps
61/ 100 5-point scale 3.1 / 5
Trust 16/29
Reliability 9/14
Adaptability 12/18
Convention 10/18
Effectiveness 9/13
Verifiability 5/8
Why each dimension lost points
Trust16 / 29 · 2.8/5

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.

Reliability9 / 14 · 3.2/5

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.

Adaptability12 / 18 · 3.3/5

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.

Convention10 / 18 · 2.8/5

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.

Effectiveness9 / 13 · 3.5/5

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.

Verifiability5 / 8 · 3.1/5

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.

Risks and how to mitigate them
  • 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.
Evidence confidence: Low Reviewed Nov 23, 2026 Reviewed revision 1284f43e8c48
See the full review method →
Maintain this project? Add the FARS badge to your README

The badge shows the current review score and verdict and links back to this page. It refreshes about once an hour after a re-review.

FARS

[![FARS review](https://followagents.com/badge/harness-eval.svg)](https://followagents.com/en/agents/harness-eval)
<a href="https://followagents.com/en/agents/harness-eval"><img src="https://followagents.com/badge/harness-eval.svg" alt="FARS review"></a>

FAQ

Does it call an LLM or send my configuration anywhere?
No by default. harness-autonomy, harness-gate, harness-lint and harness-security make no network calls. Only harness-security --cve (OSV lookup) and harness-review (Gemini, Anthropic or any OpenAI-compatible endpoint) are opt-in, and likely secrets are redacted before a prompt leaves the machine.
What do I do with findings I don't want to fix right now?
Three paths: accept policy facts in .harness-eval/autonomy-policy.yaml; suppress in place with <!-- 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?
Claude Code, Cursor, Windsurf, Cline, Copilot, Gemini CLI, OpenCode, Codex CLI, fullsend pipeline harnesses, and third-party .lola modules. Files from all of them are merged into one component graph.
Can I add my own checks?
Yes. Drop YAML regex rules in .harness-eval/rules/ and load them into harness-lint with --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?
No. It is one of three deterministic evidence inputs to an auto-merge policy, alongside repository preconditions and facts about the change such as CI being green on that exact SHA. It answers whether the agent configuration this change ships actually works and whether the change widened a trust boundary.
Is Harness Eval free?
Yes. Harness Eval is free to use and does not need a paid service.
Is Harness Eval open source?
Yes. The source code is on GitHub (redhat-community-ai-tools/harness-eval) under the Apache-2.0 licence.
Is Harness Eval safe to use?
FollowAgents' FARS review (Nov 23, 2026) scored Harness Eval 16/29 on trust and safety. None of the eight safety controls the review checks for was missing outright.
Is Harness Eval still maintained?
Yes. The latest commit on GitHub is from 2026-11-22, within the last 30 days.
Who makes Harness Eval?
Harness Eval is published on GitHub by the account redhat-community-ai-tools. FollowAgents has not verified which person or company is behind that account.
Was this page helpful?
View on GitHub ↗ Install ↓

Compare agents like this one

The same FARS review applied across the shortlist this agent qualifies for.

Related concepts