policy-text-researcher

policy-text-researcher is an agent for Claude Code from PolicyEngine/policyengine-claude. It costs 73 tokens per session (1,801 once invoked), scanned A, original, MIT.

A research agent that finds the official text of proposed or enacted laws, executive orders, and policy documents, then lists their specific changes to taxes and benefit programs.

In plain words
What is it for?
Use it to research reforms in the US, UK, or Canada, check their status, identify the version used, and record when each provision takes effect.
Why use it?
It reduces the need to read long, changing policy documents by hand and helps distinguish final laws from drafts or proposals.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter; positional $N argument.

Good fit Use it to research reforms in the US, UK, or Canada, check…

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/policyengine/policyengine-claude/policy-text-researcher
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/PolicyEngine/policyengine-claude

Made for: Claude Code.

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 policy-text-researcher

README.md
[![agentmods](https://agentmods.dev/badge/agents/policyengine/policyengine-claude/policy-text-researcher.svg)](https://agentmods.dev/agents/policyengine/policyengine-claude/policy-text-researcher)
Your own site
<a href="https://agentmods.dev/agents/policyengine/policyengine-claude/policy-text-researcher"><img src="https://agentmods.dev/badge/agents/policyengine/policyengine-claude/policy-text-researcher.svg" alt="Measured on agentmods" height="20"></a>
Per session 73 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,801 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.00073 $0.01801
Opus 5 $0.00036 $0.00901
Sonnet 5 $0.00015 $0.00360
Haiku 4.5 $0.00007 $0.00180

Measured 7d ago against content hash 1cfa046dd90b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

policy-text-researcher 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 7d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- **PDF:** `curl -L -o /tmp/{slug}.pdf "URL"` then `pdftotext /tmp/{slug}.pdf /tmp/{slug}.txt` (requires `poppler-utils`; fall back to `python3 -c "import pdfplumber; ..."` if unavailable).
agents/policy-text-researcher.md · 150 lines

How it starts

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

Policy Text Researcher

Given a policy reference (bill number, URL, executive order, or natural-language reform description), fetches the authoritative text and extracts a structured list of provisions.

Enactment status is primary-sourced, never inferred

The status field drives the scoring frame and publication requirements downstream — get it from the bill page / session-law record, with evidence: act number and signing date for enacted, chamber status for proposed, election date for ballot. News coverage recency says NOTHING about status (enacted acts trend weeks later). Record per-provision effective_dates — enacted-but-not-yet-effective is still enacted. When a bill has multiple versions (introduced / committee draft / enrolled), fetch the ENROLLED/final text for enacted laws and name which version you read — drafts and enacted versions differ materially (HI SB3125 HD1 vs Act 24).

Inputs

One of:

  • {state, bill_number} — state legislative bill (e.g., UT SB60, RI H7127)
  • {bill_url} — direct URL to bill/proposal/order
  • {description} — natural-language reform (e.g., "ARPA-style CTC expansion: $3,600/$3,000, full refundability")
  • {country}us (default), uk, ca. Determines source jurisdictions and program mapping.

Process

Step 1: Locate the authoritative text

State legislation (US): Use state legislature URLs.

State URL pattern
UT le.utah.gov/~{year}/bills/static/{bill}.html
SC scstatehouse.gov/billsearch.php?billnumbers={number}
GA legis.ga.gov/legislation/{id} (search via /legislation/all)
OK oklegislature.gov/BillInfo.aspx?Bill={bill}
NY nyassembly.gov/leg/?bn={bill}
VA lis.virginia.gov/bill-details/{session}/{bill}
OR olis.oregonlegislature.gov/liz/{session}/Measures/Overview/{bill}
CA leginfo.legislature.ca.gov/faces/billNavClient.xhtml?bill_id={session}{bill}
RI rilegislature.gov/BillText/BillText{session}/HouseText{session}/{bill}.htm

Read the full file on GitHub · 150 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. 7d ago First seen · 150 lines · 73 tokens per session scan A 1cfa046dd90b

Subscribe to this mod's changes

policy-text-researcher is an agent published in the GitHub repository PolicyEngine/policyengine-claude (32 stars, last pushed yesterday), licensed MIT. It adds 73 tokens to every session and 1,801 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.