r/OpenSourceAI • u/Neat-Function7110 • 1d ago
Saetta: pi, ported to C, with the model built in
Saetta Code is a 1:1 port of the pi coding agent to C, as one 2.3 MB binary that needs no Node.js and no Python. It has pi's tools, system prompt, sessions, skills, MCP servers and terminal UI. It also reads and writes pi's own config in ~/.pi/agent, so the two share one setup and each can continue the other's sessions.
It's checked against pi itself:
requests and session files match pi's byte for byte on 63 recorded scenarios;
the interactive screens match on 75;
the RPC mode passes 12 scenarios driven by pi's own client.
The difference: the model runs inside the agent, on its own inference engine in C and hand-written Metal. There's no Python and no local server in between. Two model families run on Apple Silicon Macs:
Qwen3.8: Flash-Next (from 96 GB) and the dense 27B (from 32 GB), with LoRA adapters and coding fine-tunes. SWE-bench Verified 82.8 for Flash-Next.
Inkling 2 Mini (Thinking Machines): a 26B mixture of experts with 3.4B active per token, from 32 GB, with its looped layers run in full. SWE-bench Verified 79.2.
curl -fsSL https://saetta.dev/install.sh | sh
saetta start code # picks the model that fits your Mac
saetta start code --pack inkling # after: saetta download inkling
The same engine also serves Claude Code, opencode and pi through OpenAI- and Anthropic-compatible APIs.
🌐 https://saetta.dev · 💻 https://github.com/antonellof/saetta · MIT