@vandeepunk/pi-coding-agent 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2564 -0
- package/README.md +555 -0
- package/dist/cli/args.d.ts +47 -0
- package/dist/cli/args.d.ts.map +1 -0
- package/dist/cli/args.js +286 -0
- package/dist/cli/args.js.map +1 -0
- package/dist/cli/config-selector.d.ts +14 -0
- package/dist/cli/config-selector.d.ts.map +1 -0
- package/dist/cli/config-selector.js +31 -0
- package/dist/cli/config-selector.js.map +1 -0
- package/dist/cli/file-processor.d.ts +15 -0
- package/dist/cli/file-processor.d.ts.map +1 -0
- package/dist/cli/file-processor.js +79 -0
- package/dist/cli/file-processor.js.map +1 -0
- package/dist/cli/list-models.d.ts +9 -0
- package/dist/cli/list-models.d.ts.map +1 -0
- package/dist/cli/list-models.js +92 -0
- package/dist/cli/list-models.js.map +1 -0
- package/dist/cli/session-picker.d.ts +9 -0
- package/dist/cli/session-picker.d.ts.map +1 -0
- package/dist/cli/session-picker.js +34 -0
- package/dist/cli/session-picker.js.map +1 -0
- package/dist/cli.d.ts +3 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +11 -0
- package/dist/cli.js.map +1 -0
- package/dist/config.d.ts +68 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +203 -0
- package/dist/config.js.map +1 -0
- package/dist/core/agent-session.d.ts +574 -0
- package/dist/core/agent-session.d.ts.map +1 -0
- package/dist/core/agent-session.js +2260 -0
- package/dist/core/agent-session.js.map +1 -0
- package/dist/core/auth-storage.d.ts +102 -0
- package/dist/core/auth-storage.d.ts.map +1 -0
- package/dist/core/auth-storage.js +282 -0
- package/dist/core/auth-storage.js.map +1 -0
- package/dist/core/bash-executor.d.ts +47 -0
- package/dist/core/bash-executor.d.ts.map +1 -0
- package/dist/core/bash-executor.js +212 -0
- package/dist/core/bash-executor.js.map +1 -0
- package/dist/core/compaction/branch-summarization.d.ts +86 -0
- package/dist/core/compaction/branch-summarization.d.ts.map +1 -0
- package/dist/core/compaction/branch-summarization.js +242 -0
- package/dist/core/compaction/branch-summarization.js.map +1 -0
- package/dist/core/compaction/compaction.d.ts +121 -0
- package/dist/core/compaction/compaction.d.ts.map +1 -0
- package/dist/core/compaction/compaction.js +607 -0
- package/dist/core/compaction/compaction.js.map +1 -0
- package/dist/core/compaction/index.d.ts +7 -0
- package/dist/core/compaction/index.d.ts.map +1 -0
- package/dist/core/compaction/index.js +7 -0
- package/dist/core/compaction/index.js.map +1 -0
- package/dist/core/compaction/utils.d.ts +35 -0
- package/dist/core/compaction/utils.d.ts.map +1 -0
- package/dist/core/compaction/utils.js +138 -0
- package/dist/core/compaction/utils.js.map +1 -0
- package/dist/core/defaults.d.ts +3 -0
- package/dist/core/defaults.d.ts.map +1 -0
- package/dist/core/defaults.js +2 -0
- package/dist/core/defaults.js.map +1 -0
- package/dist/core/diagnostics.d.ts +15 -0
- package/dist/core/diagnostics.d.ts.map +1 -0
- package/dist/core/diagnostics.js +2 -0
- package/dist/core/diagnostics.js.map +1 -0
- package/dist/core/event-bus.d.ts +9 -0
- package/dist/core/event-bus.d.ts.map +1 -0
- package/dist/core/event-bus.js +25 -0
- package/dist/core/event-bus.js.map +1 -0
- package/dist/core/exec.d.ts +29 -0
- package/dist/core/exec.d.ts.map +1 -0
- package/dist/core/exec.js +71 -0
- package/dist/core/exec.js.map +1 -0
- package/dist/core/export-html/ansi-to-html.d.ts +22 -0
- package/dist/core/export-html/ansi-to-html.d.ts.map +1 -0
- package/dist/core/export-html/ansi-to-html.js +249 -0
- package/dist/core/export-html/ansi-to-html.js.map +1 -0
- package/dist/core/export-html/index.d.ts +34 -0
- package/dist/core/export-html/index.d.ts.map +1 -0
- package/dist/core/export-html/index.js +222 -0
- package/dist/core/export-html/index.js.map +1 -0
- package/dist/core/export-html/template.css +909 -0
- package/dist/core/export-html/template.html +54 -0
- package/dist/core/export-html/template.js +1549 -0
- package/dist/core/export-html/tool-renderer.d.ts +35 -0
- package/dist/core/export-html/tool-renderer.d.ts.map +1 -0
- package/dist/core/export-html/tool-renderer.js +57 -0
- package/dist/core/export-html/tool-renderer.js.map +1 -0
- package/dist/core/export-html/vendor/highlight.min.js +1213 -0
- package/dist/core/export-html/vendor/marked.min.js +6 -0
- package/dist/core/extensions/index.d.ts +11 -0
- package/dist/core/extensions/index.d.ts.map +1 -0
- package/dist/core/extensions/index.js +9 -0
- package/dist/core/extensions/index.js.map +1 -0
- package/dist/core/extensions/loader.d.ts +25 -0
- package/dist/core/extensions/loader.d.ts.map +1 -0
- package/dist/core/extensions/loader.js +400 -0
- package/dist/core/extensions/loader.js.map +1 -0
- package/dist/core/extensions/runner.d.ts +129 -0
- package/dist/core/extensions/runner.d.ts.map +1 -0
- package/dist/core/extensions/runner.js +576 -0
- package/dist/core/extensions/runner.js.map +1 -0
- package/dist/core/extensions/types.d.ts +928 -0
- package/dist/core/extensions/types.d.ts.map +1 -0
- package/dist/core/extensions/types.js +35 -0
- package/dist/core/extensions/types.js.map +1 -0
- package/dist/core/extensions/wrapper.d.ts +27 -0
- package/dist/core/extensions/wrapper.d.ts.map +1 -0
- package/dist/core/extensions/wrapper.js +102 -0
- package/dist/core/extensions/wrapper.js.map +1 -0
- package/dist/core/footer-data-provider.d.ts +32 -0
- package/dist/core/footer-data-provider.d.ts.map +1 -0
- package/dist/core/footer-data-provider.js +134 -0
- package/dist/core/footer-data-provider.js.map +1 -0
- package/dist/core/index.d.ts +9 -0
- package/dist/core/index.d.ts.map +1 -0
- package/dist/core/index.js +9 -0
- package/dist/core/index.js.map +1 -0
- package/dist/core/keybindings.d.ts +55 -0
- package/dist/core/keybindings.d.ts.map +1 -0
- package/dist/core/keybindings.js +153 -0
- package/dist/core/keybindings.js.map +1 -0
- package/dist/core/messages.d.ts +77 -0
- package/dist/core/messages.d.ts.map +1 -0
- package/dist/core/messages.js +123 -0
- package/dist/core/messages.js.map +1 -0
- package/dist/core/model-registry.d.ts +100 -0
- package/dist/core/model-registry.d.ts.map +1 -0
- package/dist/core/model-registry.js +419 -0
- package/dist/core/model-registry.js.map +1 -0
- package/dist/core/model-resolver.d.ts +76 -0
- package/dist/core/model-resolver.d.ts.map +1 -0
- package/dist/core/model-resolver.js +313 -0
- package/dist/core/model-resolver.js.map +1 -0
- package/dist/core/package-manager.d.ts +131 -0
- package/dist/core/package-manager.d.ts.map +1 -0
- package/dist/core/package-manager.js +1290 -0
- package/dist/core/package-manager.js.map +1 -0
- package/dist/core/prompt-templates.d.ts +50 -0
- package/dist/core/prompt-templates.d.ts.map +1 -0
- package/dist/core/prompt-templates.js +251 -0
- package/dist/core/prompt-templates.js.map +1 -0
- package/dist/core/resolve-config-value.d.ts +17 -0
- package/dist/core/resolve-config-value.d.ts.map +1 -0
- package/dist/core/resolve-config-value.js +59 -0
- package/dist/core/resolve-config-value.js.map +1 -0
- package/dist/core/resource-loader.d.ts +184 -0
- package/dist/core/resource-loader.d.ts.map +1 -0
- package/dist/core/resource-loader.js +673 -0
- package/dist/core/resource-loader.js.map +1 -0
- package/dist/core/sdk.d.ts +90 -0
- package/dist/core/sdk.d.ts.map +1 -0
- package/dist/core/sdk.js +234 -0
- package/dist/core/sdk.js.map +1 -0
- package/dist/core/session-manager.d.ts +323 -0
- package/dist/core/session-manager.d.ts.map +1 -0
- package/dist/core/session-manager.js +1091 -0
- package/dist/core/session-manager.js.map +1 -0
- package/dist/core/settings-manager.d.ts +187 -0
- package/dist/core/settings-manager.d.ts.map +1 -0
- package/dist/core/settings-manager.js +552 -0
- package/dist/core/settings-manager.js.map +1 -0
- package/dist/core/skills.d.ts +58 -0
- package/dist/core/skills.d.ts.map +1 -0
- package/dist/core/skills.js +310 -0
- package/dist/core/skills.js.map +1 -0
- package/dist/core/slash-commands.d.ts +15 -0
- package/dist/core/slash-commands.d.ts.map +1 -0
- package/dist/core/slash-commands.js +21 -0
- package/dist/core/slash-commands.js.map +1 -0
- package/dist/core/system-prompt.d.ts +24 -0
- package/dist/core/system-prompt.d.ts.map +1 -0
- package/dist/core/system-prompt.js +137 -0
- package/dist/core/system-prompt.js.map +1 -0
- package/dist/core/timings.d.ts +7 -0
- package/dist/core/timings.d.ts.map +1 -0
- package/dist/core/timings.js +25 -0
- package/dist/core/timings.js.map +1 -0
- package/dist/core/tools/bash.d.ts +55 -0
- package/dist/core/tools/bash.d.ts.map +1 -0
- package/dist/core/tools/bash.js +242 -0
- package/dist/core/tools/bash.js.map +1 -0
- package/dist/core/tools/edit-diff.d.ts +63 -0
- package/dist/core/tools/edit-diff.d.ts.map +1 -0
- package/dist/core/tools/edit-diff.js +243 -0
- package/dist/core/tools/edit-diff.js.map +1 -0
- package/dist/core/tools/edit.d.ts +39 -0
- package/dist/core/tools/edit.d.ts.map +1 -0
- package/dist/core/tools/edit.js +146 -0
- package/dist/core/tools/edit.js.map +1 -0
- package/dist/core/tools/find.d.ts +39 -0
- package/dist/core/tools/find.d.ts.map +1 -0
- package/dist/core/tools/find.js +206 -0
- package/dist/core/tools/find.js.map +1 -0
- package/dist/core/tools/grep.d.ts +45 -0
- package/dist/core/tools/grep.d.ts.map +1 -0
- package/dist/core/tools/grep.js +239 -0
- package/dist/core/tools/grep.js.map +1 -0
- package/dist/core/tools/index.d.ts +73 -0
- package/dist/core/tools/index.d.ts.map +1 -0
- package/dist/core/tools/index.js +61 -0
- package/dist/core/tools/index.js.map +1 -0
- package/dist/core/tools/ls.d.ts +40 -0
- package/dist/core/tools/ls.d.ts.map +1 -0
- package/dist/core/tools/ls.js +118 -0
- package/dist/core/tools/ls.js.map +1 -0
- package/dist/core/tools/path-utils.d.ts +8 -0
- package/dist/core/tools/path-utils.d.ts.map +1 -0
- package/dist/core/tools/path-utils.js +81 -0
- package/dist/core/tools/path-utils.js.map +1 -0
- package/dist/core/tools/read.d.ts +39 -0
- package/dist/core/tools/read.d.ts.map +1 -0
- package/dist/core/tools/read.js +166 -0
- package/dist/core/tools/read.js.map +1 -0
- package/dist/core/tools/truncate.d.ts +70 -0
- package/dist/core/tools/truncate.d.ts.map +1 -0
- package/dist/core/tools/truncate.js +205 -0
- package/dist/core/tools/truncate.js.map +1 -0
- package/dist/core/tools/write.d.ts +29 -0
- package/dist/core/tools/write.d.ts.map +1 -0
- package/dist/core/tools/write.js +78 -0
- package/dist/core/tools/write.js.map +1 -0
- package/dist/index.d.ts +27 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +42 -0
- package/dist/index.js.map +1 -0
- package/dist/main.d.ts +8 -0
- package/dist/main.d.ts.map +1 -0
- package/dist/main.js +623 -0
- package/dist/main.js.map +1 -0
- package/dist/migrations.d.ts +33 -0
- package/dist/migrations.d.ts.map +1 -0
- package/dist/migrations.js +261 -0
- package/dist/migrations.js.map +1 -0
- package/dist/modes/index.d.ts +9 -0
- package/dist/modes/index.d.ts.map +1 -0
- package/dist/modes/index.js +8 -0
- package/dist/modes/index.js.map +1 -0
- package/dist/modes/interactive/components/armin.d.ts +34 -0
- package/dist/modes/interactive/components/armin.d.ts.map +1 -0
- package/dist/modes/interactive/components/armin.js +333 -0
- package/dist/modes/interactive/components/armin.js.map +1 -0
- package/dist/modes/interactive/components/assistant-message.d.ts +16 -0
- package/dist/modes/interactive/components/assistant-message.d.ts.map +1 -0
- package/dist/modes/interactive/components/assistant-message.js +91 -0
- package/dist/modes/interactive/components/assistant-message.js.map +1 -0
- package/dist/modes/interactive/components/bash-execution.d.ts +35 -0
- package/dist/modes/interactive/components/bash-execution.d.ts.map +1 -0
- package/dist/modes/interactive/components/bash-execution.js +162 -0
- package/dist/modes/interactive/components/bash-execution.js.map +1 -0
- package/dist/modes/interactive/components/bordered-loader.d.ts +16 -0
- package/dist/modes/interactive/components/bordered-loader.d.ts.map +1 -0
- package/dist/modes/interactive/components/bordered-loader.js +51 -0
- package/dist/modes/interactive/components/bordered-loader.js.map +1 -0
- package/dist/modes/interactive/components/branch-summary-message.d.ts +16 -0
- package/dist/modes/interactive/components/branch-summary-message.d.ts.map +1 -0
- package/dist/modes/interactive/components/branch-summary-message.js +44 -0
- package/dist/modes/interactive/components/branch-summary-message.js.map +1 -0
- package/dist/modes/interactive/components/compaction-summary-message.d.ts +16 -0
- package/dist/modes/interactive/components/compaction-summary-message.d.ts.map +1 -0
- package/dist/modes/interactive/components/compaction-summary-message.js +45 -0
- package/dist/modes/interactive/components/compaction-summary-message.js.map +1 -0
- package/dist/modes/interactive/components/config-selector.d.ts +71 -0
- package/dist/modes/interactive/components/config-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/config-selector.js +479 -0
- package/dist/modes/interactive/components/config-selector.js.map +1 -0
- package/dist/modes/interactive/components/countdown-timer.d.ts +14 -0
- package/dist/modes/interactive/components/countdown-timer.d.ts.map +1 -0
- package/dist/modes/interactive/components/countdown-timer.js +33 -0
- package/dist/modes/interactive/components/countdown-timer.js.map +1 -0
- package/dist/modes/interactive/components/custom-editor.d.ts +21 -0
- package/dist/modes/interactive/components/custom-editor.d.ts.map +1 -0
- package/dist/modes/interactive/components/custom-editor.js +70 -0
- package/dist/modes/interactive/components/custom-editor.js.map +1 -0
- package/dist/modes/interactive/components/custom-message.d.ts +20 -0
- package/dist/modes/interactive/components/custom-message.d.ts.map +1 -0
- package/dist/modes/interactive/components/custom-message.js +79 -0
- package/dist/modes/interactive/components/custom-message.js.map +1 -0
- package/dist/modes/interactive/components/daxnuts.d.ts +23 -0
- package/dist/modes/interactive/components/daxnuts.d.ts.map +1 -0
- package/dist/modes/interactive/components/daxnuts.js +140 -0
- package/dist/modes/interactive/components/daxnuts.js.map +1 -0
- package/dist/modes/interactive/components/diff.d.ts +12 -0
- package/dist/modes/interactive/components/diff.d.ts.map +1 -0
- package/dist/modes/interactive/components/diff.js +133 -0
- package/dist/modes/interactive/components/diff.js.map +1 -0
- package/dist/modes/interactive/components/dynamic-border.d.ts +15 -0
- package/dist/modes/interactive/components/dynamic-border.d.ts.map +1 -0
- package/dist/modes/interactive/components/dynamic-border.js +21 -0
- package/dist/modes/interactive/components/dynamic-border.js.map +1 -0
- package/dist/modes/interactive/components/extension-editor.d.ts +17 -0
- package/dist/modes/interactive/components/extension-editor.d.ts.map +1 -0
- package/dist/modes/interactive/components/extension-editor.js +102 -0
- package/dist/modes/interactive/components/extension-editor.js.map +1 -0
- package/dist/modes/interactive/components/extension-input.d.ts +23 -0
- package/dist/modes/interactive/components/extension-input.d.ts.map +1 -0
- package/dist/modes/interactive/components/extension-input.js +61 -0
- package/dist/modes/interactive/components/extension-input.js.map +1 -0
- package/dist/modes/interactive/components/extension-selector.d.ts +24 -0
- package/dist/modes/interactive/components/extension-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/extension-selector.js +78 -0
- package/dist/modes/interactive/components/extension-selector.js.map +1 -0
- package/dist/modes/interactive/components/footer.d.ts +26 -0
- package/dist/modes/interactive/components/footer.d.ts.map +1 -0
- package/dist/modes/interactive/components/footer.js +220 -0
- package/dist/modes/interactive/components/footer.js.map +1 -0
- package/dist/modes/interactive/components/index.d.ts +32 -0
- package/dist/modes/interactive/components/index.d.ts.map +1 -0
- package/dist/modes/interactive/components/index.js +33 -0
- package/dist/modes/interactive/components/index.js.map +1 -0
- package/dist/modes/interactive/components/keybinding-hints.d.ts +41 -0
- package/dist/modes/interactive/components/keybinding-hints.d.ts.map +1 -0
- package/dist/modes/interactive/components/keybinding-hints.js +61 -0
- package/dist/modes/interactive/components/keybinding-hints.js.map +1 -0
- package/dist/modes/interactive/components/login-dialog.d.ts +42 -0
- package/dist/modes/interactive/components/login-dialog.d.ts.map +1 -0
- package/dist/modes/interactive/components/login-dialog.js +145 -0
- package/dist/modes/interactive/components/login-dialog.js.map +1 -0
- package/dist/modes/interactive/components/model-selector.d.ts +47 -0
- package/dist/modes/interactive/components/model-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/model-selector.js +266 -0
- package/dist/modes/interactive/components/model-selector.js.map +1 -0
- package/dist/modes/interactive/components/oauth-selector.d.ts +19 -0
- package/dist/modes/interactive/components/oauth-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/oauth-selector.js +97 -0
- package/dist/modes/interactive/components/oauth-selector.js.map +1 -0
- package/dist/modes/interactive/components/scoped-models-selector.d.ts +49 -0
- package/dist/modes/interactive/components/scoped-models-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/scoped-models-selector.js +270 -0
- package/dist/modes/interactive/components/scoped-models-selector.js.map +1 -0
- package/dist/modes/interactive/components/session-selector-search.d.ts +23 -0
- package/dist/modes/interactive/components/session-selector-search.d.ts.map +1 -0
- package/dist/modes/interactive/components/session-selector-search.js +155 -0
- package/dist/modes/interactive/components/session-selector-search.js.map +1 -0
- package/dist/modes/interactive/components/session-selector.d.ts +95 -0
- package/dist/modes/interactive/components/session-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/session-selector.js +851 -0
- package/dist/modes/interactive/components/session-selector.js.map +1 -0
- package/dist/modes/interactive/components/settings-selector.d.ts +53 -0
- package/dist/modes/interactive/components/settings-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/settings-selector.js +277 -0
- package/dist/modes/interactive/components/settings-selector.js.map +1 -0
- package/dist/modes/interactive/components/show-images-selector.d.ts +10 -0
- package/dist/modes/interactive/components/show-images-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/show-images-selector.js +35 -0
- package/dist/modes/interactive/components/show-images-selector.js.map +1 -0
- package/dist/modes/interactive/components/skill-invocation-message.d.ts +17 -0
- package/dist/modes/interactive/components/skill-invocation-message.d.ts.map +1 -0
- package/dist/modes/interactive/components/skill-invocation-message.js +47 -0
- package/dist/modes/interactive/components/skill-invocation-message.js.map +1 -0
- package/dist/modes/interactive/components/theme-selector.d.ts +11 -0
- package/dist/modes/interactive/components/theme-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/theme-selector.js +46 -0
- package/dist/modes/interactive/components/theme-selector.js.map +1 -0
- package/dist/modes/interactive/components/thinking-selector.d.ts +11 -0
- package/dist/modes/interactive/components/thinking-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/thinking-selector.js +47 -0
- package/dist/modes/interactive/components/thinking-selector.js.map +1 -0
- package/dist/modes/interactive/components/tool-execution.d.ts +70 -0
- package/dist/modes/interactive/components/tool-execution.d.ts.map +1 -0
- package/dist/modes/interactive/components/tool-execution.js +621 -0
- package/dist/modes/interactive/components/tool-execution.js.map +1 -0
- package/dist/modes/interactive/components/tree-selector.d.ts +68 -0
- package/dist/modes/interactive/components/tree-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/tree-selector.js +934 -0
- package/dist/modes/interactive/components/tree-selector.js.map +1 -0
- package/dist/modes/interactive/components/user-message-selector.d.ts +30 -0
- package/dist/modes/interactive/components/user-message-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/user-message-selector.js +113 -0
- package/dist/modes/interactive/components/user-message-selector.js.map +1 -0
- package/dist/modes/interactive/components/user-message.d.ts +8 -0
- package/dist/modes/interactive/components/user-message.d.ts.map +1 -0
- package/dist/modes/interactive/components/user-message.js +16 -0
- package/dist/modes/interactive/components/user-message.js.map +1 -0
- package/dist/modes/interactive/components/visual-truncate.d.ts +24 -0
- package/dist/modes/interactive/components/visual-truncate.d.ts.map +1 -0
- package/dist/modes/interactive/components/visual-truncate.js +33 -0
- package/dist/modes/interactive/components/visual-truncate.js.map +1 -0
- package/dist/modes/interactive/interactive-mode.d.ts +313 -0
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -0
- package/dist/modes/interactive/interactive-mode.js +3664 -0
- package/dist/modes/interactive/interactive-mode.js.map +1 -0
- package/dist/modes/interactive/theme/dark.json +85 -0
- package/dist/modes/interactive/theme/light.json +84 -0
- package/dist/modes/interactive/theme/theme-schema.json +335 -0
- package/dist/modes/interactive/theme/theme.d.ts +78 -0
- package/dist/modes/interactive/theme/theme.d.ts.map +1 -0
- package/dist/modes/interactive/theme/theme.js +944 -0
- package/dist/modes/interactive/theme/theme.js.map +1 -0
- package/dist/modes/print-mode.d.ts +28 -0
- package/dist/modes/print-mode.d.ts.map +1 -0
- package/dist/modes/print-mode.js +98 -0
- package/dist/modes/print-mode.js.map +1 -0
- package/dist/modes/rpc/rpc-client.d.ts +217 -0
- package/dist/modes/rpc/rpc-client.d.ts.map +1 -0
- package/dist/modes/rpc/rpc-client.js +405 -0
- package/dist/modes/rpc/rpc-client.js.map +1 -0
- package/dist/modes/rpc/rpc-mode.d.ts +20 -0
- package/dist/modes/rpc/rpc-mode.d.ts.map +1 -0
- package/dist/modes/rpc/rpc-mode.js +500 -0
- package/dist/modes/rpc/rpc-mode.js.map +1 -0
- package/dist/modes/rpc/rpc-types.d.ts +409 -0
- package/dist/modes/rpc/rpc-types.d.ts.map +1 -0
- package/dist/modes/rpc/rpc-types.js +8 -0
- package/dist/modes/rpc/rpc-types.js.map +1 -0
- package/dist/utils/changelog.d.ts +21 -0
- package/dist/utils/changelog.d.ts.map +1 -0
- package/dist/utils/changelog.js +87 -0
- package/dist/utils/changelog.js.map +1 -0
- package/dist/utils/clipboard-image.d.ts +11 -0
- package/dist/utils/clipboard-image.d.ts.map +1 -0
- package/dist/utils/clipboard-image.js +162 -0
- package/dist/utils/clipboard-image.js.map +1 -0
- package/dist/utils/clipboard-native.d.ts +7 -0
- package/dist/utils/clipboard-native.d.ts.map +1 -0
- package/dist/utils/clipboard-native.js +14 -0
- package/dist/utils/clipboard-native.js.map +1 -0
- package/dist/utils/clipboard.d.ts +2 -0
- package/dist/utils/clipboard.d.ts.map +1 -0
- package/dist/utils/clipboard.js +67 -0
- package/dist/utils/clipboard.js.map +1 -0
- package/dist/utils/frontmatter.d.ts +8 -0
- package/dist/utils/frontmatter.d.ts.map +1 -0
- package/dist/utils/frontmatter.js +26 -0
- package/dist/utils/frontmatter.js.map +1 -0
- package/dist/utils/git.d.ts +2 -0
- package/dist/utils/git.d.ts.map +1 -0
- package/dist/utils/git.js +6 -0
- package/dist/utils/git.js.map +1 -0
- package/dist/utils/image-convert.d.ts +9 -0
- package/dist/utils/image-convert.d.ts.map +1 -0
- package/dist/utils/image-convert.js +35 -0
- package/dist/utils/image-convert.js.map +1 -0
- package/dist/utils/image-resize.d.ts +36 -0
- package/dist/utils/image-resize.d.ts.map +1 -0
- package/dist/utils/image-resize.js +181 -0
- package/dist/utils/image-resize.js.map +1 -0
- package/dist/utils/mime.d.ts +2 -0
- package/dist/utils/mime.d.ts.map +1 -0
- package/dist/utils/mime.js +26 -0
- package/dist/utils/mime.js.map +1 -0
- package/dist/utils/photon.d.ts +21 -0
- package/dist/utils/photon.d.ts.map +1 -0
- package/dist/utils/photon.js +121 -0
- package/dist/utils/photon.js.map +1 -0
- package/dist/utils/shell.d.ts +26 -0
- package/dist/utils/shell.d.ts.map +1 -0
- package/dist/utils/shell.js +186 -0
- package/dist/utils/shell.js.map +1 -0
- package/dist/utils/sleep.d.ts +5 -0
- package/dist/utils/sleep.d.ts.map +1 -0
- package/dist/utils/sleep.js +17 -0
- package/dist/utils/sleep.js.map +1 -0
- package/dist/utils/tools-manager.d.ts +3 -0
- package/dist/utils/tools-manager.d.ts.map +1 -0
- package/dist/utils/tools-manager.js +201 -0
- package/dist/utils/tools-manager.js.map +1 -0
- package/docs/compaction.md +390 -0
- package/docs/custom-provider.md +539 -0
- package/docs/development.md +69 -0
- package/docs/extensions.md +1827 -0
- package/docs/images/doom-extension.png +0 -0
- package/docs/images/exy.png +0 -0
- package/docs/images/interactive-mode.png +0 -0
- package/docs/images/tree-view.png +0 -0
- package/docs/json.md +79 -0
- package/docs/keybindings.md +174 -0
- package/docs/models.md +254 -0
- package/docs/packages.md +191 -0
- package/docs/prompt-templates.md +67 -0
- package/docs/providers.md +168 -0
- package/docs/rpc.md +1311 -0
- package/docs/sdk.md +957 -0
- package/docs/session.md +412 -0
- package/docs/settings.md +221 -0
- package/docs/shell-aliases.md +13 -0
- package/docs/skills.md +227 -0
- package/docs/terminal-setup.md +70 -0
- package/docs/termux.md +127 -0
- package/docs/themes.md +295 -0
- package/docs/tree.md +219 -0
- package/docs/tui.md +887 -0
- package/docs/windows.md +17 -0
- package/examples/README.md +25 -0
- package/examples/extensions/README.md +202 -0
- package/examples/extensions/antigravity-image-gen.ts +413 -0
- package/examples/extensions/auto-commit-on-exit.ts +49 -0
- package/examples/extensions/bash-spawn-hook.ts +30 -0
- package/examples/extensions/bookmark.ts +50 -0
- package/examples/extensions/claude-rules.ts +86 -0
- package/examples/extensions/commands.ts +72 -0
- package/examples/extensions/confirm-destructive.ts +59 -0
- package/examples/extensions/custom-compaction.ts +114 -0
- package/examples/extensions/custom-footer.ts +64 -0
- package/examples/extensions/custom-header.ts +73 -0
- package/examples/extensions/custom-provider-anthropic/index.ts +604 -0
- package/examples/extensions/custom-provider-anthropic/package-lock.json +24 -0
- package/examples/extensions/custom-provider-anthropic/package.json +19 -0
- package/examples/extensions/custom-provider-gitlab-duo/index.ts +349 -0
- package/examples/extensions/custom-provider-gitlab-duo/package.json +16 -0
- package/examples/extensions/custom-provider-gitlab-duo/test.ts +82 -0
- package/examples/extensions/custom-provider-qwen-cli/index.ts +345 -0
- package/examples/extensions/custom-provider-qwen-cli/package.json +16 -0
- package/examples/extensions/dirty-repo-guard.ts +56 -0
- package/examples/extensions/doom-overlay/README.md +46 -0
- package/examples/extensions/doom-overlay/doom/build/doom.js +21 -0
- package/examples/extensions/doom-overlay/doom/build/doom.wasm +0 -0
- package/examples/extensions/doom-overlay/doom/build.sh +152 -0
- package/examples/extensions/doom-overlay/doom/doomgeneric_pi.c +72 -0
- package/examples/extensions/doom-overlay/doom-component.ts +132 -0
- package/examples/extensions/doom-overlay/doom-engine.ts +173 -0
- package/examples/extensions/doom-overlay/doom-keys.ts +104 -0
- package/examples/extensions/doom-overlay/index.ts +74 -0
- package/examples/extensions/doom-overlay/wad-finder.ts +51 -0
- package/examples/extensions/dynamic-resources/SKILL.md +8 -0
- package/examples/extensions/dynamic-resources/dynamic.json +79 -0
- package/examples/extensions/dynamic-resources/dynamic.md +5 -0
- package/examples/extensions/dynamic-resources/index.ts +15 -0
- package/examples/extensions/event-bus.ts +43 -0
- package/examples/extensions/file-trigger.ts +41 -0
- package/examples/extensions/git-checkpoint.ts +53 -0
- package/examples/extensions/handoff.ts +150 -0
- package/examples/extensions/hello.ts +25 -0
- package/examples/extensions/inline-bash.ts +94 -0
- package/examples/extensions/input-transform.ts +43 -0
- package/examples/extensions/interactive-shell.ts +196 -0
- package/examples/extensions/mac-system-theme.ts +47 -0
- package/examples/extensions/message-renderer.ts +59 -0
- package/examples/extensions/minimal-mode.ts +426 -0
- package/examples/extensions/modal-editor.ts +85 -0
- package/examples/extensions/model-status.ts +31 -0
- package/examples/extensions/notify.ts +55 -0
- package/examples/extensions/overlay-qa-tests.ts +881 -0
- package/examples/extensions/overlay-test.ts +150 -0
- package/examples/extensions/permission-gate.ts +34 -0
- package/examples/extensions/pirate.ts +47 -0
- package/examples/extensions/plan-mode/README.md +65 -0
- package/examples/extensions/plan-mode/index.ts +340 -0
- package/examples/extensions/plan-mode/utils.ts +168 -0
- package/examples/extensions/preset.ts +398 -0
- package/examples/extensions/protected-paths.ts +30 -0
- package/examples/extensions/qna.ts +119 -0
- package/examples/extensions/question.ts +264 -0
- package/examples/extensions/questionnaire.ts +427 -0
- package/examples/extensions/rainbow-editor.ts +88 -0
- package/examples/extensions/rpc-demo.ts +124 -0
- package/examples/extensions/sandbox/index.ts +318 -0
- package/examples/extensions/sandbox/package-lock.json +92 -0
- package/examples/extensions/sandbox/package.json +19 -0
- package/examples/extensions/send-user-message.ts +97 -0
- package/examples/extensions/session-name.ts +27 -0
- package/examples/extensions/shutdown-command.ts +63 -0
- package/examples/extensions/snake.ts +343 -0
- package/examples/extensions/space-invaders.ts +560 -0
- package/examples/extensions/ssh.ts +220 -0
- package/examples/extensions/status-line.ts +40 -0
- package/examples/extensions/subagent/README.md +172 -0
- package/examples/extensions/subagent/agents/planner.md +37 -0
- package/examples/extensions/subagent/agents/reviewer.md +35 -0
- package/examples/extensions/subagent/agents/scout.md +50 -0
- package/examples/extensions/subagent/agents/worker.md +24 -0
- package/examples/extensions/subagent/agents.ts +127 -0
- package/examples/extensions/subagent/index.ts +963 -0
- package/examples/extensions/subagent/prompts/implement-and-review.md +10 -0
- package/examples/extensions/subagent/prompts/implement.md +10 -0
- package/examples/extensions/subagent/prompts/scout-and-plan.md +9 -0
- package/examples/extensions/summarize.ts +195 -0
- package/examples/extensions/system-prompt-header.ts +17 -0
- package/examples/extensions/timed-confirm.ts +70 -0
- package/examples/extensions/titlebar-spinner.ts +58 -0
- package/examples/extensions/todo.ts +299 -0
- package/examples/extensions/tool-override.ts +143 -0
- package/examples/extensions/tools.ts +146 -0
- package/examples/extensions/trigger-compact.ts +40 -0
- package/examples/extensions/truncated-tool.ts +192 -0
- package/examples/extensions/widget-placement.ts +17 -0
- package/examples/extensions/with-deps/index.ts +36 -0
- package/examples/extensions/with-deps/package-lock.json +31 -0
- package/examples/extensions/with-deps/package.json +22 -0
- package/examples/rpc-extension-ui.ts +632 -0
- package/examples/sdk/01-minimal.ts +22 -0
- package/examples/sdk/02-custom-model.ts +49 -0
- package/examples/sdk/03-custom-prompt.ts +55 -0
- package/examples/sdk/04-skills.ts +46 -0
- package/examples/sdk/05-tools.ts +56 -0
- package/examples/sdk/06-extensions.ts +88 -0
- package/examples/sdk/07-context-files.ts +40 -0
- package/examples/sdk/08-prompt-templates.ts +47 -0
- package/examples/sdk/09-api-keys-and-oauth.ts +48 -0
- package/examples/sdk/10-settings.ts +38 -0
- package/examples/sdk/11-sessions.ts +48 -0
- package/examples/sdk/12-full-control.ts +82 -0
- package/examples/sdk/README.md +144 -0
- package/package.json +97 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,2564 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## [Unreleased]
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
|
|
7
|
+
- API keys in `auth.json` now support shell command resolution (`!command`) and environment variable lookup, matching the behavior in `models.json`
|
|
8
|
+
- Added `minimal-mode.ts` example extension demonstrating how to override built-in tool rendering for a minimal display mode
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- Fixed HTML export losing indentation in ANSI-rendered tool output (e.g. JSON code blocks in custom tool results) ([#1269](https://github.com/badlogic/pi-mono/pull/1269) by [@aliou](https://github.com/aliou))
|
|
13
|
+
- Fixed images being silently dropped when `prompt()` is called with both `images` and `streamingBehavior` during streaming. `steer()`, `followUp()`, and the corresponding RPC commands now accept optional images. ([#1271](https://github.com/badlogic/pi-mono/pull/1271) by [@aliou](https://github.com/aliou))
|
|
14
|
+
|
|
15
|
+
## [0.51.6] - 2026-02-04
|
|
16
|
+
|
|
17
|
+
### New Features
|
|
18
|
+
|
|
19
|
+
- Configurable resume keybinding action for opening the session resume selector. See [docs/keybindings.md](docs/keybindings.md). ([#1249](https://github.com/badlogic/pi-mono/pull/1249) by [@juanibiapina](https://github.com/juanibiapina))
|
|
20
|
+
|
|
21
|
+
### Added
|
|
22
|
+
|
|
23
|
+
- Added `resume` as a configurable keybinding action, allowing users to bind a key to open the session resume selector (like `newSession`, `tree`, and `fork`) ([#1249](https://github.com/badlogic/pi-mono/pull/1249) by [@juanibiapina](https://github.com/juanibiapina))
|
|
24
|
+
|
|
25
|
+
### Changed
|
|
26
|
+
|
|
27
|
+
- Slash command menu now triggers on the first line even when other lines have content, allowing commands to be prepended to existing text ([#1227](https://github.com/badlogic/pi-mono/pull/1227) by [@aliou](https://github.com/aliou))
|
|
28
|
+
|
|
29
|
+
### Fixed
|
|
30
|
+
|
|
31
|
+
- Ignored unknown skill frontmatter fields when loading skills
|
|
32
|
+
- Fixed `/reload` not picking up changes in global settings.json ([#1241](https://github.com/badlogic/pi-mono/issues/1241))
|
|
33
|
+
- Fixed forked sessions to persist the user message after forking
|
|
34
|
+
- Fixed forked sessions to write to new session files instead of the parent ([#1242](https://github.com/badlogic/pi-mono/issues/1242))
|
|
35
|
+
- Fixed local package removal to normalize paths before comparison ([#1243](https://github.com/badlogic/pi-mono/issues/1243))
|
|
36
|
+
- Fixed OpenAI Codex Responses provider to respect configured baseUrl ([#1244](https://github.com/badlogic/pi-mono/issues/1244))
|
|
37
|
+
- Fixed `/settings` crashing in narrow terminals by handling small widths in the settings list ([#1246](https://github.com/badlogic/pi-mono/pull/1246) by [@haoqixu](https://github.com/haoqixu))
|
|
38
|
+
- Fixed Unix bash detection to fall back to PATH lookup when `/bin/bash` is unavailable, including Termux setups ([#1230](https://github.com/badlogic/pi-mono/pull/1230) by [@VaclavSynacek](https://github.com/VaclavSynacek))
|
|
39
|
+
|
|
40
|
+
## [0.51.5] - 2026-02-04
|
|
41
|
+
|
|
42
|
+
### Changed
|
|
43
|
+
|
|
44
|
+
- Changed Bedrock model generation to drop legacy workarounds now handled upstream ([#1239](https://github.com/badlogic/pi-mono/pull/1239) by [@unexge](https://github.com/unexge))
|
|
45
|
+
|
|
46
|
+
### Fixed
|
|
47
|
+
|
|
48
|
+
- Fixed Windows package installs regression by using shell execution instead of `.cmd` resolution ([#1220](https://github.com/badlogic/pi-mono/issues/1220))
|
|
49
|
+
|
|
50
|
+
## [0.51.4] - 2026-02-03
|
|
51
|
+
|
|
52
|
+
### New Features
|
|
53
|
+
|
|
54
|
+
- Share URLs now default to pi.dev, graciously donated by exe.dev.
|
|
55
|
+
|
|
56
|
+
### Changed
|
|
57
|
+
|
|
58
|
+
- Share URLs now use pi.dev by default while shittycodingagent.ai and buildwithpi.ai continue to work.
|
|
59
|
+
|
|
60
|
+
### Fixed
|
|
61
|
+
|
|
62
|
+
- Fixed input scrolling to avoid splitting emoji sequences ([#1228](https://github.com/badlogic/pi-mono/pull/1228) by [@haoqixu](https://github.com/haoqixu))
|
|
63
|
+
|
|
64
|
+
## [0.51.3] - 2026-02-03
|
|
65
|
+
|
|
66
|
+
### New Features
|
|
67
|
+
|
|
68
|
+
- Command discovery for extensions via `ExtensionAPI.getCommands()`, with `commands.ts` example for invocation patterns. See [docs/extensions.md#pigetcommands](docs/extensions.md#pigetcommands) and [examples/extensions/commands.ts](examples/extensions/commands.ts).
|
|
69
|
+
- Local path support for `pi install` and `pi remove`, with relative path resolution against the settings file. See [docs/packages.md#local-paths](docs/packages.md#local-paths).
|
|
70
|
+
|
|
71
|
+
### Breaking Changes
|
|
72
|
+
|
|
73
|
+
- RPC `get_commands` response and `SlashCommandSource` type: renamed `"template"` to `"prompt"` for consistency with the rest of the codebase
|
|
74
|
+
|
|
75
|
+
### Added
|
|
76
|
+
|
|
77
|
+
- Added `ExtensionAPI.getCommands()` to let extensions list available slash commands (extensions, prompt templates, skills) for invocation via `prompt` ([#1210](https://github.com/badlogic/pi-mono/pull/1210) by [@w-winter](https://github.com/w-winter))
|
|
78
|
+
- Added `commands.ts` example extension and exported `SlashCommandInfo` types for command discovery integrations ([#1210](https://github.com/badlogic/pi-mono/pull/1210) by [@w-winter](https://github.com/w-winter))
|
|
79
|
+
- Added local path support for `pi install` and `pi remove` with relative paths stored against the target settings file ([#1216](https://github.com/badlogic/pi-mono/issues/1216))
|
|
80
|
+
|
|
81
|
+
### Fixed
|
|
82
|
+
|
|
83
|
+
- Fixed default thinking level persistence so settings-derived defaults are saved and restored correctly
|
|
84
|
+
- Fixed Windows package installs by resolving `npm.cmd` when `npm` is not directly executable ([#1220](https://github.com/badlogic/pi-mono/issues/1220))
|
|
85
|
+
- Fixed xhigh thinking level support check to accept gpt-5.2 model IDs ([#1209](https://github.com/badlogic/pi-mono/issues/1209))
|
|
86
|
+
|
|
87
|
+
## [0.51.2] - 2026-02-03
|
|
88
|
+
|
|
89
|
+
### New Features
|
|
90
|
+
|
|
91
|
+
- Extension tool output expansion controls via ExtensionUIContext getToolsExpanded and setToolsExpanded. See [docs/extensions.md](docs/extensions.md) and [docs/rpc.md](docs/rpc.md).
|
|
92
|
+
|
|
93
|
+
### Added
|
|
94
|
+
|
|
95
|
+
- Added ExtensionUIContext getToolsExpanded and setToolsExpanded for controlling tool output expansion ([#1199](https://github.com/badlogic/pi-mono/pull/1199) by [@academo](https://github.com/academo))
|
|
96
|
+
- Added install method detection to show package manager specific update instructions ([#1203](https://github.com/badlogic/pi-mono/pull/1203) by [@Itsnotaka](https://github.com/Itsnotaka))
|
|
97
|
+
|
|
98
|
+
### Fixed
|
|
99
|
+
|
|
100
|
+
- Fixed Kitty key release events leaking to parent shell over slow SSH connections by draining stdin for up to 1s on exit ([#1204](https://github.com/badlogic/pi-mono/issues/1204))
|
|
101
|
+
- Fixed legacy newline handling in the editor to preserve previous newline behavior
|
|
102
|
+
- Fixed @ autocomplete to include hidden paths
|
|
103
|
+
- Fixed submit fallback to honor configured keybindings
|
|
104
|
+
- Fixed extension commands conflicting with built-in commands by skipping them ([#1196](https://github.com/badlogic/pi-mono/pull/1196) by [@haoqixu](https://github.com/haoqixu))
|
|
105
|
+
- Fixed @-prefixed tool paths failing to resolve by stripping the prefix ([#1206](https://github.com/badlogic/pi-mono/issues/1206))
|
|
106
|
+
- Fixed install method detection to avoid stale cached results
|
|
107
|
+
|
|
108
|
+
## [0.51.1] - 2026-02-02
|
|
109
|
+
|
|
110
|
+
### New Features
|
|
111
|
+
|
|
112
|
+
- **Extension API switchSession**: Extensions can now programmatically switch sessions via `ctx.switchSession(sessionPath)`. See [docs/extensions.md](docs/extensions.md). ([#1187](https://github.com/badlogic/pi-mono/issues/1187))
|
|
113
|
+
- **Clear on shrink setting**: New `terminal.clearOnShrink` setting keeps the editor and footer pinned to the bottom of the terminal when content shrinks. May cause some flicker due to redraws. Disabled by default. Enable via `/settings` or `PI_CLEAR_ON_SHRINK=1` env var.
|
|
114
|
+
|
|
115
|
+
### Fixed
|
|
116
|
+
|
|
117
|
+
- Fixed scoped models not finding valid credentials after logout ([#1194](https://github.com/badlogic/pi-mono/pull/1194) by [@terrorobe](https://github.com/terrorobe))
|
|
118
|
+
- Fixed Ctrl+D exit closing the parent SSH session due to stdin buffer race condition ([#1185](https://github.com/badlogic/pi-mono/issues/1185))
|
|
119
|
+
- Fixed emoji cursor positioning in editor input ([#1183](https://github.com/badlogic/pi-mono/pull/1183) by [@haoqixu](https://github.com/haoqixu))
|
|
120
|
+
|
|
121
|
+
## [0.51.0] - 2026-02-01
|
|
122
|
+
|
|
123
|
+
### Breaking Changes
|
|
124
|
+
|
|
125
|
+
- **Extension tool signature change**: `ToolDefinition.execute` now uses `(toolCallId, params, signal, onUpdate, ctx)` parameter order to match `AgentTool.execute`. Previously it was `(toolCallId, params, onUpdate, ctx, signal)`. This makes wrapping built-in tools trivial since the first four parameters now align. Update your extensions by swapping the `signal` and `onUpdate` parameters:
|
|
126
|
+
```ts
|
|
127
|
+
// Before
|
|
128
|
+
async execute(toolCallId, params, onUpdate, ctx, signal) { ... }
|
|
129
|
+
|
|
130
|
+
// After
|
|
131
|
+
async execute(toolCallId, params, signal, onUpdate, ctx) { ... }
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
### New Features
|
|
135
|
+
|
|
136
|
+
- **Android/Termux support**: Pi now runs on Android via Termux. Install with:
|
|
137
|
+
```bash
|
|
138
|
+
pkg install nodejs termux-api git
|
|
139
|
+
npm install -g @mariozechner/pi-coding-agent
|
|
140
|
+
mkdir -p ~/.pi/agent
|
|
141
|
+
echo "You are running on Android in Termux." > ~/.pi/agent/AGENTS.md
|
|
142
|
+
```
|
|
143
|
+
Clipboard operations fall back gracefully when `termux-api` is unavailable. ([#1164](https://github.com/badlogic/pi-mono/issues/1164))
|
|
144
|
+
- **Bash spawn hook**: Extensions can now intercept and modify bash commands before execution via `pi.setBashSpawnHook()`. Adjust the command string, working directory, or environment variables. See [docs/extensions.md](docs/extensions.md). ([#1160](https://github.com/badlogic/pi-mono/pull/1160) by [@mitsuhiko](https://github.com/mitsuhiko))
|
|
145
|
+
- **Linux ARM64 musl support**: Pi now runs on Alpine Linux ARM64 (linux-arm64-musl) via updated clipboard dependency.
|
|
146
|
+
- **Nix/Guix support**: `PI_PACKAGE_DIR` environment variable overrides the package path for content-addressed package managers where store paths tokenize poorly. See [README.md#environment-variables](README.md#environment-variables). ([#1153](https://github.com/badlogic/pi-mono/pull/1153) by [@odysseus0](https://github.com/odysseus0))
|
|
147
|
+
- **Named session filter**: `/resume` picker now supports filtering to show only named sessions via Ctrl+N. Configurable via `toggleSessionNamedFilter` keybinding. See [docs/keybindings.md](docs/keybindings.md). ([#1128](https://github.com/badlogic/pi-mono/pull/1128) by [@w-winter](https://github.com/w-winter))
|
|
148
|
+
- **Typed tool call events**: Extension developers can narrow `ToolCallEvent` types using `isToolCallEventType()` for better TypeScript support. See [docs/extensions.md#tool-call-events](docs/extensions.md#tool-call-events). ([#1147](https://github.com/badlogic/pi-mono/pull/1147) by [@giuseppeg](https://github.com/giuseppeg))
|
|
149
|
+
- **Extension UI Protocol**: Full RPC documentation and examples for extension dialogs and notifications, enabling headless clients to support interactive extensions. See [docs/rpc.md#extension-ui-protocol](docs/rpc.md#extension-ui-protocol). ([#1144](https://github.com/badlogic/pi-mono/pull/1144) by [@aliou](https://github.com/aliou))
|
|
150
|
+
|
|
151
|
+
### Added
|
|
152
|
+
|
|
153
|
+
- Added Linux ARM64 musl (Alpine Linux) support via clipboard dependency update
|
|
154
|
+
- Added Android/Termux support with graceful clipboard fallback ([#1164](https://github.com/badlogic/pi-mono/issues/1164))
|
|
155
|
+
- Added bash tool spawn hook support for adjusting command, cwd, and env before execution ([#1160](https://github.com/badlogic/pi-mono/pull/1160) by [@mitsuhiko](https://github.com/mitsuhiko))
|
|
156
|
+
- Added typed `ToolCallEvent.input` per tool with `isToolCallEventType()` type guard for narrowing built-in tool events ([#1147](https://github.com/badlogic/pi-mono/pull/1147) by [@giuseppeg](https://github.com/giuseppeg))
|
|
157
|
+
- Exported `discoverAndLoadExtensions` from package to enable extension testing without a local repo clone ([#1148](https://github.com/badlogic/pi-mono/issues/1148))
|
|
158
|
+
- Added Extension UI Protocol documentation to RPC docs covering all request/response types for extension dialogs and notifications ([#1144](https://github.com/badlogic/pi-mono/pull/1144) by [@aliou](https://github.com/aliou))
|
|
159
|
+
- Added `rpc-demo.ts` example extension exercising all RPC-supported extension UI methods ([#1144](https://github.com/badlogic/pi-mono/pull/1144) by [@aliou](https://github.com/aliou))
|
|
160
|
+
- Added `rpc-extension-ui.ts` TUI example client demonstrating the extension UI protocol with interactive dialogs ([#1144](https://github.com/badlogic/pi-mono/pull/1144) by [@aliou](https://github.com/aliou))
|
|
161
|
+
- Added `PI_PACKAGE_DIR` environment variable to override package path for content-addressed package managers (Nix, Guix) where store paths tokenize poorly ([#1153](https://github.com/badlogic/pi-mono/pull/1153) by [@odysseus0](https://github.com/odysseus0))
|
|
162
|
+
- `/resume` session picker now supports named-only filter toggle (default Ctrl+N, configurable via `toggleSessionNamedFilter`) to show only named sessions ([#1128](https://github.com/badlogic/pi-mono/pull/1128) by [@w-winter](https://github.com/w-winter))
|
|
163
|
+
|
|
164
|
+
### Fixed
|
|
165
|
+
|
|
166
|
+
- Fixed `pi update` not updating npm/git packages when called without arguments ([#1151](https://github.com/badlogic/pi-mono/issues/1151))
|
|
167
|
+
- Fixed `models.json` validation requiring fields documented as optional. Model definitions now only require `id`; all other fields (`name`, `reasoning`, `input`, `cost`, `contextWindow`, `maxTokens`) have sensible defaults. ([#1146](https://github.com/badlogic/pi-mono/issues/1146))
|
|
168
|
+
- Fixed models resolving relative paths in skill files from cwd instead of skill directory by adding explicit guidance to skills preamble ([#1136](https://github.com/badlogic/pi-mono/issues/1136))
|
|
169
|
+
- Fixed tree selector losing focus state when navigating entries ([#1142](https://github.com/badlogic/pi-mono/pull/1142) by [@Perlence](https://github.com/Perlence))
|
|
170
|
+
- Fixed `cacheRetention` option not being passed through in `buildBaseOptions` ([#1154](https://github.com/badlogic/pi-mono/issues/1154))
|
|
171
|
+
- Fixed OAuth login/refresh not using HTTP proxy settings (`HTTP_PROXY`, `HTTPS_PROXY` env vars) ([#1132](https://github.com/badlogic/pi-mono/issues/1132))
|
|
172
|
+
- Fixed `pi update <source>` installing packages locally when the source is only registered globally ([#1163](https://github.com/badlogic/pi-mono/pull/1163) by [@aliou](https://github.com/aliou))
|
|
173
|
+
- Fixed tree navigation with summarization overwriting editor content typed during the summarization wait ([#1169](https://github.com/badlogic/pi-mono/pull/1169) by [@aliou](https://github.com/aliou))
|
|
174
|
+
|
|
175
|
+
## [0.50.9] - 2026-02-01
|
|
176
|
+
|
|
177
|
+
### Added
|
|
178
|
+
|
|
179
|
+
- Added `titlebar-spinner.ts` example extension that shows a braille spinner animation in the terminal title while the agent is working.
|
|
180
|
+
- Added `PI_AI_ANTIGRAVITY_VERSION` environment variable documentation to help text ([#1129](https://github.com/badlogic/pi-mono/issues/1129))
|
|
181
|
+
- Added `cacheRetention` stream option with provider-specific mappings for prompt cache controls, defaulting to short retention ([#1134](https://github.com/badlogic/pi-mono/issues/1134))
|
|
182
|
+
|
|
183
|
+
## [0.50.8] - 2026-02-01
|
|
184
|
+
|
|
185
|
+
### Added
|
|
186
|
+
|
|
187
|
+
- Added `newSession`, `tree`, and `fork` keybinding actions for `/new`, `/tree`, and `/fork` commands. All unbound by default. ([#1114](https://github.com/badlogic/pi-mono/pull/1114) by [@juanibiapina](https://github.com/juanibiapina))
|
|
188
|
+
- Added `retry.maxDelayMs` setting to cap maximum server-requested retry delay. When a provider requests a longer delay (e.g., Google's "quota will reset after 5h"), the request fails immediately with an informative error instead of waiting silently. Default: 60000ms (60 seconds). ([#1123](https://github.com/badlogic/pi-mono/issues/1123))
|
|
189
|
+
- `/resume` session picker: new "Threaded" sort mode (now default) displays sessions in a tree structure based on fork relationships. Compact one-line format with message count and age on the right. ([#1124](https://github.com/badlogic/pi-mono/pull/1124) by [@pasky](https://github.com/pasky))
|
|
190
|
+
- Added Qwen CLI OAuth provider extension example. ([#940](https://github.com/badlogic/pi-mono/pull/940) by [@4h9fbZ](https://github.com/4h9fbZ))
|
|
191
|
+
- Added OAuth `modifyModels` hook support for extension-registered providers at registration time. ([#940](https://github.com/badlogic/pi-mono/pull/940) by [@4h9fbZ](https://github.com/4h9fbZ))
|
|
192
|
+
- Added Qwen thinking format support for OpenAI-compatible completions via `enable_thinking`. ([#940](https://github.com/badlogic/pi-mono/pull/940) by [@4h9fbZ](https://github.com/4h9fbZ))
|
|
193
|
+
- Added sticky column tracking for vertical cursor navigation so the editor restores the preferred column when moving across short lines. ([#1120](https://github.com/badlogic/pi-mono/pull/1120) by [@Perlence](https://github.com/Perlence))
|
|
194
|
+
- Added `resources_discover` extension hook to supply additional skills, prompts, and themes on startup and reload.
|
|
195
|
+
|
|
196
|
+
### Fixed
|
|
197
|
+
|
|
198
|
+
- Fixed `switchSession()` appending spurious `thinking_level_change` entry to session log on resume. `setThinkingLevel()` is now idempotent. ([#1118](https://github.com/badlogic/pi-mono/issues/1118))
|
|
199
|
+
- Fixed clipboard image paste on WSL2/WSLg writing invalid PNG files when clipboard provides `image/bmp` format. BMP images are now converted to PNG before saving. ([#1112](https://github.com/badlogic/pi-mono/pull/1112) by [@lightningRalf](https://github.com/lightningRalf))
|
|
200
|
+
- Fixed Kitty keyboard protocol base layout fallback so non-QWERTY layouts do not trigger wrong shortcuts ([#1096](https://github.com/badlogic/pi-mono/pull/1096) by [@rytswd](https://github.com/rytswd))
|
|
201
|
+
|
|
202
|
+
## [0.50.7] - 2026-01-31
|
|
203
|
+
|
|
204
|
+
### Fixed
|
|
205
|
+
|
|
206
|
+
- Multi-file extensions in packages now work correctly. Package resolution now uses the same discovery logic as local extensions: only `index.ts` (or manifest-declared entries) are loaded from subdirectories, not helper modules. ([#1102](https://github.com/badlogic/pi-mono/issues/1102))
|
|
207
|
+
|
|
208
|
+
## [0.50.6] - 2026-01-30
|
|
209
|
+
|
|
210
|
+
### Added
|
|
211
|
+
|
|
212
|
+
- Added `ctx.getSystemPrompt()` to extension context for accessing the current effective system prompt ([#1098](https://github.com/badlogic/pi-mono/pull/1098) by [@kaofelix](https://github.com/kaofelix))
|
|
213
|
+
|
|
214
|
+
### Fixed
|
|
215
|
+
|
|
216
|
+
- Fixed empty rows appearing below footer when content shrinks (e.g., closing `/tree`, clearing multi-line editor) ([#1095](https://github.com/badlogic/pi-mono/pull/1095) by [@marckrenn](https://github.com/marckrenn))
|
|
217
|
+
- Fixed terminal cursor remaining hidden after exiting TUI via `stop()` when a render was pending ([#1099](https://github.com/badlogic/pi-mono/pull/1099) by [@haoqixu](https://github.com/haoqixu))
|
|
218
|
+
|
|
219
|
+
## [0.50.5] - 2026-01-30
|
|
220
|
+
|
|
221
|
+
## [0.50.4] - 2026-01-30
|
|
222
|
+
|
|
223
|
+
### New Features
|
|
224
|
+
|
|
225
|
+
- **OSC 52 clipboard support for SSH/mosh** - The `/copy` command now works over remote connections using the OSC 52 terminal escape sequence. No more clipboard frustration when using pi over SSH. ([#1069](https://github.com/badlogic/pi-mono/issues/1069) by [@gturkoglu](https://github.com/gturkoglu))
|
|
226
|
+
- **Vercel AI Gateway routing** - Route requests through Vercel's AI Gateway with provider failover and load balancing. Configure via `vercelGatewayRouting` in models.json. ([#1051](https://github.com/badlogic/pi-mono/pull/1051) by [@ben-vargas](https://github.com/ben-vargas))
|
|
227
|
+
- **Character jump navigation** - Bash/Readline-style character search: Ctrl+] jumps forward to the next occurrence of a character, Ctrl+Alt+] jumps backward. ([#1074](https://github.com/badlogic/pi-mono/pull/1074) by [@Perlence](https://github.com/Perlence))
|
|
228
|
+
- **Emacs-style Ctrl+B/Ctrl+F navigation** - Alternative keybindings for word navigation (cursor word left/right) in the editor. ([#1053](https://github.com/badlogic/pi-mono/pull/1053) by [@ninlds](https://github.com/ninlds))
|
|
229
|
+
- **Line boundary navigation** - Editor jumps to line start when pressing Up at first visual line, and line end when pressing Down at last visual line. ([#1050](https://github.com/badlogic/pi-mono/pull/1050) by [@4h9fbZ](https://github.com/4h9fbZ))
|
|
230
|
+
- **Performance improvements** - Optimized image line detection and box rendering cache in the TUI for better rendering performance. ([#1084](https://github.com/badlogic/pi-mono/pull/1084) by [@can1357](https://github.com/can1357))
|
|
231
|
+
- **`set_session_name` RPC command** - Headless clients can now set the session display name programmatically. ([#1075](https://github.com/badlogic/pi-mono/pull/1075) by [@dnouri](https://github.com/dnouri))
|
|
232
|
+
- **Disable double-escape behavior** - New `"none"` option for `doubleEscapeAction` setting completely disables the double-escape shortcut. ([#973](https://github.com/badlogic/pi-mono/issues/973) by [@juanibiapina](https://github.com/juanibiapina))
|
|
233
|
+
|
|
234
|
+
### Added
|
|
235
|
+
|
|
236
|
+
- Added "none" option to `doubleEscapeAction` setting to disable double-escape behavior entirely ([#973](https://github.com/badlogic/pi-mono/issues/973) by [@juanibiapina](https://github.com/juanibiapina))
|
|
237
|
+
- Added OSC 52 clipboard support for SSH/mosh sessions. `/copy` now works over remote connections. ([#1069](https://github.com/badlogic/pi-mono/issues/1069) by [@gturkoglu](https://github.com/gturkoglu))
|
|
238
|
+
- Added Vercel AI Gateway routing support via `vercelGatewayRouting` in models.json ([#1051](https://github.com/badlogic/pi-mono/pull/1051) by [@ben-vargas](https://github.com/ben-vargas))
|
|
239
|
+
- Added Ctrl+B and Ctrl+F keybindings for cursor word left/right navigation in the editor ([#1053](https://github.com/badlogic/pi-mono/pull/1053) by [@ninlds](https://github.com/ninlds))
|
|
240
|
+
- Added character jump navigation: Ctrl+] jumps forward to next character, Ctrl+Alt+] jumps backward ([#1074](https://github.com/badlogic/pi-mono/pull/1074) by [@Perlence](https://github.com/Perlence))
|
|
241
|
+
- Editor now jumps to line start when pressing Up at first visual line, and line end when pressing Down at last visual line ([#1050](https://github.com/badlogic/pi-mono/pull/1050) by [@4h9fbZ](https://github.com/4h9fbZ))
|
|
242
|
+
- Optimized image line detection and box rendering cache for better TUI performance ([#1084](https://github.com/badlogic/pi-mono/pull/1084) by [@can1357](https://github.com/can1357))
|
|
243
|
+
- Added `set_session_name` RPC command for headless clients to set session display name ([#1075](https://github.com/badlogic/pi-mono/pull/1075) by [@dnouri](https://github.com/dnouri))
|
|
244
|
+
|
|
245
|
+
### Fixed
|
|
246
|
+
|
|
247
|
+
- Read tool now handles macOS filenames with curly quotes (U+2019) and NFD Unicode normalization ([#1078](https://github.com/badlogic/pi-mono/issues/1078))
|
|
248
|
+
- Respect .gitignore, .ignore, and .fdignore files when scanning package resources for skills, prompts, themes, and extensions ([#1072](https://github.com/badlogic/pi-mono/issues/1072))
|
|
249
|
+
- Fixed tool call argument defaults when providers omit inputs ([#1065](https://github.com/badlogic/pi-mono/issues/1065))
|
|
250
|
+
- Invalid JSON in settings.json no longer causes the file to be overwritten with empty settings ([#1054](https://github.com/badlogic/pi-mono/issues/1054))
|
|
251
|
+
- Config selector now shows folder name for extensions with duplicate display names ([#1064](https://github.com/badlogic/pi-mono/pull/1064) by [@Graffioh](https://github.com/Graffioh))
|
|
252
|
+
|
|
253
|
+
## [0.50.3] - 2026-01-29
|
|
254
|
+
|
|
255
|
+
### New Features
|
|
256
|
+
|
|
257
|
+
- **Kimi For Coding provider**: Access Moonshot AI's Anthropic-compatible coding API. Set `KIMI_API_KEY` environment variable. See [README.md#kimi-for-coding](README.md#kimi-for-coding).
|
|
258
|
+
|
|
259
|
+
### Added
|
|
260
|
+
|
|
261
|
+
- Added Kimi For Coding provider support (Moonshot AI's Anthropic-compatible coding API). Set `KIMI_API_KEY` environment variable. See [README.md#kimi-for-coding](README.md#kimi-for-coding).
|
|
262
|
+
|
|
263
|
+
### Fixed
|
|
264
|
+
|
|
265
|
+
- Resources now appear before messages when resuming a session, preventing loaded context from appearing at the bottom of the chat.
|
|
266
|
+
|
|
267
|
+
## [0.50.2] - 2026-01-29
|
|
268
|
+
|
|
269
|
+
### New Features
|
|
270
|
+
|
|
271
|
+
- **Hugging Face provider**: Access Hugging Face models via OpenAI-compatible Inference Router. Set `HF_TOKEN` environment variable. See [README.md#hugging-face](README.md#hugging-face).
|
|
272
|
+
- **Extended prompt caching**: `PI_CACHE_RETENTION=long` enables 1-hour caching for Anthropic (vs 5min default) and 24-hour for OpenAI (vs in-memory default). Only applies to direct API calls. See [README.md#prompt-caching](README.md#prompt-caching).
|
|
273
|
+
- **Configurable autocomplete height**: `autocompleteMaxVisible` setting (3-20 items, default 5) controls dropdown size. Adjust via `/settings` or `settings.json`.
|
|
274
|
+
- **Shell-style keybindings**: `alt+b`/`alt+f` for word navigation, `ctrl+d` for delete character forward. See [docs/keybindings.md](docs/keybindings.md).
|
|
275
|
+
- **RPC `get_commands`**: Headless clients can now list available commands programmatically. See [docs/rpc.md](docs/rpc.md).
|
|
276
|
+
|
|
277
|
+
### Added
|
|
278
|
+
|
|
279
|
+
- Added Hugging Face provider support via OpenAI-compatible Inference Router ([#994](https://github.com/badlogic/pi-mono/issues/994))
|
|
280
|
+
- Added `PI_CACHE_RETENTION` environment variable to control cache TTL for Anthropic (5m vs 1h) and OpenAI (in-memory vs 24h). Set to `long` for extended retention. ([#967](https://github.com/badlogic/pi-mono/issues/967))
|
|
281
|
+
- Added `autocompleteMaxVisible` setting for configurable autocomplete dropdown height (3-20 items, default 5) ([#972](https://github.com/badlogic/pi-mono/pull/972) by [@masonc15](https://github.com/masonc15))
|
|
282
|
+
- Added `/files` command to list all file operations (read, write, edit) in the current session
|
|
283
|
+
- Added shell-style keybindings: `alt+b`/`alt+f` for word navigation, `ctrl+d` for delete character forward (when editor has text) ([#1043](https://github.com/badlogic/pi-mono/issues/1043) by [@jasonish](https://github.com/jasonish))
|
|
284
|
+
- Added `get_commands` RPC method for headless clients to list available commands ([#995](https://github.com/badlogic/pi-mono/pull/995) by [@dnouri](https://github.com/dnouri))
|
|
285
|
+
|
|
286
|
+
### Changed
|
|
287
|
+
|
|
288
|
+
- Improved `extractCursorPosition` performance in TUI: scans lines in reverse order, early-outs when cursor is above viewport ([#1004](https://github.com/badlogic/pi-mono/pull/1004) by [@can1357](https://github.com/can1357))
|
|
289
|
+
- Autocomplete improvements: better handling of partial matches and edge cases ([#1024](https://github.com/badlogic/pi-mono/pull/1024) by [@Perlence](https://github.com/Perlence))
|
|
290
|
+
|
|
291
|
+
### Fixed
|
|
292
|
+
|
|
293
|
+
- External edits to `settings.json` are now preserved when pi reloads or saves unrelated settings. Previously, editing settings.json directly (e.g., removing a package from `packages` array) would be silently reverted on next pi startup when automatic setters like `setLastChangelogVersion()` triggered a save.
|
|
294
|
+
- Fixed custom header not displaying correctly with `quietStartup` enabled ([#1039](https://github.com/badlogic/pi-mono/pull/1039) by [@tudoroancea](https://github.com/tudoroancea))
|
|
295
|
+
- Empty array in package filter now disables all resources instead of falling back to manifest defaults ([#1044](https://github.com/badlogic/pi-mono/issues/1044))
|
|
296
|
+
- Auto-retry counter now resets after each successful LLM response instead of accumulating across tool-use turns ([#1019](https://github.com/badlogic/pi-mono/issues/1019))
|
|
297
|
+
- Fixed incorrect `.md` file names in warning messages ([#1041](https://github.com/badlogic/pi-mono/issues/1041) by [@llimllib](https://github.com/llimllib))
|
|
298
|
+
- Fixed provider name hidden in footer when terminal is narrow ([#981](https://github.com/badlogic/pi-mono/pull/981) by [@Perlence](https://github.com/Perlence))
|
|
299
|
+
- Fixed backslash input buffering causing delayed character display in editor ([#1037](https://github.com/badlogic/pi-mono/pull/1037) by [@Perlence](https://github.com/Perlence))
|
|
300
|
+
- Fixed markdown table rendering with proper row dividers and minimum column width ([#997](https://github.com/badlogic/pi-mono/pull/997) by [@tmustier](https://github.com/tmustier))
|
|
301
|
+
- Fixed OpenAI completions `toolChoice` handling ([#998](https://github.com/badlogic/pi-mono/pull/998) by [@williamtwomey](https://github.com/williamtwomey))
|
|
302
|
+
- Fixed cross-provider handoff failing when switching from OpenAI Responses API providers due to pipe-separated tool call IDs ([#1022](https://github.com/badlogic/pi-mono/issues/1022))
|
|
303
|
+
- Fixed 429 rate limit errors incorrectly triggering auto-compaction instead of retry with backoff ([#1038](https://github.com/badlogic/pi-mono/issues/1038))
|
|
304
|
+
- Fixed Anthropic provider to handle `sensitive` stop_reason returned by API ([#978](https://github.com/badlogic/pi-mono/issues/978))
|
|
305
|
+
- Fixed DeepSeek API compatibility by detecting `deepseek.com` URLs and disabling unsupported `developer` role ([#1048](https://github.com/badlogic/pi-mono/issues/1048))
|
|
306
|
+
- Fixed Anthropic provider to preserve input token counts when proxies omit them in `message_delta` events ([#1045](https://github.com/badlogic/pi-mono/issues/1045))
|
|
307
|
+
- Fixed `autocompleteMaxVisible` setting not persisting to `settings.json`
|
|
308
|
+
|
|
309
|
+
## [0.50.1] - 2026-01-26
|
|
310
|
+
|
|
311
|
+
### Fixed
|
|
312
|
+
|
|
313
|
+
- Git extension updates now handle force-pushed remotes gracefully instead of failing ([#961](https://github.com/badlogic/pi-mono/pull/961) by [@aliou](https://github.com/aliou))
|
|
314
|
+
- Extension `ctx.newSession({ setup })` now properly syncs agent state and renders messages after setup callback runs ([#968](https://github.com/badlogic/pi-mono/issues/968))
|
|
315
|
+
- Fixed extension UI bindings not initializing when starting with no extensions, which broke UI methods after `/reload`
|
|
316
|
+
- Fixed `/hotkeys` output to title-case extension hotkeys ([#969](https://github.com/badlogic/pi-mono/pull/969) by [@Perlence](https://github.com/Perlence))
|
|
317
|
+
- Fixed model catalog generation to exclude deprecated OpenCode Zen models ([#970](https://github.com/badlogic/pi-mono/pull/970) by [@DanielTatarkin](https://github.com/DanielTatarkin))
|
|
318
|
+
- Fixed git extension removal to prune empty directories
|
|
319
|
+
|
|
320
|
+
## [0.50.0] - 2026-01-26
|
|
321
|
+
|
|
322
|
+
### New Features
|
|
323
|
+
|
|
324
|
+
- Pi packages for bundling and installing extensions, skills, prompts, and themes. See [docs/packages.md](docs/packages.md).
|
|
325
|
+
- Hot reload (`/reload`) of resources including AGENTS.md, SYSTEM.md, APPEND_SYSTEM.md, prompt templates, skills, themes, and extensions. See [README.md#commands](README.md#commands) and [README.md#context-files](README.md#context-files).
|
|
326
|
+
- Custom providers via `pi.registerProvider()` for proxies, custom endpoints, OAuth or SSO flows, and non-standard streaming APIs. See [docs/custom-provider.md](docs/custom-provider.md).
|
|
327
|
+
- Azure OpenAI Responses provider support with deployment-aware model mapping. See [docs/providers.md#azure-openai](docs/providers.md#azure-openai).
|
|
328
|
+
- OpenRouter routing support for custom models via `openRouterRouting`. See [docs/providers.md#api-keys](docs/providers.md#api-keys) and [docs/models.md](docs/models.md).
|
|
329
|
+
- Skill invocation messages are now collapsible and skills can opt out of model invocation via `disable-model-invocation`. See [docs/skills.md#frontmatter](docs/skills.md#frontmatter).
|
|
330
|
+
- Session selector renaming and configurable keybindings. See [README.md#commands](README.md#commands) and [docs/keybindings.md](docs/keybindings.md).
|
|
331
|
+
- `models.json` headers can resolve environment variables and shell commands. See [docs/models.md#value-resolution](docs/models.md#value-resolution).
|
|
332
|
+
- `--verbose` CLI flag to override quiet startup. See [README.md#cli-reference](README.md#cli-reference).
|
|
333
|
+
|
|
334
|
+
Read the fully revamped docs in `README.md`, or have your clanker read them for you.
|
|
335
|
+
|
|
336
|
+
### SDK Migration Guide
|
|
337
|
+
|
|
338
|
+
There are multiple SDK breaking changes since v0.49.3. For the quickest migration, point your agent at `packages/coding-agent/docs/sdk.md`, the SDK examples in `packages/coding-agent/examples/sdk`, and the SDK source in `packages/coding-agent/src/core/sdk.ts` and related modules.
|
|
339
|
+
|
|
340
|
+
### Breaking Changes
|
|
341
|
+
|
|
342
|
+
- Header values in `models.json` now resolve environment variables (if a header value matches an env var name, the env var value is used). This may change behavior if a literal header value accidentally matches an env var name. ([#909](https://github.com/badlogic/pi-mono/issues/909))
|
|
343
|
+
- External packages (npm/git) are now configured via `packages` array in settings.json instead of `extensions`. Existing npm:/git: entries in `extensions` are auto-migrated. ([#645](https://github.com/badlogic/pi-mono/issues/645))
|
|
344
|
+
- Resource loading now uses `ResourceLoader` only and settings.json uses arrays for extensions, skills, prompts, and themes ([#645](https://github.com/badlogic/pi-mono/issues/645))
|
|
345
|
+
- Removed `discoverAuthStorage` and `discoverModels` from the SDK. `AuthStorage` and `ModelRegistry` now default to `~/.pi/agent` paths unless you pass an `agentDir` ([#645](https://github.com/badlogic/pi-mono/issues/645))
|
|
346
|
+
|
|
347
|
+
### Added
|
|
348
|
+
|
|
349
|
+
- Session renaming in `/resume` picker via `Ctrl+R` without opening the session ([#863](https://github.com/badlogic/pi-mono/pull/863) by [@svkozak](https://github.com/svkozak))
|
|
350
|
+
- Session selector keybindings are now configurable ([#948](https://github.com/badlogic/pi-mono/pull/948) by [@aos](https://github.com/aos))
|
|
351
|
+
- `disable-model-invocation` frontmatter field for skills to prevent agentic invocation while still allowing explicit `/skill:name` commands ([#927](https://github.com/badlogic/pi-mono/issues/927))
|
|
352
|
+
- Exposed `copyToClipboard` utility for extensions ([#926](https://github.com/badlogic/pi-mono/issues/926) by [@mitsuhiko](https://github.com/mitsuhiko))
|
|
353
|
+
- Skill invocation messages are now collapsible in chat output, showing collapsed by default with skill name and expand hint ([#894](https://github.com/badlogic/pi-mono/issues/894))
|
|
354
|
+
- Header values in `models.json` now support environment variables and shell commands, matching `apiKey` resolution ([#909](https://github.com/badlogic/pi-mono/issues/909))
|
|
355
|
+
- Added HTTP proxy environment variable support for API requests ([#942](https://github.com/badlogic/pi-mono/pull/942) by [@haoqixu](https://github.com/haoqixu))
|
|
356
|
+
- Added OpenRouter provider routing support for custom models via `openRouterRouting` compat field ([#859](https://github.com/badlogic/pi-mono/pull/859) by [@v01dpr1mr0s3](https://github.com/v01dpr1mr0s3))
|
|
357
|
+
- Added `azure-openai-responses` provider support for Azure OpenAI Responses API. ([#890](https://github.com/badlogic/pi-mono/pull/890) by [@markusylisiurunen](https://github.com/markusylisiurunen))
|
|
358
|
+
- Added changelog link to update notifications ([#925](https://github.com/badlogic/pi-mono/pull/925) by [@dannote](https://github.com/dannote))
|
|
359
|
+
- Added `--verbose` CLI flag to override quietStartup setting ([#906](https://github.com/badlogic/pi-mono/pull/906) by [@Perlence](https://github.com/Perlence))
|
|
360
|
+
- `markdown.codeBlockIndent` setting to customize code block indentation in rendered output
|
|
361
|
+
- Extension package management with `pi install`, `pi remove`, `pi update`, and `pi list` commands ([#645](https://github.com/badlogic/pi-mono/issues/645))
|
|
362
|
+
- Package filtering: selectively load resources from packages using object form in `packages` array ([#645](https://github.com/badlogic/pi-mono/issues/645))
|
|
363
|
+
- Glob pattern support with minimatch in package filters, top-level settings arrays, and pi manifest (e.g., `"!funky.json"`, `"*.ts"`) ([#645](https://github.com/badlogic/pi-mono/issues/645))
|
|
364
|
+
- `/reload` command to reload extensions, skills, prompts, and themes ([#645](https://github.com/badlogic/pi-mono/issues/645))
|
|
365
|
+
- `pi config` command with TUI to enable/disable package and top-level resources via patterns ([#938](https://github.com/badlogic/pi-mono/issues/938))
|
|
366
|
+
- CLI flags for `--skill`, `--prompt-template`, `--theme`, `--no-prompt-templates`, and `--no-themes` ([#645](https://github.com/badlogic/pi-mono/issues/645))
|
|
367
|
+
- Package deduplication: if same package appears in global and project settings, project wins ([#645](https://github.com/badlogic/pi-mono/issues/645))
|
|
368
|
+
- Unified collision reporting with `ResourceDiagnostic` type for all resource types ([#645](https://github.com/badlogic/pi-mono/issues/645))
|
|
369
|
+
- Show provider alongside the model in the footer if multiple providers are available
|
|
370
|
+
- Custom provider support via `pi.registerProvider()` with `streamSimple` for custom API implementations
|
|
371
|
+
- Added `custom-provider.ts` example extension demonstrating custom Anthropic provider with OAuth
|
|
372
|
+
|
|
373
|
+
### Changed
|
|
374
|
+
|
|
375
|
+
- `/resume` picker sort toggle moved to `Ctrl+S` to free `Ctrl+R` for rename ([#863](https://github.com/badlogic/pi-mono/pull/863) by [@svkozak](https://github.com/svkozak))
|
|
376
|
+
- HTML export: clicking a sidebar message now navigates to its newest leaf and scrolls to it, instead of truncating the branch ([#853](https://github.com/badlogic/pi-mono/pull/853) by [@mitsuhiko](https://github.com/mitsuhiko))
|
|
377
|
+
- HTML export: active path is now visually highlighted with dimmed off-path nodes ([#929](https://github.com/badlogic/pi-mono/pull/929) by [@hewliyang](https://github.com/hewliyang))
|
|
378
|
+
- Azure OpenAI Responses provider now uses base URL configuration with deployment-aware model mapping and no longer includes service tier handling
|
|
379
|
+
- `/reload` now re-renders the entire scrollback so updated extension components are visible immediately ([#928](https://github.com/badlogic/pi-mono/pull/928) by [@ferologics](https://github.com/ferologics))
|
|
380
|
+
- Skill, prompt template, and theme discovery now use settings and CLI path arrays instead of legacy filters ([#645](https://github.com/badlogic/pi-mono/issues/645))
|
|
381
|
+
|
|
382
|
+
### Fixed
|
|
383
|
+
|
|
384
|
+
- Extension `setWorkingMessage()` calls in `agent_start` handlers now work correctly; previously the message was silently ignored because the loading animation didn't exist yet ([#935](https://github.com/badlogic/pi-mono/issues/935))
|
|
385
|
+
- Fixed package auto-discovery to respect loader rules, config overrides, and force-exclude patterns
|
|
386
|
+
- Fixed /reload restoring the correct editor after reload ([#949](https://github.com/badlogic/pi-mono/pull/949) by [@Perlence](https://github.com/Perlence))
|
|
387
|
+
- Fixed distributed themes breaking `/export` ([#946](https://github.com/badlogic/pi-mono/pull/946) by [@mitsuhiko](https://github.com/mitsuhiko))
|
|
388
|
+
- Fixed startup hints to clarify thinking level selection and expanded thinking guidance
|
|
389
|
+
- Fixed SDK initial model resolution to use `findInitialModel` and default to Claude Opus 4.5 for Anthropic models
|
|
390
|
+
- Fixed no-models warning to include the `/model` instruction
|
|
391
|
+
- Fixed authentication error messages to point to the authentication documentation
|
|
392
|
+
- Fixed bash output hint lines to truncate to terminal width
|
|
393
|
+
- Fixed custom editors to honor the `paddingX` setting ([#936](https://github.com/badlogic/pi-mono/pull/936) by [@Perlence](https://github.com/Perlence))
|
|
394
|
+
- Fixed system prompt tool list to show only built-in tools
|
|
395
|
+
- Fixed package manager to check npm package versions before using cached copies
|
|
396
|
+
- Fixed package manager to run `npm install` after cloning git repositories with a package.json
|
|
397
|
+
- Fixed extension provider registrations to apply before model resolution
|
|
398
|
+
- Fixed editor multi-line insertion handling and lastAction tracking ([#945](https://github.com/badlogic/pi-mono/pull/945) by [@Perlence](https://github.com/Perlence))
|
|
399
|
+
- Fixed editor word wrapping to reserve a cursor column ([#934](https://github.com/badlogic/pi-mono/pull/934) by [@Perlence](https://github.com/Perlence))
|
|
400
|
+
- Fixed editor word wrapping to use single-pass backtracking for whitespace handling ([#924](https://github.com/badlogic/pi-mono/pull/924) by [@Perlence](https://github.com/Perlence))
|
|
401
|
+
- Fixed Kitty image ID allocation and cleanup to prevent image ID collisions
|
|
402
|
+
- Fixed overlays staying centered after terminal resizes ([#950](https://github.com/badlogic/pi-mono/pull/950) by [@nicobailon](https://github.com/nicobailon))
|
|
403
|
+
- Fixed streaming dispatch to use the model api type instead of hardcoded API defaults
|
|
404
|
+
- Fixed Google providers to default tool call arguments to an empty object when omitted
|
|
405
|
+
- Fixed OpenAI Responses streaming to handle `arguments.done` events on OpenAI-compatible endpoints ([#917](https://github.com/badlogic/pi-mono/pull/917) by [@williballenthin](https://github.com/williballenthin))
|
|
406
|
+
- Fixed OpenAI Codex Responses tool strictness handling after the shared responses refactor
|
|
407
|
+
- Fixed Azure OpenAI Responses streaming to guard deltas before content parts and correct metadata and handoff gating
|
|
408
|
+
- Fixed OpenAI completions tool-result image batching after consecutive tool results ([#902](https://github.com/badlogic/pi-mono/pull/902) by [@terrorobe](https://github.com/terrorobe))
|
|
409
|
+
- Off-by-one error in bash output "earlier lines" count caused by counting spacing newline as hidden content ([#921](https://github.com/badlogic/pi-mono/issues/921))
|
|
410
|
+
- User package filters now layer on top of manifest filters instead of replacing them ([#645](https://github.com/badlogic/pi-mono/issues/645))
|
|
411
|
+
- Auto-retry now handles "terminated" errors from Codex API mid-stream failures
|
|
412
|
+
- Follow-up queue (Alt+Enter) now sends full paste content instead of `[paste #N ...]` markers ([#912](https://github.com/badlogic/pi-mono/issues/912))
|
|
413
|
+
- Fixed Alt-Up not restoring messages queued during compaction ([#923](https://github.com/badlogic/pi-mono/pull/923) by [@aliou](https://github.com/aliou))
|
|
414
|
+
- Fixed session corruption when loading empty or invalid session files via `--session` flag ([#932](https://github.com/badlogic/pi-mono/issues/932) by [@armanddp](https://github.com/armanddp))
|
|
415
|
+
- Fixed extension shortcuts not firing when extension also uses `setEditorComponent()` ([#947](https://github.com/badlogic/pi-mono/pull/947) by [@Perlence](https://github.com/Perlence))
|
|
416
|
+
- Session "modified" time now uses last message timestamp instead of file mtime, so renaming doesn't reorder the recent list ([#863](https://github.com/badlogic/pi-mono/pull/863) by [@svkozak](https://github.com/svkozak))
|
|
417
|
+
|
|
418
|
+
## [0.49.3] - 2026-01-22
|
|
419
|
+
|
|
420
|
+
### Added
|
|
421
|
+
|
|
422
|
+
- `markdown.codeBlockIndent` setting to customize code block indentation in rendered output ([#855](https://github.com/badlogic/pi-mono/pull/855) by [@terrorobe](https://github.com/terrorobe))
|
|
423
|
+
- Added `inline-bash.ts` example extension for expanding `!{command}` patterns in prompts ([#881](https://github.com/badlogic/pi-mono/pull/881) by [@scutifer](https://github.com/scutifer))
|
|
424
|
+
- Added `antigravity-image-gen.ts` example extension for AI image generation via Google Antigravity ([#893](https://github.com/badlogic/pi-mono/pull/893) by [@ben-vargas](https://github.com/ben-vargas))
|
|
425
|
+
- Added `PI_SHARE_VIEWER_URL` environment variable for custom share viewer URLs ([#889](https://github.com/badlogic/pi-mono/pull/889) by [@andresaraujo](https://github.com/andresaraujo))
|
|
426
|
+
- Added Alt+Delete as hotkey for delete word forwards ([#878](https://github.com/badlogic/pi-mono/pull/878) by [@Perlence](https://github.com/Perlence))
|
|
427
|
+
|
|
428
|
+
### Changed
|
|
429
|
+
|
|
430
|
+
- Tree selector: changed label filter shortcut from `l` to `Shift+L` so users can search for entries containing "l" ([#861](https://github.com/badlogic/pi-mono/pull/861) by [@mitsuhiko](https://github.com/mitsuhiko))
|
|
431
|
+
- Fuzzy matching now scores consecutive matches higher for better search relevance ([#860](https://github.com/badlogic/pi-mono/pull/860) by [@mitsuhiko](https://github.com/mitsuhiko))
|
|
432
|
+
|
|
433
|
+
### Fixed
|
|
434
|
+
|
|
435
|
+
- Fixed error messages showing hardcoded `~/.pi/agent/` paths instead of respecting `PI_CODING_AGENT_DIR` ([#887](https://github.com/badlogic/pi-mono/pull/887) by [@aliou](https://github.com/aliou))
|
|
436
|
+
- Fixed `write` tool not displaying errors in the UI when execution fails ([#856](https://github.com/badlogic/pi-mono/issues/856))
|
|
437
|
+
- Fixed HTML export using default theme instead of user's active theme ([#870](https://github.com/badlogic/pi-mono/pull/870) by [@scutifer](https://github.com/scutifer))
|
|
438
|
+
- Show session name in the footer and terminal / tab title ([#876](https://github.com/badlogic/pi-mono/pull/876) by [@scutifer](https://github.com/scutifer))
|
|
439
|
+
- Fixed 256color fallback in Terminal.app to prevent color rendering issues ([#869](https://github.com/badlogic/pi-mono/pull/869) by [@Perlence](https://github.com/Perlence))
|
|
440
|
+
- Fixed viewport tracking and cursor positioning for overlays and content shrink scenarios
|
|
441
|
+
- Fixed autocomplete to allow searches with `/` characters (e.g., `folder1/folder2`) ([#882](https://github.com/badlogic/pi-mono/pull/882) by [@richardgill](https://github.com/richardgill))
|
|
442
|
+
- Fixed autolinked emails displaying redundant `(mailto:...)` suffix ([#888](https://github.com/badlogic/pi-mono/pull/888) by [@terrorobe](https://github.com/terrorobe))
|
|
443
|
+
- Fixed `@` file autocomplete adding space after directories, breaking continued autocomplete into subdirectories
|
|
444
|
+
|
|
445
|
+
## [0.49.2] - 2026-01-19
|
|
446
|
+
|
|
447
|
+
### Added
|
|
448
|
+
|
|
449
|
+
- Added widget placement option for extension widgets via `widgetPlacement` in `pi.addWidget()` ([#850](https://github.com/badlogic/pi-mono/pull/850) by [@marckrenn](https://github.com/marckrenn))
|
|
450
|
+
- Added AWS credential detection for ECS/Kubernetes environments: `AWS_CONTAINER_CREDENTIALS_RELATIVE_URI`, `AWS_CONTAINER_CREDENTIALS_FULL_URI`, `AWS_WEB_IDENTITY_TOKEN_FILE` ([#848](https://github.com/badlogic/pi-mono/issues/848))
|
|
451
|
+
- Add "quiet startup" setting to `/settings` ([#847](https://github.com/badlogic/pi-mono/pull/847) by [@unexge](https://github.com/unexge))
|
|
452
|
+
|
|
453
|
+
### Changed
|
|
454
|
+
|
|
455
|
+
- HTML export now includes JSONL download button, jump-to-last-message on click, and fixed missing labels ([#853](https://github.com/badlogic/pi-mono/pull/853) by [@mitsuhiko](https://github.com/mitsuhiko))
|
|
456
|
+
- Improved error message for OAuth authentication failures (expired credentials, offline) instead of generic 'No API key found' ([#849](https://github.com/badlogic/pi-mono/pull/849) by [@zedrdave](https://github.com/zedrdave))
|
|
457
|
+
|
|
458
|
+
### Fixed
|
|
459
|
+
- Fixed `/model` selector scope toggle so you can switch between all and scoped models when scoped models are saved ([#844](https://github.com/badlogic/pi-mono/issues/844))
|
|
460
|
+
- Fixed OpenAI Responses 400 error "reasoning without following item" when replaying aborted turns ([#838](https://github.com/badlogic/pi-mono/pull/838))
|
|
461
|
+
- Fixed pi exiting with code 0 when cancelling resume session selection
|
|
462
|
+
|
|
463
|
+
### Removed
|
|
464
|
+
|
|
465
|
+
- Removed `strictResponsesPairing` compat option from models.json schema (no longer needed)
|
|
466
|
+
|
|
467
|
+
## [0.49.1] - 2026-01-18
|
|
468
|
+
|
|
469
|
+
### Added
|
|
470
|
+
|
|
471
|
+
- Added `strictResponsesPairing` compat option for custom OpenAI Responses models on Azure ([#768](https://github.com/badlogic/pi-mono/pull/768) by [@prateekmedia](https://github.com/prateekmedia))
|
|
472
|
+
- Session selector (`/resume`) now supports path display toggle (`Ctrl+P`) and session deletion (`Ctrl+D`) with inline confirmation ([#816](https://github.com/badlogic/pi-mono/pull/816) by [@w-winter](https://github.com/w-winter))
|
|
473
|
+
- Added undo support in interactive mode with Ctrl+- hotkey. ([#831](https://github.com/badlogic/pi-mono/pull/831) by [@Perlence](https://github.com/Perlence))
|
|
474
|
+
|
|
475
|
+
### Changed
|
|
476
|
+
|
|
477
|
+
- Share URLs now use hash fragments (`#`) instead of query strings (`?`) to prevent session IDs from being sent to buildwithpi.ai ([#829](https://github.com/badlogic/pi-mono/pull/829) by [@terrorobe](https://github.com/terrorobe))
|
|
478
|
+
- API keys in `models.json` can now be retrieved via shell command using `!` prefix (e.g., `"apiKey": "!security find-generic-password -ws 'anthropic'"` for macOS Keychain) ([#762](https://github.com/badlogic/pi-mono/pull/762) by [@cv](https://github.com/cv))
|
|
479
|
+
|
|
480
|
+
### Fixed
|
|
481
|
+
|
|
482
|
+
- Fixed IME candidate window appearing in wrong position when filtering menus with Input Method Editor (e.g., Chinese IME). Components with search inputs now properly propagate focus state for cursor positioning. ([#827](https://github.com/badlogic/pi-mono/issues/827))
|
|
483
|
+
- Fixed extension shortcut conflicts to respect user keybindings when built-in actions are remapped. ([#826](https://github.com/badlogic/pi-mono/pull/826) by [@richardgill](https://github.com/richardgill))
|
|
484
|
+
- Fixed photon WASM loading in standalone compiled binaries.
|
|
485
|
+
- Fixed tool call ID normalization for cross-provider handoffs (e.g., Codex to Antigravity Claude) ([#821](https://github.com/badlogic/pi-mono/issues/821))
|
|
486
|
+
|
|
487
|
+
## [0.49.0] - 2026-01-17
|
|
488
|
+
|
|
489
|
+
### Added
|
|
490
|
+
|
|
491
|
+
- `pi.setLabel(entryId, label)` in ExtensionAPI for setting per-entry labels from extensions ([#806](https://github.com/badlogic/pi-mono/issues/806))
|
|
492
|
+
- Export `keyHint`, `appKeyHint`, `editorKey`, `appKey`, `rawKeyHint` for extensions to format keybinding hints consistently ([#802](https://github.com/badlogic/pi-mono/pull/802) by [@dannote](https://github.com/dannote))
|
|
493
|
+
- Exported `VERSION` from the package index and updated the custom-header example. ([#798](https://github.com/badlogic/pi-mono/pull/798) by [@tallshort](https://github.com/tallshort))
|
|
494
|
+
- Added `showHardwareCursor` setting to control cursor visibility while still positioning it for IME support. ([#800](https://github.com/badlogic/pi-mono/pull/800) by [@ghoulr](https://github.com/ghoulr))
|
|
495
|
+
- Added Emacs-style kill ring editing with yank and yank-pop keybindings, plus legacy Alt+letter handling and Alt+D delete word forward support in the interactive editor. ([#810](https://github.com/badlogic/pi-mono/pull/810) by [@Perlence](https://github.com/Perlence))
|
|
496
|
+
- Added `ctx.compact()` and `ctx.getContextUsage()` to extension contexts for programmatic compaction and context usage checks.
|
|
497
|
+
- Added documentation for delete word forward and kill ring keybindings in interactive mode. ([#810](https://github.com/badlogic/pi-mono/pull/810) by [@Perlence](https://github.com/Perlence))
|
|
498
|
+
|
|
499
|
+
### Changed
|
|
500
|
+
|
|
501
|
+
- Updated the default system prompt wording to clarify the pi harness and documentation scope.
|
|
502
|
+
- Simplified Codex system prompt handling to use the default system prompt directly for Codex instructions.
|
|
503
|
+
|
|
504
|
+
### Fixed
|
|
505
|
+
|
|
506
|
+
- Fixed photon module failing to load in ESM context with "require is not defined" error ([#795](https://github.com/badlogic/pi-mono/pull/795) by [@dannote](https://github.com/dannote))
|
|
507
|
+
- Fixed compaction UI not showing when extensions trigger compaction.
|
|
508
|
+
- Fixed orphaned tool results after errored assistant messages causing Codex API errors. When an assistant message has `stopReason: "error"`, its tool calls are now excluded from pending tool tracking, preventing synthetic tool results from being generated for calls that will be dropped by provider-specific converters. ([#812](https://github.com/badlogic/pi-mono/issues/812))
|
|
509
|
+
- Fixed Bedrock Claude max_tokens handling to always exceed thinking budget tokens, preventing compaction failures. ([#797](https://github.com/badlogic/pi-mono/pull/797) by [@pjtf93](https://github.com/pjtf93))
|
|
510
|
+
- Fixed Claude Code tool name normalization to match the Claude Code tool list case-insensitively and remove invalid mappings.
|
|
511
|
+
|
|
512
|
+
### Removed
|
|
513
|
+
|
|
514
|
+
- Removed `pi-internal://` path resolution from the read tool.
|
|
515
|
+
|
|
516
|
+
## [0.48.0] - 2026-01-16
|
|
517
|
+
|
|
518
|
+
### Added
|
|
519
|
+
|
|
520
|
+
- Added `quietStartup` setting to silence startup output (version header, loaded context info, model scope line). Changelog notifications are still shown. ([#777](https://github.com/badlogic/pi-mono/pull/777) by [@ribelo](https://github.com/ribelo))
|
|
521
|
+
- Added `editorPaddingX` setting for horizontal padding in input editor (0-3, default: 0)
|
|
522
|
+
- Added `shellCommandPrefix` setting to prepend commands to every bash execution, enabling alias expansion in non-interactive shells (e.g., `"shellCommandPrefix": "shopt -s expand_aliases"`) ([#790](https://github.com/badlogic/pi-mono/pull/790) by [@richardgill](https://github.com/richardgill))
|
|
523
|
+
- Added bash-style argument slicing for prompt templates ([#770](https://github.com/badlogic/pi-mono/pull/770) by [@airtonix](https://github.com/airtonix))
|
|
524
|
+
- Extension commands can provide argument auto-completions via `getArgumentCompletions` in `pi.registerCommand()` ([#775](https://github.com/badlogic/pi-mono/pull/775) by [@ribelo](https://github.com/ribelo))
|
|
525
|
+
- Bash tool now displays the timeout value in the UI when a timeout is set ([#780](https://github.com/badlogic/pi-mono/pull/780) by [@dannote](https://github.com/dannote))
|
|
526
|
+
- Export `getShellConfig` for extensions to detect user's shell environment ([#766](https://github.com/badlogic/pi-mono/pull/766) by [@dannote](https://github.com/dannote))
|
|
527
|
+
- Added `thinkingText` and `selectedBg` to theme schema ([#763](https://github.com/badlogic/pi-mono/pull/763) by [@scutifer](https://github.com/scutifer))
|
|
528
|
+
- `navigateTree()` now supports `replaceInstructions` option to replace the default summarization prompt entirely, and `label` option to attach a label to the branch summary entry ([#787](https://github.com/badlogic/pi-mono/pull/787) by [@mitsuhiko](https://github.com/mitsuhiko))
|
|
529
|
+
|
|
530
|
+
### Fixed
|
|
531
|
+
|
|
532
|
+
- Fixed crash during auto-compaction when summarization fails (e.g., quota exceeded). Now displays error message instead of crashing ([#792](https://github.com/badlogic/pi-mono/issues/792))
|
|
533
|
+
- Fixed `--session <UUID>` to search globally across projects if not found locally, with option to fork sessions from other projects ([#785](https://github.com/badlogic/pi-mono/pull/785) by [@ribelo](https://github.com/ribelo))
|
|
534
|
+
- Fixed standalone binary WASM loading on Linux ([#784](https://github.com/badlogic/pi-mono/issues/784))
|
|
535
|
+
- Fixed string numbers in tool arguments not being coerced to numbers during validation ([#786](https://github.com/badlogic/pi-mono/pull/786) by [@dannote](https://github.com/dannote))
|
|
536
|
+
- Fixed `--no-extensions` flag not preventing extension discovery ([#776](https://github.com/badlogic/pi-mono/issues/776))
|
|
537
|
+
- Fixed extension messages rendering twice on startup when `pi.sendMessage({ display: true })` is called during `session_start` ([#765](https://github.com/badlogic/pi-mono/pull/765) by [@dannote](https://github.com/dannote))
|
|
538
|
+
- Fixed `PI_CODING_AGENT_DIR` env var not expanding tilde (`~`) to home directory ([#778](https://github.com/badlogic/pi-mono/pull/778) by [@aliou](https://github.com/aliou))
|
|
539
|
+
- Fixed session picker hint text overflow ([#764](https://github.com/badlogic/pi-mono/issues/764))
|
|
540
|
+
- Fixed Kitty keyboard protocol shifted symbol keys (e.g., `@`, `?`) not working in editor ([#779](https://github.com/badlogic/pi-mono/pull/779) by [@iamd3vil](https://github.com/iamd3vil))
|
|
541
|
+
- Fixed Bedrock tool call IDs causing API errors from invalid characters ([#781](https://github.com/badlogic/pi-mono/pull/781) by [@pjtf93](https://github.com/pjtf93))
|
|
542
|
+
|
|
543
|
+
### Changed
|
|
544
|
+
|
|
545
|
+
- Hardware cursor is now disabled by default for better terminal compatibility. Set `PI_HARDWARE_CURSOR=1` to enable (replaces `PI_NO_HARDWARE_CURSOR=1` which disabled it).
|
|
546
|
+
|
|
547
|
+
## [0.47.0] - 2026-01-16
|
|
548
|
+
|
|
549
|
+
### Breaking Changes
|
|
550
|
+
|
|
551
|
+
- Extensions using `Editor` directly must now pass `TUI` as the first constructor argument: `new Editor(tui, theme)`. The `tui` parameter is available in extension factory functions. ([#732](https://github.com/badlogic/pi-mono/issues/732))
|
|
552
|
+
|
|
553
|
+
### Added
|
|
554
|
+
|
|
555
|
+
- **OpenAI Codex official support**: Full compatibility with OpenAI's Codex CLI models (`gpt-5.1`, `gpt-5.2`, `gpt-5.1-codex-mini`, `gpt-5.2-codex`). Features include static system prompt for OpenAI allowlisting, prompt caching via session ID, and reasoning signature retention across turns. Set `OPENAI_API_KEY` and use `--provider openai-codex` or select a Codex model. ([#737](https://github.com/badlogic/pi-mono/pull/737))
|
|
556
|
+
- `pi-internal://` URL scheme in read tool for accessing internal documentation. The model can read files from the coding-agent package (README, docs, examples) to learn about extending pi.
|
|
557
|
+
- New `input` event in extension system for intercepting, transforming, or handling user input before the agent processes it. Supports three result types: `continue` (pass through), `transform` (modify text/images), `handled` (respond without LLM). Handlers chain transforms and short-circuit on handled. ([#761](https://github.com/badlogic/pi-mono/pull/761) by [@nicobailon](https://github.com/nicobailon))
|
|
558
|
+
- Extension example: `input-transform.ts` demonstrating input interception patterns (quick mode, instant commands, source routing) ([#761](https://github.com/badlogic/pi-mono/pull/761) by [@nicobailon](https://github.com/nicobailon))
|
|
559
|
+
- Custom tool HTML export: extensions with `renderCall`/`renderResult` now render in `/share` and `/export` output with ANSI-to-HTML color conversion ([#702](https://github.com/badlogic/pi-mono/pull/702) by [@aliou](https://github.com/aliou))
|
|
560
|
+
- Direct filter shortcuts in Tree mode: Ctrl+D (default), Ctrl+T (no-tools), Ctrl+U (user-only), Ctrl+L (labeled-only), Ctrl+A (all) ([#747](https://github.com/badlogic/pi-mono/pull/747) by [@kaofelix](https://github.com/kaofelix))
|
|
561
|
+
|
|
562
|
+
### Changed
|
|
563
|
+
|
|
564
|
+
- Skill commands (`/skill:name`) are now expanded in AgentSession instead of interactive mode. This enables skill commands in RPC and print modes, and allows the `input` event to intercept `/skill:name` before expansion.
|
|
565
|
+
|
|
566
|
+
### Fixed
|
|
567
|
+
|
|
568
|
+
- Editor no longer corrupts terminal display when loading large prompts via `setEditorText`. Content now scrolls vertically with indicators showing lines above/below the viewport. ([#732](https://github.com/badlogic/pi-mono/issues/732))
|
|
569
|
+
- Piped stdin now works correctly: `echo foo | pi` is equivalent to `pi -p foo`. When stdin is piped, print mode is automatically enabled since interactive mode requires a TTY ([#708](https://github.com/badlogic/pi-mono/issues/708))
|
|
570
|
+
- Session tree now preserves branch connectors and indentation when filters hide intermediate entries so descendants attach to the nearest visible ancestor and sibling branches align. Fixed in both TUI and HTML export ([#739](https://github.com/badlogic/pi-mono/pull/739) by [@w-winter](https://github.com/w-winter))
|
|
571
|
+
- Added `upstream connect`, `connection refused`, and `reset before headers` patterns to auto-retry error detection ([#733](https://github.com/badlogic/pi-mono/issues/733))
|
|
572
|
+
- Multi-line YAML frontmatter in skills and prompt templates now parses correctly. Centralized frontmatter parsing using the `yaml` library. ([#728](https://github.com/badlogic/pi-mono/pull/728) by [@richardgill](https://github.com/richardgill))
|
|
573
|
+
- `ctx.shutdown()` now waits for pending UI renders to complete before exiting, ensuring notifications and final output are visible ([#756](https://github.com/badlogic/pi-mono/issues/756))
|
|
574
|
+
- OpenAI Codex provider now retries on transient errors (429, 5xx, connection failures) with exponential backoff ([#733](https://github.com/badlogic/pi-mono/issues/733))
|
|
575
|
+
|
|
576
|
+
## [0.46.0] - 2026-01-15
|
|
577
|
+
|
|
578
|
+
### Fixed
|
|
579
|
+
|
|
580
|
+
- Scoped models (`--models` or `enabledModels`) now remember the last selected model across sessions instead of always starting with the first model in the scope ([#736](https://github.com/badlogic/pi-mono/pull/736) by [@ogulcancelik](https://github.com/ogulcancelik))
|
|
581
|
+
- Show `bun install` instead of `npm install` in update notification when running under Bun ([#714](https://github.com/badlogic/pi-mono/pull/714) by [@dannote](https://github.com/dannote))
|
|
582
|
+
- `/skill` prompts now include the skill path ([#711](https://github.com/badlogic/pi-mono/pull/711) by [@jblwilliams](https://github.com/jblwilliams))
|
|
583
|
+
- Use configurable `expandTools` keybinding instead of hardcoded Ctrl+O ([#717](https://github.com/badlogic/pi-mono/pull/717) by [@dannote](https://github.com/dannote))
|
|
584
|
+
- Compaction turn prefix summaries now merge correctly ([#738](https://github.com/badlogic/pi-mono/pull/738) by [@vsabavat](https://github.com/vsabavat))
|
|
585
|
+
- Avoid unsigned Gemini 3 tool calls ([#741](https://github.com/badlogic/pi-mono/pull/741) by [@roshanasingh4](https://github.com/roshanasingh4))
|
|
586
|
+
- Fixed signature support for non-Anthropic models in Amazon Bedrock provider ([#727](https://github.com/badlogic/pi-mono/pull/727) by [@unexge](https://github.com/unexge))
|
|
587
|
+
- Keyboard shortcuts (Ctrl+C, Ctrl+D, etc.) now work on non-Latin keyboard layouts (Russian, Ukrainian, Bulgarian, etc.) in terminals supporting Kitty keyboard protocol with alternate key reporting ([#718](https://github.com/badlogic/pi-mono/pull/718) by [@dannote](https://github.com/dannote))
|
|
588
|
+
|
|
589
|
+
### Added
|
|
590
|
+
|
|
591
|
+
- Edit tool now uses fuzzy matching as fallback when exact match fails, tolerating trailing whitespace, smart quotes, Unicode dashes, and special spaces ([#713](https://github.com/badlogic/pi-mono/pull/713) by [@dannote](https://github.com/dannote))
|
|
592
|
+
- Support `APPEND_SYSTEM.md` to append instructions to the system prompt ([#716](https://github.com/badlogic/pi-mono/pull/716) by [@tallshort](https://github.com/tallshort))
|
|
593
|
+
- Session picker search: Ctrl+R toggles sorting between fuzzy match (default) and most recent; supports quoted phrase matching and `re:` regex mode ([#731](https://github.com/badlogic/pi-mono/pull/731) by [@ogulcancelik](https://github.com/ogulcancelik))
|
|
594
|
+
- Export `getAgentDir` for extensions ([#749](https://github.com/badlogic/pi-mono/pull/749) by [@dannote](https://github.com/dannote))
|
|
595
|
+
- Show loaded prompt templates on startup ([#743](https://github.com/badlogic/pi-mono/pull/743) by [@tallshort](https://github.com/tallshort))
|
|
596
|
+
- MiniMax China (`minimax-cn`) provider support ([#725](https://github.com/badlogic/pi-mono/pull/725) by [@tallshort](https://github.com/tallshort))
|
|
597
|
+
- `gpt-5.2-codex` models for GitHub Copilot and OpenCode Zen providers ([#734](https://github.com/badlogic/pi-mono/pull/734) by [@aadishv](https://github.com/aadishv))
|
|
598
|
+
|
|
599
|
+
### Changed
|
|
600
|
+
|
|
601
|
+
- Replaced `wasm-vips` with `@silvia-odwyer/photon-node` for image processing ([#710](https://github.com/badlogic/pi-mono/pull/710) by [@can1357](https://github.com/can1357))
|
|
602
|
+
- Extension example: `plan-mode/` shortcut changed from Shift+P to Ctrl+Alt+P to avoid conflict with typing capital P ([#746](https://github.com/badlogic/pi-mono/pull/746) by [@ferologics](https://github.com/ferologics))
|
|
603
|
+
- UI keybinding hints now respect configured keybindings across components ([#724](https://github.com/badlogic/pi-mono/pull/724) by [@dannote](https://github.com/dannote))
|
|
604
|
+
- CLI process title is now set to `pi` for easier process identification ([#742](https://github.com/badlogic/pi-mono/pull/742) by [@richardgill](https://github.com/richardgill))
|
|
605
|
+
|
|
606
|
+
## [0.45.7] - 2026-01-13
|
|
607
|
+
|
|
608
|
+
### Added
|
|
609
|
+
|
|
610
|
+
- Exported `highlightCode` and `getLanguageFromPath` for extensions ([#703](https://github.com/badlogic/pi-mono/pull/703) by [@dannote](https://github.com/dannote))
|
|
611
|
+
|
|
612
|
+
## [0.45.6] - 2026-01-13
|
|
613
|
+
|
|
614
|
+
### Added
|
|
615
|
+
|
|
616
|
+
- `ctx.ui.custom()` now accepts `overlayOptions` for overlay positioning and sizing (anchor, margins, offsets, percentages, absolute positioning) ([#667](https://github.com/badlogic/pi-mono/pull/667) by [@nicobailon](https://github.com/nicobailon))
|
|
617
|
+
- `ctx.ui.custom()` now accepts `onHandle` callback to receive the `OverlayHandle` for controlling overlay visibility ([#667](https://github.com/badlogic/pi-mono/pull/667) by [@nicobailon](https://github.com/nicobailon))
|
|
618
|
+
- Extension example: `overlay-qa-tests.ts` with 10 commands for testing overlay positioning, animation, and toggle scenarios ([#667](https://github.com/badlogic/pi-mono/pull/667) by [@nicobailon](https://github.com/nicobailon))
|
|
619
|
+
- Extension example: `doom-overlay/` - DOOM game running as an overlay at 35 FPS (auto-downloads WAD on first run) ([#667](https://github.com/badlogic/pi-mono/pull/667) by [@nicobailon](https://github.com/nicobailon))
|
|
620
|
+
|
|
621
|
+
## [0.45.5] - 2026-01-13
|
|
622
|
+
|
|
623
|
+
### Fixed
|
|
624
|
+
|
|
625
|
+
- Skip changelog display on fresh install (only show on upgrades)
|
|
626
|
+
|
|
627
|
+
## [0.45.4] - 2026-01-13
|
|
628
|
+
|
|
629
|
+
### Changed
|
|
630
|
+
|
|
631
|
+
- Light theme colors adjusted for WCAG AA compliance (4.5:1 contrast ratio against white backgrounds)
|
|
632
|
+
- Replaced `sharp` with `wasm-vips` for image processing (resize, PNG conversion). Eliminates native build requirements that caused installation failures on some systems. ([#696](https://github.com/badlogic/pi-mono/issues/696))
|
|
633
|
+
|
|
634
|
+
### Added
|
|
635
|
+
|
|
636
|
+
- Extension example: `summarize.ts` for summarizing conversations using custom UI and an external model ([#684](https://github.com/badlogic/pi-mono/pull/684) by [@scutifer](https://github.com/scutifer))
|
|
637
|
+
- Extension example: `question.ts` enhanced with custom UI for asking user questions ([#693](https://github.com/badlogic/pi-mono/pull/693) by [@ferologics](https://github.com/ferologics))
|
|
638
|
+
- Extension example: `plan-mode/` enhanced with explicit step tracking and progress widget ([#694](https://github.com/badlogic/pi-mono/pull/694) by [@ferologics](https://github.com/ferologics))
|
|
639
|
+
- Extension example: `questionnaire.ts` for multi-question input with tab bar navigation ([#695](https://github.com/badlogic/pi-mono/pull/695) by [@ferologics](https://github.com/ferologics))
|
|
640
|
+
- Experimental Vercel AI Gateway provider support: set `AI_GATEWAY_API_KEY` and use `--provider vercel-ai-gateway`. Token usage is currently reported incorrectly by Anthropic Messages compatible endpoint. ([#689](https://github.com/badlogic/pi-mono/pull/689) by [@timolins](https://github.com/timolins))
|
|
641
|
+
|
|
642
|
+
### Fixed
|
|
643
|
+
|
|
644
|
+
- Fix API key resolution after model switches by using provider argument ([#691](https://github.com/badlogic/pi-mono/pull/691) by [@joshp123](https://github.com/joshp123))
|
|
645
|
+
- Fixed z.ai thinking/reasoning: thinking toggle now correctly enables/disables thinking for z.ai models ([#688](https://github.com/badlogic/pi-mono/issues/688))
|
|
646
|
+
- Fixed extension loading in compiled Bun binary: extensions with local file imports now work correctly. Updated `@mariozechner/jiti` to v2.6.5 which bundles babel for Bun binary compatibility. ([#681](https://github.com/badlogic/pi-mono/issues/681))
|
|
647
|
+
- Fixed theme loading when installed via mise: use wrapper directory in release tarballs for compatibility with mise's `strip_components=1` extraction. ([#681](https://github.com/badlogic/pi-mono/issues/681))
|
|
648
|
+
|
|
649
|
+
## [0.45.3] - 2026-01-13
|
|
650
|
+
|
|
651
|
+
## [0.45.2] - 2026-01-13
|
|
652
|
+
|
|
653
|
+
### Fixed
|
|
654
|
+
|
|
655
|
+
- Extensions now load correctly in compiled Bun binary using `@mariozechner/jiti` fork with `virtualModules` support. Bundled packages (`@sinclair/typebox`, `@mariozechner/pi-tui`, `@mariozechner/pi-ai`, `@mariozechner/pi-coding-agent`) are accessible to extensions without filesystem node_modules.
|
|
656
|
+
|
|
657
|
+
## [0.45.1] - 2026-01-13
|
|
658
|
+
|
|
659
|
+
### Changed
|
|
660
|
+
|
|
661
|
+
- `/share` now outputs `buildwithpi.ai` session preview URLs instead of `shittycodingagent.ai`
|
|
662
|
+
|
|
663
|
+
## [0.45.0] - 2026-01-13
|
|
664
|
+
|
|
665
|
+
### Added
|
|
666
|
+
|
|
667
|
+
- MiniMax provider support: set `MINIMAX_API_KEY` and use `minimax/MiniMax-M2.1` ([#656](https://github.com/badlogic/pi-mono/pull/656) by [@dannote](https://github.com/dannote))
|
|
668
|
+
- `/scoped-models`: Alt+Up/Down to reorder enabled models. Order is preserved when saving with Ctrl+S and determines Ctrl+P cycling order. ([#676](https://github.com/badlogic/pi-mono/pull/676) by [@thomasmhr](https://github.com/thomasmhr))
|
|
669
|
+
- Amazon Bedrock provider support (experimental, tested with Anthropic Claude models only) ([#494](https://github.com/badlogic/pi-mono/pull/494) by [@unexge](https://github.com/unexge))
|
|
670
|
+
- Extension example: `sandbox/` for OS-level bash sandboxing using `@anthropic-ai/sandbox-runtime` with per-project config ([#673](https://github.com/badlogic/pi-mono/pull/673) by [@dannote](https://github.com/dannote))
|
|
671
|
+
- Print mode JSON output now emits the session header as the first line.
|
|
672
|
+
|
|
673
|
+
## [0.44.0] - 2026-01-12
|
|
674
|
+
|
|
675
|
+
### Breaking Changes
|
|
676
|
+
|
|
677
|
+
- `pi.getAllTools()` now returns `ToolInfo[]` (with `name` and `description`) instead of `string[]`. Extensions that only need names can use `.map(t => t.name)`. ([#648](https://github.com/badlogic/pi-mono/pull/648) by [@carsonfarmer](https://github.com/carsonfarmer))
|
|
678
|
+
|
|
679
|
+
### Added
|
|
680
|
+
|
|
681
|
+
- Session naming: `/name <name>` command sets a display name shown in the session selector instead of the first message. Useful for distinguishing forked sessions. Extensions can use `pi.setSessionName()` and `pi.getSessionName()`. ([#650](https://github.com/badlogic/pi-mono/pull/650) by [@scutifer](https://github.com/scutifer))
|
|
682
|
+
- Extension example: `notify.ts` for desktop notifications via OSC 777 escape sequence ([#658](https://github.com/badlogic/pi-mono/pull/658) by [@ferologics](https://github.com/ferologics))
|
|
683
|
+
- Inline hint for queued messages showing the `Alt+Up` restore shortcut ([#657](https://github.com/badlogic/pi-mono/pull/657) by [@tmustier](https://github.com/tmustier))
|
|
684
|
+
- Page-up/down navigation in `/resume` session selector to jump by 5 items ([#662](https://github.com/badlogic/pi-mono/pull/662) by [@aliou](https://github.com/aliou))
|
|
685
|
+
- Fuzzy search in `/settings` menu: type to filter settings by label ([#643](https://github.com/badlogic/pi-mono/pull/643) by [@ninlds](https://github.com/ninlds))
|
|
686
|
+
|
|
687
|
+
### Fixed
|
|
688
|
+
|
|
689
|
+
- Session selector now stays open when current folder has no sessions, allowing Tab to switch to "all" scope ([#661](https://github.com/badlogic/pi-mono/pull/661) by [@aliou](https://github.com/aliou))
|
|
690
|
+
- Extensions using theme utilities like `getSettingsListTheme()` now work in dev mode with tsx
|
|
691
|
+
|
|
692
|
+
## [0.43.0] - 2026-01-11
|
|
693
|
+
|
|
694
|
+
### Breaking Changes
|
|
695
|
+
|
|
696
|
+
- Extension editor (`ctx.ui.editor()`) now uses Enter to submit and Shift+Enter for newlines, matching the main editor. Previously used Ctrl+Enter to submit. Extensions with hardcoded "ctrl+enter" hints need updating. ([#642](https://github.com/badlogic/pi-mono/pull/642) by [@mitsuhiko](https://github.com/mitsuhiko))
|
|
697
|
+
- Renamed `/branch` command to `/fork` ([#641](https://github.com/badlogic/pi-mono/issues/641))
|
|
698
|
+
- RPC: `branch` → `fork`, `get_branch_messages` → `get_fork_messages`
|
|
699
|
+
- SDK: `branch()` → `fork()`, `getBranchMessages()` → `getForkMessages()`
|
|
700
|
+
- AgentSession: `branch()` → `fork()`, `getUserMessagesForBranching()` → `getUserMessagesForForking()`
|
|
701
|
+
- Extension events: `session_before_branch` → `session_before_fork`, `session_branch` → `session_fork`
|
|
702
|
+
- Settings: `doubleEscapeAction: "branch" | "tree"` → `"fork" | "tree"`
|
|
703
|
+
- `SessionManager.list()` and `SessionManager.listAll()` are now async, returning `Promise<SessionInfo[]>`. Callers must await them. ([#620](https://github.com/badlogic/pi-mono/pull/620) by [@tmustier](https://github.com/tmustier))
|
|
704
|
+
|
|
705
|
+
### Added
|
|
706
|
+
- `/resume` selector now toggles between current-folder and all sessions with Tab, showing the session cwd in the All view and loading progress. ([#620](https://github.com/badlogic/pi-mono/pull/620) by [@tmustier](https://github.com/tmustier))
|
|
707
|
+
- `SessionManager.list()` and `SessionManager.listAll()` accept optional `onProgress` callback for progress updates
|
|
708
|
+
- `SessionInfo.cwd` field containing the session's working directory (empty string for old sessions)
|
|
709
|
+
- `SessionListProgress` type export for progress callbacks
|
|
710
|
+
- `/scoped-models` command to enable/disable models for Ctrl+P cycling. Changes are session-only by default; press Ctrl+S to persist to settings.json. ([#626](https://github.com/badlogic/pi-mono/pull/626) by [@CarlosGtrz](https://github.com/CarlosGtrz))
|
|
711
|
+
- `model_select` extension hook fires when model changes via `/model`, model cycling, or session restore with `source` field and `previousModel` ([#628](https://github.com/badlogic/pi-mono/pull/628) by [@marckrenn](https://github.com/marckrenn))
|
|
712
|
+
- `ctx.ui.setWorkingMessage()` extension API to customize the "Working..." message during streaming ([#625](https://github.com/badlogic/pi-mono/pull/625) by [@nicobailon](https://github.com/nicobailon))
|
|
713
|
+
- Skill slash commands: loaded skills are registered as `/skill:name` commands for quick access. Toggle via `/settings` or `skills.enableSkillCommands` in settings.json. ([#630](https://github.com/badlogic/pi-mono/pull/630) by [@Dwsy](https://github.com/Dwsy))
|
|
714
|
+
- Slash command autocomplete now uses fuzzy matching (type `/skbra` to match `/skill:brave-search`)
|
|
715
|
+
- `/tree` branch summarization now offers three options: "No summary", "Summarize", and "Summarize with custom prompt". Custom prompts are appended as additional focus to the default summarization instructions. ([#642](https://github.com/badlogic/pi-mono/pull/642) by [@mitsuhiko](https://github.com/mitsuhiko))
|
|
716
|
+
|
|
717
|
+
### Fixed
|
|
718
|
+
|
|
719
|
+
- Missing spacer between assistant message and text editor ([#655](https://github.com/badlogic/pi-mono/issues/655))
|
|
720
|
+
- Session picker respects custom keybindings when using `--resume` ([#633](https://github.com/badlogic/pi-mono/pull/633) by [@aos](https://github.com/aos))
|
|
721
|
+
- Custom footer extensions now see model changes: `ctx.model` is now a getter that returns the current model instead of a snapshot from when the context was created ([#634](https://github.com/badlogic/pi-mono/pull/634) by [@ogulcancelik](https://github.com/ogulcancelik))
|
|
722
|
+
- Footer git branch not updating after external branch switches. Git uses atomic writes (temp file + rename), which changes the inode and breaks `fs.watch` on the file. Now watches the directory instead.
|
|
723
|
+
- Extension loading errors are now displayed to the user instead of being silently ignored ([#639](https://github.com/badlogic/pi-mono/pull/639) by [@aliou](https://github.com/aliou))
|
|
724
|
+
|
|
725
|
+
## [0.42.5] - 2026-01-11
|
|
726
|
+
|
|
727
|
+
### Fixed
|
|
728
|
+
|
|
729
|
+
- Reduced flicker by only re-rendering changed lines ([#617](https://github.com/badlogic/pi-mono/pull/617) by [@ogulcancelik](https://github.com/ogulcancelik)). No worries tho, there's still a little flicker in the VS Code Terminal. Praise the flicker.
|
|
730
|
+
- Cursor position tracking when content shrinks with unchanged remaining lines
|
|
731
|
+
- TUI renders with wrong dimensions after suspend/resume if terminal was resized while suspended ([#599](https://github.com/badlogic/pi-mono/issues/599))
|
|
732
|
+
- Pasted content containing Kitty key release patterns (e.g., `:3F` in MAC addresses) was incorrectly filtered out ([#623](https://github.com/badlogic/pi-mono/pull/623) by [@ogulcancelik](https://github.com/ogulcancelik))
|
|
733
|
+
|
|
734
|
+
## [0.42.4] - 2026-01-10
|
|
735
|
+
|
|
736
|
+
### Fixed
|
|
737
|
+
|
|
738
|
+
- Bash output expanded hint now says "(ctrl+o to collapse)" ([#610](https://github.com/badlogic/pi-mono/pull/610) by [@tallshort](https://github.com/tallshort))
|
|
739
|
+
- Fixed UTF-8 text corruption in remote bash execution (SSH, containers) by using streaming TextDecoder ([#608](https://github.com/badlogic/pi-mono/issues/608))
|
|
740
|
+
|
|
741
|
+
## [0.42.3] - 2026-01-10
|
|
742
|
+
|
|
743
|
+
### Changed
|
|
744
|
+
|
|
745
|
+
- OpenAI Codex: updated to use bundled system prompt from upstream
|
|
746
|
+
|
|
747
|
+
## [0.42.2] - 2026-01-10
|
|
748
|
+
|
|
749
|
+
### Added
|
|
750
|
+
|
|
751
|
+
- `/model <search>` now pre-filters the model selector or auto-selects on exact match. Use `provider/model` syntax to disambiguate (e.g., `/model openai/gpt-4`). ([#587](https://github.com/badlogic/pi-mono/pull/587) by [@zedrdave](https://github.com/zedrdave))
|
|
752
|
+
- `FooterDataProvider` for custom footers: `ctx.ui.setFooter()` now receives a third `footerData` parameter providing `getGitBranch()`, `getExtensionStatuses()`, and `onBranchChange()` for reactive updates ([#600](https://github.com/badlogic/pi-mono/pull/600) by [@nicobailon](https://github.com/nicobailon))
|
|
753
|
+
- `Alt+Up` hotkey to restore queued steering/follow-up messages back into the editor without aborting the current run ([#604](https://github.com/badlogic/pi-mono/pull/604) by [@tmustier](https://github.com/tmustier))
|
|
754
|
+
|
|
755
|
+
### Fixed
|
|
756
|
+
|
|
757
|
+
- Fixed LM Studio compatibility for OpenAI Responses tool strict mapping in the ai provider ([#598](https://github.com/badlogic/pi-mono/pull/598) by [@gnattu](https://github.com/gnattu))
|
|
758
|
+
|
|
759
|
+
## [0.42.1] - 2026-01-09
|
|
760
|
+
|
|
761
|
+
### Fixed
|
|
762
|
+
|
|
763
|
+
- Symlinked directories in `prompts/` folders are now followed when loading prompt templates ([#601](https://github.com/badlogic/pi-mono/pull/601) by [@aliou](https://github.com/aliou))
|
|
764
|
+
|
|
765
|
+
## [0.42.0] - 2026-01-09
|
|
766
|
+
|
|
767
|
+
### Added
|
|
768
|
+
|
|
769
|
+
- Added OpenCode Zen provider support. Set `OPENCODE_API_KEY` env var and use `opencode/<model-id>` (e.g., `opencode/claude-opus-4-5`).
|
|
770
|
+
|
|
771
|
+
## [0.41.0] - 2026-01-09
|
|
772
|
+
|
|
773
|
+
### Added
|
|
774
|
+
|
|
775
|
+
- Anthropic OAuth support is back! Use `/login` to authenticate with your Claude Pro/Max subscription.
|
|
776
|
+
|
|
777
|
+
## [0.40.1] - 2026-01-09
|
|
778
|
+
|
|
779
|
+
### Removed
|
|
780
|
+
|
|
781
|
+
- Anthropic OAuth support (`/login`). Use API keys instead.
|
|
782
|
+
|
|
783
|
+
## [0.40.0] - 2026-01-08
|
|
784
|
+
|
|
785
|
+
### Added
|
|
786
|
+
|
|
787
|
+
- Documentation on component invalidation and theme changes in `docs/tui.md`
|
|
788
|
+
|
|
789
|
+
### Fixed
|
|
790
|
+
|
|
791
|
+
- Components now properly rebuild their content on theme change (tool executions, assistant messages, bash executions, custom messages, branch/compaction summaries)
|
|
792
|
+
|
|
793
|
+
## [0.39.1] - 2026-01-08
|
|
794
|
+
|
|
795
|
+
### Fixed
|
|
796
|
+
|
|
797
|
+
- `setTheme()` now triggers a full rerender so previously rendered components update with the new theme colors
|
|
798
|
+
- `mac-system-theme.ts` example now polls every 2 seconds and uses `osascript` for real-time macOS appearance detection
|
|
799
|
+
|
|
800
|
+
## [0.39.0] - 2026-01-08
|
|
801
|
+
|
|
802
|
+
### Breaking Changes
|
|
803
|
+
|
|
804
|
+
- `before_agent_start` event now receives `systemPrompt` in the event object and returns `systemPrompt` (full replacement) instead of `systemPromptAppend`. Extensions that were appending must now use `event.systemPrompt + extra` pattern. ([#575](https://github.com/badlogic/pi-mono/issues/575))
|
|
805
|
+
- `discoverSkills()` now returns `{ skills: Skill[], warnings: SkillWarning[] }` instead of `Skill[]`. This allows callers to handle skill loading warnings. ([#577](https://github.com/badlogic/pi-mono/pull/577) by [@cv](https://github.com/cv))
|
|
806
|
+
|
|
807
|
+
### Added
|
|
808
|
+
|
|
809
|
+
- `ctx.ui.getAllThemes()`, `ctx.ui.getTheme(name)`, and `ctx.ui.setTheme(name | Theme)` methods for extensions to list, load, and switch themes at runtime ([#576](https://github.com/badlogic/pi-mono/pull/576))
|
|
810
|
+
- `--no-tools` flag to disable all built-in tools, allowing extension-only tool setups ([#557](https://github.com/badlogic/pi-mono/pull/557) by [@cv](https://github.com/cv))
|
|
811
|
+
- Pluggable operations for built-in tools enabling remote execution via SSH or other transports ([#564](https://github.com/badlogic/pi-mono/issues/564)). Interfaces: `ReadOperations`, `WriteOperations`, `EditOperations`, `BashOperations`, `LsOperations`, `GrepOperations`, `FindOperations`
|
|
812
|
+
- `user_bash` event for intercepting user `!`/`!!` commands, allowing extensions to redirect to remote systems ([#528](https://github.com/badlogic/pi-mono/issues/528))
|
|
813
|
+
- `setActiveTools()` in ExtensionAPI for dynamic tool management
|
|
814
|
+
- Built-in renderers used automatically for tool overrides without custom `renderCall`/`renderResult`
|
|
815
|
+
- `ssh.ts` example: remote tool execution via `--ssh user@host:/path`
|
|
816
|
+
- `interactive-shell.ts` example: run interactive commands (vim, git rebase, htop) with full terminal access via `!i` prefix or auto-detection
|
|
817
|
+
- Wayland clipboard support for `/copy` command using wl-copy with xclip/xsel fallback ([#570](https://github.com/badlogic/pi-mono/pull/570) by [@OgulcanCelik](https://github.com/OgulcanCelik))
|
|
818
|
+
- **Experimental:** `ctx.ui.custom()` now accepts `{ overlay: true }` option for floating modal components that composite over existing content without clearing the screen ([#558](https://github.com/badlogic/pi-mono/pull/558) by [@nicobailon](https://github.com/nicobailon))
|
|
819
|
+
- `AgentSession.skills` and `AgentSession.skillWarnings` properties to access loaded skills without rediscovery ([#577](https://github.com/badlogic/pi-mono/pull/577) by [@cv](https://github.com/cv))
|
|
820
|
+
|
|
821
|
+
### Fixed
|
|
822
|
+
|
|
823
|
+
- String `systemPrompt` in `createAgentSession()` now works as a full replacement instead of having context files and skills appended, matching documented behavior ([#543](https://github.com/badlogic/pi-mono/issues/543))
|
|
824
|
+
- Update notification for bun binary installs now shows release download URL instead of npm command ([#567](https://github.com/badlogic/pi-mono/pull/567) by [@ferologics](https://github.com/ferologics))
|
|
825
|
+
- ESC key now works during "Working..." state after auto-retry ([#568](https://github.com/badlogic/pi-mono/pull/568) by [@tmustier](https://github.com/tmustier))
|
|
826
|
+
- Abort messages now show correct retry attempt count (e.g., "Aborted after 2 retry attempts") ([#568](https://github.com/badlogic/pi-mono/pull/568) by [@tmustier](https://github.com/tmustier))
|
|
827
|
+
- Fixed Antigravity provider returning 429 errors despite available quota ([#571](https://github.com/badlogic/pi-mono/pull/571) by [@ben-vargas](https://github.com/ben-vargas))
|
|
828
|
+
- Fixed malformed thinking text in Gemini/Antigravity responses where thinking content appeared as regular text or vice versa. Cross-model conversations now properly convert thinking blocks to plain text. ([#561](https://github.com/badlogic/pi-mono/issues/561))
|
|
829
|
+
- `--no-skills` flag now correctly prevents skills from loading in interactive mode ([#577](https://github.com/badlogic/pi-mono/pull/577) by [@cv](https://github.com/cv))
|
|
830
|
+
|
|
831
|
+
## [0.38.0] - 2026-01-08
|
|
832
|
+
|
|
833
|
+
### Breaking Changes
|
|
834
|
+
|
|
835
|
+
- `ctx.ui.custom()` factory signature changed from `(tui, theme, done)` to `(tui, theme, keybindings, done)` for keybinding access in custom components
|
|
836
|
+
- `LoadedExtension` type renamed to `Extension`
|
|
837
|
+
- `LoadExtensionsResult.setUIContext()` removed, replaced with `runtime: ExtensionRuntime`
|
|
838
|
+
- `ExtensionRunner` constructor now requires `runtime: ExtensionRuntime` as second parameter
|
|
839
|
+
- `ExtensionRunner.initialize()` signature changed from options object to positional params `(actions, contextActions, commandContextActions?, uiContext?)`
|
|
840
|
+
- `ExtensionRunner.getHasUI()` renamed to `hasUI()`
|
|
841
|
+
- OpenAI Codex model aliases removed (`gpt-5`, `gpt-5-mini`, `gpt-5-nano`, `codex-mini-latest`). Use canonical IDs: `gpt-5.1`, `gpt-5.1-codex-mini`, `gpt-5.2`, `gpt-5.2-codex`. ([#536](https://github.com/badlogic/pi-mono/pull/536) by [@ghoulr](https://github.com/ghoulr))
|
|
842
|
+
|
|
843
|
+
### Added
|
|
844
|
+
|
|
845
|
+
- `--no-extensions` flag to disable extension discovery while still allowing explicit `-e` paths ([#524](https://github.com/badlogic/pi-mono/pull/524) by [@cv](https://github.com/cv))
|
|
846
|
+
- SDK: `InteractiveMode`, `runPrintMode()`, `runRpcMode()` exported for building custom run modes. See `docs/sdk.md`.
|
|
847
|
+
- `PI_SKIP_VERSION_CHECK` environment variable to disable new version notifications at startup ([#549](https://github.com/badlogic/pi-mono/pull/549) by [@aos](https://github.com/aos))
|
|
848
|
+
- `thinkingBudgets` setting to customize token budgets per thinking level for token-based providers ([#529](https://github.com/badlogic/pi-mono/pull/529) by [@melihmucuk](https://github.com/melihmucuk))
|
|
849
|
+
- Extension UI dialogs (`ctx.ui.select()`, `ctx.ui.confirm()`, `ctx.ui.input()`) now support a `timeout` option with live countdown display ([#522](https://github.com/badlogic/pi-mono/pull/522) by [@nicobailon](https://github.com/nicobailon))
|
|
850
|
+
- Extensions can now provide custom editor components via `ctx.ui.setEditorComponent()`. See `examples/extensions/modal-editor.ts` and `docs/tui.md` Pattern 7.
|
|
851
|
+
- Extension factories can now be async, enabling dynamic imports and lazy-loaded dependencies ([#513](https://github.com/badlogic/pi-mono/pull/513) by [@austinm911](https://github.com/austinm911))
|
|
852
|
+
- `ctx.shutdown()` is now available in extension contexts for requesting a graceful shutdown. In interactive mode, shutdown is deferred until the agent becomes idle (after processing all queued steering and follow-up messages). In RPC mode, shutdown is deferred until after completing the current command response. In print mode, shutdown is a no-op as the process exits automatically when prompts complete. ([#542](https://github.com/badlogic/pi-mono/pull/542) by [@kaofelix](https://github.com/kaofelix))
|
|
853
|
+
|
|
854
|
+
### Fixed
|
|
855
|
+
|
|
856
|
+
- Default thinking level from settings now applies correctly when `enabledModels` is configured ([#540](https://github.com/badlogic/pi-mono/pull/540) by [@ferologics](https://github.com/ferologics))
|
|
857
|
+
- External edits to `settings.json` while pi is running are now preserved when pi saves settings ([#527](https://github.com/badlogic/pi-mono/pull/527) by [@ferologics](https://github.com/ferologics))
|
|
858
|
+
- Overflow-based compaction now skips if error came from a different model or was already handled by a previous compaction ([#535](https://github.com/badlogic/pi-mono/pull/535) by [@mitsuhiko](https://github.com/mitsuhiko))
|
|
859
|
+
- OpenAI Codex context window reduced from 400k to 272k tokens to match Codex CLI defaults and prevent 400 errors ([#536](https://github.com/badlogic/pi-mono/pull/536) by [@ghoulr](https://github.com/ghoulr))
|
|
860
|
+
- Context overflow detection now recognizes `context_length_exceeded` errors.
|
|
861
|
+
- Key presses no longer dropped when input is batched over SSH ([#538](https://github.com/badlogic/pi-mono/issues/538))
|
|
862
|
+
- Clipboard image support now works on Alpine Linux and other musl-based distros ([#533](https://github.com/badlogic/pi-mono/issues/533))
|
|
863
|
+
|
|
864
|
+
## [0.37.8] - 2026-01-07
|
|
865
|
+
|
|
866
|
+
## [0.37.7] - 2026-01-07
|
|
867
|
+
|
|
868
|
+
## [0.37.6] - 2026-01-06
|
|
869
|
+
|
|
870
|
+
### Added
|
|
871
|
+
|
|
872
|
+
- Extension UI dialogs (`ctx.ui.select()`, `ctx.ui.confirm()`, `ctx.ui.input()`) now accept an optional `AbortSignal` to programmatically dismiss dialogs. Useful for implementing timeouts. See `examples/extensions/timed-confirm.ts`. ([#474](https://github.com/badlogic/pi-mono/issues/474))
|
|
873
|
+
- HTML export now shows bridge prompts in model change messages for Codex sessions ([#510](https://github.com/badlogic/pi-mono/pull/510) by [@mitsuhiko](https://github.com/mitsuhiko))
|
|
874
|
+
|
|
875
|
+
## [0.37.5] - 2026-01-06
|
|
876
|
+
|
|
877
|
+
### Added
|
|
878
|
+
|
|
879
|
+
- ExtensionAPI: `setModel()`, `getThinkingLevel()`, `setThinkingLevel()` methods for extensions to change model and thinking level at runtime ([#509](https://github.com/badlogic/pi-mono/issues/509))
|
|
880
|
+
- Exported truncation utilities for custom tools: `truncateHead`, `truncateTail`, `truncateLine`, `formatSize`, `DEFAULT_MAX_BYTES`, `DEFAULT_MAX_LINES`, `TruncationOptions`, `TruncationResult`
|
|
881
|
+
- New example `truncated-tool.ts` demonstrating proper output truncation with custom rendering for extensions
|
|
882
|
+
- New example `preset.ts` demonstrating preset configurations with model/thinking/tools switching ([#347](https://github.com/badlogic/pi-mono/issues/347))
|
|
883
|
+
- Documentation for output truncation best practices in `docs/extensions.md`
|
|
884
|
+
- Exported all UI components for extensions: `ArminComponent`, `AssistantMessageComponent`, `BashExecutionComponent`, `BorderedLoader`, `BranchSummaryMessageComponent`, `CompactionSummaryMessageComponent`, `CustomEditor`, `CustomMessageComponent`, `DynamicBorder`, `ExtensionEditorComponent`, `ExtensionInputComponent`, `ExtensionSelectorComponent`, `FooterComponent`, `LoginDialogComponent`, `ModelSelectorComponent`, `OAuthSelectorComponent`, `SessionSelectorComponent`, `SettingsSelectorComponent`, `ShowImagesSelectorComponent`, `ThemeSelectorComponent`, `ThinkingSelectorComponent`, `ToolExecutionComponent`, `TreeSelectorComponent`, `UserMessageComponent`, `UserMessageSelectorComponent`, plus utilities `renderDiff`, `truncateToVisualLines`
|
|
885
|
+
- `docs/tui.md`: Common Patterns section with copy-paste code for SelectList, BorderedLoader, SettingsList, setStatus, setWidget, setFooter
|
|
886
|
+
- `docs/tui.md`: Key Rules section documenting critical patterns for extension UI development
|
|
887
|
+
- `docs/extensions.md`: Exhaustive example links for all ExtensionAPI methods and events
|
|
888
|
+
- System prompt now references `docs/tui.md` for TUI component development
|
|
889
|
+
|
|
890
|
+
## [0.37.4] - 2026-01-06
|
|
891
|
+
|
|
892
|
+
### Added
|
|
893
|
+
|
|
894
|
+
- Session picker (`pi -r`) and `--session` flag now support searching/resuming by session ID (UUID prefix) ([#495](https://github.com/badlogic/pi-mono/issues/495) by [@arunsathiya](https://github.com/arunsathiya))
|
|
895
|
+
- Extensions can now replace the startup header with `ctx.ui.setHeader()`, see `examples/extensions/custom-header.ts` ([#500](https://github.com/badlogic/pi-mono/pull/500) by [@tudoroancea](https://github.com/tudoroancea))
|
|
896
|
+
|
|
897
|
+
### Changed
|
|
898
|
+
|
|
899
|
+
- Startup help text: fixed misleading "ctrl+k to delete line" to "ctrl+k to delete to end"
|
|
900
|
+
- Startup help text and `/hotkeys`: added `!!` shortcut for running bash without adding output to context
|
|
901
|
+
|
|
902
|
+
### Fixed
|
|
903
|
+
|
|
904
|
+
- Queued steering/follow-up messages no longer wipe unsent editor input ([#503](https://github.com/badlogic/pi-mono/pull/503) by [@tmustier](https://github.com/tmustier))
|
|
905
|
+
- OAuth token refresh failure no longer crashes app at startup, allowing user to `/login` to re-authenticate ([#498](https://github.com/badlogic/pi-mono/issues/498))
|
|
906
|
+
|
|
907
|
+
## [0.37.3] - 2026-01-06
|
|
908
|
+
|
|
909
|
+
### Added
|
|
910
|
+
|
|
911
|
+
- Extensions can now replace the footer with `ctx.ui.setFooter()`, see `examples/extensions/custom-footer.ts` ([#481](https://github.com/badlogic/pi-mono/issues/481))
|
|
912
|
+
- Session ID is now forwarded to LLM providers for session-based caching (used by OpenAI Codex for prompt caching).
|
|
913
|
+
- Added `blockImages` setting to prevent images from being sent to LLM providers ([#492](https://github.com/badlogic/pi-mono/pull/492) by [@jsinge97](https://github.com/jsinge97))
|
|
914
|
+
- Extensions can now send user messages via `pi.sendUserMessage()` ([#483](https://github.com/badlogic/pi-mono/issues/483))
|
|
915
|
+
|
|
916
|
+
### Fixed
|
|
917
|
+
|
|
918
|
+
- Add `minimatch` as a direct dependency for explicit imports.
|
|
919
|
+
- Status bar now shows correct git branch when running in a git worktree ([#490](https://github.com/badlogic/pi-mono/pull/490) by [@kcosr](https://github.com/kcosr))
|
|
920
|
+
- Interactive mode: Ctrl+V clipboard image paste now works on Wayland sessions by using `wl-paste` with `xclip` fallback ([#488](https://github.com/badlogic/pi-mono/pull/488) by [@ghoulr](https://github.com/ghoulr))
|
|
921
|
+
|
|
922
|
+
## [0.37.2] - 2026-01-05
|
|
923
|
+
|
|
924
|
+
### Fixed
|
|
925
|
+
|
|
926
|
+
- Extension directories in `settings.json` now respect `package.json` manifests, matching global extension behavior ([#480](https://github.com/badlogic/pi-mono/pull/480) by [@prateekmedia](https://github.com/prateekmedia))
|
|
927
|
+
- Share viewer: deep links now scroll to the target message when opened via `/share`
|
|
928
|
+
- Bash tool now handles spawn errors gracefully instead of crashing the agent (missing cwd, invalid shell path) ([#479](https://github.com/badlogic/pi-mono/pull/479) by [@robinwander](https://github.com/robinwander))
|
|
929
|
+
|
|
930
|
+
## [0.37.1] - 2026-01-05
|
|
931
|
+
|
|
932
|
+
### Fixed
|
|
933
|
+
|
|
934
|
+
- Share viewer: copy-link buttons now generate correct URLs when session is viewed via `/share` (iframe context)
|
|
935
|
+
|
|
936
|
+
## [0.37.0] - 2026-01-05
|
|
937
|
+
|
|
938
|
+
### Added
|
|
939
|
+
|
|
940
|
+
- Share viewer: copy-link button on messages to share URLs that navigate directly to a specific message ([#477](https://github.com/badlogic/pi-mono/pull/477) by [@lockmeister](https://github.com/lockmeister))
|
|
941
|
+
- Extension example: add `claude-rules` to load `.claude/rules/` entries into the system prompt ([#461](https://github.com/badlogic/pi-mono/pull/461) by [@vaayne](https://github.com/vaayne))
|
|
942
|
+
- Headless OAuth login: all providers now show paste input for manual URL/code entry, works over SSH without DISPLAY ([#428](https://github.com/badlogic/pi-mono/pull/428) by [@ben-vargas](https://github.com/ben-vargas), [#468](https://github.com/badlogic/pi-mono/pull/468) by [@crcatala](https://github.com/crcatala))
|
|
943
|
+
|
|
944
|
+
### Changed
|
|
945
|
+
|
|
946
|
+
- OAuth login UI now uses dedicated dialog component with consistent borders
|
|
947
|
+
- Assume truecolor support for all terminals except `dumb`, empty, or `linux` (fixes colors over SSH)
|
|
948
|
+
- OpenAI Codex clean-up: removed per-thinking-level model variants, thinking level is now set separately and the provider clamps to what each model supports internally (initial implementation in [#472](https://github.com/badlogic/pi-mono/pull/472) by [@ben-vargas](https://github.com/ben-vargas))
|
|
949
|
+
|
|
950
|
+
### Fixed
|
|
951
|
+
|
|
952
|
+
- Messages submitted during compaction are queued and delivered after compaction completes, preserving steering and follow-up behavior. Extension commands execute immediately during compaction. ([#476](https://github.com/badlogic/pi-mono/pull/476) by [@tmustier](https://github.com/tmustier))
|
|
953
|
+
- Managed binaries (`fd`, `rg`) now stored in `~/.pi/agent/bin/` instead of `tools/`, eliminating false deprecation warnings ([#470](https://github.com/badlogic/pi-mono/pull/470) by [@mcinteerj](https://github.com/mcinteerj))
|
|
954
|
+
- Extensions defined in `settings.json` were not loaded ([#463](https://github.com/badlogic/pi-mono/pull/463) by [@melihmucuk](https://github.com/melihmucuk))
|
|
955
|
+
- OAuth refresh no longer logs users out when multiple pi instances are running ([#466](https://github.com/badlogic/pi-mono/pull/466) by [@Cursivez](https://github.com/Cursivez))
|
|
956
|
+
- Migration warnings now ignore `fd.exe` and `rg.exe` in `tools/` on Windows ([#458](https://github.com/badlogic/pi-mono/pull/458) by [@carlosgtrz](https://github.com/carlosgtrz))
|
|
957
|
+
- CI: add `examples/extensions/with-deps` to workspaces to fix typecheck ([#467](https://github.com/badlogic/pi-mono/pull/467) by [@aliou](https://github.com/aliou))
|
|
958
|
+
- SDK: passing `extensions: []` now disables extension discovery as documented ([#465](https://github.com/badlogic/pi-mono/pull/465) by [@aliou](https://github.com/aliou))
|
|
959
|
+
|
|
960
|
+
## [0.36.0] - 2026-01-05
|
|
961
|
+
|
|
962
|
+
### Added
|
|
963
|
+
|
|
964
|
+
- Experimental: OpenAI Codex OAuth provider support: access Codex models via ChatGPT Plus/Pro subscription using `/login openai-codex` ([#451](https://github.com/badlogic/pi-mono/pull/451) by [@kim0](https://github.com/kim0))
|
|
965
|
+
|
|
966
|
+
## [0.35.0] - 2026-01-05
|
|
967
|
+
|
|
968
|
+
This release unifies hooks and custom tools into a single "extensions" system and renames "slash commands" to "prompt templates". ([#454](https://github.com/badlogic/pi-mono/issues/454))
|
|
969
|
+
|
|
970
|
+
**Before migrating, read:**
|
|
971
|
+
|
|
972
|
+
- [docs/extensions.md](docs/extensions.md) - Full API reference
|
|
973
|
+
- [README.md](README.md) - Extensions section with examples
|
|
974
|
+
- [examples/extensions/](examples/extensions/) - Working examples
|
|
975
|
+
|
|
976
|
+
### Extensions Migration
|
|
977
|
+
|
|
978
|
+
Hooks and custom tools are now unified as **extensions**. Both were TypeScript modules exporting a factory function that receives an API object. Now there's one concept, one discovery location, one CLI flag, one settings.json entry.
|
|
979
|
+
|
|
980
|
+
**Automatic migration:**
|
|
981
|
+
|
|
982
|
+
- `commands/` directories are automatically renamed to `prompts/` on startup (both `~/.pi/agent/commands/` and `.pi/commands/`)
|
|
983
|
+
|
|
984
|
+
**Manual migration required:**
|
|
985
|
+
|
|
986
|
+
1. Move files from `hooks/` and `tools/` directories to `extensions/` (deprecation warnings shown on startup)
|
|
987
|
+
2. Update imports and type names in your extension code
|
|
988
|
+
3. Update `settings.json` if you have explicit hook and custom tool paths configured
|
|
989
|
+
|
|
990
|
+
**Directory changes:**
|
|
991
|
+
|
|
992
|
+
```
|
|
993
|
+
# Before
|
|
994
|
+
~/.pi/agent/hooks/*.ts → ~/.pi/agent/extensions/*.ts
|
|
995
|
+
~/.pi/agent/tools/*.ts → ~/.pi/agent/extensions/*.ts
|
|
996
|
+
.pi/hooks/*.ts → .pi/extensions/*.ts
|
|
997
|
+
.pi/tools/*.ts → .pi/extensions/*.ts
|
|
998
|
+
```
|
|
999
|
+
|
|
1000
|
+
**Extension discovery rules** (in `extensions/` directories):
|
|
1001
|
+
|
|
1002
|
+
1. **Direct files:** `extensions/*.ts` or `*.js` → loaded directly
|
|
1003
|
+
2. **Subdirectory with index:** `extensions/myext/index.ts` → loaded as single extension
|
|
1004
|
+
3. **Subdirectory with package.json:** `extensions/myext/package.json` with `"pi"` field → loads declared paths
|
|
1005
|
+
|
|
1006
|
+
```json
|
|
1007
|
+
// extensions/my-package/package.json
|
|
1008
|
+
{
|
|
1009
|
+
"name": "my-extension-package",
|
|
1010
|
+
"dependencies": { "zod": "^3.0.0" },
|
|
1011
|
+
"pi": {
|
|
1012
|
+
"extensions": ["./src/main.ts", "./src/tools.ts"]
|
|
1013
|
+
}
|
|
1014
|
+
}
|
|
1015
|
+
```
|
|
1016
|
+
|
|
1017
|
+
No recursion beyond one level. Complex packages must use the `package.json` manifest. Dependencies are resolved via jiti, and extensions can be published to and installed from npm.
|
|
1018
|
+
|
|
1019
|
+
**Type renames:**
|
|
1020
|
+
|
|
1021
|
+
- `HookAPI` → `ExtensionAPI`
|
|
1022
|
+
- `HookContext` → `ExtensionContext`
|
|
1023
|
+
- `HookCommandContext` → `ExtensionCommandContext`
|
|
1024
|
+
- `HookUIContext` → `ExtensionUIContext`
|
|
1025
|
+
- `CustomToolAPI` → `ExtensionAPI` (merged)
|
|
1026
|
+
- `CustomToolContext` → `ExtensionContext` (merged)
|
|
1027
|
+
- `CustomToolUIContext` → `ExtensionUIContext`
|
|
1028
|
+
- `CustomTool` → `ToolDefinition`
|
|
1029
|
+
- `CustomToolFactory` → `ExtensionFactory`
|
|
1030
|
+
- `HookMessage` → `CustomMessage`
|
|
1031
|
+
|
|
1032
|
+
**Import changes:**
|
|
1033
|
+
|
|
1034
|
+
```typescript
|
|
1035
|
+
// Before (hook)
|
|
1036
|
+
import type { HookAPI, HookContext } from "@mariozechner/pi-coding-agent";
|
|
1037
|
+
export default function (pi: HookAPI) { ... }
|
|
1038
|
+
|
|
1039
|
+
// Before (custom tool)
|
|
1040
|
+
import type { CustomToolFactory } from "@mariozechner/pi-coding-agent";
|
|
1041
|
+
const factory: CustomToolFactory = (pi) => ({ name: "my_tool", ... });
|
|
1042
|
+
export default factory;
|
|
1043
|
+
|
|
1044
|
+
// After (both are now extensions)
|
|
1045
|
+
import type { ExtensionAPI } from "@mariozechner/pi-coding-agent";
|
|
1046
|
+
export default function (pi: ExtensionAPI) {
|
|
1047
|
+
pi.on("tool_call", async (event, ctx) => { ... });
|
|
1048
|
+
pi.registerTool({ name: "my_tool", ... });
|
|
1049
|
+
}
|
|
1050
|
+
```
|
|
1051
|
+
|
|
1052
|
+
**Custom tools now have full context access.** Tools registered via `pi.registerTool()` now receive the same `ctx` object that event handlers receive. Previously, custom tools had limited context. Now all extension code shares the same capabilities:
|
|
1053
|
+
|
|
1054
|
+
- `pi.registerTool()` - Register tools the LLM can call
|
|
1055
|
+
- `pi.registerCommand()` - Register commands like `/mycommand`
|
|
1056
|
+
- `pi.registerShortcut()` - Register keyboard shortcuts (shown in `/hotkeys`)
|
|
1057
|
+
- `pi.registerFlag()` - Register CLI flags (shown in `--help`)
|
|
1058
|
+
- `pi.registerMessageRenderer()` - Custom TUI rendering for message types
|
|
1059
|
+
- `pi.on()` - Subscribe to lifecycle events (tool_call, session_start, etc.)
|
|
1060
|
+
- `pi.sendMessage()` - Inject messages into the conversation
|
|
1061
|
+
- `pi.appendEntry()` - Persist custom data in session (survives restart/branch)
|
|
1062
|
+
- `pi.exec()` - Run shell commands
|
|
1063
|
+
- `pi.getActiveTools()` / `pi.setActiveTools()` - Dynamic tool enable/disable
|
|
1064
|
+
- `pi.getAllTools()` - List all available tools
|
|
1065
|
+
- `pi.events` - Event bus for cross-extension communication
|
|
1066
|
+
- `ctx.ui.confirm()` / `select()` / `input()` - User prompts
|
|
1067
|
+
- `ctx.ui.notify()` - Toast notifications
|
|
1068
|
+
- `ctx.ui.setStatus()` - Persistent status in footer (multiple extensions can set their own)
|
|
1069
|
+
- `ctx.ui.setWidget()` - Widget display above editor
|
|
1070
|
+
- `ctx.ui.setTitle()` - Set terminal window title
|
|
1071
|
+
- `ctx.ui.custom()` - Full TUI component with keyboard handling
|
|
1072
|
+
- `ctx.ui.editor()` - Multi-line text editor with external editor support
|
|
1073
|
+
- `ctx.sessionManager` - Read session entries, get branch history
|
|
1074
|
+
|
|
1075
|
+
**Settings changes:**
|
|
1076
|
+
|
|
1077
|
+
```json
|
|
1078
|
+
// Before
|
|
1079
|
+
{
|
|
1080
|
+
"hooks": ["./my-hook.ts"],
|
|
1081
|
+
"customTools": ["./my-tool.ts"]
|
|
1082
|
+
}
|
|
1083
|
+
|
|
1084
|
+
// After
|
|
1085
|
+
{
|
|
1086
|
+
"extensions": ["./my-extension.ts"]
|
|
1087
|
+
}
|
|
1088
|
+
```
|
|
1089
|
+
|
|
1090
|
+
**CLI changes:**
|
|
1091
|
+
|
|
1092
|
+
```bash
|
|
1093
|
+
# Before
|
|
1094
|
+
pi --hook ./safety.ts --tool ./todo.ts
|
|
1095
|
+
|
|
1096
|
+
# After
|
|
1097
|
+
pi --extension ./safety.ts -e ./todo.ts
|
|
1098
|
+
```
|
|
1099
|
+
|
|
1100
|
+
### Prompt Templates Migration
|
|
1101
|
+
|
|
1102
|
+
"Slash commands" (markdown files defining reusable prompts invoked via `/name`) are renamed to "prompt templates" to avoid confusion with extension-registered commands.
|
|
1103
|
+
|
|
1104
|
+
**Automatic migration:** The `commands/` directory is automatically renamed to `prompts/` on startup (if `prompts/` doesn't exist). Works for both regular directories and symlinks.
|
|
1105
|
+
|
|
1106
|
+
**Directory changes:**
|
|
1107
|
+
|
|
1108
|
+
```
|
|
1109
|
+
~/.pi/agent/commands/*.md → ~/.pi/agent/prompts/*.md
|
|
1110
|
+
.pi/commands/*.md → .pi/prompts/*.md
|
|
1111
|
+
```
|
|
1112
|
+
|
|
1113
|
+
**SDK type renames:**
|
|
1114
|
+
|
|
1115
|
+
- `FileSlashCommand` → `PromptTemplate`
|
|
1116
|
+
- `LoadSlashCommandsOptions` → `LoadPromptTemplatesOptions`
|
|
1117
|
+
|
|
1118
|
+
**SDK function renames:**
|
|
1119
|
+
|
|
1120
|
+
- `discoverSlashCommands()` → `discoverPromptTemplates()`
|
|
1121
|
+
- `loadSlashCommands()` → `loadPromptTemplates()`
|
|
1122
|
+
- `expandSlashCommand()` → `expandPromptTemplate()`
|
|
1123
|
+
- `getCommandsDir()` → `getPromptsDir()`
|
|
1124
|
+
|
|
1125
|
+
**SDK option renames:**
|
|
1126
|
+
|
|
1127
|
+
- `CreateAgentSessionOptions.slashCommands` → `.promptTemplates`
|
|
1128
|
+
- `AgentSession.fileCommands` → `.promptTemplates`
|
|
1129
|
+
- `PromptOptions.expandSlashCommands` → `.expandPromptTemplates`
|
|
1130
|
+
|
|
1131
|
+
### SDK Migration
|
|
1132
|
+
|
|
1133
|
+
**Discovery functions:**
|
|
1134
|
+
|
|
1135
|
+
- `discoverAndLoadHooks()` → `discoverAndLoadExtensions()`
|
|
1136
|
+
- `discoverAndLoadCustomTools()` → merged into `discoverAndLoadExtensions()`
|
|
1137
|
+
- `loadHooks()` → `loadExtensions()`
|
|
1138
|
+
- `loadCustomTools()` → merged into `loadExtensions()`
|
|
1139
|
+
|
|
1140
|
+
**Runner and wrapper:**
|
|
1141
|
+
|
|
1142
|
+
- `HookRunner` → `ExtensionRunner`
|
|
1143
|
+
- `wrapToolsWithHooks()` → `wrapToolsWithExtensions()`
|
|
1144
|
+
- `wrapToolWithHooks()` → `wrapToolWithExtensions()`
|
|
1145
|
+
|
|
1146
|
+
**CreateAgentSessionOptions:**
|
|
1147
|
+
|
|
1148
|
+
- `.hooks` → removed (use `.additionalExtensionPaths` for paths)
|
|
1149
|
+
- `.additionalHookPaths` → `.additionalExtensionPaths`
|
|
1150
|
+
- `.preloadedHooks` → `.preloadedExtensions`
|
|
1151
|
+
- `.customTools` type changed: `Array<{ path?; tool: CustomTool }>` → `ToolDefinition[]`
|
|
1152
|
+
- `.additionalCustomToolPaths` → merged into `.additionalExtensionPaths`
|
|
1153
|
+
- `.slashCommands` → `.promptTemplates`
|
|
1154
|
+
|
|
1155
|
+
**AgentSession:**
|
|
1156
|
+
|
|
1157
|
+
- `.hookRunner` → `.extensionRunner`
|
|
1158
|
+
- `.fileCommands` → `.promptTemplates`
|
|
1159
|
+
- `.sendHookMessage()` → `.sendCustomMessage()`
|
|
1160
|
+
|
|
1161
|
+
### Session Migration
|
|
1162
|
+
|
|
1163
|
+
**Automatic.** Session version bumped from 2 to 3. Existing sessions are migrated on first load:
|
|
1164
|
+
|
|
1165
|
+
- Message role `"hookMessage"` → `"custom"`
|
|
1166
|
+
|
|
1167
|
+
### Breaking Changes
|
|
1168
|
+
|
|
1169
|
+
- **Settings:** `hooks` and `customTools` arrays replaced with single `extensions` array
|
|
1170
|
+
- **CLI:** `--hook` and `--tool` flags replaced with `--extension` / `-e`
|
|
1171
|
+
- **Directories:** `hooks/`, `tools/` → `extensions/`; `commands/` → `prompts/`
|
|
1172
|
+
- **Types:** See type renames above
|
|
1173
|
+
- **SDK:** See SDK migration above
|
|
1174
|
+
|
|
1175
|
+
### Changed
|
|
1176
|
+
|
|
1177
|
+
- Extensions can have their own `package.json` with dependencies (resolved via jiti)
|
|
1178
|
+
- Documentation: `docs/hooks.md` and `docs/custom-tools.md` merged into `docs/extensions.md`
|
|
1179
|
+
- Examples: `examples/hooks/` and `examples/custom-tools/` merged into `examples/extensions/`
|
|
1180
|
+
- README: Extensions section expanded with custom tools, commands, events, state persistence, shortcuts, flags, and UI examples
|
|
1181
|
+
- SDK: `customTools` option now accepts `ToolDefinition[]` directly (simplified from `Array<{ path?, tool }>`)
|
|
1182
|
+
- SDK: `extensions` option accepts `ExtensionFactory[]` for inline extensions
|
|
1183
|
+
- SDK: `additionalExtensionPaths` replaces both `additionalHookPaths` and `additionalCustomToolPaths`
|
|
1184
|
+
|
|
1185
|
+
## [0.34.2] - 2026-01-04
|
|
1186
|
+
|
|
1187
|
+
## [0.34.1] - 2026-01-04
|
|
1188
|
+
|
|
1189
|
+
### Added
|
|
1190
|
+
|
|
1191
|
+
- Hook API: `ctx.ui.setTitle(title)` allows hooks to set the terminal window/tab title ([#446](https://github.com/badlogic/pi-mono/pull/446) by [@aliou](https://github.com/aliou))
|
|
1192
|
+
|
|
1193
|
+
### Changed
|
|
1194
|
+
|
|
1195
|
+
- Expanded keybinding documentation to list all 32 supported symbol keys with notes on ctrl+symbol behavior ([#450](https://github.com/badlogic/pi-mono/pull/450) by [@kaofelix](https://github.com/kaofelix))
|
|
1196
|
+
|
|
1197
|
+
## [0.34.0] - 2026-01-04
|
|
1198
|
+
|
|
1199
|
+
### Added
|
|
1200
|
+
|
|
1201
|
+
- Hook API: `pi.getActiveTools()` and `pi.setActiveTools(toolNames)` for dynamically enabling/disabling tools from hooks
|
|
1202
|
+
- Hook API: `pi.getAllTools()` to enumerate all configured tools (built-in via --tools or default, plus custom tools)
|
|
1203
|
+
- Hook API: `pi.registerFlag(name, options)` and `pi.getFlag(name)` for hooks to register custom CLI flags (parsed automatically)
|
|
1204
|
+
- Hook API: `pi.registerShortcut(shortcut, options)` for hooks to register custom keyboard shortcuts using `KeyId` (e.g., `Key.shift("p")`). Conflicts with built-in shortcuts are skipped, conflicts between hooks logged as warnings.
|
|
1205
|
+
- Hook API: `ctx.ui.setWidget(key, content)` for status displays above the editor. Accepts either a string array or a component factory function.
|
|
1206
|
+
- Hook API: `theme.strikethrough(text)` for strikethrough text styling
|
|
1207
|
+
- Hook API: `before_agent_start` handlers can now return `systemPromptAppend` to dynamically append text to the system prompt for that turn. Multiple hooks' appends are concatenated.
|
|
1208
|
+
- Hook API: `before_agent_start` handlers can now return multiple messages (all are injected, not just the first)
|
|
1209
|
+
- `/hotkeys` command now shows hook-registered shortcuts in a separate "Hooks" section
|
|
1210
|
+
- New example hook: `plan-mode.ts` - Claude Code-style read-only exploration mode:
|
|
1211
|
+
- Toggle via `/plan` command, `Shift+P` shortcut, or `--plan` CLI flag
|
|
1212
|
+
- Read-only tools: `read`, `bash`, `grep`, `find`, `ls` (no `edit`/`write`)
|
|
1213
|
+
- Bash commands restricted to non-destructive operations (blocks `rm`, `mv`, `git commit`, `npm install`, etc.)
|
|
1214
|
+
- Interactive prompt after each response: execute plan, stay in plan mode, or refine
|
|
1215
|
+
- Todo list widget showing progress with checkboxes and strikethrough for completed items
|
|
1216
|
+
- Each todo has a unique ID; agent marks items done by outputting `[DONE:id]`
|
|
1217
|
+
- Progress updates via `agent_end` hook (parses completed items from final message)
|
|
1218
|
+
- `/todos` command to view current plan progress
|
|
1219
|
+
- Shows `⏸ plan` indicator in footer when in plan mode, `📋 2/5` when executing
|
|
1220
|
+
- State persists across sessions (including todo progress)
|
|
1221
|
+
- New example hook: `tools.ts` - Interactive `/tools` command to enable/disable tools with session persistence
|
|
1222
|
+
- New example hook: `pirate.ts` - Demonstrates `systemPromptAppend` to make the agent speak like a pirate
|
|
1223
|
+
- Tool registry now contains all built-in tools (read, bash, edit, write, grep, find, ls) even when `--tools` limits the initially active set. Hooks can enable any tool from the registry via `pi.setActiveTools()`.
|
|
1224
|
+
- System prompt now automatically rebuilds when tools change via `setActiveTools()`, updating tool descriptions and guidelines to match the new tool set
|
|
1225
|
+
- Hook errors now display full stack traces for easier debugging
|
|
1226
|
+
- Event bus (`pi.events`) for tool/hook communication: shared pub/sub between custom tools and hooks
|
|
1227
|
+
- Custom tools now have `pi.sendMessage()` to send messages directly to the agent session without needing the event bus
|
|
1228
|
+
- `sendMessage()` supports `deliverAs: "nextTurn"` to queue messages for the next user prompt
|
|
1229
|
+
|
|
1230
|
+
### Changed
|
|
1231
|
+
|
|
1232
|
+
- Removed image placeholders after copy & paste, replaced with inserting image file paths directly. ([#442](https://github.com/badlogic/pi-mono/pull/442) by [@mitsuhiko](https://github.com/mitsuhiko))
|
|
1233
|
+
|
|
1234
|
+
### Fixed
|
|
1235
|
+
|
|
1236
|
+
- Fixed potential text decoding issues in bash executor by using streaming TextDecoder instead of Buffer.toString()
|
|
1237
|
+
- External editor (Ctrl-G) now shows full pasted content instead of `[paste #N ...]` placeholders ([#444](https://github.com/badlogic/pi-mono/pull/444) by [@aliou](https://github.com/aliou))
|
|
1238
|
+
|
|
1239
|
+
## [0.33.0] - 2026-01-04
|
|
1240
|
+
|
|
1241
|
+
### Breaking Changes
|
|
1242
|
+
|
|
1243
|
+
- **Key detection functions removed from `@mariozechner/pi-tui`**: All `isXxx()` key detection functions (`isEnter()`, `isEscape()`, `isCtrlC()`, etc.) have been removed. Use `matchesKey(data, keyId)` instead (e.g., `matchesKey(data, "enter")`, `matchesKey(data, "ctrl+c")`). This affects hooks and custom tools that use `ctx.ui.custom()` with keyboard input handling. ([#405](https://github.com/badlogic/pi-mono/pull/405))
|
|
1244
|
+
|
|
1245
|
+
### Added
|
|
1246
|
+
|
|
1247
|
+
- Clipboard image paste support via `Ctrl+V`. Images are saved to a temp file and attached to the message. Works on macOS, Windows, and Linux (X11). ([#419](https://github.com/badlogic/pi-mono/issues/419))
|
|
1248
|
+
- Configurable keybindings via `~/.pi/agent/keybindings.json`. All keyboard shortcuts (editor navigation, deletion, app actions like model cycling, etc.) can now be customized. Supports multiple bindings per action. ([#405](https://github.com/badlogic/pi-mono/pull/405) by [@hjanuschka](https://github.com/hjanuschka))
|
|
1249
|
+
- `/quit` and `/exit` slash commands to gracefully exit the application. Unlike double Ctrl+C, these properly await hook and custom tool cleanup handlers before exiting. ([#426](https://github.com/badlogic/pi-mono/pull/426) by [@ben-vargas](https://github.com/ben-vargas))
|
|
1250
|
+
|
|
1251
|
+
### Fixed
|
|
1252
|
+
|
|
1253
|
+
- Subagent example README referenced incorrect filename `subagent.ts` instead of `index.ts` ([#427](https://github.com/badlogic/pi-mono/pull/427) by [@Whamp](https://github.com/Whamp))
|
|
1254
|
+
|
|
1255
|
+
## [0.32.3] - 2026-01-03
|
|
1256
|
+
|
|
1257
|
+
### Fixed
|
|
1258
|
+
|
|
1259
|
+
- `--list-models` no longer shows Google Vertex AI models without explicit authentication configured
|
|
1260
|
+
- JPEG/GIF/WebP images not displaying in terminals using Kitty graphics protocol (Kitty, Ghostty, WezTerm). The protocol requires PNG format, so non-PNG images are now converted before display.
|
|
1261
|
+
- Version check URL typo preventing update notifications from working ([#423](https://github.com/badlogic/pi-mono/pull/423) by [@skuridin](https://github.com/skuridin))
|
|
1262
|
+
- Large images exceeding Anthropic's 5MB limit now retry with progressive quality/size reduction ([#424](https://github.com/badlogic/pi-mono/pull/424) by [@mitsuhiko](https://github.com/mitsuhiko))
|
|
1263
|
+
|
|
1264
|
+
## [0.32.2] - 2026-01-03
|
|
1265
|
+
|
|
1266
|
+
### Added
|
|
1267
|
+
|
|
1268
|
+
- `$ARGUMENTS` syntax for custom slash commands as alternative to `$@` for all arguments joined. Aligns with patterns used by Claude, Codex, and OpenCode. Both syntaxes remain fully supported. ([#418](https://github.com/badlogic/pi-mono/pull/418) by [@skuridin](https://github.com/skuridin))
|
|
1269
|
+
|
|
1270
|
+
### Changed
|
|
1271
|
+
|
|
1272
|
+
- **Slash commands and hook commands now work during streaming**: Previously, using a slash command or hook command while the agent was streaming would crash with "Agent is already processing". Now:
|
|
1273
|
+
- Hook commands execute immediately (they manage their own LLM interaction via `pi.sendMessage()`)
|
|
1274
|
+
- File-based slash commands are expanded and queued via steer/followUp
|
|
1275
|
+
- `steer()` and `followUp()` now expand file-based slash commands and error on hook commands (hook commands cannot be queued)
|
|
1276
|
+
- `prompt()` accepts new `streamingBehavior` option (`"steer"` or `"followUp"`) to specify queueing behavior during streaming
|
|
1277
|
+
- RPC `prompt` command now accepts optional `streamingBehavior` field
|
|
1278
|
+
([#420](https://github.com/badlogic/pi-mono/issues/420))
|
|
1279
|
+
|
|
1280
|
+
### Fixed
|
|
1281
|
+
|
|
1282
|
+
- Slash command argument substitution now processes positional arguments (`$1`, `$2`, etc.) before all-arguments (`$@`, `$ARGUMENTS`) to prevent recursive substitution when argument values contain dollar-digit patterns like `$100`. ([#418](https://github.com/badlogic/pi-mono/pull/418) by [@skuridin](https://github.com/skuridin))
|
|
1283
|
+
|
|
1284
|
+
## [0.32.1] - 2026-01-03
|
|
1285
|
+
|
|
1286
|
+
### Added
|
|
1287
|
+
|
|
1288
|
+
- Shell commands without context contribution: use `!!command` to execute a bash command that is shown in the TUI and saved to session history but excluded from LLM context. Useful for running commands you don't want the AI to see. ([#414](https://github.com/badlogic/pi-mono/issues/414))
|
|
1289
|
+
|
|
1290
|
+
### Fixed
|
|
1291
|
+
|
|
1292
|
+
- Edit tool diff not displaying in TUI due to race condition between async preview computation and tool execution
|
|
1293
|
+
|
|
1294
|
+
## [0.32.0] - 2026-01-03
|
|
1295
|
+
|
|
1296
|
+
### Breaking Changes
|
|
1297
|
+
|
|
1298
|
+
- **Queue API replaced with steer/followUp**: The `queueMessage()` method has been split into two methods with different delivery semantics ([#403](https://github.com/badlogic/pi-mono/issues/403)):
|
|
1299
|
+
- `steer(text)`: Interrupts the agent mid-run (Enter while streaming). Delivered after current tool execution.
|
|
1300
|
+
- `followUp(text)`: Waits until the agent finishes (Alt+Enter while streaming). Delivered only when agent stops.
|
|
1301
|
+
- **Settings renamed**: `queueMode` setting renamed to `steeringMode`. Added new `followUpMode` setting. Old settings.json files are migrated automatically.
|
|
1302
|
+
- **AgentSession methods renamed**:
|
|
1303
|
+
- `queueMessage()` → `steer()` and `followUp()`
|
|
1304
|
+
- `queueMode` getter → `steeringMode` and `followUpMode` getters
|
|
1305
|
+
- `setQueueMode()` → `setSteeringMode()` and `setFollowUpMode()`
|
|
1306
|
+
- `queuedMessageCount` → `pendingMessageCount`
|
|
1307
|
+
- `getQueuedMessages()` → `getSteeringMessages()` and `getFollowUpMessages()`
|
|
1308
|
+
- `clearQueue()` now returns `{ steering: string[], followUp: string[] }`
|
|
1309
|
+
- `hasQueuedMessages()` → `hasPendingMessages()`
|
|
1310
|
+
- **Hook API signature changed**: `pi.sendMessage()` second parameter changed from `triggerTurn?: boolean` to `options?: { triggerTurn?, deliverAs? }`. Use `deliverAs: "followUp"` for follow-up delivery. Affects both hooks and internal `sendHookMessage()` method.
|
|
1311
|
+
- **RPC API changes**:
|
|
1312
|
+
- `queue_message` command → `steer` and `follow_up` commands
|
|
1313
|
+
- `set_queue_mode` command → `set_steering_mode` and `set_follow_up_mode` commands
|
|
1314
|
+
- `RpcSessionState.queueMode` → `steeringMode` and `followUpMode`
|
|
1315
|
+
- **Settings UI**: "Queue mode" setting split into "Steering mode" and "Follow-up mode"
|
|
1316
|
+
|
|
1317
|
+
### Added
|
|
1318
|
+
|
|
1319
|
+
- Configurable double-escape action: choose whether double-escape with empty editor opens `/tree` (default) or `/branch`. Configure via `/settings` or `doubleEscapeAction` in settings.json ([#404](https://github.com/badlogic/pi-mono/issues/404))
|
|
1320
|
+
- Vertex AI provider (`google-vertex`): access Gemini models via Google Cloud Vertex AI using Application Default Credentials ([#300](https://github.com/badlogic/pi-mono/pull/300) by [@default-anton](https://github.com/default-anton))
|
|
1321
|
+
- Built-in provider overrides in `models.json`: override just `baseUrl` to route a built-in provider through a proxy while keeping all its models, or define `models` to fully replace the provider ([#406](https://github.com/badlogic/pi-mono/pull/406) by [@yevhen](https://github.com/yevhen))
|
|
1322
|
+
- Automatic image resizing: images larger than 2000x2000 are resized for better model compatibility. Original dimensions are injected into the prompt. Controlled via `/settings` or `images.autoResize` in settings.json. ([#402](https://github.com/badlogic/pi-mono/pull/402) by [@mitsuhiko](https://github.com/mitsuhiko))
|
|
1323
|
+
- Alt+Enter keybind to queue follow-up messages while agent is streaming
|
|
1324
|
+
- `Theme` and `ThemeColor` types now exported for hooks using `ctx.ui.custom()`
|
|
1325
|
+
- Terminal window title now displays "pi - dirname" to identify which project session you're in ([#407](https://github.com/badlogic/pi-mono/pull/407) by [@kaofelix](https://github.com/kaofelix))
|
|
1326
|
+
|
|
1327
|
+
### Changed
|
|
1328
|
+
|
|
1329
|
+
- Editor component now uses word wrapping instead of character-level wrapping for better readability ([#382](https://github.com/badlogic/pi-mono/pull/382) by [@nickseelert](https://github.com/nickseelert))
|
|
1330
|
+
|
|
1331
|
+
### Fixed
|
|
1332
|
+
|
|
1333
|
+
- `/model` selector now opens instantly instead of waiting for OAuth token refresh. Token refresh is deferred until a model is actually used.
|
|
1334
|
+
- Shift+Space, Shift+Backspace, and Shift+Delete now work correctly in Kitty-protocol terminals (Kitty, WezTerm, etc.) instead of being silently ignored ([#411](https://github.com/badlogic/pi-mono/pull/411) by [@nathyong](https://github.com/nathyong))
|
|
1335
|
+
- `AgentSession.prompt()` now throws if called while the agent is already streaming, preventing race conditions. Use `steer()` or `followUp()` to queue messages during streaming.
|
|
1336
|
+
- Ctrl+C now works like Escape in selector components, so mashing Ctrl+C will eventually close the program ([#400](https://github.com/badlogic/pi-mono/pull/400) by [@mitsuhiko](https://github.com/mitsuhiko))
|
|
1337
|
+
|
|
1338
|
+
## [0.31.1] - 2026-01-02
|
|
1339
|
+
|
|
1340
|
+
### Fixed
|
|
1341
|
+
|
|
1342
|
+
- Model selector no longer allows negative index when pressing arrow keys before models finish loading ([#398](https://github.com/badlogic/pi-mono/pull/398) by [@mitsuhiko](https://github.com/mitsuhiko))
|
|
1343
|
+
- Type guard functions (`isBashToolResult`, etc.) now exported at runtime, not just in type declarations ([#397](https://github.com/badlogic/pi-mono/issues/397))
|
|
1344
|
+
|
|
1345
|
+
## [0.31.0] - 2026-01-02
|
|
1346
|
+
|
|
1347
|
+
This release introduces session trees for in-place branching, major API changes to hooks and custom tools, and structured compaction with file tracking.
|
|
1348
|
+
|
|
1349
|
+
### Session Tree
|
|
1350
|
+
|
|
1351
|
+
Sessions now use a tree structure with `id`/`parentId` fields. This enables in-place branching: navigate to any previous point with `/tree`, continue from there, and switch between branches while preserving all history in a single file.
|
|
1352
|
+
|
|
1353
|
+
**Existing sessions are automatically migrated** (v1 → v2) on first load. No manual action required.
|
|
1354
|
+
|
|
1355
|
+
New entry types: `BranchSummaryEntry` (context from abandoned branches), `CustomEntry` (hook state), `CustomMessageEntry` (hook-injected messages), `LabelEntry` (bookmarks).
|
|
1356
|
+
|
|
1357
|
+
See [docs/session.md](docs/session.md) for the file format and `SessionManager` API.
|
|
1358
|
+
|
|
1359
|
+
### Hooks Migration
|
|
1360
|
+
|
|
1361
|
+
The hooks API has been restructured with more granular events and better session access.
|
|
1362
|
+
|
|
1363
|
+
**Type renames:**
|
|
1364
|
+
|
|
1365
|
+
- `HookEventContext` → `HookContext`
|
|
1366
|
+
- `HookCommandContext` is now a new interface extending `HookContext` with session control methods
|
|
1367
|
+
|
|
1368
|
+
**Event changes:**
|
|
1369
|
+
|
|
1370
|
+
- The monolithic `session` event is now split into granular events: `session_start`, `session_before_switch`, `session_switch`, `session_before_branch`, `session_branch`, `session_before_compact`, `session_compact`, `session_shutdown`
|
|
1371
|
+
- `session_before_switch` and `session_switch` events now include `reason: "new" | "resume"` to distinguish between `/new` and `/resume`
|
|
1372
|
+
- New `session_before_tree` and `session_tree` events for `/tree` navigation (hook can provide custom branch summary)
|
|
1373
|
+
- New `before_agent_start` event: inject messages before the agent loop starts
|
|
1374
|
+
- New `context` event: modify messages non-destructively before each LLM call
|
|
1375
|
+
- Session entries are no longer passed in events. Use `ctx.sessionManager.getEntries()` or `ctx.sessionManager.getBranch()` instead
|
|
1376
|
+
|
|
1377
|
+
**API changes:**
|
|
1378
|
+
|
|
1379
|
+
- `pi.send(text, attachments?)` → `pi.sendMessage(message, triggerTurn?)` (creates `CustomMessageEntry`)
|
|
1380
|
+
- New `pi.appendEntry(customType, data?)` for hook state persistence (not in LLM context)
|
|
1381
|
+
- New `pi.registerCommand(name, options)` for custom slash commands (handler receives `HookCommandContext`)
|
|
1382
|
+
- New `pi.registerMessageRenderer(customType, renderer)` for custom TUI rendering
|
|
1383
|
+
- New `ctx.isIdle()`, `ctx.abort()`, `ctx.hasQueuedMessages()` for agent state (available in all events)
|
|
1384
|
+
- New `ctx.ui.editor(title, prefill?)` for multi-line text editing with Ctrl+G external editor support
|
|
1385
|
+
- New `ctx.ui.custom(component)` for full TUI component rendering with keyboard focus
|
|
1386
|
+
- New `ctx.ui.setStatus(key, text)` for persistent status text in footer (multiple hooks can set their own)
|
|
1387
|
+
- New `ctx.ui.theme` getter for styling text with theme colors
|
|
1388
|
+
- `ctx.exec()` moved to `pi.exec()`
|
|
1389
|
+
- `ctx.sessionFile` → `ctx.sessionManager.getSessionFile()`
|
|
1390
|
+
- New `ctx.modelRegistry` and `ctx.model` for API key resolution
|
|
1391
|
+
|
|
1392
|
+
**HookCommandContext (slash commands only):**
|
|
1393
|
+
|
|
1394
|
+
- `ctx.waitForIdle()` - wait for agent to finish streaming
|
|
1395
|
+
- `ctx.newSession(options?)` - create new sessions with optional setup callback
|
|
1396
|
+
- `ctx.fork(entryId) - fork from a specific entry, creating a new session file
|
|
1397
|
+
- `ctx.navigateTree(targetId, options?)` - navigate the session tree
|
|
1398
|
+
|
|
1399
|
+
These methods are only on `HookCommandContext` (not `HookContext`) because they can deadlock if called from event handlers that run inside the agent loop.
|
|
1400
|
+
|
|
1401
|
+
**Removed:**
|
|
1402
|
+
|
|
1403
|
+
- `hookTimeout` setting (hooks no longer have timeouts; use Ctrl+C to abort)
|
|
1404
|
+
- `resolveApiKey` parameter (use `ctx.modelRegistry.getApiKey(model)`)
|
|
1405
|
+
|
|
1406
|
+
See [docs/hooks.md](docs/hooks.md) and [examples/hooks/](examples/hooks/) for the current API.
|
|
1407
|
+
|
|
1408
|
+
### Custom Tools Migration
|
|
1409
|
+
|
|
1410
|
+
The custom tools API has been restructured to mirror the hooks pattern with a context object.
|
|
1411
|
+
|
|
1412
|
+
**Type renames:**
|
|
1413
|
+
|
|
1414
|
+
- `CustomAgentTool` → `CustomTool`
|
|
1415
|
+
- `ToolAPI` → `CustomToolAPI`
|
|
1416
|
+
- `ToolContext` → `CustomToolContext`
|
|
1417
|
+
- `ToolSessionEvent` → `CustomToolSessionEvent`
|
|
1418
|
+
|
|
1419
|
+
**Execute signature changed:**
|
|
1420
|
+
|
|
1421
|
+
```typescript
|
|
1422
|
+
// Before (v0.30.2)
|
|
1423
|
+
execute(toolCallId, params, signal, onUpdate)
|
|
1424
|
+
|
|
1425
|
+
// After
|
|
1426
|
+
execute(toolCallId, params, onUpdate, ctx, signal?)
|
|
1427
|
+
```
|
|
1428
|
+
|
|
1429
|
+
The new `ctx: CustomToolContext` provides `sessionManager`, `modelRegistry`, `model`, and agent state methods:
|
|
1430
|
+
|
|
1431
|
+
- `ctx.isIdle()` - check if agent is streaming
|
|
1432
|
+
- `ctx.hasQueuedMessages()` - check if user has queued messages (skip interactive prompts)
|
|
1433
|
+
- `ctx.abort()` - abort current operation (fire-and-forget)
|
|
1434
|
+
|
|
1435
|
+
**Session event changes:**
|
|
1436
|
+
|
|
1437
|
+
- `CustomToolSessionEvent` now only has `reason` and `previousSessionFile`
|
|
1438
|
+
- Session entries are no longer in the event. Use `ctx.sessionManager.getBranch()` or `ctx.sessionManager.getEntries()` to reconstruct state
|
|
1439
|
+
- Reasons: `"start" | "switch" | "branch" | "tree" | "shutdown"` (no separate `"new"` reason; `/new` triggers `"switch"`)
|
|
1440
|
+
- `dispose()` method removed. Use `onSession` with `reason: "shutdown"` for cleanup
|
|
1441
|
+
|
|
1442
|
+
See [docs/custom-tools.md](docs/custom-tools.md) and [examples/custom-tools/](examples/custom-tools/) for the current API.
|
|
1443
|
+
|
|
1444
|
+
### SDK Migration
|
|
1445
|
+
|
|
1446
|
+
**Type changes:**
|
|
1447
|
+
|
|
1448
|
+
- `CustomAgentTool` → `CustomTool`
|
|
1449
|
+
- `AppMessage` → `AgentMessage`
|
|
1450
|
+
- `sessionFile` returns `string | undefined` (was `string | null`)
|
|
1451
|
+
- `model` returns `Model | undefined` (was `Model | null`)
|
|
1452
|
+
- `Attachment` type removed. Use `ImageContent` from `@mariozechner/pi-ai` instead. Add images directly to message content arrays.
|
|
1453
|
+
|
|
1454
|
+
**AgentSession API:**
|
|
1455
|
+
|
|
1456
|
+
- `branch(entryIndex: number)` → `branch(entryId: string)`
|
|
1457
|
+
- `getUserMessagesForBranching()` returns `{ entryId, text }` instead of `{ entryIndex, text }`
|
|
1458
|
+
- `reset()` → `newSession(options?)` where options has optional `parentSession` for lineage tracking
|
|
1459
|
+
- `newSession()` and `switchSession()` now return `Promise<boolean>` (false if cancelled by hook)
|
|
1460
|
+
- New `navigateTree(targetId, options?)` for in-place tree navigation
|
|
1461
|
+
|
|
1462
|
+
**Hook integration:**
|
|
1463
|
+
|
|
1464
|
+
- New `sendHookMessage(message, triggerTurn?)` for hook message injection
|
|
1465
|
+
|
|
1466
|
+
**SessionManager API:**
|
|
1467
|
+
|
|
1468
|
+
- Method renames: `saveXXX()` → `appendXXX()` (e.g., `appendMessage`, `appendCompaction`)
|
|
1469
|
+
- `branchInPlace()` → `branch()`
|
|
1470
|
+
- `reset()` → `newSession(options?)` with optional `parentSession` for lineage tracking
|
|
1471
|
+
- `createBranchedSessionFromEntries(entries, index)` → `createBranchedSession(leafId)`
|
|
1472
|
+
- `SessionHeader.branchedFrom` → `SessionHeader.parentSession`
|
|
1473
|
+
- `saveCompaction(entry)` → `appendCompaction(summary, firstKeptEntryId, tokensBefore, details?)`
|
|
1474
|
+
- `getEntries()` now excludes the session header (use `getHeader()` separately)
|
|
1475
|
+
- `getSessionFile()` returns `string | undefined` (undefined for in-memory sessions)
|
|
1476
|
+
- New tree methods: `getTree()`, `getBranch()`, `getLeafId()`, `getLeafEntry()`, `getEntry()`, `getChildren()`, `getLabel()`
|
|
1477
|
+
- New append methods: `appendCustomEntry()`, `appendCustomMessageEntry()`, `appendLabelChange()`
|
|
1478
|
+
- New branch methods: `branch(entryId)`, `branchWithSummary()`
|
|
1479
|
+
|
|
1480
|
+
**ModelRegistry (new):**
|
|
1481
|
+
|
|
1482
|
+
`ModelRegistry` is a new class that manages model discovery and API key resolution. It combines built-in models with custom models from `models.json` and resolves API keys via `AuthStorage`.
|
|
1483
|
+
|
|
1484
|
+
```typescript
|
|
1485
|
+
import {
|
|
1486
|
+
discoverAuthStorage,
|
|
1487
|
+
discoverModels,
|
|
1488
|
+
} from "@mariozechner/pi-coding-agent";
|
|
1489
|
+
|
|
1490
|
+
const authStorage = discoverAuthStorage(); // ~/.pi/agent/auth.json
|
|
1491
|
+
const modelRegistry = discoverModels(authStorage); // + ~/.pi/agent/models.json
|
|
1492
|
+
|
|
1493
|
+
// Get all models (built-in + custom)
|
|
1494
|
+
const allModels = modelRegistry.getAll();
|
|
1495
|
+
|
|
1496
|
+
// Get only models with valid API keys
|
|
1497
|
+
const available = await modelRegistry.getAvailable();
|
|
1498
|
+
|
|
1499
|
+
// Find specific model
|
|
1500
|
+
const model = modelRegistry.find("anthropic", "claude-sonnet-4-20250514");
|
|
1501
|
+
|
|
1502
|
+
// Get API key for a model
|
|
1503
|
+
const apiKey = await modelRegistry.getApiKey(model);
|
|
1504
|
+
```
|
|
1505
|
+
|
|
1506
|
+
This replaces the old `resolveApiKey` callback pattern. Hooks and custom tools access it via `ctx.modelRegistry`.
|
|
1507
|
+
|
|
1508
|
+
**Renamed exports:**
|
|
1509
|
+
|
|
1510
|
+
- `messageTransformer` → `convertToLlm`
|
|
1511
|
+
- `SessionContext` alias `LoadedSession` removed
|
|
1512
|
+
|
|
1513
|
+
See [docs/sdk.md](docs/sdk.md) and [examples/sdk/](examples/sdk/) for the current API.
|
|
1514
|
+
|
|
1515
|
+
### RPC Migration
|
|
1516
|
+
|
|
1517
|
+
**Session commands:**
|
|
1518
|
+
|
|
1519
|
+
- `reset` command → `new_session` command with optional `parentSession` field
|
|
1520
|
+
|
|
1521
|
+
**Branching commands:**
|
|
1522
|
+
|
|
1523
|
+
- `branch` command: `entryIndex` → `entryId`
|
|
1524
|
+
- `get_branch_messages` response: `entryIndex` → `entryId`
|
|
1525
|
+
|
|
1526
|
+
**Type changes:**
|
|
1527
|
+
|
|
1528
|
+
- Messages are now `AgentMessage` (was `AppMessage`)
|
|
1529
|
+
- `prompt` command: `attachments` field replaced with `images` field using `ImageContent` format
|
|
1530
|
+
|
|
1531
|
+
**Compaction events:**
|
|
1532
|
+
|
|
1533
|
+
- `auto_compaction_start` now includes `reason` field (`"threshold"` or `"overflow"`)
|
|
1534
|
+
- `auto_compaction_end` now includes `willRetry` field
|
|
1535
|
+
- `compact` response includes full `CompactionResult` (`summary`, `firstKeptEntryId`, `tokensBefore`, `details`)
|
|
1536
|
+
|
|
1537
|
+
See [docs/rpc.md](docs/rpc.md) for the current protocol.
|
|
1538
|
+
|
|
1539
|
+
### Structured Compaction
|
|
1540
|
+
|
|
1541
|
+
Compaction and branch summarization now use a structured output format:
|
|
1542
|
+
|
|
1543
|
+
- Clear sections: Goal, Progress, Key Information, File Operations
|
|
1544
|
+
- File tracking: `readFiles` and `modifiedFiles` arrays in `details`, accumulated across compactions
|
|
1545
|
+
- Conversations are serialized to text before summarization to prevent the model from "continuing" them
|
|
1546
|
+
|
|
1547
|
+
The `before_compact` and `before_tree` hook events allow custom compaction implementations. See [docs/compaction.md](docs/compaction.md).
|
|
1548
|
+
|
|
1549
|
+
### Interactive Mode
|
|
1550
|
+
|
|
1551
|
+
**`/tree` command:**
|
|
1552
|
+
|
|
1553
|
+
- Navigate the full session tree in-place
|
|
1554
|
+
- Search by typing, page with ←/→
|
|
1555
|
+
- Filter modes (Ctrl+O): default → no-tools → user-only → labeled-only → all
|
|
1556
|
+
- Press `l` to label entries as bookmarks
|
|
1557
|
+
- Selecting a branch switches context and optionally injects a summary of the abandoned branch
|
|
1558
|
+
|
|
1559
|
+
**Entry labels:**
|
|
1560
|
+
|
|
1561
|
+
- Bookmark any entry via `/tree` → select → `l`
|
|
1562
|
+
- Labels appear in tree view and persist as `LabelEntry`
|
|
1563
|
+
|
|
1564
|
+
**Theme changes (breaking for custom themes):**
|
|
1565
|
+
|
|
1566
|
+
Custom themes must add these new color tokens or they will fail to load:
|
|
1567
|
+
|
|
1568
|
+
- `selectedBg`: background for selected/highlighted items in tree selector and other components
|
|
1569
|
+
- `customMessageBg`: background for hook-injected messages (`CustomMessageEntry`)
|
|
1570
|
+
- `customMessageText`: text color for hook messages
|
|
1571
|
+
- `customMessageLabel`: label color for hook messages (the `[customType]` prefix)
|
|
1572
|
+
|
|
1573
|
+
Total color count increased from 46 to 50. See [docs/themes.md](docs/themes.md) for the full color list and copy values from the built-in dark/light themes.
|
|
1574
|
+
|
|
1575
|
+
**Settings:**
|
|
1576
|
+
|
|
1577
|
+
- `enabledModels`: allowlist models in `settings.json` (same format as `--models` CLI)
|
|
1578
|
+
|
|
1579
|
+
### Added
|
|
1580
|
+
|
|
1581
|
+
- `ctx.ui.setStatus(key, text)` for hooks to display persistent status text in the footer ([#385](https://github.com/badlogic/pi-mono/pull/385) by [@prateekmedia](https://github.com/prateekmedia))
|
|
1582
|
+
- `ctx.ui.theme` getter for styling status text and other output with theme colors
|
|
1583
|
+
- `/share` command to upload session as a secret GitHub gist and get a shareable URL via shittycodingagent.ai ([#380](https://github.com/badlogic/pi-mono/issues/380))
|
|
1584
|
+
- HTML export now includes a tree visualization sidebar for navigating session branches ([#375](https://github.com/badlogic/pi-mono/issues/375))
|
|
1585
|
+
- HTML export supports keyboard shortcuts: Ctrl+T to toggle thinking blocks, Ctrl+O to toggle tool outputs
|
|
1586
|
+
- HTML export supports theme-configurable background colors via optional `export` section in theme JSON ([#387](https://github.com/badlogic/pi-mono/pull/387) by [@mitsuhiko](https://github.com/mitsuhiko))
|
|
1587
|
+
- HTML export syntax highlighting now uses theme colors and matches TUI rendering
|
|
1588
|
+
- **Snake game example hook**: Demonstrates `ui.custom()`, `registerCommand()`, and session persistence. See [examples/hooks/snake.ts](examples/hooks/snake.ts).
|
|
1589
|
+
- **`thinkingText` theme token**: Configurable color for thinking block text. ([#366](https://github.com/badlogic/pi-mono/pull/366) by [@paulbettner](https://github.com/paulbettner))
|
|
1590
|
+
|
|
1591
|
+
### Changed
|
|
1592
|
+
|
|
1593
|
+
- **Entry IDs**: Session entries now use short 8-character hex IDs instead of full UUIDs
|
|
1594
|
+
- **API key priority**: `ANTHROPIC_OAUTH_TOKEN` now takes precedence over `ANTHROPIC_API_KEY`
|
|
1595
|
+
- HTML export template split into separate files (template.html, template.css, template.js) for easier maintenance
|
|
1596
|
+
|
|
1597
|
+
### Fixed
|
|
1598
|
+
|
|
1599
|
+
- HTML export now properly sanitizes user messages containing HTML tags like `<style>` that could break DOM rendering
|
|
1600
|
+
- Crash when displaying bash output containing Unicode format characters like U+0600-U+0604 ([#372](https://github.com/badlogic/pi-mono/pull/372) by [@HACKE-RC](https://github.com/HACKE-RC))
|
|
1601
|
+
- **Footer shows full session stats**: Token usage and cost now include all messages, not just those after compaction. ([#322](https://github.com/badlogic/pi-mono/issues/322))
|
|
1602
|
+
- **Status messages spam chat log**: Rapidly changing settings (e.g., thinking level via Shift+Tab) would add multiple status lines. Sequential status updates now coalesce into a single line. ([#365](https://github.com/badlogic/pi-mono/pull/365) by [@paulbettner](https://github.com/paulbettner))
|
|
1603
|
+
- **Toggling thinking blocks during streaming shows nothing**: Pressing Ctrl+T while streaming would hide the current message until streaming completed.
|
|
1604
|
+
- **Resuming session resets thinking level to off**: Initial model and thinking level were not saved to session file, causing `--resume`/`--continue` to default to `off`. ([#342](https://github.com/badlogic/pi-mono/issues/342) by [@aliou](https://github.com/aliou))
|
|
1605
|
+
- **Hook `tool_result` event ignores errors from custom tools**: The `tool_result` hook event was never emitted when tools threw errors, and always had `isError: false` for successful executions. Now emits the event with correct `isError` value in both success and error cases. ([#374](https://github.com/badlogic/pi-mono/issues/374) by [@nicobailon](https://github.com/nicobailon))
|
|
1606
|
+
- **Edit tool fails on Windows due to CRLF line endings**: Files with CRLF line endings now match correctly when LLMs send LF-only text. Line endings are normalized before matching and restored to original style on write. ([#355](https://github.com/badlogic/pi-mono/issues/355) by [@Pratham-Dubey](https://github.com/Pratham-Dubey))
|
|
1607
|
+
- **Edit tool fails on files with UTF-8 BOM**: Files with UTF-8 BOM marker could cause "text not found" errors since the LLM doesn't include the invisible BOM character. BOM is now stripped before matching and restored on write. ([#394](https://github.com/badlogic/pi-mono/pull/394) by [@prathamdby](https://github.com/prathamdby))
|
|
1608
|
+
- **Use bash instead of sh on Unix**: Fixed shell commands using `/bin/sh` instead of `/bin/bash` on Unix systems. ([#328](https://github.com/badlogic/pi-mono/pull/328) by [@dnouri](https://github.com/dnouri))
|
|
1609
|
+
- **OAuth login URL clickable**: Made OAuth login URLs clickable in terminal. ([#349](https://github.com/badlogic/pi-mono/pull/349) by [@Cursivez](https://github.com/Cursivez))
|
|
1610
|
+
- **Improved error messages**: Better error messages when `apiKey` or `model` are missing. ([#346](https://github.com/badlogic/pi-mono/pull/346) by [@ronyrus](https://github.com/ronyrus))
|
|
1611
|
+
- **Session file validation**: `findMostRecentSession()` now validates session headers before returning, preventing non-session JSONL files from being loaded
|
|
1612
|
+
- **Compaction error handling**: `generateSummary()` and `generateTurnPrefixSummary()` now throw on LLM errors instead of returning empty strings
|
|
1613
|
+
- **Compaction with branched sessions**: Fixed compaction incorrectly including entries from abandoned branches, causing token overflow errors. Compaction now uses `sessionManager.getPath()` to work only on the current branch path, eliminating 80+ lines of duplicate entry collection logic between `prepareCompaction()` and `compact()`
|
|
1614
|
+
- **enabledModels glob patterns**: `--models` and `enabledModels` now support glob patterns like `github-copilot/*` or `*sonnet*`. Previously, patterns were only matched literally or via substring search. ([#337](https://github.com/badlogic/pi-mono/issues/337))
|
|
1615
|
+
|
|
1616
|
+
## [0.30.2] - 2025-12-26
|
|
1617
|
+
|
|
1618
|
+
### Changed
|
|
1619
|
+
|
|
1620
|
+
- **Consolidated migrations**: Moved auth migration from `AuthStorage.migrateLegacy()` to new `migrations.ts` module.
|
|
1621
|
+
|
|
1622
|
+
## [0.30.1] - 2025-12-26
|
|
1623
|
+
|
|
1624
|
+
### Fixed
|
|
1625
|
+
|
|
1626
|
+
- **Sessions saved to wrong directory**: In v0.30.0, sessions were being saved to `~/.pi/agent/` instead of `~/.pi/agent/sessions/<encoded-cwd>/`, breaking `--resume` and `/resume`. Misplaced sessions are automatically migrated on startup. ([#320](https://github.com/badlogic/pi-mono/issues/320) by [@aliou](https://github.com/aliou))
|
|
1627
|
+
- **Custom system prompts missing context**: When using a custom system prompt string, project context files (AGENTS.md), skills, date/time, and working directory were not appended. ([#321](https://github.com/badlogic/pi-mono/issues/321))
|
|
1628
|
+
|
|
1629
|
+
## [0.30.0] - 2025-12-25
|
|
1630
|
+
|
|
1631
|
+
### Breaking Changes
|
|
1632
|
+
|
|
1633
|
+
- **SessionManager API**: The second parameter of `create()`, `continueRecent()`, and `list()` changed from `agentDir` to `sessionDir`. When provided, it specifies the session directory directly (no cwd encoding). When omitted, uses default (`~/.pi/agent/sessions/<encoded-cwd>/`). `open()` no longer takes `agentDir`. ([#313](https://github.com/badlogic/pi-mono/pull/313))
|
|
1634
|
+
|
|
1635
|
+
### Added
|
|
1636
|
+
|
|
1637
|
+
- **`--session-dir` flag**: Use a custom directory for sessions instead of the default `~/.pi/agent/sessions/<encoded-cwd>/`. Works with `-c` (continue) and `-r` (resume) flags. ([#313](https://github.com/badlogic/pi-mono/pull/313) by [@scutifer](https://github.com/scutifer))
|
|
1638
|
+
- **Reverse model cycling and model selector**: Shift+Ctrl+P cycles models backward, Ctrl+L opens model selector (retaining text in editor). ([#315](https://github.com/badlogic/pi-mono/pull/315) by [@mitsuhiko](https://github.com/mitsuhiko))
|
|
1639
|
+
|
|
1640
|
+
## [0.29.1] - 2025-12-25
|
|
1641
|
+
|
|
1642
|
+
### Added
|
|
1643
|
+
|
|
1644
|
+
- **Automatic custom system prompt loading**: Pi now auto-loads `SYSTEM.md` files to replace the default system prompt. Project-local `.pi/SYSTEM.md` takes precedence over global `~/.pi/agent/SYSTEM.md`. CLI `--system-prompt` flag overrides both. ([#309](https://github.com/badlogic/pi-mono/issues/309))
|
|
1645
|
+
- **Unified `/settings` command**: New settings menu consolidating thinking level, theme, queue mode, auto-compact, show images, hide thinking, and collapse changelog. Replaces individual `/thinking`, `/queue`, `/theme`, `/autocompact`, and `/show-images` commands. ([#310](https://github.com/badlogic/pi-mono/issues/310))
|
|
1646
|
+
|
|
1647
|
+
### Fixed
|
|
1648
|
+
|
|
1649
|
+
- **Custom tools/hooks with typebox subpath imports**: Fixed jiti alias for `@sinclair/typebox` to point to package root instead of entry file, allowing imports like `@sinclair/typebox/compiler` to resolve correctly. ([#311](https://github.com/badlogic/pi-mono/issues/311) by [@kim0](https://github.com/kim0))
|
|
1650
|
+
|
|
1651
|
+
## [0.29.0] - 2025-12-25
|
|
1652
|
+
|
|
1653
|
+
### Breaking Changes
|
|
1654
|
+
|
|
1655
|
+
- **Renamed `/clear` to `/new`**: The command to start a fresh session is now `/new`. Hook event reasons `before_clear`/`clear` are now `before_new`/`new`. Merry Christmas [@mitsuhiko](https://github.com/mitsuhiko)! ([#305](https://github.com/badlogic/pi-mono/pull/305))
|
|
1656
|
+
|
|
1657
|
+
### Added
|
|
1658
|
+
|
|
1659
|
+
- **Auto-space before pasted file paths**: When pasting a file path (starting with `/`, `~`, or `.`) after a word character, a space is automatically prepended. ([#307](https://github.com/badlogic/pi-mono/pull/307) by [@mitsuhiko](https://github.com/mitsuhiko))
|
|
1660
|
+
- **Word navigation in input fields**: Added Ctrl+Left/Right and Alt+Left/Right for word-by-word cursor movement. ([#306](https://github.com/badlogic/pi-mono/pull/306) by [@kim0](https://github.com/kim0))
|
|
1661
|
+
- **Full Unicode input**: Input fields now accept Unicode characters beyond ASCII. ([#306](https://github.com/badlogic/pi-mono/pull/306) by [@kim0](https://github.com/kim0))
|
|
1662
|
+
|
|
1663
|
+
### Fixed
|
|
1664
|
+
|
|
1665
|
+
- **Readline-style Ctrl+W**: Now skips trailing whitespace before deleting the preceding word, matching standard readline behavior. ([#306](https://github.com/badlogic/pi-mono/pull/306) by [@kim0](https://github.com/kim0))
|
|
1666
|
+
|
|
1667
|
+
## [0.28.0] - 2025-12-25
|
|
1668
|
+
|
|
1669
|
+
### Changed
|
|
1670
|
+
|
|
1671
|
+
- **Credential storage refactored**: API keys and OAuth tokens are now stored in `~/.pi/agent/auth.json` instead of `oauth.json` and `settings.json`. Existing credentials are automatically migrated on first run. ([#296](https://github.com/badlogic/pi-mono/issues/296))
|
|
1672
|
+
|
|
1673
|
+
- **SDK API changes** ([#296](https://github.com/badlogic/pi-mono/issues/296)):
|
|
1674
|
+
|
|
1675
|
+
- Added `AuthStorage` class for credential management (API keys and OAuth tokens)
|
|
1676
|
+
- Added `ModelRegistry` class for model discovery and API key resolution
|
|
1677
|
+
- Added `discoverAuthStorage()` and `discoverModels()` discovery functions
|
|
1678
|
+
- `createAgentSession()` now accepts `authStorage` and `modelRegistry` options
|
|
1679
|
+
- Removed `configureOAuthStorage()`, `defaultGetApiKey()`, `findModel()`, `discoverAvailableModels()`
|
|
1680
|
+
- Removed `getApiKey` callback option (use `AuthStorage.setRuntimeApiKey()` for runtime overrides)
|
|
1681
|
+
- Use `getModel()` from `@mariozechner/pi-ai` for built-in models, `modelRegistry.find()` for custom models + built-in models
|
|
1682
|
+
- See updated [SDK documentation](docs/sdk.md) and [README](README.md)
|
|
1683
|
+
|
|
1684
|
+
- **Settings changes**: Removed `apiKeys` from `settings.json`. Use `auth.json` instead. ([#296](https://github.com/badlogic/pi-mono/issues/296))
|
|
1685
|
+
|
|
1686
|
+
### Fixed
|
|
1687
|
+
|
|
1688
|
+
- **Duplicate skill warnings for symlinks**: Skills loaded via symlinks pointing to the same file are now silently deduplicated instead of showing name collision warnings. ([#304](https://github.com/badlogic/pi-mono/pull/304) by [@mitsuhiko](https://github.com/mitsuhiko))
|
|
1689
|
+
|
|
1690
|
+
## [0.27.9] - 2025-12-24
|
|
1691
|
+
|
|
1692
|
+
### Fixed
|
|
1693
|
+
|
|
1694
|
+
- **Model selector and --list-models with settings.json API keys**: Models with API keys configured in settings.json (but not in environment variables) now properly appear in the /model selector and `--list-models` output. ([#295](https://github.com/badlogic/pi-mono/issues/295))
|
|
1695
|
+
|
|
1696
|
+
## [0.27.8] - 2025-12-24
|
|
1697
|
+
|
|
1698
|
+
### Fixed
|
|
1699
|
+
|
|
1700
|
+
- **API key priority**: OAuth tokens now take priority over settings.json API keys. Previously, an API key in settings.json would trump OAuth, causing users logged in with a plan (unlimited tokens) to be billed via PAYG instead.
|
|
1701
|
+
|
|
1702
|
+
## [0.27.7] - 2025-12-24
|
|
1703
|
+
|
|
1704
|
+
### Fixed
|
|
1705
|
+
|
|
1706
|
+
- **Thinking tag leakage**: Fixed Claude mimicking literal `</thinking>` tags in responses. Unsigned thinking blocks (from aborted streams) are now converted to plain text without `<thinking>` tags. The TUI still displays them as thinking blocks. ([#302](https://github.com/badlogic/pi-mono/pull/302) by [@nicobailon](https://github.com/nicobailon))
|
|
1707
|
+
|
|
1708
|
+
## [0.27.6] - 2025-12-24
|
|
1709
|
+
|
|
1710
|
+
### Added
|
|
1711
|
+
|
|
1712
|
+
- **Compaction hook improvements**: The `before_compact` session event now includes:
|
|
1713
|
+
|
|
1714
|
+
- `previousSummary`: Summary from the last compaction (if any), so hooks can preserve accumulated context
|
|
1715
|
+
- `messagesToKeep`: Messages that will be kept after the summary (recent turns), in addition to `messagesToSummarize`
|
|
1716
|
+
- `resolveApiKey`: Function to resolve API keys for any model (checks settings, OAuth, env vars)
|
|
1717
|
+
- Removed `apiKey` string in favor of `resolveApiKey` for more flexibility
|
|
1718
|
+
|
|
1719
|
+
- **SessionManager API cleanup**:
|
|
1720
|
+
- Renamed `loadSessionFromEntries()` to `buildSessionContext()` (builds LLM context from entries, handling compaction)
|
|
1721
|
+
- Renamed `loadEntries()` to `getEntries()` (returns defensive copy of all session entries)
|
|
1722
|
+
- Added `buildSessionContext()` method to SessionManager
|
|
1723
|
+
|
|
1724
|
+
## [0.27.5] - 2025-12-24
|
|
1725
|
+
|
|
1726
|
+
### Added
|
|
1727
|
+
|
|
1728
|
+
- **HTML export syntax highlighting**: Code blocks in markdown and tool outputs (read, write) now have syntax highlighting using highlight.js with theme-aware colors matching the TUI.
|
|
1729
|
+
- **HTML export improvements**: Render markdown server-side using marked (tables, headings, code blocks, etc.), honor user's chosen theme (light/dark), add image rendering for user messages, and style code blocks with TUI-like language markers. ([@scutifer](https://github.com/scutifer))
|
|
1730
|
+
|
|
1731
|
+
### Fixed
|
|
1732
|
+
|
|
1733
|
+
- **Ghostty inline images in tmux**: Fixed terminal detection for Ghostty when running inside tmux by checking `GHOSTTY_RESOURCES_DIR` env var. ([#299](https://github.com/badlogic/pi-mono/pull/299) by [@nicobailon](https://github.com/nicobailon))
|
|
1734
|
+
|
|
1735
|
+
## [0.27.4] - 2025-12-24
|
|
1736
|
+
|
|
1737
|
+
### Fixed
|
|
1738
|
+
|
|
1739
|
+
- **Symlinked skill directories**: Skills in symlinked directories (e.g., `~/.pi/agent/skills/my-skills -> /path/to/skills`) are now correctly discovered and loaded.
|
|
1740
|
+
|
|
1741
|
+
## [0.27.3] - 2025-12-24
|
|
1742
|
+
|
|
1743
|
+
### Added
|
|
1744
|
+
|
|
1745
|
+
- **API keys in settings.json**: Store API keys in `~/.pi/agent/settings.json` under the `apiKeys` field (e.g., `{ "apiKeys": { "anthropic": "sk-..." } }`). Settings keys take priority over environment variables. ([#295](https://github.com/badlogic/pi-mono/issues/295))
|
|
1746
|
+
|
|
1747
|
+
### Fixed
|
|
1748
|
+
|
|
1749
|
+
- **Allow startup without API keys**: Interactive mode no longer throws when no API keys are configured. Users can now start the agent and use `/login` to authenticate. ([#288](https://github.com/badlogic/pi-mono/issues/288))
|
|
1750
|
+
- **`--system-prompt` file path support**: The `--system-prompt` argument now correctly resolves file paths (like `--append-system-prompt` already did). ([#287](https://github.com/badlogic/pi-mono/pull/287) by [@scutifer](https://github.com/scutifer))
|
|
1751
|
+
|
|
1752
|
+
## [0.27.2] - 2025-12-23
|
|
1753
|
+
|
|
1754
|
+
### Added
|
|
1755
|
+
|
|
1756
|
+
- **Skip conversation restore on branch**: Hooks can return `{ skipConversationRestore: true }` from `before_branch` to create the branched session file without restoring conversation messages. Useful for checkpoint hooks that restore files separately. ([#286](https://github.com/badlogic/pi-mono/pull/286) by [@nicobarray](https://github.com/nicobarray))
|
|
1757
|
+
|
|
1758
|
+
## [0.27.1] - 2025-12-22
|
|
1759
|
+
|
|
1760
|
+
### Fixed
|
|
1761
|
+
|
|
1762
|
+
- **Skill discovery performance**: Skip `node_modules` directories when recursively scanning for skills. Fixes ~60ms startup delay when skill directories contain npm dependencies.
|
|
1763
|
+
|
|
1764
|
+
### Added
|
|
1765
|
+
|
|
1766
|
+
- **Startup timing instrumentation**: Set `PI_TIMING=1` to see startup performance breakdown (interactive mode only).
|
|
1767
|
+
|
|
1768
|
+
## [0.27.0] - 2025-12-22
|
|
1769
|
+
|
|
1770
|
+
### Breaking
|
|
1771
|
+
|
|
1772
|
+
- **Session hooks API redesign**: Merged `branch` event into `session` event. `BranchEvent`, `BranchEventResult` types and `pi.on("branch", ...)` removed. Use `pi.on("session", ...)` with `reason: "before_branch" | "branch"` instead. `AgentSession.branch()` returns `{ cancelled }` instead of `{ skipped }`. `AgentSession.reset()` and `switchSession()` now return `boolean` (false if cancelled by hook). RPC commands `reset`, `switch_session`, and `branch` now include `cancelled` in response data. ([#278](https://github.com/badlogic/pi-mono/issues/278))
|
|
1773
|
+
|
|
1774
|
+
### Added
|
|
1775
|
+
|
|
1776
|
+
- **Session lifecycle hooks**: Added `before_*` variants (`before_switch`, `before_clear`, `before_branch`) that fire before actions and can be cancelled with `{ cancel: true }`. Added `shutdown` reason for graceful exit handling. ([#278](https://github.com/badlogic/pi-mono/issues/278))
|
|
1777
|
+
|
|
1778
|
+
### Fixed
|
|
1779
|
+
|
|
1780
|
+
- **File tab completion display**: File paths no longer get cut off early. Folders now show trailing `/` and removed redundant "directory"/"file" labels to maximize horizontal space. ([#280](https://github.com/badlogic/pi-mono/issues/280))
|
|
1781
|
+
|
|
1782
|
+
- **Bash tool visual line truncation**: Fixed bash tool output in collapsed mode to use visual line counting (accounting for line wrapping) instead of logical line counting. Now consistent with bash-execution.ts behavior. Extracted shared `truncateToVisualLines` utility. ([#275](https://github.com/badlogic/pi-mono/issues/275))
|
|
1783
|
+
|
|
1784
|
+
## [0.26.1] - 2025-12-22
|
|
1785
|
+
|
|
1786
|
+
### Fixed
|
|
1787
|
+
|
|
1788
|
+
- **SDK tools respect cwd**: Core tools (bash, read, edit, write, grep, find, ls) now properly use the `cwd` option from `createAgentSession()`. Added tool factory functions (`createBashTool`, `createReadTool`, etc.) for SDK users who specify custom `cwd` with explicit tools. ([#279](https://github.com/badlogic/pi-mono/issues/279))
|
|
1789
|
+
|
|
1790
|
+
## [0.26.0] - 2025-12-22
|
|
1791
|
+
|
|
1792
|
+
### Added
|
|
1793
|
+
|
|
1794
|
+
- **SDK for programmatic usage**: New `createAgentSession()` factory with full control over model, tools, hooks, skills, session persistence, and settings. Philosophy: "omit to discover, provide to override". Includes 12 examples and comprehensive documentation. ([#272](https://github.com/badlogic/pi-mono/issues/272))
|
|
1795
|
+
|
|
1796
|
+
- **Project-specific settings**: Settings now load from both `~/.pi/agent/settings.json` (global) and `<cwd>/.pi/settings.json` (project). Project settings override global with deep merge for nested objects. Project settings are read-only (for version control). ([#276](https://github.com/badlogic/pi-mono/pull/276))
|
|
1797
|
+
|
|
1798
|
+
- **SettingsManager static factories**: `SettingsManager.create(cwd?, agentDir?)` for file-based settings, `SettingsManager.inMemory(settings?)` for testing. Added `applyOverrides()` for programmatic overrides.
|
|
1799
|
+
|
|
1800
|
+
- **SessionManager static factories**: `SessionManager.create()`, `SessionManager.open()`, `SessionManager.continueRecent()`, `SessionManager.inMemory()`, `SessionManager.list()` for flexible session management.
|
|
1801
|
+
|
|
1802
|
+
## [0.25.4] - 2025-12-22
|
|
1803
|
+
|
|
1804
|
+
### Fixed
|
|
1805
|
+
|
|
1806
|
+
- **Syntax highlighting stderr spam**: Fixed cli-highlight logging errors to stderr when markdown contains malformed code fences (e.g., missing newlines around closing backticks). Now validates language identifiers before highlighting and falls back silently to plain text. ([#274](https://github.com/badlogic/pi-mono/issues/274))
|
|
1807
|
+
|
|
1808
|
+
## [0.25.3] - 2025-12-21
|
|
1809
|
+
|
|
1810
|
+
### Added
|
|
1811
|
+
|
|
1812
|
+
- **Gemini 3 preview models**: Added `gemini-3-pro-preview` and `gemini-3-flash-preview` to the google-gemini-cli provider. ([#264](https://github.com/badlogic/pi-mono/pull/264) by [@LukeFost](https://github.com/LukeFost))
|
|
1813
|
+
|
|
1814
|
+
- **External editor support**: Press `Ctrl+G` to edit your message in an external editor. Uses `$VISUAL` or `$EDITOR` environment variable. On successful save, the message is replaced; on cancel, the original is kept. ([#266](https://github.com/badlogic/pi-mono/pull/266) by [@aliou](https://github.com/aliou))
|
|
1815
|
+
|
|
1816
|
+
- **Process suspension**: Press `Ctrl+Z` to suspend pi and return to the shell. Resume with `fg` as usual. ([#267](https://github.com/badlogic/pi-mono/pull/267) by [@aliou](https://github.com/aliou))
|
|
1817
|
+
|
|
1818
|
+
- **Configurable skills directories**: Added granular control over skill sources with `enableCodexUser`, `enableClaudeUser`, `enableClaudeProject`, `enablePiUser`, `enablePiProject` toggles, plus `customDirectories` and `ignoredSkills` settings. ([#269](https://github.com/badlogic/pi-mono/pull/269) by [@nicobailon](https://github.com/nicobailon))
|
|
1819
|
+
|
|
1820
|
+
- **Skills CLI filtering**: Added `--skills <patterns>` flag for filtering skills with glob patterns. Also added `includeSkills` setting and glob pattern support for `ignoredSkills`. ([#268](https://github.com/badlogic/pi-mono/issues/268))
|
|
1821
|
+
|
|
1822
|
+
## [0.25.2] - 2025-12-21
|
|
1823
|
+
|
|
1824
|
+
### Fixed
|
|
1825
|
+
|
|
1826
|
+
- **Image shifting in tool output**: Fixed an issue where images in tool output would shift down (due to accumulating spacers) each time the tool output was expanded or collapsed via Ctrl+O.
|
|
1827
|
+
|
|
1828
|
+
## [0.25.1] - 2025-12-21
|
|
1829
|
+
|
|
1830
|
+
### Fixed
|
|
1831
|
+
|
|
1832
|
+
- **Gemini image reading broken**: Fixed the `read` tool returning images causing flaky/broken responses with Gemini models. Images in tool results are now properly formatted per the Gemini API spec.
|
|
1833
|
+
|
|
1834
|
+
- **Tab completion for absolute paths**: Fixed tab completion producing `//tmp` instead of `/tmp/`. Also fixed symlinks to directories (like `/tmp`) not getting a trailing slash, which prevented continuing to tab through subdirectories.
|
|
1835
|
+
|
|
1836
|
+
## [0.25.0] - 2025-12-20
|
|
1837
|
+
|
|
1838
|
+
### Added
|
|
1839
|
+
|
|
1840
|
+
- **Interruptible tool execution**: Queuing a message while tools are executing now interrupts the current tool batch. Remaining tools are skipped with an error result, and your queued message is processed immediately. Useful for redirecting the agent mid-task. ([#259](https://github.com/badlogic/pi-mono/pull/259) by [@steipete](https://github.com/steipete))
|
|
1841
|
+
|
|
1842
|
+
- **Google Gemini CLI OAuth provider**: Access Gemini 2.0/2.5 models for free via Google Cloud Code Assist. Login with `/login` and select "Google Gemini CLI". Uses your Google account with rate limits.
|
|
1843
|
+
|
|
1844
|
+
- **Google Antigravity OAuth provider**: Access Gemini 3, Claude (sonnet/opus thinking models), and GPT-OSS models for free via Google's Antigravity sandbox. Login with `/login` and select "Antigravity". Uses your Google account with rate limits.
|
|
1845
|
+
|
|
1846
|
+
### Changed
|
|
1847
|
+
|
|
1848
|
+
- **Model selector respects --models scope**: The `/model` command now only shows models specified via `--models` flag when that flag is used, instead of showing all available models. This prevents accidentally selecting models from unintended providers. ([#255](https://github.com/badlogic/pi-mono/issues/255))
|
|
1849
|
+
|
|
1850
|
+
### Fixed
|
|
1851
|
+
|
|
1852
|
+
- **Connection errors not retried**: Added "connection error" to the list of retryable errors so Anthropic connection drops trigger auto-retry instead of silently failing. ([#252](https://github.com/badlogic/pi-mono/issues/252))
|
|
1853
|
+
|
|
1854
|
+
- **Thinking level not clamped on model switch**: Fixed TUI showing xhigh thinking level after switching to a model that doesn't support it. Thinking level is now automatically clamped to model capabilities. ([#253](https://github.com/badlogic/pi-mono/issues/253))
|
|
1855
|
+
|
|
1856
|
+
- **Cross-model thinking handoff**: Fixed error when switching between models with different thinking signature formats (e.g., GPT-OSS to Claude thinking models via Antigravity). Thinking blocks without signatures are now converted to text with `<thinking>` delimiters.
|
|
1857
|
+
|
|
1858
|
+
## [0.24.5] - 2025-12-20
|
|
1859
|
+
|
|
1860
|
+
### Fixed
|
|
1861
|
+
|
|
1862
|
+
- **Input buffering in iTerm2**: Fixed Ctrl+C, Ctrl+D, and other keys requiring multiple presses in iTerm2. The cell size query response parser was incorrectly holding back keyboard input.
|
|
1863
|
+
|
|
1864
|
+
## [0.24.4] - 2025-12-20
|
|
1865
|
+
|
|
1866
|
+
### Fixed
|
|
1867
|
+
|
|
1868
|
+
- **Arrow keys and Enter in selector components**: Fixed arrow keys and Enter not working in model selector, session selector, OAuth selector, and other selector components when Caps Lock or Num Lock is enabled. ([#243](https://github.com/badlogic/pi-mono/issues/243))
|
|
1869
|
+
|
|
1870
|
+
## [0.24.3] - 2025-12-19
|
|
1871
|
+
|
|
1872
|
+
### Fixed
|
|
1873
|
+
|
|
1874
|
+
- **Footer overflow on narrow terminals**: Fixed footer path display exceeding terminal width when resizing to very narrow widths, causing rendering crashes. /arminsayshi
|
|
1875
|
+
|
|
1876
|
+
## [0.24.2] - 2025-12-20
|
|
1877
|
+
|
|
1878
|
+
### Fixed
|
|
1879
|
+
|
|
1880
|
+
- **More Kitty keyboard protocol fixes**: Fixed Backspace, Enter, Home, End, and Delete keys not working with Caps Lock enabled. The initial fix in 0.24.1 missed several key handlers that were still using raw byte detection. Now all key handlers use the helper functions that properly mask out lock key bits. ([#243](https://github.com/badlogic/pi-mono/issues/243))
|
|
1881
|
+
|
|
1882
|
+
## [0.24.1] - 2025-12-19
|
|
1883
|
+
|
|
1884
|
+
### Added
|
|
1885
|
+
|
|
1886
|
+
- **OAuth and model config exports**: Scripts using `AgentSession` directly can now import `getAvailableModels`, `getApiKeyForModel`, `findModel`, `login`, `logout`, and `getOAuthProviders` from `@mariozechner/pi-coding-agent` to reuse OAuth token storage and model resolution. ([#245](https://github.com/badlogic/pi-mono/issues/245))
|
|
1887
|
+
|
|
1888
|
+
- **xhigh thinking level for gpt-5.2 models**: The thinking level selector and shift+tab cycling now show xhigh option for gpt-5.2 and gpt-5.2-codex models (in addition to gpt-5.1-codex-max). ([#236](https://github.com/badlogic/pi-mono/pull/236) by [@theBucky](https://github.com/theBucky))
|
|
1889
|
+
|
|
1890
|
+
### Fixed
|
|
1891
|
+
|
|
1892
|
+
- **Hooks wrap custom tools**: Custom tools are now executed through the hook wrapper, so `tool_call`/`tool_result` hooks can observe, block, and modify custom tool executions (consistent with hook type docs). ([#248](https://github.com/badlogic/pi-mono/pull/248) by [@nicobailon](https://github.com/nicobailon))
|
|
1893
|
+
|
|
1894
|
+
- **Hook onUpdate callback forwarding**: The `onUpdate` callback is now correctly forwarded through the hook wrapper, fixing custom tool progress updates. ([#238](https://github.com/badlogic/pi-mono/pull/238) by [@nicobailon](https://github.com/nicobailon))
|
|
1895
|
+
|
|
1896
|
+
- **Terminal cleanup on Ctrl+C in session selector**: Fixed terminal not being properly restored when pressing Ctrl+C in the session selector. ([#247](https://github.com/badlogic/pi-mono/pull/247) by [@aliou](https://github.com/aliou))
|
|
1897
|
+
|
|
1898
|
+
- **OpenRouter models with colons in IDs**: Fixed parsing of OpenRouter model IDs that contain colons (e.g., `openrouter:meta-llama/llama-4-scout:free`). ([#242](https://github.com/badlogic/pi-mono/pull/242) by [@aliou](https://github.com/aliou))
|
|
1899
|
+
|
|
1900
|
+
- **Global AGENTS.md loaded twice**: Fixed global AGENTS.md being loaded twice when present in both `~/.pi/agent/` and the current directory. ([#239](https://github.com/badlogic/pi-mono/pull/239) by [@aliou](https://github.com/aliou))
|
|
1901
|
+
|
|
1902
|
+
- **Kitty keyboard protocol on Linux**: Fixed keyboard input not working in Ghostty on Linux when Num Lock is enabled. The Kitty protocol includes Caps Lock and Num Lock state in modifier values, which broke key detection. Now correctly masks out lock key bits when matching keyboard shortcuts. ([#243](https://github.com/badlogic/pi-mono/issues/243))
|
|
1903
|
+
|
|
1904
|
+
- **Emoji deletion and cursor movement**: Backspace, Delete, and arrow keys now correctly handle multi-codepoint characters like emojis. Previously, deleting an emoji would leave partial bytes, corrupting the editor state. ([#240](https://github.com/badlogic/pi-mono/issues/240))
|
|
1905
|
+
|
|
1906
|
+
## [0.24.0] - 2025-12-19
|
|
1907
|
+
|
|
1908
|
+
### Added
|
|
1909
|
+
|
|
1910
|
+
- **Subagent orchestration example**: Added comprehensive custom tool example for spawning and orchestrating sub-agents with isolated context windows. Includes scout/planner/reviewer/worker agents and workflow commands for multi-agent pipelines. ([#215](https://github.com/badlogic/pi-mono/pull/215) by [@nicobailon](https://github.com/nicobailon))
|
|
1911
|
+
|
|
1912
|
+
- **`getMarkdownTheme()` export**: Custom tools can now import `getMarkdownTheme()` from `@mariozechner/pi-coding-agent` to use the same markdown styling as the main UI.
|
|
1913
|
+
|
|
1914
|
+
- **`pi.exec()` signal and timeout support**: Custom tools and hooks can now pass `{ signal, timeout }` options to `pi.exec()` for cancellation and timeout handling. The result includes a `killed` flag when the process was terminated.
|
|
1915
|
+
|
|
1916
|
+
- **Kitty keyboard protocol support**: Shift+Enter, Alt+Enter, Shift+Tab, Ctrl+D, and all Ctrl+key combinations now work in Ghostty, Kitty, WezTerm, and other modern terminals. ([#225](https://github.com/badlogic/pi-mono/pull/225) by [@kim0](https://github.com/kim0))
|
|
1917
|
+
|
|
1918
|
+
- **Dynamic API key refresh**: OAuth tokens (GitHub Copilot, Anthropic OAuth) are now refreshed before each LLM call, preventing failures in long-running agent loops where tokens expire mid-session. ([#223](https://github.com/badlogic/pi-mono/pull/223) by [@kim0](https://github.com/kim0))
|
|
1919
|
+
|
|
1920
|
+
- **`/hotkeys` command**: Shows all keyboard shortcuts in a formatted table.
|
|
1921
|
+
|
|
1922
|
+
- **Markdown table borders**: Tables now render with proper top and bottom borders.
|
|
1923
|
+
|
|
1924
|
+
### Changed
|
|
1925
|
+
|
|
1926
|
+
- **Subagent example improvements**: Parallel mode now streams updates from all tasks. Chain mode shows all completed steps during streaming. Expanded view uses proper markdown rendering with syntax highlighting. Usage footer shows turn count.
|
|
1927
|
+
|
|
1928
|
+
- **Skills standard compliance**: Skills now adhere to the [Agent Skills standard](https://agentskills.io/specification). Validates name (must match parent directory, lowercase, max 64 chars), description (required, max 1024 chars), and frontmatter fields. Warns on violations but remains lenient. Prompt format changed to XML structure. Removed `{baseDir}` placeholder in favor of relative paths. ([#231](https://github.com/badlogic/pi-mono/issues/231))
|
|
1929
|
+
|
|
1930
|
+
### Fixed
|
|
1931
|
+
|
|
1932
|
+
- **JSON mode stdout flush**: Fixed race condition where `pi --mode json` could exit before all output was written to stdout, causing consumers to miss final events.
|
|
1933
|
+
|
|
1934
|
+
- **Symlinked tools, hooks, and slash commands**: Discovery now correctly follows symlinks when scanning for custom tools, hooks, and slash commands. ([#219](https://github.com/badlogic/pi-mono/pull/219), [#232](https://github.com/badlogic/pi-mono/pull/232) by [@aliou](https://github.com/aliou))
|
|
1935
|
+
|
|
1936
|
+
### Breaking Changes
|
|
1937
|
+
|
|
1938
|
+
- **Custom tools now require `index.ts` entry point**: Auto-discovered custom tools must be in a subdirectory with an `index.ts` file. The old pattern `~/.pi/agent/tools/mytool.ts` must become `~/.pi/agent/tools/mytool/index.ts`. This allows multi-file tools to import helper modules. Explicit paths via `--tool` or `settings.json` still work with any `.ts` file.
|
|
1939
|
+
|
|
1940
|
+
- **Hook `tool_result` event restructured**: The `ToolResultEvent` now exposes full tool result data instead of just text. ([#233](https://github.com/badlogic/pi-mono/pull/233))
|
|
1941
|
+
- Removed: `result: string` field
|
|
1942
|
+
- Added: `content: (TextContent | ImageContent)[]` - full content array
|
|
1943
|
+
- Added: `details: unknown` - tool-specific details (typed per tool via discriminated union on `toolName`)
|
|
1944
|
+
- `ToolResultEventResult.result` renamed to `ToolResultEventResult.text` (removed), use `content` instead
|
|
1945
|
+
- Hook handlers returning `{ result: "..." }` must change to `{ content: [{ type: "text", text: "..." }] }`
|
|
1946
|
+
- Built-in tool details types exported: `BashToolDetails`, `ReadToolDetails`, `GrepToolDetails`, `FindToolDetails`, `LsToolDetails`, `TruncationResult`
|
|
1947
|
+
- Type guards exported for narrowing: `isBashToolResult`, `isReadToolResult`, `isEditToolResult`, `isWriteToolResult`, `isGrepToolResult`, `isFindToolResult`, `isLsToolResult`
|
|
1948
|
+
|
|
1949
|
+
## [0.23.4] - 2025-12-18
|
|
1950
|
+
|
|
1951
|
+
### Added
|
|
1952
|
+
|
|
1953
|
+
- **Syntax highlighting**: Added syntax highlighting for markdown code blocks, read tool output, and write tool content. Uses cli-highlight with theme-aware color mapping and VS Code-style syntax colors. ([#214](https://github.com/badlogic/pi-mono/pull/214) by [@svkozak](https://github.com/svkozak))
|
|
1954
|
+
|
|
1955
|
+
- **Intra-line diff highlighting**: Edit tool now shows word-level changes with inverse highlighting when a single line is modified. Multi-line changes show all removed lines first, then all added lines.
|
|
1956
|
+
|
|
1957
|
+
### Fixed
|
|
1958
|
+
|
|
1959
|
+
- **Gemini tool result format**: Fixed tool result format for Gemini 3 Flash Preview which strictly requires `{ output: value }` for success and `{ error: value }` for errors. Previous format using `{ result, isError }` was rejected by newer Gemini models. ([#213](https://github.com/badlogic/pi-mono/issues/213), [#220](https://github.com/badlogic/pi-mono/pull/220))
|
|
1960
|
+
|
|
1961
|
+
- **Google baseUrl configuration**: Google provider now respects `baseUrl` configuration for custom endpoints or API proxies. ([#216](https://github.com/badlogic/pi-mono/issues/216), [#221](https://github.com/badlogic/pi-mono/pull/221) by [@theBucky](https://github.com/theBucky))
|
|
1962
|
+
|
|
1963
|
+
- **Google provider FinishReason**: Added handling for new `IMAGE_RECITATION` and `IMAGE_OTHER` finish reasons. Upgraded @google/genai to 1.34.0.
|
|
1964
|
+
|
|
1965
|
+
## [0.23.3] - 2025-12-17
|
|
1966
|
+
|
|
1967
|
+
### Fixed
|
|
1968
|
+
|
|
1969
|
+
- Check for compaction before submitting user prompt, not just after agent turn ends. This catches cases where user aborts mid-response and context is already near the limit.
|
|
1970
|
+
|
|
1971
|
+
### Changed
|
|
1972
|
+
|
|
1973
|
+
- Improved system prompt documentation section with clearer pointers to specific doc files for custom models, themes, skills, hooks, custom tools, and RPC.
|
|
1974
|
+
|
|
1975
|
+
- Cleaned up documentation:
|
|
1976
|
+
|
|
1977
|
+
- `theme.md`: Added missing color tokens (`thinkingXhigh`, `bashMode`)
|
|
1978
|
+
- `skills.md`: Rewrote with better framing and examples
|
|
1979
|
+
- `hooks.md`: Fixed timeout/error handling docs, added import aliases section
|
|
1980
|
+
- `custom-tools.md`: Added intro with use cases and comparison table
|
|
1981
|
+
- `rpc.md`: Added missing `hook_error` event documentation
|
|
1982
|
+
- `README.md`: Complete settings table, condensed philosophy section, standardized OAuth docs
|
|
1983
|
+
|
|
1984
|
+
- Hooks loader now supports same import aliases as custom tools (`@sinclair/typebox`, `@mariozechner/pi-ai`, `@mariozechner/pi-tui`, `@mariozechner/pi-coding-agent`).
|
|
1985
|
+
|
|
1986
|
+
### Breaking Changes
|
|
1987
|
+
|
|
1988
|
+
- **Hooks**: `turn_end` event's `toolResults` type changed from `AppMessage[]` to `ToolResultMessage[]`. If you have hooks that handle `turn_end` events and explicitly type the results, update your type annotations.
|
|
1989
|
+
|
|
1990
|
+
## [0.23.2] - 2025-12-17
|
|
1991
|
+
|
|
1992
|
+
### Fixed
|
|
1993
|
+
|
|
1994
|
+
- Fixed Claude models via GitHub Copilot re-answering all previous prompts in multi-turn conversations. The issue was that assistant message content was sent as an array instead of a string, which Copilot's Claude adapter misinterpreted. Also added missing `Openai-Intent: conversation-edits` header and fixed `X-Initiator` logic to check for any assistant/tool message in history. ([#209](https://github.com/badlogic/pi-mono/issues/209))
|
|
1995
|
+
|
|
1996
|
+
- Detect image MIME type via file magic (read tool and `@file` attachments), not filename extension.
|
|
1997
|
+
|
|
1998
|
+
- Fixed markdown tables overflowing terminal width. Tables now wrap cell contents to fit available width instead of breaking borders mid-row. ([#206](https://github.com/badlogic/pi-mono/pull/206) by [@kim0](https://github.com/kim0))
|
|
1999
|
+
|
|
2000
|
+
## [0.23.1] - 2025-12-17
|
|
2001
|
+
|
|
2002
|
+
### Fixed
|
|
2003
|
+
|
|
2004
|
+
- Fixed TUI performance regression caused by Box component lacking render caching. Built-in tools now use Text directly (like v0.22.5), and Box has proper caching for custom tool rendering.
|
|
2005
|
+
|
|
2006
|
+
- Fixed custom tools failing to load from `~/.pi/agent/tools/` when pi is installed globally. Module imports (`@sinclair/typebox`, `@mariozechner/pi-tui`, `@mariozechner/pi-ai`) are now resolved via aliases.
|
|
2007
|
+
|
|
2008
|
+
## [0.23.0] - 2025-12-17
|
|
2009
|
+
|
|
2010
|
+
### Added
|
|
2011
|
+
|
|
2012
|
+
- **Custom tools**: Extend pi with custom tools written in TypeScript. Tools can provide custom TUI rendering, interact with users via `pi.ui` (select, confirm, input, notify), and maintain state across sessions via `onSession` callback. See [docs/custom-tools.md](docs/custom-tools.md) and [examples/custom-tools/](examples/custom-tools/). ([#190](https://github.com/badlogic/pi-mono/issues/190))
|
|
2013
|
+
|
|
2014
|
+
- **Hook and tool examples**: Added `examples/hooks/` and `examples/custom-tools/` with working examples. Examples are now bundled in npm and binary releases.
|
|
2015
|
+
|
|
2016
|
+
### Breaking Changes
|
|
2017
|
+
|
|
2018
|
+
- **Hooks**: Replaced `session_start` and `session_switch` events with unified `session` event. Use `event.reason` (`"start" | "switch" | "clear"`) to distinguish. Event now includes `entries` array for state reconstruction.
|
|
2019
|
+
|
|
2020
|
+
## [0.22.5] - 2025-12-17
|
|
2021
|
+
|
|
2022
|
+
### Fixed
|
|
2023
|
+
|
|
2024
|
+
- Fixed `--session` flag not saving sessions in print mode (`-p`). The session manager was never receiving events because no subscriber was attached.
|
|
2025
|
+
|
|
2026
|
+
## [0.22.4] - 2025-12-17
|
|
2027
|
+
|
|
2028
|
+
### Added
|
|
2029
|
+
|
|
2030
|
+
- `--list-models [search]` CLI flag to list available models with optional fuzzy search. Shows provider, model ID, context window, max output, thinking support, and image support. Only lists models with configured API keys. ([#203](https://github.com/badlogic/pi-mono/issues/203))
|
|
2031
|
+
|
|
2032
|
+
### Fixed
|
|
2033
|
+
|
|
2034
|
+
- Fixed tool execution showing green (success) background while still running. Now correctly shows gray (pending) background until the tool completes.
|
|
2035
|
+
|
|
2036
|
+
## [0.22.3] - 2025-12-16
|
|
2037
|
+
|
|
2038
|
+
### Added
|
|
2039
|
+
|
|
2040
|
+
- **Streaming bash output**: Bash tool now streams output in real-time during execution. The TUI displays live progress with the last 5 lines visible (expandable with ctrl+o). ([#44](https://github.com/badlogic/pi-mono/issues/44))
|
|
2041
|
+
|
|
2042
|
+
### Changed
|
|
2043
|
+
|
|
2044
|
+
- **Tool output display**: When collapsed, tool output now shows the last N lines instead of the first N lines, making streaming output more useful.
|
|
2045
|
+
|
|
2046
|
+
- Updated `@mariozechner/pi-ai` with X-Initiator header support for GitHub Copilot, ensuring agent calls are not deducted from quota. ([#200](https://github.com/badlogic/pi-mono/pull/200) by [@kim0](https://github.com/kim0))
|
|
2047
|
+
|
|
2048
|
+
### Fixed
|
|
2049
|
+
|
|
2050
|
+
- Fixed editor text being cleared during compaction. Text typed while compaction is running is now preserved. ([#179](https://github.com/badlogic/pi-mono/issues/179))
|
|
2051
|
+
- Improved RGB to 256-color mapping for terminals without truecolor support. Now correctly uses grayscale ramp for neutral colors and preserves semantic tints (green for success, red for error, blue for pending) instead of mapping everything to wrong cube colors.
|
|
2052
|
+
- `/think off` now actually disables thinking for all providers. Previously, providers like Gemini with "dynamic thinking" enabled by default would still use thinking even when turned off. ([#180](https://github.com/badlogic/pi-mono/pull/180) by [@markusylisiurunen](https://github.com/markusylisiurunen))
|
|
2053
|
+
|
|
2054
|
+
## [0.22.2] - 2025-12-15
|
|
2055
|
+
|
|
2056
|
+
### Changed
|
|
2057
|
+
|
|
2058
|
+
- Updated `@mariozechner/pi-ai` with interleaved thinking enabled by default for Anthropic Claude 4 models.
|
|
2059
|
+
|
|
2060
|
+
## [0.22.1] - 2025-12-15
|
|
2061
|
+
|
|
2062
|
+
_Dedicated to Peter's shoulder ([@steipete](https://twitter.com/steipete))_
|
|
2063
|
+
|
|
2064
|
+
### Changed
|
|
2065
|
+
|
|
2066
|
+
- Updated `@mariozechner/pi-ai` with interleaved thinking support for Anthropic models.
|
|
2067
|
+
|
|
2068
|
+
## [0.22.0] - 2025-12-15
|
|
2069
|
+
|
|
2070
|
+
### Added
|
|
2071
|
+
|
|
2072
|
+
- **GitHub Copilot support**: Use GitHub Copilot models via OAuth login (`/login` -> "GitHub Copilot"). Supports both github.com and GitHub Enterprise. Models are sourced from models.dev and include Claude, GPT, Gemini, Grok, and more. All models are automatically enabled after login. ([#191](https://github.com/badlogic/pi-mono/pull/191) by [@cau1k](https://github.com/cau1k))
|
|
2073
|
+
|
|
2074
|
+
### Fixed
|
|
2075
|
+
|
|
2076
|
+
- Model selector fuzzy search now matches against provider name (not just model ID) and supports space-separated tokens where all tokens must match
|
|
2077
|
+
|
|
2078
|
+
## [0.21.0] - 2025-12-14
|
|
2079
|
+
|
|
2080
|
+
### Added
|
|
2081
|
+
|
|
2082
|
+
- **Inline image rendering**: Terminals supporting Kitty graphics protocol (Kitty, Ghostty, WezTerm) or iTerm2 inline images now render images inline in tool output. Aspect ratio is preserved by querying terminal cell dimensions on startup. Toggle with `/show-images` command or `terminal.showImages` setting. Falls back to text placeholder on unsupported terminals or when disabled. ([#177](https://github.com/badlogic/pi-mono/pull/177) by [@nicobailon](https://github.com/nicobailon))
|
|
2083
|
+
|
|
2084
|
+
- **Gemini 3 Pro thinking levels**: Thinking level selector now works with Gemini 3 Pro models. Minimal/low map to Google's LOW, medium/high map to Google's HIGH. ([#176](https://github.com/badlogic/pi-mono/pull/176) by [@markusylisiurunen](https://github.com/markusylisiurunen))
|
|
2085
|
+
|
|
2086
|
+
### Fixed
|
|
2087
|
+
|
|
2088
|
+
- Fixed read tool failing on macOS screenshot filenames due to Unicode Narrow No-Break Space (U+202F) in timestamp. Added fallback to try macOS variant paths and consolidated duplicate expandPath functions into shared path-utils.ts. ([#181](https://github.com/badlogic/pi-mono/pull/181) by [@nicobailon](https://github.com/nicobailon))
|
|
2089
|
+
|
|
2090
|
+
- Fixed double blank lines rendering after markdown code blocks ([#173](https://github.com/badlogic/pi-mono/pull/173) by [@markusylisiurunen](https://github.com/markusylisiurunen))
|
|
2091
|
+
|
|
2092
|
+
## [0.20.1] - 2025-12-13
|
|
2093
|
+
|
|
2094
|
+
### Added
|
|
2095
|
+
|
|
2096
|
+
- **Exported skills API**: `loadSkillsFromDir`, `formatSkillsForPrompt`, and related types are now exported for use by other packages (e.g., mom).
|
|
2097
|
+
|
|
2098
|
+
## [0.20.0] - 2025-12-13
|
|
2099
|
+
|
|
2100
|
+
### Breaking Changes
|
|
2101
|
+
|
|
2102
|
+
- **Pi skills now use `SKILL.md` convention**: Pi skills must now be named `SKILL.md` inside a directory, matching Codex CLI format. Previously any `*.md` file was treated as a skill. Migrate by renaming `~/.pi/agent/skills/foo.md` to `~/.pi/agent/skills/foo/SKILL.md`.
|
|
2103
|
+
|
|
2104
|
+
### Added
|
|
2105
|
+
|
|
2106
|
+
- Display loaded skills on startup in interactive mode
|
|
2107
|
+
|
|
2108
|
+
## [0.19.1] - 2025-12-12
|
|
2109
|
+
|
|
2110
|
+
### Fixed
|
|
2111
|
+
|
|
2112
|
+
- Documentation: Added skills system documentation to README (setup, usage, CLI flags, settings)
|
|
2113
|
+
|
|
2114
|
+
## [0.19.0] - 2025-12-12
|
|
2115
|
+
|
|
2116
|
+
### Added
|
|
2117
|
+
|
|
2118
|
+
- **Skills system**: Auto-discover and load instruction files on-demand. Supports Claude Code (`~/.claude/skills/*/SKILL.md`), Codex CLI (`~/.codex/skills/`), and Pi-native formats (`~/.pi/agent/skills/`, `.pi/skills/`). Skills are listed in system prompt with descriptions, agent loads them via read tool when needed. Supports `{baseDir}` placeholder. Disable with `--no-skills` or `skills.enabled: false` in settings. ([#169](https://github.com/badlogic/pi-mono/issues/169))
|
|
2119
|
+
|
|
2120
|
+
- **Version flag**: Added `--version` / `-v` flag to display the current version and exit. ([#170](https://github.com/badlogic/pi-mono/pull/170))
|
|
2121
|
+
|
|
2122
|
+
## [0.18.2] - 2025-12-11
|
|
2123
|
+
|
|
2124
|
+
### Added
|
|
2125
|
+
|
|
2126
|
+
- **Auto-retry on transient errors**: Automatically retries requests when providers return overloaded, rate limit, or server errors (429, 500, 502, 503, 504). Uses exponential backoff (2s, 4s, 8s). Shows retry status in TUI with option to cancel via Escape. Configurable in `settings.json` via `retry.enabled`, `retry.maxRetries`, `retry.baseDelayMs`. RPC mode emits `auto_retry_start` and `auto_retry_end` events. ([#157](https://github.com/badlogic/pi-mono/issues/157))
|
|
2127
|
+
|
|
2128
|
+
- **HTML export line numbers**: Read tool calls in HTML exports now display line number ranges (e.g., `file.txt:10-20`) when offset/limit parameters are used, matching the TUI display format. Line numbers appear in yellow color for better visibility. ([#166](https://github.com/badlogic/pi-mono/issues/166))
|
|
2129
|
+
|
|
2130
|
+
### Fixed
|
|
2131
|
+
|
|
2132
|
+
- **Branch selector now works with single message**: Previously the branch selector would not open when there was only one user message. Now it correctly allows branching from any message, including the first one. This is needed for checkpoint hooks to restore state from before the first message. ([#163](https://github.com/badlogic/pi-mono/issues/163))
|
|
2133
|
+
|
|
2134
|
+
- **In-memory branching for `--no-session` mode**: Branching now works correctly in `--no-session` mode without creating any session files. The conversation is truncated in memory.
|
|
2135
|
+
|
|
2136
|
+
- **Git branch indicator now works in subdirectories**: The footer's git branch detection now walks up the directory hierarchy to find the git root, so it works when running pi from a subdirectory of a repository. ([#156](https://github.com/badlogic/pi-mono/issues/156))
|
|
2137
|
+
|
|
2138
|
+
## [0.18.1] - 2025-12-10
|
|
2139
|
+
|
|
2140
|
+
### Added
|
|
2141
|
+
|
|
2142
|
+
- **Mistral provider**: Added support for Mistral AI models. Set `MISTRAL_API_KEY` environment variable to use.
|
|
2143
|
+
|
|
2144
|
+
### Fixed
|
|
2145
|
+
|
|
2146
|
+
- Fixed print mode (`-p`) not exiting after output when custom themes are present (theme watcher now properly stops in print mode) ([#161](https://github.com/badlogic/pi-mono/issues/161))
|
|
2147
|
+
|
|
2148
|
+
## [0.18.0] - 2025-12-10
|
|
2149
|
+
|
|
2150
|
+
### Added
|
|
2151
|
+
|
|
2152
|
+
- **Hooks system**: TypeScript modules that extend agent behavior by subscribing to lifecycle events. Hooks can intercept tool calls, prompt for confirmation, modify results, and inject messages from external sources. Auto-discovered from `~/.pi/agent/hooks/*.ts` and `.pi/hooks/*.ts`. Thanks to [@nicobailon](https://github.com/nicobailon) for the collaboration on the design and implementation. ([#145](https://github.com/badlogic/pi-mono/issues/145), supersedes [#158](https://github.com/badlogic/pi-mono/pull/158))
|
|
2153
|
+
|
|
2154
|
+
- **`pi.send()` API**: Hooks can inject messages into the agent session from external sources (file watchers, webhooks, CI systems). If streaming, messages are queued; otherwise a new agent loop starts immediately.
|
|
2155
|
+
|
|
2156
|
+
- **`--hook <path>` CLI flag**: Load hook files directly for testing without modifying settings.
|
|
2157
|
+
|
|
2158
|
+
- **Hook events**: `session_start`, `session_switch`, `agent_start`, `agent_end`, `turn_start`, `turn_end`, `tool_call` (can block), `tool_result` (can modify), `branch`.
|
|
2159
|
+
|
|
2160
|
+
- **Hook UI primitives**: `ctx.ui.select()`, `ctx.ui.confirm()`, `ctx.ui.input()`, `ctx.ui.notify()` for interactive prompts from hooks.
|
|
2161
|
+
|
|
2162
|
+
- **Hooks documentation**: Full API reference at `docs/hooks.md`, shipped with npm package.
|
|
2163
|
+
|
|
2164
|
+
## [0.17.0] - 2025-12-09
|
|
2165
|
+
|
|
2166
|
+
### Changed
|
|
2167
|
+
|
|
2168
|
+
- **Simplified compaction flow**: Removed proactive compaction (aborting mid-turn when threshold approached). Compaction now triggers in two cases only: (1) overflow error from LLM, which compacts and auto-retries, or (2) threshold crossed after a successful turn, which compacts without retry.
|
|
2169
|
+
|
|
2170
|
+
- **Compaction retry uses `Agent.continue()`**: Auto-retry after overflow now uses the new `continue()` API instead of re-sending the user message, preserving exact context state.
|
|
2171
|
+
|
|
2172
|
+
- **Merged turn prefix summary**: When a turn is split during compaction, the turn prefix summary is now merged into the main history summary instead of being stored separately.
|
|
2173
|
+
|
|
2174
|
+
### Added
|
|
2175
|
+
|
|
2176
|
+
- **`isCompacting` property on AgentSession**: Check if auto-compaction is currently running.
|
|
2177
|
+
|
|
2178
|
+
- **Session compaction indicator**: When resuming a compacted session, displays "Session compacted N times" status message.
|
|
2179
|
+
|
|
2180
|
+
### Fixed
|
|
2181
|
+
|
|
2182
|
+
- **Block input during compaction**: User input is now blocked while auto-compaction is running to prevent race conditions.
|
|
2183
|
+
|
|
2184
|
+
- **Skip error messages in usage calculation**: Context size estimation now skips both aborted and error messages, as neither have valid usage data.
|
|
2185
|
+
|
|
2186
|
+
## [0.16.0] - 2025-12-09
|
|
2187
|
+
|
|
2188
|
+
### Breaking Changes
|
|
2189
|
+
|
|
2190
|
+
- **New RPC protocol**: The RPC mode (`--mode rpc`) has been completely redesigned with a new JSON protocol. The old protocol is no longer supported. See [`docs/rpc.md`](docs/rpc.md) for the new protocol documentation and [`test/rpc-example.ts`](test/rpc-example.ts) for a working example. Includes `RpcClient` TypeScript class for easy integration. ([#91](https://github.com/badlogic/pi-mono/issues/91))
|
|
2191
|
+
|
|
2192
|
+
### Changed
|
|
2193
|
+
|
|
2194
|
+
- **README restructured**: Reorganized documentation from 30+ flat sections into 10 logical groups. Converted verbose subsections to scannable tables. Consolidated philosophy sections. Reduced size by ~60% while preserving all information.
|
|
2195
|
+
|
|
2196
|
+
## [0.15.0] - 2025-12-09
|
|
2197
|
+
|
|
2198
|
+
### Changed
|
|
2199
|
+
|
|
2200
|
+
- **Major code refactoring**: Restructured codebase for better maintainability and separation of concerns. Moved files into organized directories (`core/`, `modes/`, `utils/`, `cli/`). Extracted `AgentSession` class as central session management abstraction. Split `main.ts` and `tui-renderer.ts` into focused modules. See `DEVELOPMENT.md` for the new code map. ([#153](https://github.com/badlogic/pi-mono/issues/153))
|
|
2201
|
+
|
|
2202
|
+
## [0.14.2] - 2025-12-08
|
|
2203
|
+
|
|
2204
|
+
### Added
|
|
2205
|
+
|
|
2206
|
+
- `/debug` command now includes agent messages as JSONL in the output
|
|
2207
|
+
|
|
2208
|
+
### Fixed
|
|
2209
|
+
|
|
2210
|
+
- Fix crash when bash command outputs binary data (e.g., `curl` downloading a video file)
|
|
2211
|
+
|
|
2212
|
+
## [0.14.1] - 2025-12-08
|
|
2213
|
+
|
|
2214
|
+
### Fixed
|
|
2215
|
+
|
|
2216
|
+
- Fix build errors with tsgo 7.0.0-dev.20251208.1 by properly importing `ReasoningEffort` type
|
|
2217
|
+
|
|
2218
|
+
## [0.14.0] - 2025-12-08
|
|
2219
|
+
|
|
2220
|
+
### Breaking Changes
|
|
2221
|
+
|
|
2222
|
+
- **Custom themes require new color tokens**: Themes must now include `thinkingXhigh` and `bashMode` color tokens. The theme loader provides helpful error messages listing missing tokens. See built-in themes (dark.json, light.json) for reference values.
|
|
2223
|
+
|
|
2224
|
+
### Added
|
|
2225
|
+
|
|
2226
|
+
- **OpenAI compatibility overrides in models.json**: Custom models using `openai-completions` API can now specify a `compat` object to override provider quirks (`supportsStore`, `supportsDeveloperRole`, `supportsReasoningEffort`, `maxTokensField`). Useful for LiteLLM, custom proxies, and other non-standard endpoints. ([#133](https://github.com/badlogic/pi-mono/issues/133), thanks @fink-andreas for the initial idea and PR)
|
|
2227
|
+
|
|
2228
|
+
- **xhigh thinking level**: Added `xhigh` thinking level for OpenAI codex-max models. Cycle through thinking levels with Shift+Tab; `xhigh` appears only when using a codex-max model. ([#143](https://github.com/badlogic/pi-mono/issues/143))
|
|
2229
|
+
|
|
2230
|
+
- **Collapse changelog setting**: Add `"collapseChangelog": true` to `~/.pi/agent/settings.json` to show a condensed "Updated to vX.Y.Z" message instead of the full changelog after updates. Use `/changelog` to view the full changelog. ([#148](https://github.com/badlogic/pi-mono/issues/148))
|
|
2231
|
+
|
|
2232
|
+
- **Bash mode**: Execute shell commands directly from the editor by prefixing with `!` (e.g., `!ls -la`). Output streams in real-time, is added to the LLM context, and persists in session history. Supports multiline commands, cancellation (Escape), truncation for large outputs, and preview/expand toggle (Ctrl+O). Also available in RPC mode via `{"type":"bash","command":"..."}`. ([#112](https://github.com/badlogic/pi-mono/pull/112), original implementation by [@markusylisiurunen](https://github.com/markusylisiurunen))
|
|
2233
|
+
|
|
2234
|
+
## [0.13.2] - 2025-12-07
|
|
2235
|
+
|
|
2236
|
+
### Changed
|
|
2237
|
+
|
|
2238
|
+
- **Tool output truncation**: All tools now enforce consistent truncation limits with actionable notices for the LLM. ([#134](https://github.com/badlogic/pi-mono/issues/134))
|
|
2239
|
+
- **Limits**: 2000 lines OR 50KB (whichever hits first), never partial lines
|
|
2240
|
+
- **read**: Shows `[Showing lines X-Y of Z. Use offset=N to continue]`. If first line exceeds 50KB, suggests bash command
|
|
2241
|
+
- **bash**: Tail truncation with temp file. Shows `[Showing lines X-Y of Z. Full output: /tmp/...]`
|
|
2242
|
+
- **grep**: Pre-truncates match lines to 500 chars. Shows match limit and line truncation notices
|
|
2243
|
+
- **find/ls**: Shows result/entry limit notices
|
|
2244
|
+
- TUI displays truncation warnings in yellow at bottom of tool output (visible even when collapsed)
|
|
2245
|
+
|
|
2246
|
+
## [0.13.1] - 2025-12-06
|
|
2247
|
+
|
|
2248
|
+
### Added
|
|
2249
|
+
|
|
2250
|
+
- **Flexible Windows shell configuration**: The bash tool now supports multiple shell sources beyond Git Bash. Resolution order: (1) custom `shellPath` in settings.json, (2) Git Bash in standard locations, (3) any bash.exe on PATH. This enables Cygwin, MSYS2, and other bash environments. Configure with `~/.pi/agent/settings.json`: `{"shellPath": "C:\\cygwin64\\bin\\bash.exe"}`.
|
|
2251
|
+
|
|
2252
|
+
### Fixed
|
|
2253
|
+
|
|
2254
|
+
- **Windows binary detection**: Fixed Bun compiled binary detection on Windows by checking for URL-encoded `%7EBUN` in addition to `$bunfs` and `~BUN` in `import.meta.url`. This ensures the binary correctly locates supporting files (package.json, themes, etc.) next to the executable.
|
|
2255
|
+
|
|
2256
|
+
## [0.12.15] - 2025-12-06
|
|
2257
|
+
|
|
2258
|
+
### Fixed
|
|
2259
|
+
|
|
2260
|
+
- **Editor crash with emojis/CJK characters**: Fixed crash when pasting or typing text containing wide characters (emojis like ✅, CJK characters) that caused line width to exceed terminal width. The editor now uses grapheme-aware text wrapping with proper visible width calculation.
|
|
2261
|
+
|
|
2262
|
+
## [0.12.14] - 2025-12-06
|
|
2263
|
+
|
|
2264
|
+
### Added
|
|
2265
|
+
|
|
2266
|
+
- **Double-Escape Branch Shortcut**: Press Escape twice with an empty editor to quickly open the `/branch` selector for conversation branching.
|
|
2267
|
+
|
|
2268
|
+
## [0.12.13] - 2025-12-05
|
|
2269
|
+
|
|
2270
|
+
### Changed
|
|
2271
|
+
|
|
2272
|
+
- **Faster startup**: Version check now runs in parallel with TUI initialization instead of blocking startup for up to 1 second. Update notifications appear in chat when the check completes.
|
|
2273
|
+
|
|
2274
|
+
## [0.12.12] - 2025-12-05
|
|
2275
|
+
|
|
2276
|
+
### Changed
|
|
2277
|
+
|
|
2278
|
+
- **Footer display**: Token counts now use M suffix for millions (e.g., `10.2M` instead of `10184k`). Context display shortened from `61.3% of 200k` to `61.3%/200k`.
|
|
2279
|
+
|
|
2280
|
+
### Fixed
|
|
2281
|
+
|
|
2282
|
+
- **Multi-key sequences in inputs**: Inputs like model search now handle multi-key sequences identically to the main prompt editor. ([#122](https://github.com/badlogic/pi-mono/pull/122) by [@markusylisiurunen](https://github.com/markusylisiurunen))
|
|
2283
|
+
- **Line wrapping escape codes**: Fixed underline style bleeding into padding when wrapping long URLs. ANSI codes now attach to the correct content, and line-end resets only turn off underline (preserving background colors). ([#109](https://github.com/badlogic/pi-mono/issues/109))
|
|
2284
|
+
|
|
2285
|
+
### Added
|
|
2286
|
+
|
|
2287
|
+
- **Fuzzy search models and sessions**: Implemented a simple fuzzy search for models and sessions (e.g., `codexmax` now finds `gpt-5.1-codex-max`). ([#122](https://github.com/badlogic/pi-mono/pull/122) by [@markusylisiurunen](https://github.com/markusylisiurunen))
|
|
2288
|
+
- **Prompt History Navigation**: Browse previously submitted prompts using Up/Down arrow keys when the editor is empty. Press Up to cycle through older prompts, Down to return to newer ones or clear the editor. Similar to shell history and Claude Code's prompt history feature. History is session-scoped and stores up to 100 entries. ([#121](https://github.com/badlogic/pi-mono/pull/121) by [@nicobailon](https://github.com/nicobailon))
|
|
2289
|
+
- **`/resume` Command**: Switch to a different session mid-conversation. Opens an interactive selector showing all available sessions. Equivalent to the `--resume` CLI flag but can be used without restarting the agent. ([#117](https://github.com/badlogic/pi-mono/pull/117) by [@hewliyang](https://github.com/hewliyang))
|
|
2290
|
+
|
|
2291
|
+
## [0.12.11] - 2025-12-05
|
|
2292
|
+
|
|
2293
|
+
### Changed
|
|
2294
|
+
|
|
2295
|
+
- **Compaction UI**: Simplified collapsed compaction indicator to show warning-colored text with token count instead of styled banner. Removed redundant success message after compaction. ([#108](https://github.com/badlogic/pi-mono/issues/108))
|
|
2296
|
+
|
|
2297
|
+
### Fixed
|
|
2298
|
+
|
|
2299
|
+
- **Print mode error handling**: `-p` flag now outputs error messages and exits with code 1 when requests fail, instead of silently producing no output.
|
|
2300
|
+
- **Branch selector crash**: Fixed TUI crash when user messages contained Unicode characters (like `✔` or `›`) that caused line width to exceed terminal width. Now uses proper `truncateToWidth` instead of `substring`.
|
|
2301
|
+
- **Bash output escape sequences**: Fixed incomplete stripping of terminal escape sequences in bash tool output. `stripAnsi` misses some sequences like standalone String Terminator (`ESC \`), which could cause rendering issues when displaying captured TUI output.
|
|
2302
|
+
- **Footer overflow crash**: Fixed TUI crash when terminal width is too narrow for the footer stats line. The footer now truncates gracefully instead of overflowing.
|
|
2303
|
+
|
|
2304
|
+
### Added
|
|
2305
|
+
|
|
2306
|
+
- **`authHeader` option in models.json**: Custom providers can set `"authHeader": true` to automatically add `Authorization: Bearer <apiKey>` header. Useful for providers that require explicit auth headers. ([#81](https://github.com/badlogic/pi-mono/issues/81))
|
|
2307
|
+
- **`--append-system-prompt` Flag**: Append additional text or file contents to the system prompt. Supports both inline text and file paths. Complements `--system-prompt` for layering custom instructions without replacing the base system prompt. ([#114](https://github.com/badlogic/pi-mono/pull/114) by [@markusylisiurunen](https://github.com/markusylisiurunen))
|
|
2308
|
+
- **Thinking Block Toggle**: Added `Ctrl+T` shortcut to toggle visibility of LLM thinking blocks. When toggled off, shows a static "Thinking..." label instead of full content. Useful for reducing visual clutter during long conversations. ([#113](https://github.com/badlogic/pi-mono/pull/113) by [@markusylisiurunen](https://github.com/markusylisiurunen))
|
|
2309
|
+
|
|
2310
|
+
## [0.12.10] - 2025-12-04
|
|
2311
|
+
|
|
2312
|
+
### Added
|
|
2313
|
+
|
|
2314
|
+
- Added `gpt-5.1-codex-max` model support
|
|
2315
|
+
|
|
2316
|
+
## [0.12.9] - 2025-12-04
|
|
2317
|
+
|
|
2318
|
+
### Added
|
|
2319
|
+
|
|
2320
|
+
- **`/copy` Command**: Copy the last agent message to clipboard. Works cross-platform (macOS, Windows, Linux). Useful for extracting text from rendered Markdown output. ([#105](https://github.com/badlogic/pi-mono/pull/105) by [@markusylisiurunen](https://github.com/markusylisiurunen))
|
|
2321
|
+
|
|
2322
|
+
## [0.12.8] - 2025-12-04
|
|
2323
|
+
|
|
2324
|
+
- Fix: Use CTRL+O consistently for compaction expand shortcut (not CMD+O on Mac)
|
|
2325
|
+
|
|
2326
|
+
## [0.12.7] - 2025-12-04
|
|
2327
|
+
|
|
2328
|
+
### Added
|
|
2329
|
+
|
|
2330
|
+
- **Context Compaction**: Long sessions can now be compacted to reduce context usage while preserving recent conversation history. ([#92](https://github.com/badlogic/pi-mono/issues/92), [docs](https://github.com/badlogic/pi-mono/blob/main/packages/coding-agent/README.md#context-compaction))
|
|
2331
|
+
- `/compact [instructions]`: Manually compact context with optional custom instructions for the summary
|
|
2332
|
+
- `/autocompact`: Toggle automatic compaction when context exceeds threshold
|
|
2333
|
+
- Compaction summarizes older messages while keeping recent messages (default 20k tokens) verbatim
|
|
2334
|
+
- Auto-compaction triggers when context reaches `contextWindow - reserveTokens` (default 16k reserve)
|
|
2335
|
+
- Compacted sessions show a collapsible summary in the TUI (toggle with `o` key)
|
|
2336
|
+
- HTML exports include compaction summaries as collapsible sections
|
|
2337
|
+
- RPC mode supports `{"type":"compact"}` command and auto-compaction (emits compaction events)
|
|
2338
|
+
- **Branch Source Tracking**: Branched sessions now store `branchedFrom` in the session header, containing the path to the original session file. Useful for tracing session lineage.
|
|
2339
|
+
|
|
2340
|
+
## [0.12.5] - 2025-12-03
|
|
2341
|
+
|
|
2342
|
+
### Added
|
|
2343
|
+
|
|
2344
|
+
- **Forking/Rebranding Support**: All branding (app name, config directory, environment variable names) is now configurable via `piConfig` in `package.json`. Forks can change `piConfig.name` and `piConfig.configDir` to rebrand the CLI without code changes. Affects CLI banner, help text, config paths, and error messages. ([#95](https://github.com/badlogic/pi-mono/pull/95))
|
|
2345
|
+
|
|
2346
|
+
### Fixed
|
|
2347
|
+
|
|
2348
|
+
- **Bun Binary Detection**: Fixed Bun compiled binary failing to start after Bun updated its virtual filesystem path format from `%7EBUN` to `$bunfs`. ([#95](https://github.com/badlogic/pi-mono/pull/95))
|
|
2349
|
+
|
|
2350
|
+
## [0.12.4] - 2025-12-02
|
|
2351
|
+
|
|
2352
|
+
### Added
|
|
2353
|
+
|
|
2354
|
+
- **RPC Termination Safeguard**: When running as an RPC worker (stdin pipe detected), the CLI now exits immediately if the parent process terminates unexpectedly. Prevents orphaned RPC workers from persisting indefinitely and consuming system resources.
|
|
2355
|
+
|
|
2356
|
+
## [0.12.3] - 2025-12-02
|
|
2357
|
+
|
|
2358
|
+
### Fixed
|
|
2359
|
+
|
|
2360
|
+
- **Rate limit handling**: Anthropic rate limit errors now trigger automatic retry with exponential backoff (base 10s, max 5 retries). Previously these errors would abort the request immediately.
|
|
2361
|
+
- **Usage tracking during retries**: Retried requests now correctly accumulate token usage from all attempts, not just the final successful one. Fixes artificially low token counts when requests were retried.
|
|
2362
|
+
|
|
2363
|
+
## [0.12.2] - 2025-12-02
|
|
2364
|
+
|
|
2365
|
+
### Changed
|
|
2366
|
+
|
|
2367
|
+
- Removed support for gpt-4.5-preview and o3 models (not yet available)
|
|
2368
|
+
|
|
2369
|
+
## [0.12.1] - 2025-12-02
|
|
2370
|
+
|
|
2371
|
+
### Added
|
|
2372
|
+
|
|
2373
|
+
- **Models**: Added support for OpenAI's new models:
|
|
2374
|
+
- `gpt-4.1` (128K context)
|
|
2375
|
+
- `gpt-4.1-mini` (128K context)
|
|
2376
|
+
- `gpt-4.1-nano` (128K context)
|
|
2377
|
+
- `o3` (200K context, reasoning model)
|
|
2378
|
+
- `o4-mini` (200K context, reasoning model)
|
|
2379
|
+
|
|
2380
|
+
## [0.12.0] - 2025-12-02
|
|
2381
|
+
|
|
2382
|
+
### Added
|
|
2383
|
+
|
|
2384
|
+
- **`-p, --print` Flag**: Run in non-interactive batch mode. Processes input message or piped stdin without TUI, prints agent response directly to stdout. Ideal for scripting, piping, and CI/CD integration. Exits after first response.
|
|
2385
|
+
- **`-P, --print-streaming` Flag**: Like `-p`, but streams response tokens as they arrive. Use `--print-streaming --no-markdown` for raw unformatted output.
|
|
2386
|
+
- **`--print-turn` Flag**: Continue processing tool calls and agent turns until the agent naturally finishes or requires user input. Combine with `-p` for complete multi-turn conversations.
|
|
2387
|
+
- **`--no-markdown` Flag**: Output raw text without Markdown formatting. Useful when piping output to tools that expect plain text.
|
|
2388
|
+
- **Streaming Print Mode**: Added internal `printStreaming` option for streaming output in non-TUI mode.
|
|
2389
|
+
- **RPC Mode `print` Command**: Send `{"type":"print","content":"text"}` to get formatted print output via `print_output` events.
|
|
2390
|
+
- **Auto-Save in Print Mode**: Print mode conversations are automatically saved to the session directory, allowing later resumption with `--continue`.
|
|
2391
|
+
- **Thinking level options**: Added `--thinking-off`, `--thinking-minimal`, `--thinking-low`, `--thinking-medium`, `--thinking-high` flags for directly specifying thinking level without the selector UI.
|
|
2392
|
+
|
|
2393
|
+
### Changed
|
|
2394
|
+
|
|
2395
|
+
- **Simplified RPC Protocol**: Replaced the `prompt` wrapper command with direct message objects. Send `{"role":"user","content":"text"}` instead of `{"type":"prompt","message":"text"}`. Better aligns with message format throughout the codebase.
|
|
2396
|
+
- **RPC Message Handling**: Agent now processes raw message objects directly, with `timestamp` auto-populated if missing.
|
|
2397
|
+
|
|
2398
|
+
## [0.11.9] - 2025-12-02
|
|
2399
|
+
|
|
2400
|
+
### Changed
|
|
2401
|
+
|
|
2402
|
+
- Change Ctrl+I to Ctrl+P for model cycling shortcut to avoid collision with Tab key in some terminals
|
|
2403
|
+
|
|
2404
|
+
## [0.11.8] - 2025-12-01
|
|
2405
|
+
|
|
2406
|
+
### Fixed
|
|
2407
|
+
|
|
2408
|
+
- Absolute glob patterns (e.g., `/Users/foo/**/*.ts`) are now handled correctly. Previously the leading `/` was being stripped, causing the pattern to be interpreted relative to the current directory.
|
|
2409
|
+
|
|
2410
|
+
## [0.11.7] - 2025-12-01
|
|
2411
|
+
|
|
2412
|
+
### Fixed
|
|
2413
|
+
|
|
2414
|
+
- Fix read path traversal vulnerability. Paths are now validated to prevent reading outside the working directory or its parents. The `read` tool can read from `cwd`, its ancestors (for config files), and all descendants. Symlinks are resolved before validation.
|
|
2415
|
+
|
|
2416
|
+
## [0.11.6] - 2025-12-01
|
|
2417
|
+
|
|
2418
|
+
### Fixed
|
|
2419
|
+
|
|
2420
|
+
- Fix `--system-prompt <path>` allowing the path argument to be captured by the message collection, causing "file not found" errors.
|
|
2421
|
+
|
|
2422
|
+
## [0.11.5] - 2025-11-30
|
|
2423
|
+
|
|
2424
|
+
### Fixed
|
|
2425
|
+
|
|
2426
|
+
- Fixed fatal error "Cannot set properties of undefined (setting '0')" when editing empty files in the `edit` tool.
|
|
2427
|
+
- Simplified `edit` tool output: Shows only "Edited file.txt" for successful edits instead of verbose search/replace details.
|
|
2428
|
+
- Fixed fatal error in footer rendering when token counts contain NaN values due to missing usage data.
|
|
2429
|
+
|
|
2430
|
+
## [0.11.4] - 2025-11-30
|
|
2431
|
+
|
|
2432
|
+
### Fixed
|
|
2433
|
+
|
|
2434
|
+
- Fixed chat rendering crash when messages contain preformatted/styled text (e.g., thinking traces with gray italic styling). The markdown renderer now preserves existing ANSI escape codes when they appear before inline elements.
|
|
2435
|
+
|
|
2436
|
+
## [0.11.3] - 2025-11-29
|
|
2437
|
+
|
|
2438
|
+
### Fixed
|
|
2439
|
+
|
|
2440
|
+
- Fix file drop functionality for absolute paths
|
|
2441
|
+
|
|
2442
|
+
## [0.11.2] - 2025-11-29
|
|
2443
|
+
|
|
2444
|
+
### Fixed
|
|
2445
|
+
|
|
2446
|
+
- Fixed TUI crash when pasting content containing tab characters. Tabs are now converted to 4 spaces before insertion.
|
|
2447
|
+
- Fixed terminal corruption after exit when shell integration sequences (OSC 133) appeared in bash output. These sequences are now stripped along with other ANSI codes.
|
|
2448
|
+
|
|
2449
|
+
## [0.11.1] - 2025-11-29
|
|
2450
|
+
|
|
2451
|
+
### Added
|
|
2452
|
+
|
|
2453
|
+
- Added `fd` integration for file path autocompletion. Now uses `fd` for faster fuzzy file search
|
|
2454
|
+
|
|
2455
|
+
### Fixed
|
|
2456
|
+
|
|
2457
|
+
- Fixed keyboard shortcuts Ctrl+A, Ctrl+E, Ctrl+K, Ctrl+U, Ctrl+W, and word navigation (Option+Arrow) not working in VS Code integrated terminal and some other terminal emulators
|
|
2458
|
+
|
|
2459
|
+
## [0.11.0] - 2025-11-29
|
|
2460
|
+
|
|
2461
|
+
### Added
|
|
2462
|
+
|
|
2463
|
+
- **File-based Slash Commands**: Create custom reusable prompts as `.txt` files in `~/.pi/slash-commands/`. Files become `/filename` commands with first-line descriptions. Supports `{{selection}}` placeholder for referencing selected/attached content.
|
|
2464
|
+
- **`/branch` Command**: Create conversation branches from any previous user message. Opens a selector to pick a message, then creates a new session file starting from that point. Original message text is placed in the editor for modification.
|
|
2465
|
+
- **Unified Content References**: Both `@path` in messages and `--file path` CLI arguments now use the same attachment system with consistent MIME type detection.
|
|
2466
|
+
- **Drag & Drop Files**: Drop files onto the terminal to attach them to your message. Supports multiple files and both text and image content.
|
|
2467
|
+
|
|
2468
|
+
### Changed
|
|
2469
|
+
|
|
2470
|
+
- **Model Selector with Search**: The `/model` command now opens a searchable list. Type to filter models by name, use arrows to navigate, Enter to select.
|
|
2471
|
+
- **Improved File Autocomplete**: File path completion after `@` now supports fuzzy matching and shows file/directory indicators.
|
|
2472
|
+
- **Session Selector with Search**: The `--resume` and `--session` flags now open a searchable session list with fuzzy filtering.
|
|
2473
|
+
- **Attachment Display**: Files added via `@path` are now shown as "Attached: filename" in the user message, separate from the prompt text.
|
|
2474
|
+
- **Tab Completion**: Tab key now triggers file path autocompletion anywhere in the editor, not just after `@` symbol.
|
|
2475
|
+
|
|
2476
|
+
### Fixed
|
|
2477
|
+
|
|
2478
|
+
- Fixed autocomplete z-order issue where dropdown could appear behind chat messages
|
|
2479
|
+
- Fixed cursor position when navigating through wrapped lines in the editor
|
|
2480
|
+
- Fixed attachment handling for continued sessions to preserve file references
|
|
2481
|
+
|
|
2482
|
+
## [0.10.6] - 2025-11-28
|
|
2483
|
+
|
|
2484
|
+
### Changed
|
|
2485
|
+
|
|
2486
|
+
- Show base64-truncated indicator for large images in tool output
|
|
2487
|
+
|
|
2488
|
+
### Fixed
|
|
2489
|
+
|
|
2490
|
+
- Fixed image dimensions not being read correctly from PNG/JPEG/GIF files
|
|
2491
|
+
- Fixed PDF images being incorrectly base64-truncated in display
|
|
2492
|
+
- Allow reading files from ancestor directories (needed for monorepo configs)
|
|
2493
|
+
|
|
2494
|
+
## [0.10.5] - 2025-11-28
|
|
2495
|
+
|
|
2496
|
+
### Added
|
|
2497
|
+
|
|
2498
|
+
- Full multimodal support: attach images (PNG, JPEG, GIF, WebP) and PDFs to prompts using `@path` syntax or `--file` flag
|
|
2499
|
+
|
|
2500
|
+
### Fixed
|
|
2501
|
+
|
|
2502
|
+
- `@`-references now handle special characters in file names (spaces, quotes, unicode)
|
|
2503
|
+
- Fixed cursor positioning issues with multi-byte unicode characters in editor
|
|
2504
|
+
|
|
2505
|
+
## [0.10.4] - 2025-11-28
|
|
2506
|
+
|
|
2507
|
+
### Fixed
|
|
2508
|
+
|
|
2509
|
+
- Removed padding on first user message in TUI to improve visual consistency.
|
|
2510
|
+
|
|
2511
|
+
## [0.10.3] - 2025-11-28
|
|
2512
|
+
|
|
2513
|
+
### Added
|
|
2514
|
+
|
|
2515
|
+
- Added RPC mode (`--rpc`) for programmatic integration. Accepts JSON commands on stdin, emits JSON events on stdout. See [RPC mode documentation](https://github.com/nicobailon/pi-mono/blob/main/packages/coding-agent/README.md#rpc-mode) for protocol details.
|
|
2516
|
+
|
|
2517
|
+
### Changed
|
|
2518
|
+
|
|
2519
|
+
- Refactored internal architecture to support multiple frontends (TUI, RPC) with shared agent logic.
|
|
2520
|
+
|
|
2521
|
+
## [0.10.2] - 2025-11-26
|
|
2522
|
+
|
|
2523
|
+
### Added
|
|
2524
|
+
|
|
2525
|
+
- Added thinking level persistence. Default level stored in `~/.pi/settings.json`, restored on startup. Per-session overrides saved in session files.
|
|
2526
|
+
- Added model cycling shortcut: `Ctrl+I` cycles through available models (or scoped models with `-m` flag).
|
|
2527
|
+
- Added automatic retry with exponential backoff for transient API errors (network issues, 500s, overload).
|
|
2528
|
+
- Cumulative token usage now shown in footer (total tokens used across all messages in session).
|
|
2529
|
+
- Added `--system-prompt` flag to override default system prompt with custom text or file contents.
|
|
2530
|
+
- Footer now shows estimated total cost in USD based on model pricing.
|
|
2531
|
+
|
|
2532
|
+
### Changed
|
|
2533
|
+
|
|
2534
|
+
- Replaced `--models` flag with `-m/--model` supporting multiple values. Specify models as `provider/model@thinking` (e.g., `anthropic/claude-sonnet-4-20250514@high`). Multiple `-m` flags scope available models for the session.
|
|
2535
|
+
- Thinking level border now persists visually after selector closes.
|
|
2536
|
+
- Improved tool result display with collapsible output (default collapsed, expand with `Ctrl+O`).
|
|
2537
|
+
|
|
2538
|
+
## [0.10.1] - 2025-11-25
|
|
2539
|
+
|
|
2540
|
+
### Added
|
|
2541
|
+
|
|
2542
|
+
- Add custom model configuration via `~/.pi/models.json`
|
|
2543
|
+
|
|
2544
|
+
## [0.10.0] - 2025-11-25
|
|
2545
|
+
|
|
2546
|
+
Initial public release.
|
|
2547
|
+
|
|
2548
|
+
### Added
|
|
2549
|
+
|
|
2550
|
+
- Interactive TUI with streaming responses
|
|
2551
|
+
- Conversation session management with `--continue`, `--resume`, and `--session` flags
|
|
2552
|
+
- Multi-line input support (Shift+Enter or Option+Enter for new lines)
|
|
2553
|
+
- Tool execution: `read`, `write`, `edit`, `bash`, `glob`, `grep`, `think`
|
|
2554
|
+
- Thinking mode support for Claude with visual indicator and `/thinking` selector
|
|
2555
|
+
- File path autocompletion with `@` prefix
|
|
2556
|
+
- Slash command autocompletion
|
|
2557
|
+
- `/export` command for HTML session export
|
|
2558
|
+
- `/model` command for runtime model switching
|
|
2559
|
+
- `/session` command for session statistics
|
|
2560
|
+
- Model provider support: Anthropic (Claude), OpenAI, Google (Gemini)
|
|
2561
|
+
- Git branch display in footer
|
|
2562
|
+
- Message queueing during streaming responses
|
|
2563
|
+
- OAuth integration for Gmail and Google Calendar access
|
|
2564
|
+
- HTML export with syntax highlighting and collapsible sections
|