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]
Important fix: Quit if >= 1 accept and >= min_draws
Kilian Lieretf0aa81a546d9
diff --git a/sweagent/agent/reviewer.py b/sweagent/agent/reviewer.pyindex 4c16a69d..145276ee 100644--- a/sweagent/agent/reviewer.py+++ b/sweagent/agent/reviewer.py@@ -467,7 +467,7 @@ class ReviewLoop(AbstractReviewLoop):logger.info(f"{self.LOG_PREFIX}Exiting retry loop ({stat_str}): `max_samples` reached")return False- if self._reviews[-1].accept and self._n_samples >= self._loop_config.min_draws:+ if self._n_accepted and self._n_samples >= self._loop_config.min_draws:logger.info(f"{self.LOG_PREFIX}Existing retry loop ({stat_str}): `min_draws` reached and last submission was accepted")