Minimal to Pi isn't lines of code, it's everything else. Pi comes with four basic tools (read, write, edit, bash) and the ability to read its source and build more. So when other harnesses were building TUIs with window analogs and integrating MCPs (which I read yesterday that Pi is changing it's opinion on), or LSPs, or subagents, or web browsers, etc, Pi comes with none of that, and you add what you need. It's much lighter weight in that way.
Although if you want to compare sloc, a quick Google returns that OpenCode is ~670k sloc, so it's smaller there, too. But the real advantage is the prior one.
Although if you want to compare sloc, a quick Google returns that OpenCode is ~670k sloc, so it's smaller there, too. But the real advantage is the prior one.