mini-swe-agent is a small Python agent that solves coding tasks and GitHub issues using only shell commands. It targets research baselines and daily CLI workflows with linear message history and pluggable sandboxes.
Overview
The agent keeps a intentionally small core: language model calls, environment execution, and a run loop without bespoke tool APIs beyond bash. Each action runs as an independent subprocess, which simplifies swapping local runs for container or other isolated executors and scales batch benchmarks.
Conversation state is a straight append-only message list, so trajectories match what the model sees and are easy to inspect or use for fine-tuning. Model access goes through common routing stacks, supporting many providers and completion styles without requiring native tool-calling support from the model.
Deployment options include local machines plus Docker, Podman, Singularity, Apptainer, Bubblewrap, and related sandboxes described in the documentation. A command-line interface, batch inference, trajectory browser, and Python bindings ship alongside YAML configuration and a cookbook for extensions.
The project positions itself as a simpler sibling to fuller research agents: fewer moving parts for SWE-bench style evaluation and hackable automation, while a larger SWE-agent remains available when custom tools and history processors matter.
Key features
- Bash-only agent actions
- Linear append-only trajectories
- Subprocess-based command execution
- Multiple sandbox backends
- Broad model provider support
- CLI and Python bindings
- Batch inference workflows
- Trajectory inspection browser
Use cases
- GitHub issue fixing agent
- Local coding assistant CLI
- SWE-bench style evaluation
- Agent research baselines
- Sandboxed command automation