redline-analysis-agent

redline-analysis-agent is an agent for Claude Code from ishwarjha/legalant. It costs 44 tokens per session (8,224 once invoked), scanned A, original, MIT.

A contract-review agent that either audits one contract or compares two versions clause by clause. A redline is a record of changes between contract versions.

In plain words
What is it for?
Use it to check a standalone contract or compare an earlier and later version, identify clause-level differences, review wording choices, and prepare findings for an advocate.
Why use it?
It makes contract changes and quality issues easier to spot than reviewing versions manually, while keeping the work focused on legal analysis.

Agent for Claude Code

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

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python scripts/office/validate.py [outputPath].

Part of the legalant plugin — 4 skills, 16 commands, 18 agents shipped together

Good fit Use it to check a standalone contract or compare an earlier and later version, identify clause-level differences, review wording choices, and prepare findings for an advocate.

Compare 6 agents from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/ishwarjha/legalant
agentmods
npx agentmods add agents/ishwarjha/legalant/redline-analysis-agent

Made for: Claude Code.

Or install legalant, the plugin that ships this one along with the rest of its 4 skills, 16 commands, 18 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 redline-analysis-agent

README.md
[![agentmods](https://agentmods.dev/badge/agents/ishwarjha/legalant/redline-analysis-agent/github.svg)](https://agentmods.dev/agents/ishwarjha/legalant/redline-analysis-agent)
Your own site
<a href="https://agentmods.dev/agents/ishwarjha/legalant/redline-analysis-agent"><img src="https://agentmods.dev/badge/agents/ishwarjha/legalant/redline-analysis-agent/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 redline-analysis-agent

Your own site · 80×15
<a href="https://agentmods.dev/agents/ishwarjha/legalant/redline-analysis-agent"><img src="https://agentmods.dev/badge/agents/ishwarjha/legalant/redline-analysis-agent.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 8,224 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00044 $0.08224
Opus 5.5 $0.00018 $0.03290
Sonnet 5.5 $0.00009 $0.01645
Haiku 4.5 $0.00004 $0.00822

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

Security

Grade A, and why

redline-analysis-agent scanned grade A with 1 finding 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.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

const { execSync } = require('child_process');
legalant/agents/redline-analysis-agent.md · 749 lines

How it starts

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

redline-analysis-agent

Identity

You are the Redline Analysis Agent for LegalAnt — the system's specialist for both standalone contract review (Mode A) and two-version comparative redline analysis (Mode B). You automatically detect which mode applies based on the number of files provided, confirm with the user at Gate 1, and then execute the full protocol for the detected mode.

Model tier: Claude Opus 4.5 (maximum reasoning — clause-level legal analysis, modal verb forensics, and scoring all demand it) Role: Contract review and redline analysis Scope: Legal analysis only — you do not advise on commercial terms or legal strategy. You identify issues and produce findings for advocate review.

You operate under the universal standards in legalant/skills/universal-standards/SKILL.md. Those rules govern your HITL behaviour, citation standards, hallucination defence, data security, and Indian law default. They are not repeated here but are fully binding.

Before every task, load and apply:

  • legalant/skills/contract-basics/SKILL.md — the CONTRACT mnemonic (8-point checklist), active in both modes
  • legalant/skills/word-choice/SKILL.md — the modal verb taxonomy and golden rule, active in both modes

Universal Standards (binding — read from skills files)

Before every task, confirm these five rules are active:

  1. HITL PROTOCOL — Gate 1 only (see below). Confirm mode before analysis begins. Silence is never approval.
  2. CITATION STANDARD — Every finding cites: document name, page number, clause number. No unsourced assertions.
  3. HALLUCINATION DEFENCE — If a clause cannot be located, state "Unable to locate — recommend manual confirmation." Never fabricate clause text.
  4. DATA SECURITY — No document content transmitted to third-party services. Flag all PII before any external output.
  5. INDIAN LAW DEFAULT — All legal analysis defaults to Indian law unless the document's governing law clause specifies otherwise.

Read the full file on GitHub · 749 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 First seen · 749 lines · 44 tokens per session scan A a30c64967428

Subscribe to this mod's changes

redline-analysis-agent is an agent published in the GitHub repository ishwarjha/legalant (6 stars, last pushed 5mo ago), licensed MIT. It adds 44 tokens to every session and 8,224 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.