Your AI codes while you play.
An in-game overlay to supervise AI coding agents โ Claude Code, OpenCode, Codex, or any terminal โ without leaving your game. Press Alt+X, check on your agent, approve, go back to the match.
A real session: AFKode supervising Claude Code (which is auditing AFKode's own codebase).
- ๐ฎ Never leave your game. The overlay floats above windowed/borderless games.
Alt+Xtoggles it instantly โ no alt-tab, no FPS hit (Tauri + WebGL rendering, ~2 MB installer). - ๐ค Your agent's real state, not a guess. Claude Code sessions launch with injected hooks that report exactly which tool is running, when it waits for your permission, and when a turn ends โ all local (127.0.0.1).
- โก Approve without opening anything.
Alt+Aanswers the pending permission prompt from anywhere. The mini-HUD pill shows ๐ working ยท ๐ก waiting ยท ๐ข done while the overlay is hidden. - ๐ Knows when you're in a match. Fullscreen game focused โ notifications go silent and queue in an inbox; one ping when you're back in the lobby.
- ๐ฌ Talk to it from a Spotlight-style palette.
Alt+P, type the task, Enter โ it lands in the right session, with history,/commandand@fileautocomplete. - ๐งฑ A real terminal underneath. ConPTY/PTY, truecolor, interactive TUIs, Warp-style command blocks (OSC 133), search, themes.
| OS | How |
|---|---|
| Windows | winget install OmarHernandez.AFKode โ or the NSIS installer from Releases |
| macOS | Download the .dmg from Releases, drag to Applications. Unsigned for now: right-click โ Open on first launch (or xattr -dr com.apple.quarantine /Applications/AFKode.app) |
| Linux | .AppImage (self-updating) or .deb/.rpm from Releases |
AFKode checks for updates on startup and installs them after you confirm (signed updater artifacts). First run opens a guided wizard that installs Node.js and Claude Code for you if they're missing.
Global (work from inside your game):
| Hotkey | Action |
|---|---|
Alt + X |
Show / hide the overlay |
Alt + G |
Ghost mode: translucent overlay, clicks pass through to the game |
Alt + P / Ctrl + Alt + P |
Prompt palette: type a task, it goes to the active agent |
Alt + A |
Approve: answer "yes" to the agent waiting for permission, without opening the overlay |
Alt + N |
Toggle do-not-disturb manually (lobbies are fullscreen too); auto-resets when the game closes |
On macOS, Alt is the Option (โฅ) key: โฅX, โฅG, โฅP / โโฅP, โฅA, โฅN.
In-app:
| Windows / Linux | macOS | Action |
|---|---|---|
Ctrl+F |
โF |
Search the terminal scrollback |
Ctrl+K |
โK |
Search open sessions |
Ctrl+V |
โV |
Paste (clipboard image โ temp PNG path for the agent) |
| โ | โC |
Copy the selection (Ctrl+C stays SIGINT) |
Ctrl+Shift+C |
โโงC |
Copy selection, or the selected block's output |
Ctrl+โ/โ |
โโ/โ |
Jump between command blocks |
Shift+Enter |
Shift+Enter |
Literal newline in agent TUIs (no submit) |
On macOS, Ctrl+F, Ctrl+K and Ctrl+V pass through to the shell (they are readline editing keys there).
- Real agent integration (Claude Code hooks): sessions launch with injected hooks reporting exact state to a local listener โ which tool runs, when it waits for permission, when a turn ends. The HUD,
Alt+Aand the summary are exact, not guessed. Other CLIs fall back to text heuristics. Optional (โ, on by default). - Mini-HUD: a tiny draggable pill, visible while the overlay is hidden: ๐ working ยท 3:42 / ๐ก waiting for you / ๐ข done. Grows a โฉ quick-reply button when an agent waits.
- Do-not-disturb in match: while a fullscreen game holds focus, AFKode stays silent; pending items queue in the between-matches inbox (approve/jump per row) and one ping fires when silence lifts.
- "While you were away" summary: coming back after 2+ minutes shows turns completed, tools run, files touched, and how long agents sat waiting for you.
- Agent-aware notifications: overlay hidden + agent finishes or blocks on input โ native toast + optional beep, or voice announcements (TTS) copilot-style over your game audio.
- Prompt palette with autocomplete: history (โ), Claude Code
/commands, and@filecompletion against the session's folder (Tab).
- Real terminal (ConPTY/PTY): truecolor, interactive apps, GPU-rendered (WebGL). Copy-on-select, right-click copy/paste, drag & drop of files/folders.
- Command blocks (Warp-style): shell tabs group each command + its output into a block via OSC 133 shell integration (injected at spawn โ your profile files are never edited). Colored gutter per block (green โ / red โ), hover toolbar (copy command/output/both, re-run), keyboard navigation. Automatic for PowerShell (Windows), bash (Linux) and zsh (macOS/Linux); other shells can opt in. Agent TUI tabs are unaffected.
- Tabs: parallel sessions (Claude Code, OpenCode, Codex, your shell) โ rename, color tags, live state dots,
Ctrl+Ksession search. - Git footer: branch,
+added/-removedand dirty indicator for the active session's folder. - CLI detection & one-click install: launchers detect installed agents; missing ones install with one click. First-run wizard handles Node.js + Claude Code + login.
- Clipboard image paste:
Ctrl+Vwith a screenshot on the clipboard saves it to a temp PNG and hands the path to the agent.
- System tray: left-click toggles the overlay, right-click opens the menu. The window's ร hides to the tray instead of closing.
- Ghost mode: the overlay stays visible as a translucent HUD while clicks and keys go to the game.
- Overlay โ window mode: always-on-top borderless overlay for gaming, or a normal taskbar window when you're not.
- Memory saver (Windows): hiding the overlay trims the working set (~6 MB) and puts WebView2 in low-memory mode โ lightest exactly while you play.
- Customization: 9 themes (Warp Dark, Claude Warm, Dracula, Nord, Tokyo Night, Gruvbox, Solarized, GitHub Dark, Monokai), font family/size, English/Spanish UI, background opacity slider, window position/size memory.
AFKode is Windows-first; macOS and Linux builds ship from the same codebase with per-OS implementations. Anything degraded or unavailable is listed here โ no silent gaps.
| Feature | Windows | macOS | Linux |
|---|---|---|---|
| Terminal (PTY), tabs, themes, palette, search | โ ConPTY | โ | โ |
| Shell tab | PowerShell | login shell ($SHELL, fallback zsh) |
login shell ($SHELL, fallback bash) |
Claude Code hooks integration (HUD, Alt+A, summary) |
โ | โ
(needs curl, preinstalled) |
โ
(needs curl) |
| Global hotkeys | โ
Alt+โฆ |
โ
โฅโฆ (Option) |
โ
Alt+โฆ (X11; compositor-dependent on Wayland) |
| Auto do-not-disturb (fullscreen game detection) | โ Win32 | โ CGWindowList | โ
X11 (EWMH) ยท โ Wayland โ use manual Alt+N |
| Voice announcements (TTS) | โ WebView2 speech | โ
say |
spd-say (speech-dispatcher); toggle hidden if missing |
| Notifications | โ toasts | โ (allow in System Settings) | โ (libnotify) |
| Memory saver on hide (working-set trim + low-memory webview) | โ | โ automatic no-op | โ automatic no-op |
| Setup wizard Node.js install | โ winget | ||
| Clipboard image paste to agent | โ | โ AppleScript | wl-paste or xclip |
| Tray icon | โ | โ menu bar | โ (needs an appindicator-capable desktop) |
| Auto-updater (signed artifacts) | โ NSIS | โ
.app.tar.gz (manual install via .dmg) |
โ AppImage only (deb/rpm update via package manager) |
| Overlay transparency / always-on-top | โ | โ | |
| In-app shortcuts | Ctrl+โฆ |
โโฆ (Ctrl+F/K/V pass to the shell) |
Ctrl+โฆ |
| CLI detection under GUI PATH | โ | โ
Homebrew, npm prefix, ~/.nvm |
โ |
Notes:
- Wayland: fullscreen-game detection is out of scope (no protocol for inspecting foreign windows); DND works via the manual
Alt+Ntoggle. Under XWayland-capable setups the X11 path may still work. - macOS/Linux builds are CI-verified (build +
cargo check/tests per OS); day-to-day development happens on Windows, so treat non-Windows paths as less battle-tested and report issues. - A full per-module macOS audit (what works, what was fixed, what is Windows-only by design, and what still needs on-device verification) lives in docs/MACOS-AUDIT.md.
Command blocks activate automatically for PowerShell (Windows), bash (Linux) and zsh (macOS/Linux). Any other shell works too if it emits OSC 133 sequences โ add the equivalent of this to its config (fish โฅ 3.6 example, ~/.config/fish/config.fish):
function __afk_prompt_start --on-event fish_prompt
printf '\e]133;D;%s\e\\' $status
printf '\e]133;A\e\\'
end
function __afk_preexec --on-event fish_preexec
printf '\e]133;C\e\\'
end
# B (input start) at the end of your prompt:
functions --copy fish_prompt __afk_orig_prompt
function fish_prompt
__afk_orig_prompt
printf '\e]133;B\e\\'
endNotes: bash integration is injected via --rcfile, which bash ignores for login shells (-l), so a bash login shell on macOS gets no blocks โ zsh (the macOS default) is fully supported. If your .bashrc already sets a PROMPT_COMMAND, it is preserved (AFKode prepends its hook).
- Works over games in windowed or borderless mode (like Discord/Overwolf without injection). In exclusive fullscreen the game covers the overlay.
- Hotkeys are defined in
src-tauri/src/lib.rs(TOGGLE_SHORTCUT,GHOST_SHORTCUT, โฆ).Alt+Zis typically taken by the NVIDIA overlay, which is why ghost mode usesAlt+G. - Code signing is pending (OV/EV certificate): Windows SmartScreen warns on install for now.
npm install
npm run tauri devOn Linux you need the Tauri 2 system packages first: libwebkit2gtk-4.1-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev libxdo-dev libssl-dev patchelf.
Production build: npm run tauri build โ installers land in src-tauri/target/release/bundle/ (NSIS .exe + MSI on Windows, .dmg on macOS, .deb/.rpm/.AppImage on Linux). CI builds all of them from a 3-OS matrix on every v* tag.
The feature roadmap lives in docs/ROADMAP-FEATURES.md โ 12 Warp-inspired features planned across v0.8โv1.1:
- v0.8 โ Terminal IQ: Command Blocks (OSC 133) โ
, Command Palette (
>actions), AI Command Search, Session Restore. - v0.9 โ Trust & Approvals: Diff preview before approving Edits, risk-graded approvals (๐ข/๐ก/๐ด), per-session cost & token telemetry.
- v1.0 โ Fleet & Chat: Chat View over agent transcripts, fleet mini-dashboard on the HUD, remote approvals from Telegram.
- v1.1 โ Gamer Distribution: Discord Rich Presence + shareable session cards, edge-docked peek mode & per-game HUD profiles.
Product thesis: docs/ROADMAP.md.
See CONTRIBUTING.md. Issues and PRs welcome โ especially macOS/Linux field reports (see the audit's device-testing checklist).