(self)
| 132 | """Update mirror agent's codebase with the main agent's changes.""" |
| 133 | full_diff = self._get_round_diff(self.agent.name, round_num) |
| 134 | full_diff = filter_git_diff(full_diff) |
| 135 | self.mirror_agent.reset_and_apply_patch(full_diff) |
| 136 | |
| 137 | def _save(self) -> None: |
| 138 | self.local_output_dir.mkdir(parents=True, exist_ok=True) |
| 139 | atomic_write(self.local_output_dir / "metadata.json", json.dumps(self.get_metadata(), indent=2)) |
| 140 | if is_running_in_aws_batch(): |
| 141 | s3_log_sync(self.local_output_dir, logger=self.logger) |
no test coverage detected