$ cat ~/map/pi-tui-bonsai.md
pi-tui (bonsai)
Personal pi TUI extensions: an emoji art editor for the header and a detachable LM Studio provider switch.
extensions✓ Sep 10
Facts
- repository
- github.com/bonsai/pi-tui ↗
- GitHub Stars
- ★ 0
- Forks
- 0
- license
- —
- npm / mo
- —
- last push
- Sep 27, 2026
## TL;DR
A personal collection of pi TUI extensions: emoji-editor adds an /emoji command that edits the header emoji art, and lmstudio is a detachable LM Studio provider you attach and remove with bin/lmstudio.sh.
## Key points
- $emoji-editor opens with /emoji inside pi: arrow keys move the cursor, Enter or Space places an emoji, 1-9 and 0 pick from the palette, c clears the canvas, ESC saves and exits, and q discards.
- $Emoji art persists to ~/.pi/agent/emoji-art.txt; install by symlinking extensions/emoji-editor.ts into ~/.pi/agent/extensions/ and running /reload.
- $lmstudio dynamically registers the models loaded by a local LM Studio server as a pi provider, kept separate from the main ~/.pi/agent configuration.
- $bin/lmstudio.sh on [model-id] attaches: it symlinks the extension into ~/.pi/agent/extensions/lmstudio and sets defaultProvider to lmstudio; off removes the symlink and restores the cloud provider (sakura by default); status reports the current state.
- $While detached, pi does not fetch LM Studio at startup, so no warning appears when the local server is not running.
- $PI_CLOUD_PROVIDER and PI_CLOUD_MODEL override the off-restore target, PI_AGENT overrides the pi configuration directory, and configuration read/write is delegated to the companion soubi repository.
## FAQ
Q Is this the same as the official @earendil-works/pi-tui framework?
No — despite the name, this repository is a personal collection of TUI extensions for pi; the official pi-tui is the terminal UI framework package maintained in the pi monorepo.
Q What language is the documentation in?
The README is written in Japanese; the commands, paths, and scripts are usable as-is.
## References
## Related entries
$ pi-conversation-outline
Read-only outline rail for fullscreen: one tick per prompt, hover to preview, click to jump.
$ pi-messages
Turns pi's markdown code blocks into rounded terminal cards with language icons, soft wrap, and keyboard-driven copy and insert.
$ pi-open-tui
Polished terminal interface for pi: model/thinking header, runtime-aware footer, framed editor, turn metrics (TPS / TTFT / stalls / cost), and 50+ runtime detectors — all configurable from /open-tui.
## Guides
Last updated: Sep 10, 2026