How would you implement Pi-style extensions in a Go agent?
Pi's coding-agent extensions are TypeScript modules with an in-process API:
registerTool, registerCommand, lifecycle hooks, and some TUI UI, then
hot-reload. Same language as the host.
If the host is Go (single binary), how would you get close to that?
Options I'm weighing: embed Lua/Starlark/JS, Wasm plugins, a sidecar
extension host over RPC, or accept that hooks+MCP is the ceiling.
If you've built plugin systems for Go CLIs/agents/editors: what would you
actually ship, and what would you refuse to build?