GPU-rendered AI coding harness
High-performance visual code browsing and agentic AI interventions.
Built from the ground up with C++, OpenGL 3.3, HarfBuzz, and FreeType for zero-overhead execution. ~4,900 lines. No Electron.
The C++ Advantage
> top -u root
0% Idle CPU
Event-driven architecture ensures Gritcode consumes exactly zero CPU cycles when idle. No Electron overhead, no background JS polling.
> glxinfo | grep GL
GPU-Accelerated
Entire UI rendered via custom OpenGL 3.3 shaders. Interaction graphs and file buffers scroll at 144Hz without breaking a sweat.
> ldd gritcode_bin
Native Fonts
Sub-pixel text rendering powered directly by FreeType and HarfBuzz. Crisp typography mapped straight into VRAM textures.
Multi-Provider AI
Connect multi-provider AI directly into the execution context. Gritcode exposes an explicit memory map to Claude and OpenAI via native C++ plugins, allowing for precise, AST-aware refactoring.
OpenCode Zen
Real-time local model weight synchronization. Pay-as-you-go.
OpenCode Go
Quality coding models at a low monthly price. Instant access via optimized tunnels.
Claude ACP
Agentic Control Protocol for code interventions. Requires Claude Code CLI.
Features
GPU-rendered UI
OpenGL 3.3 batched quads, SDF rounded rects. 0% idle CPU.
HarfBuzz text shaping
Arabic RTL, ligatures, contextual forms, diacritics.
Emoji support
FontConfig fallback, ZWJ sequences, bitmap scaling.
Tool use
bash, read_file, list_directory with background execution.
Secure key storage
System keychain: libsecret on Linux, Keychain on macOS.
Session persistence
Per working directory, automatic restore.
Markdown rendering
Bold, italic, code blocks, headings, blockquotes, lists.
Installation
Not even pre-alpha. Things break, things get fixed, things change fast. This is a live project under active development. Every few hours a bug is hit — sometimes small, sometimes not. Use at your own risk.
No permission system. AI agents can execute any command on your machine. Press Escape to cancel a running request at any time.
Linux (Ubuntu / Debian)
sudo apt install libfreetype-dev libharfbuzz-dev libfontconfig-dev \
libcurl4-openssl-dev libsecret-1-dev cmake ninja-build \
libopengl-dev libegl-dev \
libwayland-dev wayland-protocols libxkbcommon-dev \
libx11-xcb-dev libxext-dev libxcursor-dev libxrandr-dev \
libxinerama-dev libxi-dev libxfixes-dev
git clone https://github.com/lszl84/gritcode.git
cd gritcode
cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=~/.local
cmake --build build
cmake --install build
grit
macOS
brew install cmake ninja
git clone https://github.com/lszl84/gritcode.git
cd gritcode
cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=Release
cmake --build build
open build/grit.app
FreeBSD / GhostBSD
sudo pkg install cmake git pkgconf glfw freetype2 harfbuzz fontconfig \
curl libsecret cmark
git clone https://github.com/lszl84/gritcode.git
cd gritcode
cmake -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=~/.local
cmake --build build
cmake --install build
grit
Support the Project
Gritcode is built and maintained by one person with the help of AI agents. No VC backing. If you want to see this project grow — more providers, visual debugging, code graphs, refactoring tools — the single best thing you can do is sponsor the development.
♥ Become a GitHub SponsorContributing
This is all vibe coded. Not a single line was typed by hand. Every feature, every fix, every refactor — all driven through AI agents.
Pull requests are not accepted for now. If you find a bug or have a suggestion, please open an issue — and if you can, run your own AI agent to analyze the problem and include its suggestions in the report.