[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-72172":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":23,"hasPages":25,"topics":26,"createdAt":10,"pushedAt":10,"updatedAt":33,"readmeContent":34,"aiSummary":35,"trendingCount":16,"starSnapshotCount":16,"syncStatus":36,"lastSyncTime":37,"discoverSource":38},72172,"mini-swe-agent","SWE-agent\u002Fmini-swe-agent","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!","https:\u002F\u002Fmini-swe-agent.com",null,"Python",5072,692,17,15,0,100,315,769,300,39.52,"MIT License",false,"main",true,[27,28,29,30,31,32],"agent","agentic-ai","agentic-ai-cli","ai","ai-agent","textual","2026-06-12 02:02:59","\u003Cdiv align=\"center\">\n\u003Ca href=\"https:\u002F\u002Fmini-swe-agent.com\u002Flatest\u002F\">\u003Cimg src=\"https:\u002F\u002Fgithub.com\u002FSWE-agent\u002Fmini-swe-agent\u002Fraw\u002Fmain\u002Fdocs\u002Fassets\u002Fmini-swe-agent-banner.svg\" alt=\"mini-swe-agent banner\" style=\"height: 7em\"\u002F>\u003C\u002Fa>\n\u003C\u002Fdiv>\n\n# The minimal AI software engineering agent\n\n📣 [New tutorial on building minimal AI agents](https:\u002F\u002Fminimal-agent.com\u002F)\u003Cbr\u002F>\n📣 [Gemini 3 Pro reaches 74% on SWE-bench verified with mini-swe-agent!](https:\u002F\u002Fx.com\u002FKLieret\u002Fstatus\u002F1991164693839270372)\u003Cbr\u002F>\n📣 [New blogpost: Randomly switching between GPT-5 and Sonnet 4 boosts performance](https:\u002F\u002Fwww.swebench.com\u002Fpost-250820-mini-roulette.html)\n\n[![Docs](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FDocs-green?style=for-the-badge&logo=materialformkdocs&logoColor=white)](https:\u002F\u002Fmini-swe-agent.com\u002Flatest\u002F)\n[![Slack](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FSlack-4A154B?style=for-the-badge&logo=slack&logoColor=white)](https:\u002F\u002Fjoin.slack.com\u002Ft\u002Fswe-bench\u002Fshared_invite\u002Fzt-36pj9bu5s-o3_yXPZbaH2wVnxnss1EkQ)\n[![PyPI - Version](https:\u002F\u002Fimg.shields.io\u002Fpypi\u002Fv\u002Fmini-swe-agent?style=for-the-badge&logo=python&logoColor=white&labelColor=black&color=deeppink)](https:\u002F\u002Fpypi.org\u002Fproject\u002Fmini-swe-agent\u002F)\n\n> [!WARNING]\n> This is **mini-swe-agent v2**. Read the [migration guide](https:\u002F\u002Fmini-swe-agent.com\u002Flatest\u002Fadvanced\u002Fv2_migration\u002F). For the previous version, check out the [v1 branch](https:\u002F\u002Fgithub.com\u002FSWE-agent\u002Fmini-swe-agent\u002Ftree\u002Fv1).\n\nIn 2024, we built [SWE-bench](https:\u002F\u002Fgithub.com\u002Fswe-bench\u002FSWE-bench) & [SWE-agent](https:\u002F\u002Fgithub.com\u002Fswe-agent\u002Fswe-agent) and helped kickstart the coding agent revolution.\n\nWe now ask: **What if our agent was 100x simpler, and still worked nearly as well?**\n\n`mini` is\n\n- **Widely adopted**: Used by Meta, NVIDIA, Essential AI, IBM, Nebius, Anyscale, Princeton University, Stanford University, and many more.\n- **Minimal**: Just some 100 lines of python for the [agent class](https:\u002F\u002Fgithub.com\u002FSWE-agent\u002Fmini-swe-agent\u002Fblob\u002Fmain\u002Fsrc\u002Fminisweagent\u002Fagents\u002Fdefault.py) (and a bit more for the [environment](https:\u002F\u002Fgithub.com\u002FSWE-agent\u002Fmini-swe-agent\u002Fblob\u002Fmain\u002Fsrc\u002Fminisweagent\u002Fenvironments\u002Flocal.py),\n[model](https:\u002F\u002Fgithub.com\u002FSWE-agent\u002Fmini-swe-agent\u002Fblob\u002Fmain\u002Fsrc\u002Fminisweagent\u002Fmodels\u002Flitellm_model.py), and [run script](https:\u002F\u002Fgithub.com\u002FSWE-agent\u002Fmini-swe-agent\u002Fblob\u002Fmain\u002Fsrc\u002Fminisweagent\u002Frun\u002Fhello_world.py)) — no fancy dependencies!\n- **Performant:** Scores >74% on the [SWE-bench verified benchmark](https:\u002F\u002Fwww.swebench.com\u002F); starts much faster than Claude Code\n- **Deployable:** Supports **local environments**, **docker\u002Fpodman**, **singularity\u002Fapptainer**, **bublewrap**, **contree**, and more\n- **Compatible:** Supports all models via **litellm**, **openrouter**, **portkey**, and more. Support for `\u002Fcompletion` and `\u002Fresponse` endpoints, interleaved thinking etc.\n- Built by the Princeton & Stanford team behind [SWE-bench](https:\u002F\u002Fswebench.com), [SWE-agent](https:\u002F\u002Fswe-agent.com), and more\n- **Tested:** [![Codecov](https:\u002F\u002Fimg.shields.io\u002Fcodecov\u002Fc\u002Fgithub\u002Fswe-agent\u002Fmini-swe-agent?style=flat-square)](https:\u002F\u002Fcodecov.io\u002Fgh\u002FSWE-agent\u002Fmini-swe-agent)\n\n\u003Cdetails>\n\n\u003Csummary>More motivation (for research)\u003C\u002Fsummary>\n\n[SWE-agent](https:\u002F\u002Fswe-agent.com\u002Flatest\u002F) jump-started the development of AI agents in 2024. Back then, we placed a lot of emphasis on tools and special interfaces for the agent.\nHowever, one year later, as LMs have become more capable, a lot of this is not needed at all to build a useful agent!\nIn fact, the `mini` agent\n\n- **Does not have any tools other than bash** — it doesn't even need to use the tool-calling interface of the LMs.\n  This means that you can run it with literally any model. When running in sandboxed environments you also don't need to take care\n  of installing a single package — all it needs is bash.\n- **Has a completely linear history** — every step of the agent just appends to the messages and that's it.\n  So there's no difference between the trajectory and the messages that you pass on to the LM.\n  Great for debugging & fine-tuning.\n- **Executes actions with `subprocess.run`** — every action is completely independent (as opposed to keeping a stateful shell session running).\n  This makes it trivial to execute the actions in sandboxes (literally just switch out `subprocess.run` with `docker exec`) and to\n  scale up effortlessly. Seriously, this is [a big deal](https:\u002F\u002Fmini-swe-agent.com\u002Flatest\u002Ffaq\u002F#why-no-shell-session), trust me.\n\nThis makes it perfect as a baseline system and for a system that puts the language model (rather than\nthe agent scaffold) in the middle of our attention.\nYou can see the result on the [SWE-bench (bash only)](https:\u002F\u002Fwww.swebench.com\u002F) leaderboard, that evaluates the performance of different LMs with `mini`.\n\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>More motivation (as a tool)\u003C\u002Fsummary>\n\nSome agents are overfitted research artifacts. Others are UI-heavy frontend monsters.\n\nThe `mini` agent wants to be a hackable tool, not a black box.\n\n- **Simple** enough to understand at a glance\n- **Convenient** enough to use in daily workflows\n- **Flexible** to extend\n\nUnlike other agents (including our own [swe-agent](https:\u002F\u002Fswe-agent.com\u002Flatest\u002F)), it is radically simpler, because it:\n\n- **Does not have any tools other than bash** — it doesn't even need to use the tool-calling interface of the LMs.\n  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.\n  Want it to do something specific like opening a PR?\n  Just tell the LM to figure it out rather than spending time to implement it in the agent.\n- **Executes actions with `subprocess.run`** — every action is completely independent (as opposed to keeping a stateful shell session running).\n  This is [a big deal](https:\u002F\u002Fmini-swe-agent.com\u002Flatest\u002Ffaq\u002F#why-no-shell-session) for the stability of the agent, trust me.\n- **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.\n  This is great for debugging and understanding what the LM is prompted with.\n\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>Should I use SWE-agent or mini-SWE-agent?\u003C\u002Fsummary>\n\nYou should consider `mini-swe-agent` your default choice.\nIn particular, you should use `mini-swe-agent` if\n\n- You want a quick command line tool that works locally\n- You want an agent with a very simple control flow\n- You want even faster, simpler & more stable sandboxing & benchmark evaluations\n- You are doing FT or RL and don't want to overfit to a specific agent scaffold\n\nYou should use `swe-agent` if\n\n- You want to experiment with different sets of tools, each with their own interface\n- You want to experiment with different history processors\n\nWhat you get with both\n\n- Excellent performance on SWE-Bench\n- A trajectory browser\n\n\u003C\u002Fdetails>\n\n\u003Ctable>\n\u003Ctr>\n\u003Ctd width=\"50%\">\n\u003Ca href=\"https:\u002F\u002Fmini-swe-agent.com\u002Flatest\u002Fusage\u002Fmini\u002F\">\u003Cstrong>CLI\u003C\u002Fstrong>\u003C\u002Fa> (\u003Ccode>mini\u003C\u002Fcode>)\n\u003C\u002Ftd>\n\u003Ctd>\n\u003Ca href=\"https:\u002F\u002Fmini-swe-agent.com\u002Flatest\u002Fusage\u002Fswebench\u002F\">\u003Cstrong>Batch inference\u003C\u002Fstrong>\u003C\u002Fa>\n\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd width=\"50%\">\n\n![mini](https:\u002F\u002Fgithub.com\u002FSWE-agent\u002Fswe-agent-media\u002Fblob\u002Fmain\u002Fmedia\u002Fmini\u002Fgif\u002Fmini.gif?raw=true)\n\n\u003C\u002Ftd>\n\u003Ctd>\n\n![swebench](https:\u002F\u002Fgithub.com\u002FSWE-agent\u002Fswe-agent-media\u002Fblob\u002Fmain\u002Fmedia\u002Fmini\u002Fgif\u002Fswebench.gif?raw=true)\n\n\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\n\u003Ca href=\"https:\u002F\u002Fmini-swe-agent.com\u002Flatest\u002Fusage\u002Finspector\u002F\">\u003Cstrong>Trajectory browser\u003C\u002Fstrong>\u003C\u002Fa>\n\u003C\u002Ftd>\n\u003Ctd>\n\u003Ca href=\"https:\u002F\u002Fmini-swe-agent.com\u002Flatest\u002Fadvanced\u002Fcookbook\u002F\">\u003Cstrong>Python bindings\u003C\u002Fstrong>\u003C\u002Fa>\n\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\n\n![inspector](https:\u002F\u002Fgithub.com\u002FSWE-agent\u002Fswe-agent-media\u002Fblob\u002Fmain\u002Fmedia\u002Fmini\u002Fgif\u002Finspector.gif?raw=true)\n\n\u003C\u002Ftd>\n\u003Ctd>\n\n```python\nagent = DefaultAgent(\n    LitellmModel(model_name=...),\n    LocalEnvironment(),\n)\nagent.run(\"Write a sudoku game\")\n```\n\n\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftable>\n\n## Let's get started!\n\n**Option 1:** If you just want to try out the CLI (package installed in anonymous virtual environment)\n\n```bash\npip install uv && uvx mini-swe-agent\n# or\npip install pipx && pipx ensurepath && pipx run mini-swe-agent\n```\n\n**Option 2:** Install CLI & python bindings in current environment\n\n```bash\npip install mini-swe-agent\nmini  # run the CLI\n```\n\n**Option 3:** Install from source (developer setup)\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002FSWE-agent\u002Fmini-swe-agent.git\ncd mini-swe-agent && pip install -e .\nmini  # run the CLI\n```\n\nRead more in our [documentation](https:\u002F\u002Fmini-swe-agent.com\u002Flatest\u002F):\n\n* [Quick start guide](https:\u002F\u002Fmini-swe-agent.com\u002Flatest\u002Fquickstart\u002F)\n* [Using the `mini` CLI](https:\u002F\u002Fmini-swe-agent.com\u002Flatest\u002Fusage\u002Fmini\u002F)\n* [Global configuration](https:\u002F\u002Fmini-swe-agent.com\u002Flatest\u002Fadvanced\u002Fglobal_configuration\u002F)\n* [Yaml configuration files](https:\u002F\u002Fmini-swe-agent.com\u002Flatest\u002Fadvanced\u002Fyaml_configuration\u002F)\n* [Power up with the cookbook](https:\u002F\u002Fmini-swe-agent.com\u002Flatest\u002Fadvanced\u002Fcookbook\u002F)\n* [FAQ](https:\u002F\u002Fmini-swe-agent.com\u002Flatest\u002Ffaq\u002F)\n* [Contribute!](https:\u002F\u002Fmini-swe-agent.com\u002Flatest\u002Fcontributing\u002F)\n\n## Attribution\n\nIf you found this work helpful, please consider citing the [SWE-agent paper](https:\u002F\u002Farxiv.org\u002Fabs\u002F2405.15793) in your work:\n\n```bibtex\n@inproceedings{yang2024sweagent,\n  title={{SWE}-agent: Agent-Computer Interfaces Enable Automated Software Engineering},\n  author={John Yang and Carlos E Jimenez and Alexander Wettig and Kilian Lieret and Shunyu Yao and Karthik R Narasimhan and Ofir Press},\n  booktitle={The Thirty-eighth Annual Conference on Neural Information Processing Systems},\n  year={2024},\n  url={https:\u002F\u002Farxiv.org\u002Fabs\u002F2405.15793}\n}\n```\n\nOur other projects:\n\n\u003Cdiv align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Fgithub.com\u002FSWE-agent\u002FSWE-agent\">\u003Cimg src=\"https:\u002F\u002Fraw.githubusercontent.com\u002FSWE-agent\u002Fswe-agent-media\u002Frefs\u002Fheads\u002Fmain\u002Fmedia\u002Flogos_banners\u002Fsweagent_logo_text_below.svg\" alt=\"SWE-agent\" height=\"120px\">\u003C\u002Fa>\n   &nbsp;&nbsp;\n  \u003Ca href=\"https:\u002F\u002Fgithub.com\u002FSWE-agent\u002FSWE-ReX\">\u003Cimg src=\"https:\u002F\u002Fraw.githubusercontent.com\u002FSWE-agent\u002Fswe-agent-media\u002Frefs\u002Fheads\u002Fmain\u002Fmedia\u002Flogos_banners\u002Fswerex_logo_text_below.svg\" alt=\"SWE-ReX\" height=\"120px\">\u003C\u002Fa>\n   &nbsp;&nbsp;\n  \u003Ca href=\"https:\u002F\u002Fgithub.com\u002FSWE-bench\u002FSWE-bench\">\u003Cimg src=\"https:\u002F\u002Fraw.githubusercontent.com\u002FSWE-agent\u002Fswe-agent-media\u002Frefs\u002Fheads\u002Fmain\u002Fmedia\u002Flogos_banners\u002Fswebench_logo_text_below.svg\" alt=\"SWE-bench\" height=\"120px\">\u003C\u002Fa>\n  &nbsp;&nbsp;\n  \u003Ca href=\"https:\u002F\u002Fgithub.com\u002FSWE-bench\u002FSWE-smith\">\u003Cimg src=\"https:\u002F\u002Fraw.githubusercontent.com\u002FSWE-agent\u002Fswe-agent-media\u002Frefs\u002Fheads\u002Fmain\u002Fmedia\u002Flogos_banners\u002Fswesmith_logo_text_below.svg\" alt=\"SWE-smith\" height=\"120px\">\u003C\u002Fa>\n  &nbsp;&nbsp;\n  \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fcodeclash-ai\u002Fcodeclash\">\u003Cimg src=\"https:\u002F\u002Fraw.githubusercontent.com\u002FSWE-agent\u002Fswe-agent-media\u002Frefs\u002Fheads\u002Fmain\u002Fmedia\u002Flogos_banners\u002Fcodeclash_logo_text_below.svg\" alt=\"CodeClash\" height=\"120px\">\u003C\u002Fa>\n  &nbsp;&nbsp;\n  \u003Ca href=\"https:\u002F\u002Fgithub.com\u002FSWE-bench\u002Fsb-cli\">\u003Cimg src=\"https:\u002F\u002Fraw.githubusercontent.com\u002FSWE-agent\u002Fswe-agent-media\u002Frefs\u002Fheads\u002Fmain\u002Fmedia\u002Flogos_banners\u002Fsbcli_logo_text_below.svg\" alt=\"sb-cli\" height=\"120px\">\u003C\u002Fa>\n\u003C\u002Fdiv>\n","mini-swe-agent 是一个轻量级的AI软件工程代理，能够解决GitHub问题或在命令行中提供帮助。它仅用约100行Python代码实现核心功能，无需复杂的配置和庞大的依赖库，却能在SWE-bench验证基准上达到超过74%的得分。该工具支持多种部署方式，包括本地环境、Docker\u002FPodman等容器技术，并且兼容litellm、openrouter等多种模型接口。适用于需要快速集成高效AI助手以提高开发效率的场景，尤其适合希望简化AI应用流程而不牺牲性能的小型团队和个人开发者。",2,"2026-06-11 03:40:40","high_star"]