AI Agent Orchestration × Kaggle Simulation

Orchestrating an AI agent team,
to reach Kaggle's top 29% in two days

In Kaggle's real-time strategy simulation competition, Maze Crawler, two AI coding agents (Claude + Codex) handled all research, strategy, implementation, experiments and submission decisions. I wrote no code myself. My role was the orchestrator: setting goals, mediating debates and approving submissions. This page documents those two days.

906.4
Final score (public = private)
131 / 459
Final rank — top 29%
2 days
Participation (stopped one month before closing)
+429.8
Score increase (476.9 → 906.4)

Original working directory (GitHub) → Watch the agent play

01

Competition — a game of survival every turn

Maze Crawler pits two players against each other on a 20-cell-wide maze that scrolls endlessly north. It is a partially observed (fog-of-war), two-player real-time strategy competition. The southern boundary rises continuously, destroying lagging units; the last surviving Factory wins. Instead of a prediction CSV, the submission is an agent(obs, config) function inside a single main.py file. It plays actual matches against other entrants on the server to earn a rating. Submissions are limited to 5 per day.

Every turn combines exploration (which route will survive?), economy (where to collect energy?), combat (collisions can destroy both sides), and time pressure (move north faster than the map scrolls).

02

Team — one human, two agents, and a communication protocol

The structure lights up sequentially when you scroll into this section.

The agents ran independently in two macOS terminal tabs, communicating live through a terminal bridge targeting the exact tty. Every agreement was numbered and recorded in DECISIONS.md(D1–D11). Actions that consume a quota, such as Kaggle submissions, required acquiring a lock and confirming the other agent's no-objection before execution, preventing two agents from double-spending the daily allowance of only 5 submissions.

“Claude generates/discusses, Codex does quality review.” The role split was formalized in user decision D5, and submission discipline in D6: Local gates guard against crashes and regressions; the public leaderboard signals performance. maze-crawler-agent/.agent_comms/DECISIONS.md
03

Two-day trajectory — 7 submissions, +429.8 points

Submission (public score) Identical code resubmitted (variance probe)

Hover over a point for its submission message and local-gate results. Public scores fluctuate as matches continue: p6 ranged from 689 to 963 in Day-1 afternoon polling. The values above are the stabilized final snapshot.

View as a table (screen readers / print)
#Date (UTC)AgentPublic scoreNotes
105-12p10 pipeline validator476.9Starter + safety guards; pipeline validation
205-12p1_candidate632.3First custom agent
305-12p4_bfs766.0Introduced BFS path planning
405-12p6_bfs_optimistic876.9JUMP edges + optimistic treatment of unexplored cells; 93.5% win rate over 200 seeds
505-12p6 (resubmitted)845.3Identical code — measuring public-score variance
605-13p8b_opp_vision_active_crush896.1Adjacent-enemy crush rule, h2h +0.62σ
705-13p8c_mirror_prior_lateral906.4East–west mirror prior — final submission
04

Submission gates — what it takes to spend one quota slot

The 5-per-day limit makes submissions an experiment budget. Every candidate had to pass local gates before submission, with results preserved in submission messages and logs. Actual gates for the final submission (p8c):

GateCriterionp8c result
h2h vs current champion (p6)200 seeds, report win rate + σ86W/41D/73L · 0.532 (+0.91σ)
Regression sweep vs random / starterNo performance regression0.975 / 0.975
Action counters0 risky actionsBAD_entry 0 · low_margin_loss 0
New-feature activation rateProve it is not dead codeCrush rule fired on 24/26 opportunities (92%)
Submission integrityRecord md5 before and after2c3367ee… == p8c source ✓
Submission lock30s TTL + peer no-objectionowner=Claude, Codex no-objection

Source: SESSION_LOG.md — all 7 submissions are recorded in the same format.

05

Honest negative results — the part I am proudest of

Day-2: 0/5 submissions

Completed two candidates (p7 trap-fix, OA1 minimal), but local gates provided no evidence of a leaderboard improvement. → Ended without submitting, preserving all 5 quota slots. “Preserving quota beats a bad submission.”

ML tuning: 0 improvement

Searched four key champion constants with Optuna TPE, separating training and evaluation seeds. Conclusion: the hand-tuned defaults were already nearly optimal. The measurements showed that micro-tuning would not move the leaderboard.

Value model: R² 0.65, 0 utility

Trained a reward-prediction model on ~2,500 game records (33-key schema). It had predictive power, but policy lift was 0. Identified a textbook off-policy trap, discarded the model and documented the process.

All three are measurement results. Detecting what fails locally before spending submission quota is the same experimental discipline used on a manufacturing floor. SESSION_HANDOFF_DAY2.md · five lines of key lessons
06

Inside the final agent — why deterministic heuristics instead of deep learning?

The Day-1 research report (research report) concluded that, with a two-day budget, the priority was an agent that stays alive. Eliminate crashes, self-destruction and friendly collisions first, then build verifiable heuristics. RL and deep learning were explicitly deferred. The algorithm survey covered BFS/A*, frontier exploration, PIBT, POMCP and behavioral cloning, recording why each was adopted or deferred.

Because every rule was deterministic, the 200-seed experiments were reproducible and the gate win rates and σ values could be trusted.

07

Watch the agent — final submission vs random (seed 0)

▶ Load replay (about 1.5MB) Official Kaggle simulation player — click to play here

The submitted agent is on the left. Watch its Factory move north ahead of the scrolling boundary and select routes that treat unknown walls optimistically. Original files are in the repository's replays/ directory.

08

What this project demonstrates — and its limits

The limitations are explicit: I participated for only two days. The rank was 39/145 at the last submission, but other teams continued improving for another month, leading to a final rank of 131/459 (top 29%). The gap to the leaders (1,400+ points) lay in opponent modeling and long-term economic management. A Day-3 plan for replay-based failure analysis was prepared but never executed. Every number on this page comes directly from the Kaggle API and repository logs.

GitHub — original working directory (published unedited) Kaggle leaderboard ← Portfolio home