This is an early release preview. You may encounter bugs.
mini-SWE-agent logo
Unclaimed

Tool coding

mini-SWE-agent

The 100 line AI agent that solves GitHub issues or helps you in your command line. Radically simple, no huge configs, no giant monorepo—but scores >74% on SWE-bench verified

B 73/100 GitHub score ? This grade is derived from GitHub signals, not user votes. Open for the full breakdown.
Discussion

01 / Summary

About mini-SWE-agent.

mini-swe-agent is a minimal software-engineering agent from the team behind SWE-bench and SWE-agent. The agent class is about 100 lines of Python, with small additional modules for the environment, the model, and the run script, and it is built on the premise that a capable language model needs little scaffolding to be useful.

Three design choices follow from that. The agent has no tools other than bash and does not use the model's tool-calling interface, so it runs with any model and needs nothing installed in a sandbox beyond a shell. Each action is executed with subprocess.run rather than a stateful shell session, so running actions in a container is a matter of swapping subprocess.run for docker exec. History is linear: every step appends to the message list, so the trajectory and the prompt the model sees are the same thing, which suits debugging and fine-tuning. It scores above 74% on SWE-bench Verified and backs the bash-only SWE-bench leaderboard, Ramp SWE-Bench, the DeepSWE evaluation harness, and the ProgramBench benchmark.

Version 2 is current, with a migration guide from v1. Compared with SWE-agent, mini-swe-agent is suggested for a local command-line tool, a simple control flow, faster sandboxed benchmark runs, and fine-tuning or RL work that should not overfit to a scaffold; SWE-agent remains the choice for experimenting with tool sets and history processors.

  • mini CLI: an interactive agent for local tasks and GitHub issues
  • Batch inference: runs SWE-bench style evaluations at scale
  • Trajectory browser: inspects saved runs step by step
  • Python bindings: DefaultAgent(LitellmModel(...), LocalEnvironment()).run("...") embeds the agent in your own code
  • Environments: local, Docker or Podman, Singularity or Apptainer, Bubblewrap, contree, and more
  • Models: any model through LiteLLM, OpenRouter, or Portkey, with /completion and /response endpoints and interleaved thinking
  • Configuration: global settings plus YAML configuration files and a cookbook of extensions

02 / Discussion CREDIBILITY-GATED

Discussion

Reading is open to everyone. Posting and voting need a verified identity or a GitHub grade of B or higher.

  • No discussions yet.

04 / Build

Build with mini-SWE-agent.

Browse the catalog for frameworks, tools, and harnesses, each scored on real GitHub credibility.

Get mini-SWE-agent →

Browse the catalog