@alereyleyva/pi-teach-me
v0.1.1
Published
Explain selected Pi transcript text in a small overlay.
Downloads
41
Maintainers
Readme
Pi Teach Me
Pi Teach Me is a Pi extension that explains the latest assistant response or text you paste into a private overlay. It makes a separate, tool-free model request without adding a conversation turn or storing the explanation in the session history.
Install
pi install npm:@alereyleyva/pi-teach-meFor local development:
pi install .Use
Teach Me is available while Pi is idle in the interactive TUI.
- Press
Alt+Tto explain the latest assistant response. - Run
/teachto choose the latest response or paste text to explain. - Enter an optional question, or leave it blank for a general explanation.
- Press
Escto cancel a prompt or close an explanation.
When you paste text, Teach Me includes the latest user message and assistant response as surrounding context. It sends at most 6,000 characters of source context, disables tools and reasoning, and limits the explanation to 180 words. The answer uses the language of the surrounding conversation.
Choose a model
Run /teach-model to search the configured Pi models and choose one for Teach Me.
Choose Globally to save it in Pi's agent directory, or This session only to keep it for the current session.
Session overrides take precedence over the global preference and survive /reload and session resume.
Development
bun install
bun run check
bun test
pi --no-session -e ./extensions/index.tsLicense
MIT
