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.

Original post →

More from coding & agent

coding & agent channel →