Play-test your own game
A developer built an agentic test harness so an AI could play their game and help with play-testing. ·
Done with a custom-built or unnamed agent
- What they did
- The game is a browser-based, turn-based crossword dungeon. Claude wrote a node.js wrapper that leaves the game files alone. It adds a text renderer and synthetic key events, served over HTTP. The AI played via curl calls, built fixtures to reproduce bugs, and was told to playtest each milestone feature before moving on.
- How it went
- Milestone 13, with five new special encounters, took 12 minutes and about 120k tokens. The AI caught and fixed a cage bug on its own. Manual playtesting was still needed and found more bugs, but it took under 30 minutes.
- Worth knowing
- It ran on Claude Code with Sonnet 4.6 on the Pro plan; the approach suits text-heavy, turn-based games better than screenshot-driven browser automation.
Try it yourself with Claude Code
Look at my game in [path] and build a test harness that lets an AI agent play it: expose the game state as text or JSON and accept actions like [moves or inputs]. Then have the agent play [number] sessions and report bugs, balance problems, and confusing moments. Finished means a written play-test report with steps to reproduce each issue.
Want help getting this working? Join the Vibe Coding Academy ↗ Run by Alex Finn, who also runs this site.
Discussion on HN · Apr 29, 2026
Related use cases
Play Wordle in a browser with a computer-using agent
Researchers had OpenAI's Computer-Using Agent play NYT Wordle; it solved only 5.36% of about 200 runs, mainly from misreading tile colors.
Build a racing game from a single prompt
Codex made a racing game with multiple racers, eight maps and items from one prompt, acting as designer, developer and QA tester by playing it.
Test an iPhone game and report what passed
Cognition had Devin on GPT-6 Astra test the game Otter Run in a simulator, returning a recording and a report of checks passed and untested areas.
Add 61 kid-friendly mini-games to an app
Two users had Replit Agent autonomously add 61 child-friendly, ad-free mini-games to their game vault, growing it from 40 to 101.
Use Grok as the narrative engine of a game
The poster built a game where Grok generates the story narration, and says it outperformed Gemini and GPT for narrative output.
Get 5 like this every morning
The best things people got an AI agent to do, each with the prompt to try it.