{"slug": "rediwm-a-300k-line-zig-desktop-environment-with-its-own-compositor-and-gui-apps", "title": "RediWM - A 300k-line Zig desktop environment with its own compositor and GUI toolkit, native apps", "summary": "A developer released RediWM, a desktop environment written in 300,531 lines of Zig with its own compositor and GUI toolkit, alongside 21,001 lines of C and 63,482 lines of Python for a total of 385,014 lines. RediWM ships built-in apps including an image/PDF viewer, text editor, dock and a lightweight terminal built on libvterm. The developer reported that after adding IPC infrastructure with over 100 commands for testing, inspection and validation, Codex began using it to time, debug, interact and take screenshots on its own without being prompted; the project was built with Codex, Claude Code, Grok and other AI tools.", "body_md": "Breakdown (including comments):\n\n| Language | Raw lines | \n|---|---|\n| Zig | 300,531 | \n| C | 21,001 | \n| Python | 63,482 | \n| Total | 385,014 | \n\nBuilt-in Apps:\n\nas well as **Image / PDF viewer**, **Text editor**, **Dock** and now a light weight terminal (libvterm)\n\n**Interesting things learned:** when I added IPC infrastructure to test, inspect and validate (over 100 commands), codex started using it to time and debug , interact and take screenshot all by itself without even mentioning it, that was pretty cool and handy\n\nAI used: codex, claude code, grok build and some others", "url": "https://wpnews.pro/news/rediwm-a-300k-line-zig-desktop-environment-with-its-own-compositor-and-gui-apps", "canonical_source": "https://ziggit.dev/t/rediwm-a-300k-line-zig-desktop-environment-with-its-own-compositor-and-gui-toolkit-native-apps/18637#post_1", "published_at": "2026-11-29 23:20:18+00:00", "updated_at": "2026-11-29 23:46:02.463138+00:00", "lang": "en", "topics": ["developer-tools", "ai-agents", "ai-tools"], "entities": ["RediWM", "Zig", "Codex", "Claude Code", "Grok", "libvterm"], "also_reported_by": [], "takeaway": "Exposing a project's own IPC commands (over 100 here) as a testing and inspection surface let Codex time, debug, interact with and screenshot the app unprompted.", "recommendation": {"advice": "Give coding agents a scriptable IPC or command surface for inspection and testing; Codex used RediWM's 100-plus IPC commands to debug and screenshot the app without being told to.", "playbook": "agent-architecture", "playbook_url": "https://wpnews.pro/playbooks/agent-architecture"}, "alternates": {"html": "https://wpnews.pro/news/rediwm-a-300k-line-zig-desktop-environment-with-its-own-compositor-and-gui-apps", "markdown": "https://wpnews.pro/news/rediwm-a-300k-line-zig-desktop-environment-with-its-own-compositor-and-gui-apps.md", "text": "https://wpnews.pro/news/rediwm-a-300k-line-zig-desktop-environment-with-its-own-compositor-and-gui-apps.txt", "jsonld": "https://wpnews.pro/news/rediwm-a-300k-line-zig-desktop-environment-with-its-own-compositor-and-gui-apps.jsonld"}}