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

Function run

codeclash/cli/ladder.py:122–220  ·  view source on GitHub ↗

Send a model up a ranked ladder, rung by rung, until it loses. [dim]• codeclash ladder run path/to/ladder_config.yaml -c # clean up after each rung[/dim]

(
    config_path: Path = typer.Argument(..., help="Path to the ladder config (with `player` + `ladder`)."),
    cleanup: bool = typer.Option(False, "--cleanup", "-c", help="Clean up the game environment after running."),
    output_dir: Path | None = typer.Option(None, "--output-dir", "-o", help="Output directory (default: logs/<user>)."),
    suffix: str = typer.Option("", "--suffix", "-s", help="Suffix for the output folder name (no leading dot)."),
    keep_containers: bool = typer.Option(
        False, "--keep-containers", "-k", help="Do not remove containers after games/agent finish."
    ),
)

Source from the content-addressed store, hash-verified

Callers

nothing calls this directly

Calls 5

runMethod · 0.95
resolve_includesFunction · 0.90
PvpTournamentClass · 0.90
_resolve_ladder_rulesFunction · 0.85
getMethod · 0.80

Tested by

no test coverage detected