# How to use Codex to check game refactor screenshots

Codex refactored a tower defense game and reported matching screenshot hashes after correctly recapturing the baseline, following screenshot instructions in PLANS.md.

Agent: Codex
Tools: Codex, PLANS.md, GPT-Image-2, sha256sum
Category: Games & simulation
Date: 2026-05-05

Outcome: The ExecPlan reported pixel-identical screenshots, supported by matching hashes for three before-and-after pairs after baseline correction.

## Steps

1. Configured PLANS.md to require before-and-after game screenshots.
2. Used Codex to refactor the game and recapture the baseline correctly.
3. Compared before-and-after screenshot hashes with sha256sum.

Human oversight: The developer supplied project instructions and read the ExecPlan observation; the post does not describe a separate code-review pass.

Source: [ditchfieldcaleb on Hacker News](https://news.ycombinator.com/item?id=48030302)

Canonical URL: https://agentsinuse.com/use-cases/codex-to-check-game-refactor-screenshots/
