Terminactory launches a terminal idle game with Claude Code hooks
Developer snipedbywifi launched Terminactory, a terminal-native idle factory game written in Rust with ratatui and hosted on GitLab. The author says Claude models helped create the initial game base, while Claude Code hooks deliver agent responses as in-game “telegrams” for progress review. The game also includes building and deletion tools, earnings measurement, selection tools, a wiki, fake forums, lore, and a research graph.
Terminactory offers a concrete example of combining AI-assisted game development with an in-terminal interface for monitoring long-running agent tasks.
Hey HN readers!
I'm snipedbywifi (https://gitlab.com/snipedbywifi), and i've been working on terminactory. Please try it out if you'd like to play a cozy factory game while waiting for long agent tasks to finish!
The game is a factory game (overused niche, i know xD), but runs in your terminal. Reason i built it? glad you asked: So basically, it started off with me wanting a terminal-native factory game. Me and the modern 5.5 claude models made a base for the game that I liked, and then i went ham adding features / fixing some minor flaws (like adding claude code hooks so you recieve "telegrams" [the agent's responses], so you can review progress directly in-game). (yes, I had heavy AI assistance, disclaimer!!!)
Right now, the game has basic factory features you'd expect from a game like this (build stuff, delete stuff, measure how much you're earning, basic selection tools), along with a few more.. "unexpected" features. This includes a fake in-game browser that has a wiki, fake forums, some fun bits of lore, some more lore, a LOT more lore, and a research graph that shows how many items or how much RP (research points) you'd need to unlock something, and some more QOL features.
If anyone actually has this issue / want of a terminal-based game that runs alongside your agents so you don't doomscroll, do you have any suggestions, or additional ideas I could add?
It's hosted on GitLab, soo, that's one additional thing i'd like to mention
Thanks for reading!! snipedbywifi
(p.s. first HN post lol) (p.s. p.s. there's a lot of hidden lore in the game, so.. lore-divers? you might like it?)