Name | micro-swe-agent JSON |
Version |
1.0.2
JSON |
| download |
home_page | None |
Summary | Nano SWE Agent - A simple AI software engineering agent |
upload_time | 2025-07-22 23:23:39 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.11 |
license | MIT License
Copyright (c) 2025 Kilian A. Lieret and Carlos E. Jimenez
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE. |
keywords |
nlp
agents
code
|
VCS |
 |
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
<div align="center">
<a href="https://micro-swe-agent.com/latest/"><img src="https://github.com/SWE-agent/micro-swe-agent/raw/main/docs/assets/micro-swe-agent-banner.svg" alt="micro-swe-agent banner" style="height: 7em"/></a>
<h1>The 100 line AI agent that solves GitHub issues & more</h1>
[](https://micro-swe-agent.com/latest/)
[](https://join.slack.com/t/swe-bench/shared_invite/zt-36pj9bu5s-o3_yXPZbaH2wVnxnss1EkQ)

</div>
In 2024, [SWE-bench](https://swebench.com) & [SWE-agent](https://swe-agent.com) helped kickstart the agentic AI for software revolution.
We now ask: **What if SWE-agent was 100x smaller, and still worked nearly as well?**
`micro` is for
- ๐งช **Researchers** who want to **benchmark, fine-tune or RL** without assumptions, bloat, or surprises
- ๐งโ๐ป **Hackers & power users** who like their tools like their scripts: **short, sharp, and readable**
- ๐ณ **Engineers** who want something **trivial to sandbox & to deploy anywhere**
Here's some details:
- **๐ Minimal**: Just [100 lines of python](https://github.com/SWE-agent/micro-swe-agent/blob/main/src/microsweagent/agents/default.py) (+100 total for [env](https://github.com/SWE-agent/micro-swe-agent/blob/main/src/microsweagent/environments/local.py),
[model](https://github.com/SWE-agent/micro-swe-agent/blob/main/src/microsweagent/models/litellm_model.py), [script](https://github.com/SWE-agent/micro-swe-agent/blob/main/src/microsweagent/run/hello_world.py)) โ no fancy dependencies!
- **๐ช Powerful:** Resolves 65% of GitHub issues in the [SWE-bench verified benchmark](https://www.swebench.com/).
- **๐ค Friendly:** Comes with **two convenient UIs** that will turn this into your daily dev swiss army knife!
- **๐ Environments:** In addition to local envs, you can use **docker**, **podman**, **singularity**, **apptainer**, and more
- **๐งช Tested:** [](https://codecov.io/gh/SWE-agent/micro-swe-agent)
- **๐ Cutting edge:** Built by the Princeton & Stanford team behind [SWE-bench](https://swebench.com) and [SWE-agent](https://swe-agent.com).
<details>
<summary>More motivation (for research)</summary>
[SWE-agent](https://swe-agent.com/latest/) 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.
However, one year later, as LMs have become more capable, a lot of this is not needed at all to build a useful agent!
In fact, micro-SWE-agent
- Does not have any tools other than bash โ it doesn't even use the tool-calling interface of the LMs.
This means that you can run it with literally any model. When running in sandboxed environments you also don't need to to take care
of installing a single package โ all it needs is bash.
- Has a completely linear history โ every step of the agent just appends to the messages and that's it.
So there's no difference between the trajectory and the messages that you pass on to the LM.
- Executes actions with `subprocess.run` โ every action is completely independent (as opposed to keeping a stateful shell session running).
This makes it trivial to execute the actions in sandboxes (literally just switch out `subprocess.run` with `docker exec`) and to
scale up effortlessly.
This makes it perfect as a baseline system and for a system that puts the language model (rather than
the agent scaffold) in the middle of our attention.
</details>
<details>
<summary>More motivation (as a tool)</summary>
Some agents are overfitted research artifacts.
Others are UI-heavy tools, highly optimized for a specific user experience.
Both variants are hard to understand.
`micro` strives to be
- **Simple** enough to understand at a glance
- **Convenient** enough to use in daily workflows
- **Flexible** to extend
A hackable tool, not a black box.
Unlike other agents (including our own [swe-agent](https://swe-agent.com/latest/)),
it is radically simpler, because it
- Does not have any tools other than bash โ it doesn't even use the tool-calling interface of the LMs.
- Has a completely linear history โ every step of the agent just appends to the messages and that's it.
- Executes actions with `subprocess.run` โ every action is completely independent (as opposed to keeping a stateful shell session running).
</details>
<details>
<summary>Should I use SWE-agent or micro-SWE-agent?</summary>
You should use [`swe-agent`](https://swe-agent.com/latest/) if
- You need specific tools or want to experiment with different tools
- You want to experiment with different history processors
- You want very powerful yaml configuration without touching code
You should use [`micro-swe-agent`](https://micro-swe-agent.com/latest/) if
- You want a quick command line tool that works locally
- You want an agent with a very simple control flow
- You want even faster, simpler & more stable sandboxing & benchmark evaluations
What you get with both
- Excellent performance on SWE-Bench
- A trajectory browser
</details>
<table>
<tr>
<td width="50%">
<a href="https://micro-swe-agent.com/latest/usage/micro/"><strong>Simple UI</strong></a> (<code>micro</code>)
</td>
<td>
<a href="https://micro-swe-agent.com/latest/usage/micro_v/"><strong>Visual UI</strong></a> (<code>micro -v</code>)
</td>
</tr>
<tr>
<td width="50%">

</td>
<td>

</td>
</tr>
<tr>
<td>
<a href="https://micro-swe-agent.com/latest/usage/swebench/"><strong>Batch inference</strong></a>
</td>
<td>
<a href="https://micro-swe-agent.com/latest/usage/inspector/"><strong>Trajectory browser</strong></a>
</td>
<tr>
<tr>
<td>

</td>
<td>

</td>
</tr>
<td>
<a href="https://micro-swe-agent.com/latest/advanced/cookbook/"><strong>Python bindings</strong></a>
</td>
<td>
<a href="https://micro-swe-agent.com"><strong>More in the docs</strong></a>
</td>
</tr>
<tr>
<td>
```python
agent = DefaultAgent(
LitellmModel(model_name=...),
LocalEnvironment(),
)
agent.run("Write a sudoku game")
```
</td>
<td>
* [Quick start](https://micro-swe-agent.com/latest/quickstart/)
* [`micro`](https://micro-swe-agent.com/latest/usage/micro/)
* [FAQ](https://micro-swe-agent.com/latest/faq/)
* [Configuration](https://micro-swe-agent.com/latest/advanced/configuration/)
* [Power up](https://micro-swe-agent.com/latest/advanced/cookbook/)
</td>
</tr>
</table>
## ๐ฅ Let's get started!
Install + run in virtual environment
```bash
pip install pipx && pipx ensurepath && pipx run micro-swe-agent [-v]
```
Alternative: Install in current environment
```bash
pip install micro-swe-agent && micro [-v]
```
Alternative: Install from source
```bash
git clone https://github.com/SWE-agent/micro-swe-agent.git
cd micro-swe-agent
pip install -e .
micro [-v]
```
Read more in our [documentation](https://micro-swe-agent.com/latest/):
* [Quick start guide](https://micro-swe-agent.com/latest/quickstart/)
* More on [`micro`](https://micro-swe-agent.com/latest/usage/micro/) and [`micro -v`](https://micro-swe-agent.com/latest/usage/micro_v/)
* [Configuration](https://micro-swe-agent.com/latest/advanced/configuration/)
* [Power up with the cookbook](https://micro-swe-agent.com/latest/advanced/cookbook/)
* [FAQ](https://micro-swe-agent.com/latest/faq/)
* [Contribute!](https://micro-swe-agent.com/latest/contributing/)
## ๐ More agentic AI
<div align="center">
<a href="https://github.com/SWE-agent/SWE-agent"><img src="https://github.com/SWE-agent/micro-swe-agent/raw/main/docs/assets/sweagent_logo_text_below.svg" alt="SWE-agent" height="120px"></a>
<a href="https://github.com/SWE-agent/SWE-ReX"><img src="https://github.com/SWE-agent/micro-swe-agent/raw/main/docs/assets/swerex_logo_text_below.svg" alt="SWE-ReX" height="120px"></a>
<a href="https://github.com/SWE-bench/SWE-bench"><img src="https://github.com/SWE-agent/micro-swe-agent/raw/main/docs/assets/swebench_logo_text_below.svg" alt="SWE-bench" height="120px"></a>
<a href="https://github.com/SWE-bench/SWE-smith"><img src="https://github.com/SWE-agent/micro-swe-agent/raw/main/docs/assets/swesmith_logo_text_below.svg" alt="SWE-smith" height="120px"></a>
<a href="https://github.com/SWE-bench/sb-cli"><img src="https://github.com/SWE-agent/micro-swe-agent/raw/main/docs/assets/sbcli_logo_text_below.svg" alt="sb-cli" height="120px"></a>
</div>
Raw data
{
"_id": null,
"home_page": null,
"name": "micro-swe-agent",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.11",
"maintainer_email": null,
"keywords": "nlp, agents, code",
"author": null,
"author_email": "Kilian Lieret <kilian.lieret@posteo.de>, \"Carlos E. Jimenez\" <carlosej@princeton.edu>",
"download_url": "https://files.pythonhosted.org/packages/1a/19/22adbc2e750e5c75a1eaa233a27e6b6e8ffe4e6f5a96ae3c515d90203ca2/micro_swe_agent-1.0.2.tar.gz",
"platform": null,
"description": "<div align=\"center\">\n\n<a href=\"https://micro-swe-agent.com/latest/\"><img src=\"https://github.com/SWE-agent/micro-swe-agent/raw/main/docs/assets/micro-swe-agent-banner.svg\" alt=\"micro-swe-agent banner\" style=\"height: 7em\"/></a>\n\n<h1>The 100 line AI agent that solves GitHub issues & more</h1>\n\n[](https://micro-swe-agent.com/latest/)\n[](https://join.slack.com/t/swe-bench/shared_invite/zt-36pj9bu5s-o3_yXPZbaH2wVnxnss1EkQ)\n\n\n</div>\n\nIn 2024, [SWE-bench](https://swebench.com) & [SWE-agent](https://swe-agent.com) helped kickstart the agentic AI for software revolution.\n\nWe now ask: **What if SWE-agent was 100x smaller, and still worked nearly as well?**\n\n`micro` is for\n\n- \ud83e\uddea **Researchers** who want to **benchmark, fine-tune or RL** without assumptions, bloat, or surprises\n- \ud83e\uddd1\u200d\ud83d\udcbb **Hackers & power users** who like their tools like their scripts: **short, sharp, and readable**\n- \ud83d\udc33 **Engineers** who want something **trivial to sandbox & to deploy anywhere**\n\nHere's some details:\n\n- **\ud83d\udc1c Minimal**: Just [100 lines of python](https://github.com/SWE-agent/micro-swe-agent/blob/main/src/microsweagent/agents/default.py) (+100 total for [env](https://github.com/SWE-agent/micro-swe-agent/blob/main/src/microsweagent/environments/local.py),\n[model](https://github.com/SWE-agent/micro-swe-agent/blob/main/src/microsweagent/models/litellm_model.py), [script](https://github.com/SWE-agent/micro-swe-agent/blob/main/src/microsweagent/run/hello_world.py)) \u2014 no fancy dependencies!\n- **\ud83d\udcaa Powerful:** Resolves 65% of GitHub issues in the [SWE-bench verified benchmark](https://www.swebench.com/).\n- **\ud83e\udd17 Friendly:** Comes with **two convenient UIs** that will turn this into your daily dev swiss army knife!\n- **\ud83c\udf40 Environments:** In addition to local envs, you can use **docker**, **podman**, **singularity**, **apptainer**, and more\n- **\ud83e\uddea Tested:** [](https://codecov.io/gh/SWE-agent/micro-swe-agent)\n- **\ud83c\udf93 Cutting edge:** Built by the Princeton & Stanford team behind [SWE-bench](https://swebench.com) and [SWE-agent](https://swe-agent.com).\n\n<details>\n\n<summary>More motivation (for research)</summary>\n\n[SWE-agent](https://swe-agent.com/latest/) 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, micro-SWE-agent\n\n- Does not have any tools other than bash \u2014 it doesn't even 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 to take care\n of installing a single package \u2014 all it needs is bash.\n- Has a completely linear history \u2014 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- Executes actions with `subprocess.run` \u2014 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.\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.\n\n</details>\n\n<details>\n<summary>More motivation (as a tool)</summary>\n\nSome agents are overfitted research artifacts.\nOthers are UI-heavy tools, highly optimized for a specific user experience.\nBoth variants are hard to understand.\n\n`micro` strives to be\n\n- **Simple** enough to understand at a glance\n- **Convenient** enough to use in daily workflows\n- **Flexible** to extend\n\nA hackable tool, not a black box.\n\nUnlike other agents (including our own [swe-agent](https://swe-agent.com/latest/)),\nit is radically simpler, because it\n\n- Does not have any tools other than bash \u2014 it doesn't even use the tool-calling interface of the LMs.\n- Has a completely linear history \u2014 every step of the agent just appends to the messages and that's it.\n- Executes actions with `subprocess.run` \u2014 every action is completely independent (as opposed to keeping a stateful shell session running).\n\n</details>\n\n<details>\n<summary>Should I use SWE-agent or micro-SWE-agent?</summary>\n\nYou should use [`swe-agent`](https://swe-agent.com/latest/) if\n\n- You need specific tools or want to experiment with different tools\n- You want to experiment with different history processors\n- You want very powerful yaml configuration without touching code\n\nYou should use [`micro-swe-agent`](https://micro-swe-agent.com/latest/) 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\nWhat you get with both\n\n- Excellent performance on SWE-Bench\n- A trajectory browser\n\n</details>\n\n<table>\n<tr>\n<td width=\"50%\">\n<a href=\"https://micro-swe-agent.com/latest/usage/micro/\"><strong>Simple UI</strong></a> (<code>micro</code>)\n</td>\n<td>\n<a href=\"https://micro-swe-agent.com/latest/usage/micro_v/\"><strong>Visual UI</strong></a> (<code>micro -v</code>)\n</td>\n</tr>\n<tr>\n<td width=\"50%\">\n\n \n\n</td>\n<td>\n\n \n\n</td>\n</tr>\n<tr>\n <td>\n <a href=\"https://micro-swe-agent.com/latest/usage/swebench/\"><strong>Batch inference</strong></a>\n </td>\n <td>\n <a href=\"https://micro-swe-agent.com/latest/usage/inspector/\"><strong>Trajectory browser</strong></a>\n </td>\n<tr>\n<tr>\n\n<td>\n\n\n\n</td>\n\n<td>\n\n\n\n</td>\n\n</tr>\n<td>\n<a href=\"https://micro-swe-agent.com/latest/advanced/cookbook/\"><strong>Python bindings</strong></a>\n</td>\n<td>\n<a href=\"https://micro-swe-agent.com\"><strong>More in the docs</strong></a>\n</td>\n</tr>\n<tr>\n<td>\n\n```python\nagent = DefaultAgent(\n LitellmModel(model_name=...),\n LocalEnvironment(),\n)\nagent.run(\"Write a sudoku game\")\n```\n</td>\n<td>\n\n* [Quick start](https://micro-swe-agent.com/latest/quickstart/)\n* [`micro`](https://micro-swe-agent.com/latest/usage/micro/)\n* [FAQ](https://micro-swe-agent.com/latest/faq/)\n* [Configuration](https://micro-swe-agent.com/latest/advanced/configuration/)\n* [Power up](https://micro-swe-agent.com/latest/advanced/cookbook/)\n\n</td>\n</tr>\n</table>\n\n## \ud83d\udd25 Let's get started!\n\nInstall + run in virtual environment\n\n```bash\npip install pipx && pipx ensurepath && pipx run micro-swe-agent [-v]\n```\n\nAlternative: Install in current environment\n\n```bash\npip install micro-swe-agent && micro [-v]\n```\n\nAlternative: Install from source\n\n```bash\ngit clone https://github.com/SWE-agent/micro-swe-agent.git\ncd micro-swe-agent\npip install -e .\nmicro [-v]\n```\n\nRead more in our [documentation](https://micro-swe-agent.com/latest/):\n\n* [Quick start guide](https://micro-swe-agent.com/latest/quickstart/)\n* More on [`micro`](https://micro-swe-agent.com/latest/usage/micro/) and [`micro -v`](https://micro-swe-agent.com/latest/usage/micro_v/)\n* [Configuration](https://micro-swe-agent.com/latest/advanced/configuration/)\n* [Power up with the cookbook](https://micro-swe-agent.com/latest/advanced/cookbook/)\n* [FAQ](https://micro-swe-agent.com/latest/faq/)\n* [Contribute!](https://micro-swe-agent.com/latest/contributing/)\n\n## \ud83d\udc40 More agentic AI\n\n<div align=\"center\">\n <a href=\"https://github.com/SWE-agent/SWE-agent\"><img src=\"https://github.com/SWE-agent/micro-swe-agent/raw/main/docs/assets/sweagent_logo_text_below.svg\" alt=\"SWE-agent\" height=\"120px\"></a>\n \n <a href=\"https://github.com/SWE-agent/SWE-ReX\"><img src=\"https://github.com/SWE-agent/micro-swe-agent/raw/main/docs/assets/swerex_logo_text_below.svg\" alt=\"SWE-ReX\" height=\"120px\"></a>\n \n <a href=\"https://github.com/SWE-bench/SWE-bench\"><img src=\"https://github.com/SWE-agent/micro-swe-agent/raw/main/docs/assets/swebench_logo_text_below.svg\" alt=\"SWE-bench\" height=\"120px\"></a>\n \n <a href=\"https://github.com/SWE-bench/SWE-smith\"><img src=\"https://github.com/SWE-agent/micro-swe-agent/raw/main/docs/assets/swesmith_logo_text_below.svg\" alt=\"SWE-smith\" height=\"120px\"></a>\n \n <a href=\"https://github.com/SWE-bench/sb-cli\"><img src=\"https://github.com/SWE-agent/micro-swe-agent/raw/main/docs/assets/sbcli_logo_text_below.svg\" alt=\"sb-cli\" height=\"120px\"></a>\n</div>\n\n",
"bugtrack_url": null,
"license": "MIT License\n \n Copyright (c) 2025 Kilian A. Lieret and Carlos E. Jimenez\n \n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n \n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n \n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.",
"summary": "Nano SWE Agent - A simple AI software engineering agent",
"version": "1.0.2",
"project_urls": {
"Bug Tracker": "https://github.com/SWE-agent/micro-SWE-agent/issues",
"Documentation": "https://micro-swe-agent.com/latest/",
"Repository": "https://github.com/SWE-agent/micro-SWE-agent"
},
"split_keywords": [
"nlp",
" agents",
" code"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "dbada2cf8fee7ac4fac711d3e66b4144ba5c99b2460a77f528adaf623e25f36f",
"md5": "096644f88eb468b348b3bddba7bdbffb",
"sha256": "6c551b53f7d3641ec190611e3b10c5a3ac72598f67b1db2571f96a6345265e8a"
},
"downloads": -1,
"filename": "micro_swe_agent-1.0.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "096644f88eb468b348b3bddba7bdbffb",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.11",
"size": 52372,
"upload_time": "2025-07-22T23:23:38",
"upload_time_iso_8601": "2025-07-22T23:23:38.273595Z",
"url": "https://files.pythonhosted.org/packages/db/ad/a2cf8fee7ac4fac711d3e66b4144ba5c99b2460a77f528adaf623e25f36f/micro_swe_agent-1.0.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "1a1922adbc2e750e5c75a1eaa233a27e6b6e8ffe4e6f5a96ae3c515d90203ca2",
"md5": "bc31b77162e45594dde1bab4e81fe119",
"sha256": "7066b3a4d6fce57af583c6d31df727a32136690ea1647d16d66bfa785d54f4ad"
},
"downloads": -1,
"filename": "micro_swe_agent-1.0.2.tar.gz",
"has_sig": false,
"md5_digest": "bc31b77162e45594dde1bab4e81fe119",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.11",
"size": 37189,
"upload_time": "2025-07-22T23:23:39",
"upload_time_iso_8601": "2025-07-22T23:23:39.428397Z",
"url": "https://files.pythonhosted.org/packages/1a/19/22adbc2e750e5c75a1eaa233a27e6b6e8ffe4e6f5a96ae3c515d90203ca2/micro_swe_agent-1.0.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-07-22 23:23:39",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "SWE-agent",
"github_project": "micro-SWE-agent",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "micro-swe-agent"
}