document-table-agent

document-table-agent is an agent for coding agents 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

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

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.

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

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.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.svg" alt="Measured on agentmods" 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. Scan, not verified.
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 $0.00040 $0.03753
Opus 5 $0.00020 $0.01877
Sonnet 5 $0.00008 $0.00751
Haiku 4.5 $0.00004 $0.00375

Measured 5d ago against content hash fba4695c0382, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 5d 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. 5d 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 4mo ago), licensed MIT. It adds 40 tokens to every session and 3,753 once invoked, about $0.0002 per session on Opus 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

Other agents, from other repositories

doc-insight

文档「解析」与「依据」窗格领域。任务涉及实体抽取(企业/法规/案例)、外部库检索(企查查 REST+MCP、北大法宝 MCP、判决书通道)、文档内部一致性校验(数量前后矛盾、统一社会信用代码硬错)、docinsight 三张表与 /api/projects/{pid}/insight 时,先读本文档再动代码。.

zeweihan/aiworkdeck · 103 tokens

terms

Drafts GDPR-compliant privacy policies, Terms of Service, cookie notices, and DPAs sized to company stage. Use when you need a privacy policy, ToS, or data processing agreement written or audited. Trigger with "draft my privacy policy", "review my terms of service".

jeremylongshore/tons-of-skills-marketplace · 59 tokens

brand-guardian

Invoke when marketing content needs quality control review — brand voice consistency checks, regulatory compliance verification (GDPR, CAN-SPAM, CCPA, HIPAA, FTC, industry-specific), accessibility auditing (WCAG 2.2), inclusive language review, or brand safety assessment. Automatically invoked as a final review step…

indranilbanerjee/digital-marketing-pro · 74 tokens

contract-clause-extractor

Pulls termination, liability and renewal language out of signed documents into a comparable table. Struggles with scanned faxes from the nineties, which is unfortunately a meaningful share of the archive.

wrg32786/aigent-os · 0 tokens

licensing-billing

授权与计费领域。任务涉及解锁门(试用码/账户 Key)、与官网账户的连接、entitlement 权益判定、免费额度与付费解锁、平台 AI 通道计费、广场付费项闸门、本机免登身份解析时,先读本文档再动代码。.

zeweihan/aiworkdeck · 76 tokens

governance-enforcer

Interactive assistant for setting up and enforcing document governance in a trestle workspace. Set up governance templates. Validate documents against them. Identify violations. Help fix non-compliant documents. Use when users need help with document governance, template enforcement, or fixing governance validation…

oscal-compass-lab/compliance-trestle-skills · 94 tokens