I'm not sure I understand the "minimal"/"small core" branding Pi is using. It's 450,000 SLOC and has at least a dozen direct dependencies, which I'm sure explodes into hundreds of indirect ones. It also depends on NodeJS/NPM.
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.