MCPcopy Create free account
hub / github.com/CodeClash-ai/CodeClash / pre_run_hook

Method pre_run_hook

codeclash/agents/player.py:92–96  ·  view source on GitHub ↗

Should be called before we call the run method.

(self, *, new_round: int)

Source from the content-addressed store, hash-verified

90 )
91 == 0
92 ):
93 assert_zero_exit_code(
94 self.environment.execute(f"git checkout -B {self._branch_name} origin/{self._branch_name}"),
95 logger=self.logger,
96 )
97 else:
98 self.logger.info(f"Branch {self._branch_name} doesn't exist on remote, creating it")
99 assert_zero_exit_code(

Callers 2

run_agentMethod · 0.80
run_main_agentMethod · 0.80

Calls 1

_tag_roundMethod · 0.95

Tested by

no test coverage detected