a harness doesn't do any computations by itself so what benefit is using a compiled language?
I’ve had great experience with Elixir and the new compiler combined with Ash.
TUI renderer is the one using the memory heavily so your terminal takes the heavy lifing. If you're managing the buffers and out-of-screen context good enough, Typescript can be pretty efficient.
It’s not about the terminal at all which as you noted accounts for minimal isage. It’s all the internal chat and history and everything else the agent tracks - all of which are smallish (and largish) strings allocated on the heap.
I don’t have the same issues with rust based tuis.
It's hot reloadable, so any modifications an agents makes can be surfaced in the active session.
Nearly everything is already written in TS which makes integrating Pi into other software, or other software into Pi much easier.
https://github.com/anomalyco/opencode
There is an archived Opencode project written in Go but I don't think it is affiliated.