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]
Enh(inspect): Default to pwd for inspect
Kilian Lieretf0522ffbc4fc
diff --git a/sweagent/run/inspector_cli.py b/sweagent/run/inspector_cli.pyindex d011f008..50291c5a 100644--- a/sweagent/run/inspector_cli.py+++ b/sweagent/run/inspector_cli.py@@ -1,5 +1,6 @@import argparseimport json+import osfrom pathlib import Pathfrom rich.syntax import Syntax@@ -189,7 +190,12 @@ class TrajectoryInspectorApp(App):def main(args: list[str] | None = None):parser = argparse.ArgumentParser(description="Inspect trajectory JSON files")- parser.add_argument("trajectory_path", help="Path to the trajectory JSON file or directory containing trajectories")+ parser.add_argument(+ "trajectory_path",+ help="Path to the trajectory JSON file or directory containing trajectories",+ default=os.getcwd(),+ nargs="?",+ )parsed_args = parser.parse_args(args)app = TrajectoryInspectorApp(parsed_args.trajectory_path)