Performance issues are often linked to the Electron architecture. For a lightweight alternative, consider projects that have rewritten native languages. An example is the independent open source project Gopher Code
https://github.com/projectbarks/gopher-code This is a complete rewrite of the concept, where the claude code is rewritten in Go as a single binary.