Making Agents Play NetHack
brianberns · reddit · 2026-07-18
The author built a web app that lets chatbot agents play the classic dungeon game NetHack. The results were clear: while chat models perform decently on text tasks, they clearly struggle with reading maps and understanding spatial relations.
Since a game of NetHack can last thousands of steps, the author didn't stuff the entire history into the context window. Instead, the agent maintains its own working memory, creating and deleting notes to track key states, review the past, and make short-term plans. While this method partially alleviates long-context issues, its limitations are exposed quickly—resulting in situations that are both hilarious and frustrating.
More from coding & agent
- A Reddit demo argues online stores should expose carts and pricing through MCP — gelembjuk · 2026-07-22
- Open-source AI SDK provider routes Vercel apps through a local Codex subscription — lgrammel · 2026-07-22
- Codex vs Claude Code: Which Is More Popular? — jxnlco · 2026-07-22
- CodeRabbit uses layers, diagrams and a chat agent to rethink code review — _jaydeepkarale · 2026-07-22
- Claude Managed Agents demo shared with Vercel in a new presentation — brada · 2026-07-22
- Solo founder turns complaints on screen into bug reports with a local MCP server — phdptsd · 2026-07-22