SWE-agent takes a GitHub issue and tries to automatically fix it, using your LM of choice. It can also be employed for offensive cybersecurity or competitive coding challenges. [NeurIPS 2024]
Doc: Command line interface and more (#914)
Kilian Lieret6f60999ba921
diff --git a/docs/installation/migration.md b/docs/installation/migration.mdindex 8a9755a1..33923cfa 100644--- a/docs/installation/migration.md+++ b/docs/installation/migration.md@@ -1,8 +1,5 @@# SWE-agent 1.0.0 migration guide-!!! warning "Work in progress"- We're currently in the process of updating this guide.-Welcome to SWE-agent 1.0! So much new stuff! Here's a quick rundown of the cool new things you can do:* :sparkles: Fast, massively parallel code execution with [SWE-ReX](https://github.com/swe-agent/SWE-ReX).@@ -12,6 +9,7 @@ Welcome to SWE-agent 1.0! So much new stuff! Here's a quick rundown of the cool* :sparkles: All language models supported using `litellm` (see [models](../installation/keys.md)).* :sparkles: Override any configuration option from the command line (see [command line basics](../usage/cl_tutorial.md)).* :sparkles: New [command line trajectory inspector](../usage/inspector.md) to scroll few hundreds of trajectories with ease.+* :sparkles: [New command line interface](../usage/cli.md) with subcommands for running over single issues, batches, and various utility commands.* :sparkles: Greatly simplified and cleaned up codebase. In particular, the `Agent` class is now much easier to modify.If you're familiar with the old SWE-agent, here are the main changes you need to be aware of.diff --git a/docs/overrides/main.html b/docs/overrides/main.htmlindex 868354fd..360997f4 100644--- a/docs/overrides/main.html+++ b/docs/overrides/main.html@@ -1,6 +1,6 @@{% extends "base.html" %}{% block announce %}-This is the pre-release of SWE-agent 1.0. <a href="https://swe-agent.com/latest/installation/migration/">New features + migration guide.</a>+SWE-agent 1.0 is the open source SOTA on SWE-bench lite! <a href="https://swe-agent.com/latest/installation/migration/">New features + migration guide.</a>{% endblock %}diff --git a/docs/usage/cli.md b/docs/usage/cli.mdnew file mode 100644index 00000000..bd0ca6e4--- /dev/null+++ b/docs/usage/cli.md@@ -0,0 +1,16 @@+# SWE-agent command line interface++All functionality of SWE-agent is available via the command line interface via the `sweagent` command.++You can run `sweagent --help` to see all subcommands.++Here's a quick overview:++* `sweagent run`: Run SWE-agent on a single issue ([tutorial](hello_world.md)).+* `sweagent run-batch`: Run SWE-agent on a batch of issues ([tutorial](batch_mode.md)).+* `sweagent run-replay`: Replay a trajectory file or a demo file. This means that you take all actions from the trajectory and execute them again in the environment. Useful for debugging your [tools](../config/tools.md) or for building new [demonstrations](../config/demonstrations.md).+* `sweagent inspect` or `sweagent i`: Open the command line inspector ([more information](inspector.md)).+* `sweagent inspector` or `sweagent I`: Open the web-based inspector ([more information](inspector.md)).+* `sweagent merge-preds`: Merge multiple prediction files into a single file.+* `sweagent traj-to-demo`: Convert a trajectory file to an easy to edit demo file ([more information on demonstrations](../config/demonstrations.md)).+diff --git a/docs/usage/index.md b/docs/usage/index.mdindex 3fa6b466..00d6e2a5 100644--- a/docs/usage/index.md+++ b/docs/usage/index.md@@ -13,6 +13,14 @@ Just want to run it? See [getting started](../index.md) instead+- :material-book:{ .lg .middle } __Command line interface__++ ---++ Learn about all the different subcommands of `sweagent`.++ [:octicons-arrow-right-24: Learn more](../usage/cli.md)+- :material-cog:{ .lg .middle } __Configuration__---diff --git a/docs/usage/whats_next.md b/docs/usage/whats_next.mdnew file mode 100644index 00000000..a6489c01--- /dev/null+++ b/docs/usage/whats_next.md@@ -0,0 +1,15 @@+# What's next?++Congratulations, this is currently the last tutorial!++Here are some ideas for what to check out next: There are two more sections on this website:++* [User guides](index.md): This covers selected topics in more detail, for example+ * What are all the different [subcommands](cli.md) of `sweagent`?+ * How to [configure swe-agent](../../config/)?+ * What's the main [architecture](../background/architecture.md) of SWE-agent?+* [API reference](../reference/index.md) for complete lists of all configuration options.++++diff --git a/mkdocs.yml b/mkdocs.ymlindex f844dedc..4e568dca 100644--- a/mkdocs.yml+++ b/mkdocs.yml@@ -71,6 +71,7 @@ nav:- "Solving coding challenges": "usage/coding_challenges.md"- "Trajectory inspector": "usage/inspector.md"- "Batch mode": "usage/batch_mode.md"+ - "What's next?": "usage/whats_next.md"- "FAQ": "faq.md"- User Guides:- "usage/index.md"@@ -78,6 +79,7 @@ nav:- "index": "background/index.md"- "Architecture": "background/architecture.md"- "Agent tools": "background/aci.md"+ - "Command line interface": "usage/cli.md"- "Output files": "usage/trajectories.md"- Configuration:- "index": "config/index.md"