Claude Code hook
Universal Dear ImGui Hook
Universal Dear ImGui overlay for Direct3D 9-12, Vulkan and OpenGL, on Windows and Linux (X11, Wayland, Steam Deck, Proton). Lets an AI assistant such as Claude see and play the game through MCP, inspect its memory and code, and browse Unity and Unreal Engine objects, with an in-game chat with Claude.
Install
git clone https://github.com/Sh0ckFR/Universal-Dear-ImGui-Hook.gitFrom the README
Universal-Dear-ImGui-Hook Draw your Dear ImGui menu inside any game, whatever its graphics API, and let Claude see and play it. Quick start · Chat with Claude · AI remote control · API · Building · Compatibility The graphics API is detected at run time: build once, inject anywhere. The same library also lets an AI assistant such as Claude Code see and play the game through MCP, read and change its memory and code, and browse the objects of Unity and Unreal Engine games. You can even chat with Claude from inside the game. On Linux, the overlay works in X11, XWayland and native Wayland games. Use it on single-player games and your own software. Anti-cheat systems detect injected DLLs and can ban your account. While the remote control is on, any program running on your machine can control the game, and with the memory tools, read and write its memory. Contents Sections marked with ▶ expand on click. What changed in each version is listed in the releases. Features The overlay - 🎨 One library for every API. The backend is picked from the first API that presents a frame. Inject before or after the game initializes its graphics. - ⌨️ Menu input. INSERT, or L3 + R3 on a controller, opens the menu, and F11 removes the overlay and unloads the DLL; both keys are settings. While the menu is open, the game receives no keyboard, mouse or controller input, and an XInput controller navigates the menu. On Linux, the game gets no key or button presses and no motion, on X11 and native Wayland alike. - 🛡️ The overlay can't crash the game (MSVC builds on Windows, and Linux). An access violation or a C++ exception in the overlay, in a renderer backend or in your menu code, removes the overlay instead of taking the game down. The menu key brings it back. - 🖼️ Images and frame…
How hooks work
- Hooks are shell commands Claude Code runs at fixed points: before or after a tool call, when you submit a prompt, when Claude stops, on notifications and at session start.
- They are set in the hooks section of ~/.claude/settings.json (or .claude/settings.json for a project), or come bundled in a plugin.
- A hook can block a tool call, add context, or run a formatter or test. Read the scripts before you install them: they run on your machine with your permissions.
Details
- Repository
- Sh0ckFR/Universal-Dear-ImGui-Hook
- Type
- Hooks
- Language
- C++
- License
- MIT
- Last updated
- 27 November 2026
- Topics
- claudedear-imguidirect3ddirectxdll-injectiongame-moddinghookimguilinuxmcpopengloverlay
FAQ
What is Universal Dear ImGui Hook?
Universal Dear ImGui overlay for Direct3D 9-12, Vulkan and OpenGL, on Windows and Linux (X11, Wayland, Steam Deck, Proton). Lets an AI assistant such as Claude see and play the game through MCP, inspect its memory and code, and browse Unity and Unreal Engine objects, with an in-game chat with Claude. It is a hook for Claude Code, from Sh0ckFR/Universal-Dear-ImGui-Hook on GitHub.
How do I install Universal Dear ImGui Hook?
Clone Sh0ckFR/Universal-Dear-ImGui-Hook from GitHub and follow the setup steps in its README.
Is Universal Dear ImGui Hook popular?
Sh0ckFR/Universal-Dear-ImGui-Hook has 507 GitHub stars and 90 forks. It was last updated on 27 November 2026.
More hooks
LSP Enforcement Kit
346nesaminua/claude-code-lsp-enforcement-kit
Hooks that steer Claude Code toward LSP-based navigation instead of grep to save tokens.
Taskmaster
537blader/taskmaster
Stop hook for Claude Code that keeps the agent working until all plans and user requests are 100% complete
Abide
635coldteadotai/abide
Make your coding agent abide by all your project rules
cchooks
131GowayLee/cchooks
Python SDK that simplifies parsing hook input and returning decisions for Claude Code hooks.
nWave
637nWave-ai/nWave
AI agents that guide you from idea to working code, with you in control at every step.
Probity
258nizos/probity
TDD enforcement and guardrail hooks for Claude Code, Codex and Copilot CLI from the TDD Guard author.
Browse the most popular Claude Code mods, all hooks, or the skills and MCP server directories.