First post, by bcorp
Hi all,
I've been working on something a bit unusual — an AI agent that runs natively
on Windows XP SP3, targeting real period hardware (Pentium III/IV class,
64-512 MB RAM).
It's a terminal-based tool written in Zig that connects to Ollama (or any
OpenAI-compatible API) over local HTTP. You type questions in natural language
and it runs diagnostic tools via function calling — system info, processes,
network, disk, services, etc.
Some implementation details that might interest this crowd:
- Binary is ~750 KB, single-threaded, no CRT/MSVC dependency
- TUI uses Win32 Console API with CP437 box-drawing characters
- Automatic CP850 → UTF-8 conversion for localized Windows output
- UTF-8 → ASCII sanitization for safe console rendering
- Compatibility shim: RtlGetSystemTimePrecise redirected to
GetSystemTimeAsFileTime (doesn't exist on XP)
- Cross-compiles from any modern OS via Zig's toolchain
- os_version_min set to .xp in the build config
The LLM itself runs on a separate modern machine on the network — this is
purely the client/agent side. Tested with llama3, qwen2, mistral on Ollama.
Screenshots and source: https://github.com/benmaster82/retro-agent
Would love to hear from anyone who tests it on actual XP hardware.
I've been testing in VMs but real-world feedback on Pentium III/IV era
machines would be invaluable.