163K lines of pure C11. Zero external runtime dependencies. 78 static binaries composed from 8 libraries. Vendored mbedTLS, yyjson, stb_image — nothing else.
scorpiox code is a pure C11 AI coding assistant — no C++, no Rust, no Go. The codebase is organized into layered static libraries that compose into 78 standalone executables. Every binary is statically linked: copy it anywhere and it runs.
| Module | Type | Lines | Files | Purpose |
|---|---|---|---|---|
| libsxutil | static library | 23,736 | 61 | Core utilities — config, logging, platform abstraction, session, conversation, exec, slash commands, background tasks, process monitoring, JSON (yyjson), PTY, WSL, KQL, metrics |
| libsxnet | static library | 22,785 | 38 | Network layer — multi-provider AI API clients (Claude Code, Codex, OpenAI, Gemini, Vertex AI, Anthropic, Scorpiox), streaming HTTP, agent orchestration, MCP, FRP tunnel |
| libsxhttp | static library | 630 | 2 | Lightweight HTTP-only — subset of libsxnet for tools that need HTTP without the full provider stack |
| libsxui | static library | 11,366 | 17 | Terminal UI — display rendering, input handling, bash terminal embed, file explorer, session resume, infobox overlays, image display (sixel via stb_image) |
| libsxterm | static library | 1,951 | 2 | Terminal abstraction — raw mode, ANSI escape sequences, cursor movement, screen management, key parsing, resize handling |
| libsxbridge | static library | 625 | 2 | Bridge binary auto-download — fetches and executes external bridge binaries from distribution server |
| libtb4 | static library | 1,043 | 3 | Thunderbolt 4 raw Ethernet transport — TCP-like stream semantics over raw Ethernet frames using BPF |
| yyjson | vendored | 19,556 | 2 | Fast JSON parser/serializer — vendored C99 library, zero dependencies |
| mbedTLS | vendored | 208,584 | 67 | Lightweight TLS/crypto — AES-128-CFB, PBKDF2-SHA1, TLS 1.2/1.3 client; replaces OpenSSL |
| stb_image | header only | 20,391 | 3 | Image loading/writing/resizing — single-header PNG, JPEG, BMP support |
sxterm, sxui, sxnet, sxutil, curlsxutil, yyjsonsxterm, sxutilsxutilsxutilsxutilsxutilsxutilsxutil, sxnet, curlsxutilsxutilsxutil, sxnet, curltb4, sxutil, sxnet, curlsxterm, sxutil, mbedtls_libsxutil, sxnet, curlsxbridge, sxutil, curlsxbridge, sxutilsxutil, sxnet, curlsxutilsxterm, sxnet, sxutil, curl-std=c11scorpiox-server-dll · scorpiox-email-dll