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.
git clone --depth 1 https://github.com/cameronfreer/lean4-skillsWrote 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.
[](https://agentmods.dev/agents/cameronfreer/lean4-skills/proof-golfer)<a href="https://agentmods.dev/agents/cameronfreer/lean4-skills/proof-golfer"><img src="https://agentmods.dev/badge/agents/cameronfreer/lean4-skills/proof-golfer/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.
<a href="https://agentmods.dev/agents/cameronfreer/lean4-skills/proof-golfer"><img src="https://agentmods.dev/badge/agents/cameronfreer/lean4-skills/proof-golfer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00045 | $0.02707 |
| Opus 5.5 | $0.00018 | $0.01083 |
| Sonnet 5.5 | $0.00009 | $0.00541 |
| Haiku 4.5 | $0.00005 | $0.00271 |
Grade A, and why
proof-golfer 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.
Copies of this mod
1 near-identical copy found in the catalogue:
- proof-golfer — 89% identical, 0 lines differ
How it starts
The opening of the file, as written. The whole thing — 161 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Inputs
Consume the run-contract/v1 dispatch record (record == "dispatch"): read target, the context envelope, and owned_files + file_baseline (fail closed — see below). Validate it; a missing/malformed field is a protocol-error handoff, no mutation. A passing build is required (verify before starting).
parameters shape for this worker: {search_mode: "off" | "quick" | "full", golfable_patterns: [...], candidate_targets: [...]} (default search_mode quick).
Actions
MCP canary runs before step 3 (after pure-script steps 1-2). See step 2 for details and fallback behavior.
-
Find patterns (in policy order: directness → structural → conditional) with false-positive filtering:
lean4-skills-find-golfable FILE.lean --filter-false-positivesFor direct-proof discovery when search_mode ≠ off or syntactic pass stalls:
lean4-skills-find-exact-candidates FILE.lean -
Verify safety before inlining any binding:
lean4-skills-analyze-let-usage FILE.lean --line LINE- 1-2 uses: Safe to inline
- 3-4 uses: Check carefully (40% worth optimizing)
- 5+ uses: NEVER inline
MCP canary: Before step 3, test
lean_diagnostic_messages(file). If unavailable (tool-not-found, missing from context, or inaccessible), emit "⚠ Lean MCP tools unavailable — golfing limited to syntactic patterns", skip steps 3-4 (requirelean_multi_attempt), and reduce step 5 to max 1 hunk withlake env lean <file>(from project root) per-hunk verification; reservelake buildfor final verification only.No-MCP hygiene (if canary fails): MCP tools are tool calls, not shell commands — never invoke them via Bash. Do not probe MCP availability via Bash (
which,env,ls) — the canary is authoritative. Stop retrying MCP for this run. Use Read/Grep to inspect files (never write scripts or temp files just to view source). Start from pre-collected context in the parent prompt.
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.
- 2mo ago Changed ee39467b07f2
- 2mo ago Changed · +2 lines cde6ab72b2e6
- 3mo ago First seen · 159 lines · 45 tokens per session scan A ed1361322d2e
proof-golfer is an agent published in the GitHub repository cameronfreer/lean4-skills (509 stars, last pushed 23d ago), licensed MIT. It adds 45 tokens to every session and 2,707 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-30.
proof-golfer compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| proof-golfercameronfreer/lean4-skills | Agent | 509 | 23d ago | MIT | A | 45 | Claude Code |
| editorpedrohcgs/claude-code-my-workflow | Agent | 1.7k | 23d ago | MIT | A | 64 | Claude Code |
| research-scoutequinor/neqsim | Agent | 177 | today | Apache-2.0 | A | 61 | Claude Code |
| Geoprocessing SpecialistSHAdd0WTAka/Zen-Ai-Pentest | Agent | 535 | 27d ago | MIT | A | 45 | Claude Code, OpenCode |
| mathodology-problem-analystsweetcornna/mathodology | Agent | 352 | 8d ago | MIT | A | 20 | Claude Code |
| astronomical-instrumentation-scientistK-Dense-AI/scientific-agents | Agent | 267 | 1mo ago | MIT | A | 78 | Claude Code |
| bnlearn-researchererdogant/bnlearn | Agent | 649 | 8d ago | none | A | 47 | Claude Code |