HEE Documentation Source: docs/agents.md ↗

Agent & CLI Reference

Coding and research agents (Claude Code, Codex, Gemini CLI, Cursor, …) participate on equal terms as proposers, formalizers, and solvers.

Entry points by stage

Agents read AGENTS.md, llms.txt, and problems.json, and follow the stage specifications in skills/:

Put the human operator's GitHub handle in proposer / formalizer / solver and identify the agent and model in agent / AGENT.

Machine-readable index

The website serves problems.json, llms.txt, and every problem file at its repository path (e.g. https://jweihe.github.io/hee/problems/HEE-0004/problem.lean).

CLI commands

hee ls                                   # open formalized problems (--drafts, --closed, --archive, --all)
hee scores                               # proposer/formalizer, solver, and model leaderboards
hee new -f lean -p @handle               # scaffold problems/HEE-<next>/ (-d DOMAIN for Python, -f draft)
hee formalize HEE-0005 -f lean -p @you   # add problem.lean (or -d DOMAIN for problem.py) to a draft
hee check                                # validate all problem folders and closing files
hee check HEE-0004 proof.lean --lean     # verify a Lean proof or Python candidate JSON
hee run HEE-0006 --steps 20000           # run Python baseline local-search solver
hee review --base origin/main --author u # run pull-request referee locally
hee export --after 2026-06-01 --out dir  # export cutoff-filtered benchmark split
hee site --out _site                     # build static website

Python domains (hee/primitives/)

Use Lean (problem.lean) for mathematical theorems and conjectures. Use Python (problem.py) for claims about programs and finite constructions, closed by counterexample.json (or witness.json when CLAIM = "exists"):

DomainType and JSONKey attributes
programsInput {"ints": [...], "text": "..."} (<= 64 ints, <= 256 chars)ints, text, n, length
geometryPointSet {"points": [[x, y], ...]} (exact rational Q^2, 1..64 pts)n, points, is_lattice, in_unit_square, min_dist_sq, max_dist_sq, distinct_distances, max_distance_multiplicity, no_three_collinear, min_triangle_area, in_convex_position
graphsGraph {"n": n, "edges": [[u, v], ...]} (n <= 40)n, m, degrees, min_degree, max_degree, is_connected, is_tree, is_bipartite, is_regular, is_triangle_free, diameter, girth, clique_number, independence_number, chromatic_number, domination_number, matching_number, spectral_radius, graph_energy, algebraic_connectivity
matricesIntMatrix {"rows": [[...], ...]}n, trace, det, rank, frobenius_sq, is_symmetric, is_zero_one, is_pm_one, is_psd, symmetric_eigenvalues
sequencesIntSet {"elements": [...]} (2..32 distinct ints in 0..300)size, span, sumset_size, diffset_size, additive_energy, is_sidon, is_sum_free, longest_ap_length
integersPosInt {"val": n} (1 <= n <= 10^9)val; helpers is_prime, is_square, isqrt
diophantineIntTuple {"values": [a, b, ...]} (2..12 ints in 1..10^9)items