Skip to content

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]

Merge remote-tracking branch 'refs/remotes/origin/swerex-integration' into swerex-integration

carlosejimenez7cc23cf581fa
diff --cc sweagent/inspector/fileViewer.js
index 6737994c,0bac152b..909d30b3
--- a/sweagent/inspector/fileViewer.js
+++ b/sweagent/inspector/fileViewer.js
@@@ -182,10 -163,9 +182,10 @@@ function fetchDirectoryInfo()
.then((response) => response.json())
.then((data) => {
if (data.directory) {
- trajectoryDirectory = data.directory; // Store the directory
+ trajectoryDirectory = data.directory;
+ document.title = `Trajectory Viewer: ${data.directory}`;
- document.querySelector("h1").textContent =
- `Trajectory Viewer: ${data.directory}`;
+ document.getElementById("directoryInfo").textContent =
+ `Directory: ${data.directory}`;
}
})
.catch((error) => console.error("Error fetching directory info:", error));
diff --cc sweagent/inspector/server.py
index 27e2529b,f4361b9c..551359cb
--- a/sweagent/inspector/server.py
+++ b/sweagent/inspector/server.py
@@@ -126,9 -165,16 +147,10 @@@ def load_content(file_name, gold_patche
results_file = Path(file_name).parent / "results.json"
results = load_results(results_file)
- scorecards_file = Path(file_name).parent / "scorecards.json"
- scorecards = None
- if scorecards_file.exists():
- with open(scorecards_file) as infile:
- scorecards = json.load(infile)
-
- content = append_exit(content) # accommodate new and old format
+ content = append_exit(content)
content = append_patch(Path(file_name).stem, content, gold_patches, "Gold")
content = append_patch(Path(file_name).stem, content, test_patches, "Test")
+ content["history"].insert(0, {"role": "Action Summary", "content": get_action_summary(content)})
return append_results(
Path(file_name),
Path(file_name).stem,
diff --cc sweagent/inspector/style.css
index 60d1f0a5,f4165972..a5072351
--- a/sweagent/inspector/style.css
+++ b/sweagent/inspector/style.css
@@@ -2,7 -2,7 +2,8 @@@ body
font-family: Arial, sans-serif;
margin: 0;
padding: 20px;
- background-color: #f4f4f4;
+ background-color: #1e1e1e;
++ color: #d4d4d4;
}
h1,
h2 {