The SWE-bench team has dropped a radical counter-narrative to the bloated agent frameworks dominating the AI coding space. mini-swe-agent is an open-source, MIT-licensed project that strips the agent down to its bare metal: roughly 100 lines of Python, bash-only execution, and zero custom tooling. Despite this minimalism, it scores above 74% on SWE-bench Verified and outperforms heavyweight competitors like Claude Code and Codex on the DeepSWE benchmark.

Radical Subtraction as a Feature

The core philosophy here is that the agent harness should get out of the way. Unlike typical frameworks that stack plugin systems and custom interfaces, mini-swe-agent relies exclusively on bash. It does not use the model's tool-calling interface; instead, it prompts the LLM to write shell commands directly. This design choice makes it model-agnostic, as every capable model can generate text that resembles a command-line instruction. The result is a hackable tool with no monorepo dependencies or complex YAML schemas to memorize.

Statelessness and Linear History

Two architectural decisions drive the project's utility for researchers and developers alike. First, the agent avoids stateful shell sessions. Every action runs through subprocess.run, ensuring each command is independent. This eliminates hidden state like lingering environment variables or background processes, making sandboxing trivialβ€”simply swap subprocess.run for docker exec to isolate the environment. Second, the agent maintains a completely linear history. Every step appends to the message array, meaning the model sees exactly what was prompted at every stage. This transparency simplifies debugging and fine-tuning, allowing developers to pinpoint precisely where a model might have been confused by an output.

Industry Adoption and Performance

This isn't just a toy for hobbyists. The README lists major adopters including Meta, NVIDIA, IBM, and Anyscale, signaling that large organizations value the ease of deployment and modification. The performance metrics are the strongest argument: mini-swe-agent now powers Ramp's SWE-bench implementation and serves as a baseline on the SWE-bench bash-only leaderboard. By placing the language model at the center, the project demonstrates that high performance stems from the model's capability rather than the complexity of the scaffold. It also ships with ProgramBench, a harder evaluation suite for agents.

Limitations and Practical Use

The minimalism comes with trade-offs. There is no polished desktop app, rich IDE integration, or fancy UI for session management. It is not designed to hold your hand through intricate refactors across massive codebases, where structured tools might offer better guidance. Currently at version 2.4.6, the project has undergone API changes, requiring some maintenance if you integrate it into your workflow. However, for quick fixes or research evaluations, the speed advantage is noticeable. Without a heavy scaffold to initialize, the agent starts almost instantly, offering a lean alternative to the setup ceremony of enterprise platforms.

Key Takeaways

  • mini-swe-agent scores >74% on SWE-bench Verified using only ~100 lines of Python.
  • It beats Claude Code and Codex on the DeepSWE benchmark by removing scaffold complexity.
  • Bash-only execution and stateless subprocesses make sandboxing and parallel evaluation trivial.
  • Adopted by major players like Meta, NVIDIA, and IBM for its hackability and transparency.

The Bottom Line

The industry's obsession with complex agent scaffolds is largely a self-imposed bottleneck. mini-swe-agent proves that a thin wrapper around a strong model is often more effective than a black-box framework.