automath: Agent for Claude Code

.claude/agents/lean4-analyst.md

lean4-analyst is an agent for Claude Code from the-omega-institute/automath. It costs 31 tokens per session (4,724 once invoked), scanned A, original, no licence file.

A coding agent that reads research papers written in LaTeX and existing Lean 4 code, then produces a precise formal specification. Lean 4 is a programming language and proof assistant used to state and verify mathematics.

In plain words
What is it for?
Use it to analyse papers and Lean 4 projects and draft formal specifications. The short description does not state whether it proves the resulting specifications.
Why use it?
It helps translate informal mathematical ideas and existing code into definitions and requirements that can be checked formally.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

This is the-omega-institute/automath's own configuration. It tells Claude Code how to work on automath itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything automath configures →

Reuse

Borrowing it

Nothing to install: this file belongs to the-omega-institute/automath. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/the-omega-institute/automath/dev/.claude/agents/lean4-analyst.md
Clone the repo
git clone --depth 1 https://github.com/the-omega-institute/automath

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 lean4-analyst

README.md
[![agentmods](https://agentmods.dev/badge/agents/the-omega-institute/automath/lean4-analyst/github.svg)](https://agentmods.dev/agents/the-omega-institute/automath/lean4-analyst)
Your own site
<a href="https://agentmods.dev/agents/the-omega-institute/automath/lean4-analyst"><img src="https://agentmods.dev/badge/agents/the-omega-institute/automath/lean4-analyst/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 lean4-analyst

Your own site · 80×15
<a href="https://agentmods.dev/agents/the-omega-institute/automath/lean4-analyst"><img src="https://agentmods.dev/badge/agents/the-omega-institute/automath/lean4-analyst.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,724 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 unknown 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.00031 $0.04724
Opus 5.5 $0.00012 $0.01890
Sonnet 5.5 $0.00006 $0.00945
Haiku 4.5 $0.00003 $0.00472

Measured 18d ago against content hash 20eca0a62791, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

lean4-analyst 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 18d 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.

.claude/agents/lean4-analyst.md · 338 lines

The source is not reproduced here

A licence we could not identify

The repository carries a LICENSE file, but it is custom or dual enough that GitHub cannot name it and neither can this catalogue. Unknown terms are not permission, so the body is not copied here. Read the licence at the source and decide for yourself.

Read it on GitHub

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. 18d ago First seen · 338 lines · 31 tokens per session scan A 20eca0a62791

Subscribe to this mod's changes

lean4-analyst is an agent published in the GitHub repository the-omega-institute/automath (72 stars, last pushed 1mo ago), with no licence file. It adds 31 tokens to every session and 4,724 once invoked, about $0.0001 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-09-29.

Related

Other agents, from other repositories

editor

Journal editor who desk-reviews manuscripts, selects two referees with deliberately different dispositions, calibrates to a target journal from .claude/references/journal-profiles.md, and synthesizes an editorial decision (FATAL / ADDRESSABLE / TASTE). Used by /review-paper --peer [journal].

pedrohcgs/claude-code-my-workflow · 64 tokens

Geoprocessing Specialist

ArcPy and Python toolbox expert who automates spatial workflows — builds .pyt toolboxes, Model Builder processes, batch geoprocessing automation, and custom analysis scripts for ArcGIS Pro.

SHAdd0WTAka/Zen-Ai-Pentest · 45 tokens

research-scout

Scans the NeqSim codebase to discover scientific paper opportunities that will drive code improvement. Every paper must improve NeqSim — adding tests, validating models against data, hardening algorithms, or implementing new capabilities. Produces ranked, actionable topics that feed into the planner agent.

equinor/neqsim · 61 tokens

astronomical-instrumentation-scientist

Reasons from system-level error budgets, the diffraction limit and Strehl ratio, detector figures of merit, and resolving power through Zemax/Code V tolerancing, ETC radiometry, AO modeling, and on-sky standard-star commissioning while treating flexure drift, IR persistence, ghosts, and quasi-static speckles as…

K-Dense-AI/scientific-agents · 78 tokens

mathodology-problem-analyst

Understand contest questions, requirements, mechanisms and decision needs.

sweetcornna/mathodology · 20 tokens

epidemiology-research-agent

Research agent for epidemiology and public health.

benbrastmckie/nvim · 8 tokens