harness-eval: Command for Claude Code

.cursor/commands/harness-lint.md

harness-lint is a command for Claude Code, Cursor from redhat-community-ai-tools/harness-eval. It costs 0 tokens per session (222 once invoked), scanned A, original, Apache-2.0.

A fast checker for an AI agent setup that applies 107 fixed rules and system-level analysis without using a language model. It produces a reproducible report suitable for development or continuous integration checks.

In plain words
What is it for?
Use it to inspect the current project’s agent setup, review lint findings, or generate a JSON report for a file or CI process.
Why use it?
It can reveal setup problems consistently and quickly, without variable model output. The report brings configuration inventory, token limits, triggers, dependencies, findings, and inspection details into one place.

Command for Claude CodeCursor

Written for Claude Code and Cursor: shipped in a Claude Code plugin, but also installed under .cursor/.

This is redhat-community-ai-tools/harness-eval's own configuration. It tells Claude Code and Cursor how to work on harness-eval itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything harness-eval configures →

Part of the harness-eval plugin — 5 skills, 6 commands shipped together

Reuse

Borrowing it

Nothing to install: this file belongs to redhat-community-ai-tools/harness-eval. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/redhat-community-ai-tools/harness-eval/main/.cursor/commands/harness-lint.md
Clone the repo
git clone --depth 1 https://github.com/redhat-community-ai-tools/harness-eval

Made for: Claude Code, Cursor.

Or install harness-eval, the plugin that ships this one along with the rest of its 5 skills, 6 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for harness-lint

README.md
[![agentmods](https://agentmods.dev/badge/commands/redhat-community-ai-tools/harness-eval/harness-lint/github.svg)](https://agentmods.dev/commands/redhat-community-ai-tools/harness-eval/harness-lint)
Your own site
<a href="https://agentmods.dev/commands/redhat-community-ai-tools/harness-eval/harness-lint"><img src="https://agentmods.dev/badge/commands/redhat-community-ai-tools/harness-eval/harness-lint/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for harness-lint

Your own site · 80×15
<a href="https://agentmods.dev/commands/redhat-community-ai-tools/harness-eval/harness-lint"><img src="https://agentmods.dev/badge/commands/redhat-community-ai-tools/harness-eval/harness-lint.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 222 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00222
Opus 5 $0.00000 $0.00111
Sonnet 5 $0.00000 $0.00044
Haiku 4.5 $0.00000 $0.00022

Measured 6d ago against content hash 78eaff57e1f0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

harness-lint scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/commands/harness-lint.md · 26 lines

What it actually says

Eval Setup Lint

Run 108 deterministic rules + system-level analysis on the agent setup. No LLM. Fast, reproducible, CI-suitable.

Instructions

  1. Ask the user where to present results: terminal or file.

  2. Run the lint command on the current project:

uvx --from harness-eval harness-eval harness-lint .

For JSON output (if the user prefers file output):

uvx --from harness-eval harness-eval harness-lint . --format json

If uvx is not available, fall back to pip install harness-eval and use harness-eval directly.

  1. Present the report. Include all sections: inventory, token budget, trigger analysis, dependencies, findings, and inspection summary.

At the end of the report, include: Evaluated with: harness-eval v{version} (cursor-command) where {version} comes from uvx --from harness-eval harness-eval --version or pip show harness-eval.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago Changed 78eaff57e1f0
  2. 10d ago First seen · 26 lines · 0 tokens per session scan A d4e7d237afd1

Subscribe to this mod's changes

harness-lint is a command published in the GitHub repository redhat-community-ai-tools/harness-eval (27 stars, last pushed 3d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 222 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.