Codoku is a new that tests program reasoning in LLM-powered . Instead of predicting execution output, it asks agents to complete a partial program so it satisfies global constraints like a specific control-flow graph and execution path. Because the partial program cannot be run, agents must reason about the program's behavior rather than executing it. The puzzles are synthesized from scratch, making them renewable and reducing contamination risk.
The authors evaluated five frontier models on 300 puzzles (100 small, 100 medium, 100 large) using a coding agent with unrestricted tool access. On small puzzles, solve rates ranged from 39% to 77%; on large ones the best model reached only 54%. Success rates dropped as puzzle complexity increased.
These results matter because they show that current coding agents still lack robust program reasoning, even with access to tools. Codoku provides a way to measure this capability without being bypassed by execution or contaminated by training data. It offers a renewable, scalable evaluation for tracking progress in AI-assisted programming.