A tiny Pi extension that adds an immediate theme toggle command.
No polling. No OS detection. No subprocesses. It only calls Pi's ctx.ui.setTheme() when you ask.
From npm:
pi install npm:pi-theme-flipTry without installing:
pi -e npm:pi-theme-flipFrom this repository:
npm install
npm run build
pi -e ./src/index.tsOr install/use it as a Pi package from a local path:
pi install /absolute/path/to/pi-theme-flip/theme-flip
/theme-flip toggle
/theme-flip dark
/theme-flip light
/theme-flip status
/theme-flip toggles between Pi's built-in dark and light themes.
Pi extension commands execute immediately while the agent is streaming, so you can run /theme-flip during a tool call or long response without waiting for the agent turn to finish.
- Current
darktheme flips tolight. - Any other current theme flips to
dark. darkandlightforce one side.statusreports the active theme name.- Non-UI modes no-op.