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]

Make replayed trajectories replayable

carlosejimenezec3165b2be6f
diff --git a/sweagent/run/run_replay.py b/sweagent/run/run_replay.py
index 9166a335..dd1e9467 100644
--- a/sweagent/run/run_replay.py
+++ b/sweagent/run/run_replay.py
@@ -147,6 +147,11 @@ class RunReplay:
def main(self):
self._create_actions_file()
run_single = self._get_run_single()
+ run_single.agent.replay_config = RunSingleConfig(
+ agent=self.config.agent,
+ problem_statement=run_single.problem_statement,
+ env=self.config.env,
+ )
run_single.run()