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]

Crit fix(retry agent): Reset total_instance stats

Kilian Lieretb442c07f1714
diff --git a/sweagent/agent/agents.py b/sweagent/agent/agents.py
index ebef81af..a0b1c27c 100644
--- a/sweagent/agent/agents.py
+++ b/sweagent/agent/agents.py
@@ -236,6 +236,7 @@ class RetryAgent(AbstractAgent):
"""Setup the retry agent for a new problem instance.
This is mostly a bookkeeping step.
"""
+ self._total_instance_stats = InstanceStats()
self._problem_statement = problem_statement
self._traj_path = output_dir / (self._problem_statement.id + ".traj")
self._env = env