document-table-agent

document-table-agent is an agent for Claude Code from ishwarjha/legalant. It costs 40 tokens per session (3,753 once invoked), scanned A, original, MIT.

A structured data extraction agent for legal documents. It takes a requested list of fields, records values from each document, and attaches the source and a confidence rating to every result.

In plain words
What is it for?
Use it to collect defined facts from contracts and other documents, create extraction tables, and review uncertain or weakly supported fields.
Why use it?
It turns unstructured legal documents into a searchable table without hiding where each value came from. It also separates factual extraction from legal or business advice.

Agent for Claude Code

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

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

Good fit Use it to collect defined facts from contracts and other documents, create extraction tables, and review uncertain or weakly supported fields.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/ishwarjha/legalant/document-table-agent
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/ishwarjha/legalant

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 document-table-agent

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/ishwarjha/legalant/document-table-agent"><img src="https://agentmods.dev/badge/agents/ishwarjha/legalant/document-table-agent.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 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,753 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.00040 $0.03753
Opus 5.5 $0.00016 $0.01501
Sonnet 5.5 $0.00008 $0.00751
Haiku 4.5 $0.00004 $0.00375

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

Security

Grade A, and why

document-table-agent 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 2mo 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.

legalant/agents/document-table-agent.md · 385 lines

How it starts

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

document-table-agent

Identity

You are the Document Table Agent for LegalAnt — the system's specialist for structured data extraction from legal documents. You accept a user-defined or default schema, extract each field from every document with full citation and confidence rating, and deliver a query-capable extraction table in the user's chosen format.

Model tier: Claude Sonnet 4.5 Role: Structured field extraction and tabular output Scope: Data extraction only — you extract, record, and flag. You do not advise on commercial strategy or provide legal advice.

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 fully binding and not repeated here.


Universal Standards (binding — read from skills file)

Before every task, confirm these five rules are active:

  1. HITL PROTOCOL — Gate 1 only: schema approval before extraction begins. Silence is not approval.
  2. CITATION STANDARD — Every extracted field cites: document name, page number, clause number. No unsourced values.
  3. HALLUCINATION DEFENCE — If a field value cannot be found in the document, record "NOT FOUND". Never fabricate or leave blank.
  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 specifies otherwise.

File Ingestion

For every file received, apply the correct ingestion method:

File type Method
PDF — text-native (searchable) Extract text directly using filesystem MCP
PDF — scanned / image-based Call detect_pdf_type(file_path) → if "image" or "scanned", call extract_text(file_path, use_ocr=true) from pdf-ocr-processor MCP. Flag pages with OCR confidence < 85%.
Word (.docx) Extract text via filesystem MCP, preserving clause numbering and heading hierarchy
Plain text (.txt) Ingest directly

Read the full file on GitHub · 385 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. 2mo ago First seen · 385 lines · 40 tokens per session scan A fba4695c0382

Subscribe to this mod's changes

document-table-agent is an agent published in the GitHub repository ishwarjha/legalant (6 stars, last pushed 6mo ago), licensed MIT. It adds 40 tokens to every session and 3,753 once invoked, about $0.0002 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-31.

Related

document-table-agent compared with agents from other repositories

document-table-agent next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
document-table-agentishwarjha/legalantAgent66mo agoMITA40Claude Code
contract-renewal-watcherAlsKozlov/ru-legalAgent425mo agononeA78Claude Code
whitepaper-coherenceFlorianBruniaux/claude-code-ultimate-guideAgent6.4k2d agoCC-BY-SA-4.0A39Claude Code
scopetonone-ai/tononeAgent7723d agoMITA18Claude Code
sales-closerjoaoguirunas/team-osAgent64d agoMITA71Claude Code
verifierrandomittin/heimdallAgent516d agoMITA33Claude Code
ethics_review_agenttuoxie2046/claude-code-research-skillsAgent54mo agononeA40Claude Code