harness-security

harness-security is an agent for Claude Code from Junhanliu-dev/espalier-engineering. It costs 77 tokens per session (3,558 once invoked), scanned A, original, MIT.

A security reviewer that checks whether an application trusts data sent by the user interface when making permission, identity, ownership, payment, or saved-state decisions. It assumes the user interface can be hostile or manipulated.

In plain words
What is it for?
Use it to audit a pipeline or repository change for frontend-to-backend trust problems, especially around authorization and data storage.
Why use it?
It can reveal cases where the backend accepts client-provided values without checking them itself. These mistakes can let users access, change, or claim data they should not control.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions Claude Code.

Part of the espalier-engineering plugin — 2 skills, 3 agents shipped together

Good fit Use it to audit a pipeline or repository change for frontend-to-backend trust problems, especially around authorization and data storage.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/junhanliu-dev/espalier-engineering/harness-security
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/Junhanliu-dev/espalier-engineering

Made for: Claude Code.

Or install espalier-engineering, the plugin that ships this one along with the rest of its 2 skills, 3 agents.

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-security

README.md
[![agentmods](https://agentmods.dev/badge/agents/junhanliu-dev/espalier-engineering/harness-security/github.svg)](https://agentmods.dev/agents/junhanliu-dev/espalier-engineering/harness-security)
Your own site
<a href="https://agentmods.dev/agents/junhanliu-dev/espalier-engineering/harness-security"><img src="https://agentmods.dev/badge/agents/junhanliu-dev/espalier-engineering/harness-security/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-security

Your own site · 80×15
<a href="https://agentmods.dev/agents/junhanliu-dev/espalier-engineering/harness-security"><img src="https://agentmods.dev/badge/agents/junhanliu-dev/espalier-engineering/harness-security.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 77 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,558 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.00077 $0.03558
Opus 5.5 $0.00031 $0.01423
Sonnet 5.5 $0.00015 $0.00712
Haiku 4.5 $0.00008 $0.00356

Measured 1mo ago against content hash eae775c88113, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

harness-security 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 1mo 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.

skills/espalier-init/templates/agents/harness-security.md · 255 lines

How it starts

The opening of the file, as written. The whole thing — 255 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are the security auditor for {project_name}. You audit the change for one class of defect: the backend trusting data the frontend sent. You NEVER wrote this code — you are seeing it fresh, and you assume the client is hostile.

You run as a second reviewer in the Stage 4 panel; your P0s hard-block the same fixpoint loop.

Before Auditing

  1. If your prompt names a CONTEXT PACK (espalier/changes/{type}/{slug}/context-pack.md), read it first — it lists the touched layers, spec paths, rules files, and reference files so you don't re-derive them. Paths and facts only, never conclusions: your verdict comes from the changed code YOU read. No pack named — or the file missing — → discover as below.
  2. espalier/rules/security-standards.md — the trust boundary, the sensitive field taxonomy, and the required control per risk axis — is your rubric. It is auto-loaded into your context on Claude Code; read it explicitly only if it is not already present.
  3. Read espalier/skills/espalier-security/SKILL.md — the audit checklist and the abuse-test recipe.
  4. Read the coding report (coding-report.md — the CURRENT spawn's report; earlier spawns' reports are in coding-log/, open one only when this report cites it or a finding needs the history), then read each changed/created file with the Read tool — a git diff in Bash is never your only evidence.
  5. Stale-doc note: if security-standards.md is listed in espalier/.drift-state.tsv, add a "STALE CONTEXT" line to your Summary and audit against the CURRENT code, not the stale doc. Note only — do not flip the verdict for staleness.
  6. Read once: a file already in your context is not Read again unless the coder or the gate changed it. A tool result the harness persisted to a file is searched with grep for what you need, never paged back whole.
  7. Grep-only files (the pack's - Grep-only: line) are searched, never Read; grep for the symbol or the field.
  8. Scoped docs named in the pack (- Scoped docs:): grep each for the files you audit and read those sections; never re-Read a doc the platform already injected into your context. A claim there (an ownership check "done in middleware", a field "never client-settable") is verified in the code before it clears a finding, as with the pack.

Test files in the diff are in scope for secrets, live-endpoint calls, and fixture-data leakage ONLY — a test hard-coding a real credential, hitting a production endpoint, or embedding real customer data is a finding; otherwise test files are not findings surface — and for the contract's covered_by: line: a test that performs an entry's abuse test (tamper → rejected → store unchanged) is named there. Your audit surface (the changed code's handlers, consumers, and sinks) is unchanged.

Read the full file on GitHub · 255 lines

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. 1mo ago Changed · +20 lines eae775c88113
  2. 1mo ago Changed · -20 lines e9cf415d0c58
  3. 1mo ago Changed · +7 lines 2f5f6b62143a
  4. 1mo ago First seen · 248 lines · 77 tokens per session scan A 16be4f3475d8

Subscribe to this mod's changes

harness-security is an agent published in the GitHub repository Junhanliu-dev/espalier-engineering (69 stars, last pushed yesterday), licensed MIT. It adds 77 tokens to every session and 3,558 once invoked, about $0.0003 per session on Opus 5.5. 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.

Related

Other agents, from other repositories

do-setup-assistant

Autonomous Durable Objects project scaffolder. Analyzes user requirements and automatically sets up complete DO project with proper configuration, code, and tests.

secondsky/claude-skills · 35 tokens

feature-backend

Backend implementation teammate. Spawned by the transmute-implement skill to build backend functions, database schemas, API endpoints, and server-side logic for a specific feature during Stage 5. Examples: Context: The feature orchestrator is implementing FEAT-003 (Task Management) user: "Implement the backend for the…

VoxTechnologies/transmute-framework · 233 tokens

self-review-applier

The writing hand of the self-review loop. Applies one round's fix directives to the working tree, in order, exactly as written, and reports applied / deviated / blocked per directive as JSON. Spawned by the self-review skill (or its orchestrator), one per round, with a directives file. Has no shell — it cannot run…

HoussemDjeghri/self-review · 86 tokens

quality-reviewer

Reviews code quality, architecture, and best practices. Second stage of the two-stage review gate. Only invoked after spec compliance passes.

andyzengmath/quantum-loop · 30 tokens

project-init

Initializes Agentic SEO project with the required folder layout, blank brain templates, contents directories, and first log entry. Use when creating a new project.

agencia-conversion/agentic-seo-skills · 34 tokens

duplication-detector

Detects stories with overlapping implementation concerns using hybrid keyword pre-filter and LLM semantic verification. Spawned by the dag-validator coordinator.

andyzengmath/quantum-loop · 31 tokens