Rethlas

Published 2026-08-29


Rethlas

Rethlas is a natural-language reasoning system for mathematics built around two Codex agents, forked from frenzymath/Rethlas and extended by me:

run.sh orchestrates an iterative proof-and-repair loop until a verified blueprint is produced.

Setup

npm install -g @openai/codex
uv venv && uv pip install -r generation/mcp/requirements.txt
cd verification && uv venv && uv pip install -r requirements.txt && uv run uvicorn api.server:app --port 8091

Run

./run.sh --gen-agent <agent> --gen-model <model> --ver-agent <agent> --ver-model <model>

Environment: MAX_ITERATIONS, PROBLEM_FILE=data/<problem>.md.

View results

./hugo.sh          # or: ./site/serve.sh

The site builds with Hugo or Zola (MATbook) and serves on port 3264.

Layout

PathPurpose
run.shEntry point: runs the generation loop
generation/Proof-generation agent, MCP tools
verification/Proof-verification agent (HTTP service)
data/Math problem markdown files
site/Static site builders

Docs

GitHub: hiraethecho/Rethlas