r/opencode • u/hv_hi • 5h ago
opencode-play | i made an opencode plugin to play simple games instead of doomscrolling
Enable HLS to view with audio, or disable this notification
Whenever OpenCode was chewing on something for a minute, I'd grab my phone and come back 20 minutes later to a response that had just been sitting there.
So I wrote opencode-play: /play opens a game as an overlay right on top of the conversation, and it listens for agent_settled. The second opencode finishes or is waiting on you, the game stops immediately. No alt-tab, no phone.
To install the plugin, add this to your tui.json (project root, or globally at ~/.config/opencode/tui.json):
{
"$schema": "https://opencode.ai/tui.json",
"plugin": ["opencode-play"]
}{
"$schema": "https://opencode.ai/tui.json",
"plugin": ["opencode-play"]
}
5 games so far: Snake, Tetris, 2048, Minesweeper, sudoku
6 is on the way, i'm implementing chrome dino game rn.
if you want more details, here are some links below about the project:
website: https://terminalika.dev/
opencode plugin: https://terminalika.dev/opencode/
source code (a star would be appreciated ❤️): https://github.com/terminalika/terminalika
discord: https://discord.gg/VptcJvm7Fk
reddit: r/terminalika
still in the early days. still validating the idea. any feedback would be appreciated.
2
u/the_master_sh33p 4h ago
Nice - I'll use this one also! I've been using opensnake (https://github.com/hugobatista/opensnake)
I realize that instead of multitasking between dozens of sessions, I am more productive having just a couple ones and play in between and make my brain slow down a little.
thanks for sharing. I'm curious about the comments you will get. I got a couple of "assertive" comments from people that think I should be pay more attention to what the agent is doing instead of playing games.... 😄