Guide
How to run Claude Code while playing a game
To run Claude Code while gaming, switch the game to borderless fullscreen and run the agent's terminal in an always-on-top overlay window with ambient notifications, so it pings you only when it needs a decision. The game never minimizes, you answer prompts in a corner of the screen, and nothing touches the game's process — no memory reading, no input injection — so anti-cheat has nothing to flag.
Why bother? AI coding agents changed the shape of a coding session. You give Claude Code a task, and for the next five to twenty minutes it greps, edits, runs tests — and occasionally stops to ask permission. You're not coding anymore; you're waiting with interruptions. That's exactly the kind of time a game is for. Here's the setup in detail, without alt-tabbing every ninety seconds — and without getting banned.
The babysitting problem
Agents are autonomous right up until they aren't. Claude Code stops for a yes/no on a risky command, hits a question about your intent, or finishes and waits for the next task. If the terminal is buried behind a fullscreen game, you find out minutes later — the agent sat idle while you cleared a dungeon. Alt-tab to check it, and the game minimizes, stutters, or drops you out of the action.
So the goal is: see the agent's state at a glance, get pinged when it needs you, and answer without leaving the game.
Option 1: a second monitor
The classic answer, and it half-works. The terminal lives on monitor two; you flick your eyes over occasionally. Problems: you don't notice when the agent stops (no sound, no flash — just a quiet prompt sitting there), clicking the terminal steals focus from the game, and plenty of people game on a laptop or a single ultrawide. A second monitor gives you visibility, not notifications.
Option 2: an always-on-top terminal overlay
The better answer is the one Discord and OBS already use: an always-on-top overlay window floating over the game. Your agent's terminal renders in a translucent window in the corner of the screen — you watch it work between fights, and it stays out of the way the rest of the time.
This is what Backgrind does. It wraps the real Claude Code CLI (or Codex, or Cursor's CLI — it's your login, your history, your config) in a floating window with a terminal, a file tree, and one crucial addition: ambient notifications. When the agent needs a decision, the window flashes and chimes. Otherwise it never interrupts. You can try a simulated version in the live demo.
The one setting that matters: borderless fullscreen
Overlays can't draw over exclusive fullscreen — in that mode the game owns the display and nothing else gets composited on top. The fix takes ten seconds: in your game's video settings, switch Display Mode from “Fullscreen” to “Borderless” (sometimes “Borderless Window” or “Windowed Fullscreen”). It looks identical, tabbing is instant, and on modern Windows the performance difference is negligible. Nearly every current game has the option — WoW, League, Dota 2, Fortnite, Baldur's Gate 3, you name it. We unpacked the details in borderless vs exclusive fullscreen.
“Will this get me banned?”
Fair question, and the answer hinges on how the overlay works. Anti-cheat systems care about programs that read game memory, inject code into the game process, or automate input. A plain always-on-top window does none of that — it's the same OS mechanism as the Discord overlay or a picture-in-picture video. Backgrind deliberately never reads game memory and never injects input; the game just runs underneath an ordinary window. See the FAQ for the longer version.
Don't leak your secrets while you're AFK
One thing to set up before you let any agent grind unattended: keep credentials out of its
reach. Claude Code respects ignore rules, and Backgrind adds a .grindignore file —
paths listed there (your .env, key files, infra configs) never leave the machine,
no matter which model is doing the work. Write it once per repo and forget about it.
The setup, start to finish
- Switch the game to borderless fullscreen in its video settings.
- Launch Backgrind and point it at your CLI — it runs your existing
claudelogin, so there's nothing new to authenticate. - Give the agent a real task — “fix the flaky login test”, “refactor the auth middleware”, a backlog ticket.
- Play. The overlay sits translucent in a corner. A hotkey hides it; another makes it click-through so your mouse hits the game.
- Answer when it pings. Flash + chime means the agent needs a yes/no or finished. Type the answer, get back to the fight.
What it feels like
The surprising part isn't the convenience — it's the throughput. An agent that gets answers in seconds instead of minutes finishes multi-step tasks dramatically faster, because its idle time was always your response time. Queue up tasks before a raid, answer three prompts between pulls, and the backlog is shorter when you log off. Code while you grind.
Want the per-game version? There are step-by-step setups for World of Warcraft, Old School RuneScape, Elden Ring, Minecraft, and every other game — or, if you're between releases, see how to ship code while you wait for GTA 6.
Frequently asked questions
Can you run Claude Code while playing a game?
Yes. Claude Code keeps working on its task whether or not its terminal has focus, so you can hand it a job and play. The practical setup is the game in borderless fullscreen plus an always-on-top overlay window for the terminal, with a flash-and-chime notification when the agent stops for a question or an approval.
Will running Claude Code while gaming get me banned?
No — a plain always-on-top overlay window does not read game memory, inject code into the game process, or automate input, which are the behaviors anti-cheat systems look for. It is the same OS mechanism as the Discord overlay or a picture-in-picture video; the game just runs underneath an ordinary window. The longer version is in will a coding overlay get me banned?
Does a Claude Code overlay work in exclusive fullscreen?
No. In exclusive fullscreen the game bypasses the OS compositor, so nothing else can be drawn over it. Switch the game to borderless (windowed) fullscreen — it looks identical, alt-tab is instant, and on modern Windows the performance difference is within noise.
How do you see Claude Code over the game?
Run the terminal in an always-on-top overlay window in a corner of the screen. A good overlay adds click-through mode so your mouse hits the game, a hotkey to hide it, and a notification only when the agent needs a yes/no or finishes — so you glance at it between fights instead of alt-tabbing.
Do I need a second monitor to run Claude Code while gaming?
No. A second monitor gives you visibility but no notifications — you still have to keep glancing over, and clicking the terminal steals focus from the game. An always-on-top overlay on a single screen shows the agent state and pings you when it needs input, which works fine on a laptop or an ultrawide.