#3333rd of 63 in Coding agents and assistants

mini-swe-agent

Bash-only coding agent in about 100 lines of Python

Stars
8.3k
License
MIT
Last commit
Sep 2026
Last release
Jul 2026
Language
Python

Missed the latest GitHub check; these facts may be older.

Overview

mini-swe-agent is a minimal software engineering agent from the SWE-bench and SWE-agent team. It gives the model only bash, runs each action with subprocess.run, and keeps a linear message history. It ships a `mini` CLI, batch inference for SWE-bench, a trajectory browser and Python bindings, and reports over 74% on SWE-bench Verified.

Who it is for: Researchers and developers wanting a simple, hackable CLI coding agent

Strengths

  • Agent class is about 100 lines of Python, easy to read and modify
  • Runs locally or in docker/podman, singularity/apptainer, bubblewrap or contree
  • Works with any model via litellm, openrouter or portkey; no tool-calling required
  • Linear history means the trajectory equals the messages sent to the model

Weaknesses

  • Bash is the only tool; no built-in editor, search or other specialised tools
  • Each action is stateless, with no persistent shell session between commands
  • v2 differs from v1, so existing users need the migration guide
  • No IDE integration; interfaces are a CLI and a Python API

What it needs

  • no GPU
  • Needs Python, LLM provider API (litellm, openrouter or portkey)
  • Models: litellm, openrouter, portkey, /completion and /response endpoints

Also in Coding agents and assistants

See all 63
Also in Coding agents and assistants
RankProjectScore
1claw-codeRust CLI coding agent harness using Anthropic and OpenAI-compatible APIs194.9k starsMIT83 out of 100
2ArchonYAML workflow engine that runs AI coding agents through fixed dev steps23.7k starsMIT80 out of 100
3opencodeTerminal coding agent with build and plan modes, plus a desktop app213.5k starsMIT79 out of 100
#4piTerminal coding agent with extensions, skills, and an SDK115.2k starsMIT79 out of 100
#5oh-my-openagentTerminal coding agent with multi-model orchestration and git-backed memory70k starscustom license79 out of 100