A Rust framework for game modification. Safe game modding, powered by Rust.
ITK is a Rust framework for building game modifications that follow a "safe game modding, powered by Rust" philosophy.
Only the thinnest possible layer runs inside the target process — Vulkan hooks and state extraction. No complex logic, no blocking operations, under 5 MB memory budget. If the injector crashes, the game continues.
All heavy work — video decoding, audio playback, network sync — runs in separate daemon and overlay processes. They communicate with the injector through IPC (named pipes / Unix sockets) and shared memory with lock-free seqlock synchronization.
Each component runs in its own process. An overlay crash doesn't affect the game. A daemon failure doesn't crash the injector. Components detect failures and degrade gracefully, serving stale state rather than crashing.
The building blocks that power every ITK project.
20-byte header + bitcode payload
Wire protocol with magic bytes, versioning, CRC32 validation, and 20 message types. All payloads validated for NaN, bounds, and size limits.
Cross-platform shared memory
Seqlock-based single-writer/multi-reader shared memory with triple-buffered frame transport. Supports up to 4K resolution at 256 MB per frame buffer.
Named pipes & Unix sockets
Trait-based IPC abstraction with platform-specific implementations. Windows named pipes and Linux Unix domain sockets behind a unified API.
Clock sync & drift correction
NTP-lite clock synchronization with reference-point playback model. Drift corrector with gentle (0.98-1.02x), moderate (0.95-1.05x), and hard-seek zones.
ffmpeg-next video pipeline
Decode pipeline with D3D11VA hardware acceleration, software fallback, RGBA scaling, and YouTube URL extraction via yt-dlp integration.
P2P networking via laminar
Session management with UDP broadcast discovery, leader election, reliable command transport, and unreliable state sync at 500ms intervals.
A video player that renders directly inside your spaceship cockpit using Vulkan injection, supporting both desktop and VR. Decode video with hardware acceleration, render as a textured quad in 3D space, and sync playback across multiplayer sessions.
CI/CD, issue triage, code review, and project management are driven by AI agents and CLI tools from the Template Repo orchestration platform.
Unified CI/CD runner for formatting, linting, testing, and building — the same pipeline locally and in containers.
Issue and PR monitoring with automatic agent dispatch. AI agents pick up work, write code, and open pull requests autonomously.
Safety rails for agentic workflows — sudo-gated destructive Git operations and automatic secret masking on every CLI call.