Leanimum-agent
Health Gecti
- License — License: NOASSERTION
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Community trust — 11 GitHub stars
Code Gecti
- Code scan — Scanned 12 files during light audit, no dangerous patterns found
Permissions Gecti
- Permissions — No dangerous permissions requested
Bu listing icin henuz AI raporu yok.
The 100 line AI agent for proving theorems and writing programs in Lean. Radically simple, no huge configs, no giant monorepo. Forked from mini-SWE-agent.
Leanimum-agent
A minimal bash-only agent for Lean proofs and programs, based on
mini-swe-agent.
- Minimal: A small Python implementation of the agent class (and a bit more for the environment,
model, and run script) — no fancy dependencies! - Deployable: Supports local environments, docker/podman, singularity/apptainer, bublewrap, contree, and more
- Compatible: Supports all models via litellm, openrouter, portkey, and more. Support for
/completionand/responseendpoints, interleaved thinking etc.
The leani agent
- Does not have any tools other than bash — it doesn't even need to use the tool-calling interface of the LMs.
This means that you can run it with literally any model. When running in sandboxed environments you also don't need to take care
of installing a single package — all it needs is bash. - Has a completely linear history — every step of the agent just appends to the messages and that's it.
So there's no difference between the trajectory and the messages that you pass on to the LM.
Great for debugging & fine-tuning. - Executes actions with
subprocess.run— every action is completely independent (as opposed to keeping a stateful shell session running).
This makes it trivial to execute the actions in sandboxes (literally just switch outsubprocess.runwithdocker exec) and to
scale up effortlessly. Seriously, this is a big deal, trust me.
This makes it perfect as a baseline system and for a system that puts the language model (rather than
the agent scaffold) in the middle of our attention.
Some agents are overfitted research artifacts. Others are UI-heavy frontend monsters.
The leani agent wants to be a hackable tool, not a black box.
Simple enough to understand at a glance
Convenient enough to use in daily workflows
Flexible to extend
Does not have any tools other than bash — it doesn't even need to use the tool-calling interface of the LMs.
Instead of implementing custom tools for every specific thing the agent might want to do, the focus is fully on the LM utilizing the shell to its full potential.
Want it to do something specific like opening a PR?
Just tell the LM to figure it out rather than spending time to implement it in the agent.Executes actions with
subprocess.run— every action is completely independent (as opposed to keeping a stateful shell session running).
This is a big deal for the stability of the agent, trust me.Has a completely linear history — every step of the agent just appends to the messages that are passed to the LM in the next step and that's it.
This is great for debugging and understanding what the LM is prompted with.
CLI (leani)
|
Batch inference |
|
|
| Trajectory browser | Python bindings |
|
|
Let's get started!
Option 1: If you just want to try out the CLI (package installed in anonymous virtual environment)
pip install uv && uvx --from "git+https://github.com/cmu-l3/Leanimum-agent.git" leani
# or
pip install pipx && pipx ensurepath && pipx run --spec "git+https://github.com/cmu-l3/Leanimum-agent.git" leani
Option 2: Install CLI & python bindings in current environment
pip install "git+https://github.com/cmu-l3/Leanimum-agent.git"
leani # run the CLI
Option 3: Install from source (developer setup)
git clone https://github.com/cmu-l3/Leanimum-agent.git
cd Leanimum-agent && pip install -e .
leani # run the CLI
Read more in our documentation:
- Quick start guide
- Using the
leaniCLI - Global configuration
- Yaml configuration files
- Power up with the cookbook
- FAQ
- Contribute!
Attribution
If you find our work helpful, please use the following citation.
@article{zheng2026reuf2f,
title={ReuF2F: Benchmarking coding agents on formalized undergraduate research problems},
author={Zheng, Zeyu and Liu, Yiyang and Zhao, Yuyang and Zheng, Congmin and Zhu, Jiachen and Chen, Jianian and Zhang, Kangning and Wong, Kayue Daniel and Yang, Lingyu and Shan, Rong and Chen, Shihao and Zhu, Thomas and Zhang, Wentao and Li, Xiaopeng and Hu, Yan and Lin, Yongxi and Chen, Yuxiang and Ou, Zhuoying and Lin, Jianghao and Avigad, Jeremy and Tetali, Prasad and Chen, Jingbang and Welleck, Sean},
journal={arXiv preprint arXiv:2610.27046},
year={2026}
}
Other projects
Yorumlar (0)
Yorum birakmak icin giris yap.
Yorum birakSonuc bulunamadi
