MathCode: A Mathematical Coding Agent with Lean 4 Formalization
MathCode is a terminal-based AI coding assistant that formalizes and proves math problems using Lean 4. Instead of writing Lean code yourself, you give it a problem in plain English, and it generates a theorem and attempts a proof, with a persistent REPL and a library of reusable theorems.
Key Features
- Persistent Lean REPL: After a one-time warmup, compile checks drop to ~0.4s (from ~30s).
- Theorem Library: Every proved theorem is auto-named, stored, and importable for reuse.
- Axiom Library: Store conversational assumptions as persistent, compile-checked Lean declarations.
- Lean LSP Integration: Searches leansearch.net and Loogle for verified Mathlib lemmas, uses structured LSP diagnostics for repairs.
- Obsidian Theorem Graph: Generates a visual dependency graph of theorems and lemmas in Obsidian.
- Agent-Mode Proving: Interactive sessions where the agent iterates on proof candidates based on errors.
- Tree-of-Subgoals: Decomposes complex theorems into independent subgoals, proves them in parallel, then stitches them together.
- Multi-Planner: Runs multiple planners in parallel for diverse proof strategies; the prover picks the best approach.
Quick Start
Requires macOS (arm64) or Linux (x86_64), plus the codex CLI for the default backend.
git clone https://github.com/math-ai-org/mathcode.git
cd mathcode
bash setup.sh
codex auth loginTry it with:
mathcode -p "prove that the square of an even number is even"Outputs are written to LeanFormalizations/. A browser UI is available via ./run webui.
This tool is aimed at mathematicians, researchers, and developers working with formal verification or AI-assisted theorem proving.
📖 Read the full source: HN AI Agents
👀 See Also

Orchino: Local Multi-Agent Orchestration System for Windows with Parallel Browser and UI Automation
Orchino is a local multi-agent orchestration system for Windows that runs parallel browser and Windows tasks without hijacking the UI. A demo shows 4 agents completing 'Search Sony earbuds on Flipkart and Amazon, email the results, save to Notepad' in 29.5 seconds using true parallel execution.

Introducing cltree: A File Tree TUI for Claude Code
cltree is a split-pane TUI that displays your project file tree in real-time alongside Claude Code, showing the current working directory, hiding noise, and allowing all keystrokes to pass through.

Helix: Open-Source Framework Turns Claude into Personal AI Agent for macOS
Helix is an open-source framework that connects Claude via Claude Code in Terminal to macOS through four MCP server plugins, enabling Claude to control applications, maintain persistent memory, run scheduled tasks, and operate with local voice processing.

Custom Reddit MCP for Claude Desktop/Code Shared on GitHub
A developer has released a custom-built Reddit MCP designed for Claude Desktop and Claude Code to integrate Reddit research directly into the workflow. The tool is documented on GitHub and available for free use.