Guide
Code while you play League of Legends
League of Legends is a moba with a lot of in-between time — and in-between time is exactly what an AI coding agent runs on. You describe a task, the agent works for a few minutes on its own, and you get back to the game until it needs you. Done right, a session of League of Legends and a shipped code change happen on the same screen, at the same time. Here's how to set that up.
The downtime in League of Legends
A League session has natural gaps: the matchmaking queue, champion select, the loading screen, and the minute before minions spawn. Stack a few of those and you have a clean window before the lane phase even starts.
Lock in your champ, fire off "write unit tests for the cart total calculation," and read it back on the loading screen.
The setup, start to finish
The whole trick is keeping the agent visible over the game and only hearing from it when it matters. Three pieces:
- Run League of Legends in borderless (windowed) fullscreen. An overlay can only draw over borderless mode — exclusive fullscreen hands the whole display to the game and hides every overlay at the OS level. It's a one-time toggle in the graphics settings; see borderless vs exclusive fullscreen for why.
- Put your agent in an always-on-top window. Instead of alt-tabbing to a buried terminal, keep the agent floating in a corner — an always-on-top terminal you summon and hide with a hotkey.
- Let it notify you. The point is to play, not watch a terminal. Set it up so the agent pings you only when it finishes or needs a yes/no — otherwise it stays out of the way.
Will it get you banned?
A terminal overlay is a plain always-on-top window — the same category as the Discord or OBS overlay. It doesn't read game memory, inject input, or hook the game process, so it isn't what anti-cheat looks for. The full reasoning (and the honest caveats) is in will a coding overlay get me banned? — the short version: a window that draws on top is not a cheat. As always, exclusive fullscreen is the only setting that actually breaks the overlay, not your account.
Keep your secrets safe while you're AFK
If the agent is running while your attention is on League of Legends, you want guardrails on what it can touch.
Mark your .env, keys, and anything sensitive as off-limits so they never leave your
machine, and pre-approve only the safe commands so the agent runs free but the risky calls still wait
for you. See pre-approval policies.
Frequently asked questions
Can I really code while playing League of Legends? Yes — you use League of Legends's natural downtime (queues, loading, travel, grinding) to fire off and review agent tasks. You're not coding mid-fight; you're using the minutes the game already makes you wait.
Which agent should I use? Whichever you already do — Claude Code, Cursor's cursor-agent, or Codex all work the same way here. If you'd rather not install anything, Backgrind's hosted Grindy agent runs with nothing to set up. See the 2026 field guide if you're choosing.
Do I need two monitors? No. That's the point of an overlay — the agent floats over League of Legends on a single screen, and a hotkey makes it vanish when you want the full view.
Where Backgrind fits
Backgrind is the overlay this whole setup describes, in one app: it wraps your real agent (Claude Code, Cursor, or hosted Grindy) in an always-on-top window that floats over League of Legends in borderless fullscreen, stays click-through when you want to see the game, and chimes only when the agent needs a decision or finishes. Fire off a task, get back to League of Legends, and let the agent grind while you do. See it in the live demo, read the full how to run Claude Code while gaming walkthrough, or browse more games to code through.