# Changelog ## Unreleased - Add the `btw` extension with a `/btw` side-chat overlay, persisted side-thread history, summary injection back into the main chat, limited `read`/`bash` side-agent tools, README, package metadata, and harness coverage - Add the `uv` extension to route Python package/tooling commands through `uv`, with harness coverage - Add the `shame` extension with `/shame` smart defaults, inferred targets, `@` paths, argument completion, project `REVIEW_GUIDELINES.md` support, and harness coverage - Add the `split-fork` extension with `/split-fork [prompt]` to fork the current session branch into a new Pi process in a Ghostty split on macOS, with `osascript` checks and harness coverage - Bump the project Node toolchain from 22 to 26.5.0 - Add a `cmprss` Pi extension design spec adapted from Headroom concepts, keeping deterministic content-aware tool-result compression, Pi-native retrieval markers, session-persisted originals for restart-stable retrieval, compact savings UI, commands, settings, tests, and acceptance checks while rejecting proxy/server, SDK dependency, Python/Rust/ML/MCP, telemetry, dashboards, provider wrappers, and legacy compatibility - Implement `cmprss` tool-result compression with compact retrieval markers, pre-truncated Pi bash `details.fullOutputPath` persistence, and restart-stable `cmprss_retrieve` access to exact original text - Validate `cmprss` retrieval across runtime reloads for compressed large bash outputs - Validate `cmprss` continues compressing large bash outputs after runtime reload - Validate `cmprss` disabled output passthrough and unknown-hash retrieval misses - Fix `cmprss` stacktrace compression so stack frames are classified before search-like file/line matches, preserving stack causes and retrieval exactness - Add a `lazy` Pi extension design spec, adapted from Ponytail 4.8.4 but Pi-only for this repo, covering lazy modes, settings, commands, skills, session state, prompt injection, post-turn `lazy:` marker notifications, performance constraints, tests, and same-or-better parity while dropping legacy Ponytail command names, config migration, environment overrides, and host portability shims - Implement the `lazy` Pi extension with `/lazy` modes, standalone deactivation phrases, prompt injection, session-local mode replay, active/inactive status UI, deterministic help/gain/debt commands, review/audit skill handoffs, post-agent `lazy:` marker notifications, README, skills, root skill export, git probe timeouts, and unit/harness coverage - Validate `lazy` on a larger todo-CLI A/B smoke: same passing behavior with 103 LOC versus 154 baseline LOC, zero deps in both variants - Add global Pi prompts adapted from Matt Pocock's productivity skills: `gr`, `handoff`, and `sensei`; add the global `grilling` skill plus supporting teaching reference files, merge skill-writing guidance into the Pi skill, and include MIT license copies - Add ultra `subagentExtensions` setting (default `"all"`): workflow sub-agents load the host's extensions so a step can grant extension-provided tools (e.g. `web_search`), while the step `tools` allowlist stays the only gate on what is active and ultra's own `workflow` tool is stripped from every sub-agent allowlist (recursion defense); set `"none"` to keep sub-agents on core tools - Add ultra `modelTiers` setting so workflow steps can use `small`, `medium`, or `big` aliases, with unset tiers falling back to the session model and optional thinking suffixes such as `openai/gpt-5-mini:low` - Add ultra aggregate token/cost accounting in workflow results from reported sub-agent usage - Add ultra incomplete-run resume journals, reusing completed matching steps after an aborted run while completed runs start fresh - Add `background: true` to the ultra `workflow` tool so runs can detach and report their result back later - Add `/ultra-runs` saved-run TUI for inspecting, resuming, stopping, and deleting persisted runs - Ship the ultra `feature` workflow (research → plan → adversarial critique → implement → security/quality review), and make `/ultra` positional args soak the trailing free text into the last declared param so `/ultra feature ` passes the whole description through - Fix an ultra crash where the `workflow` tool's live board threw `state.phases.length` on a `details` value that was not a reducer state, escaping tool-error handling and taking down the whole TUI render loop; the tool renderer now shape-checks `details` and falls back to an empty board - Fix model auth handling across tldr, pulse, q, goal, session-rename, devil, and angel so header-only providers are accepted when `auth.ok` is true and provider headers are forwarded - Rename angel low-confidence `Devil` field to `Doubt` and widget badge from `consider-devil` to `low confidence` - Inject a `> ⚠ ADVISOR UNCERTAIN` banner at the top of formatted angel advice when confidence < 50% (or `INSUFFICIENT CONTEXT` banner when the advisor reports insufficient context) so the receiving model is explicitly told to verify assumptions and risks and prefer read-only operations before acting on `Next:` - Make `/mode off` a no-op with `no mode active` notify when no mode is active, and otherwise restore baseline tools/model/thinking only for fields the active mode overrode, skipping restore for fields the user manually changed since switch and for fields whose baseline ref is stale, while keeping the `` guard so the mode body and reminder are physically removed from the system prompt after off - Restore the captured mode baseline before switching modes so modes without `tools`, `model`, or `thinking` do not inherit overrides from the previous mode - Add a centered fuzzy `Alt+M` mode picker that avoids editor mutation and masks the live editor border while selecting modes - Restore mode baseline tools/model/thinking on `session_shutdown` so a mode left active at session end does not leave the user's default model, thinking, or tool filter polluted for the next session - Capture `getAllTools()` (name + `sourceInfo.source`) in the mode baseline so `/mode off` and shutdown restore can union new pi builtin tools back into the active tool set, while leaving post-switch extension tool registrations out unless the user explicitly enabled them - Document that mode `model`/`thinking` overrides are not session-scoped in the current SDK: `pi.setModel` and `pi.setThinkingLevel` rewrite the user's default model and thinking in settings, and only the `mode` extension's baseline capture and restore-on-off / restore-on-shutdown mitigates the bleed - Split Vitest projects so only web fetch tests run isolated, restoring fast non-isolated test runs for the rest of the suite - Convert extension drivers, helper scripts, and skill scripts from Python to MJS, remove the Python/ruff project setup, and rename the goal pexpect test task - Remove stale Python usage docs and the dead `requirements.txt` from the `uuid-generator` skill, fix its export examples to use `--export`, and remove short-flag support from the generator CLI - Fix notes widget rendering so Pi displays it at column zero with width-aware compact and expanded layouts - Add the `gestalt` skill for visual-organization audits of UIs, diagrams, screenshots, dashboards, hierarchy, grouping, and scan-path issues - Fix Windows command handling by ignoring stdin `EOF` like `EPIPE` and resolving `rtk` PATH shims, including `.cmd` execution via `cmd` - Fix goal compaction reentrancy by pausing continuations during session compaction and avoiding pre-compaction session mutations - Fix goal session-tree handling so active-branch goal state, dossier, and assistant tail replay do not leak sibling branch data; refresh live goal state on tree navigation and cancel stale continuations on tree navigation or session shutdown - Resume active goals after successful compaction while preserving paused, blocked, failed, and cross-session goal states - Fix goal judging objective display so nested `` / `` wrappers are unwrapped in compact and expanded widgets - Add a `bench-q` task for the q heuristic extractor benchmark outside Vitest - Improve q extraction for inline choices, binary approvals, preceding option blocks, `Options:` blocks, and path/action-list false positives - Recognize short direct prompts such as `Go?` while still ignoring punctuation- only text such as `???` - Ignore leaked internal planning notes and debug punctuation patterns such as `Need ...?`, `Wait ...?!`, and hedged command markers like `? / maybe` - Keep direct prompts starting with `Now` or `Also` eligible for q extraction - Avoid treating signature-like parenthesized parameters such as `forget(target?, reason?)` as q questions - Add `Alt+Q` as a shortcut for `/q` and notify after assistant messages when questions are available - Fix `Alt+Q` to work from shortcut contexts that do not expose command-only APIs such as `waitForIdle` - Fix q `Options:` headings after a question so choices attach to that question - Add a q corpus builder script that scans Pi assistant messages incrementally, resolves custom session dirs, labels candidates with an LLM oracle, supports self-tests and dry runs, checkpoints writes, safely reclassifies selected ids, and writes gzip-compressed JSONL with full sanitized assistant messages - Align q corpus static labeling with extractor rules for internal notes and choice-heading option blocks - Isolate and speed up q corpus LLM labeling by running Pi without extensions, skills, context files, prompt templates, or thinking - Add a q corpus regression test that validates the extractor against the gzip-compressed corpus and explains how to build the missing corpus - Add the `goldfish` task-gated tool-use extension and replace the `forget` extension - Fix goldfish startup so bare boolean `--goldfish` enables the gate after session start, uses `pi.exec` for checks, and keeps normal tools visible while hard-blocking them until `task.create` succeeds - Use `Alt+T` for the goldfish widget toggle to avoid Pi's built-in `Alt+F` shortcut conflict - Prompt goldfish agents after task creation to call `task.check` before any final answer, with regression and manual coverage for create-check-answer flow - Fix goldfish task output semantics so active tasks render as accent `◌`, done tasks as success `✓`, idle widgets as warning, and errors as error - Block unresolved `__LEAK_*__` placeholders in mutating tool calls outside the leaks extension - Narrow leaks structure detection to URL/query/header/cookie, JWT, private-key, and custom-regex matches; drop generic assignment and XML scanning - Fix leaks assignment detection so code references such as `loadToken(email)`, template expressions, property chains, and CamelCase type-like values are not redacted into `__LEAK_*__` placeholders - Fix leaks hydration for tool-result `content` and `details` so redacted provider-context placeholders are restored before local display/session storage - Keep leaks provider redaction active when a stale UI context is encountered during provider request status/notification updates - Add the super `mockup` tool for browser-based visual-option feedback with a minimal title/question/options/multi schema, fragment-only validation, blocking browser submit, selectable cards, annotations/global notes tabs, Accept/Iterate actions, and per-card pin notes - Fix mockup pin mode so it shows a crosshair cursor, marks the active pin button, and exits pin placement after one click - Fix mockup fragment CSS bleed by rendering option HTML inside Shadow DOM so mockup styles cannot break the feedback drawer - Replace mockup feedback tabs with responsive split panes: global notes on the left, annotations on the right, stacked on mobile - Add the super `summarize` skill for converting content into Markdown summaries - Move super skills under `extensions/super/skills`, expose them through package Pi resources, and validate all configured skill roots - Move non-extension-owned root skills, prompts, and themes out of `pi-ext` into global Pi config; keep public `pi-ext` focused on extensions and extension-owned skills - Remove project-local Claude settings and keep spinner/reduced-motion flags in global Claude settings - Remove the external super `writing-skills` skill after review - Update brainstorming to delegate visual feedback to `mockup` and retire the brainstorming visual companion scripts - Add Pi skill-writing guidance to keep skill descriptions focused on discovery triggers instead of summarizing full workflows - Delete stale diff-review browser SPA source after the SSR rewrite - Move pulse settings under the `pulse` key in Pi settings; global defaults come from `~/.pi/agent/settings.json` and project overrides from `.pi/settings.json`. The legacy `.pi/pulse.json` config file is no longer read. ## 0.0.3 - Rename autoresearch to tune; add jj backend, state migration, timeout clamps - Rework diff-review to SSR reviews; add headless Vitest coverage - Add sparse safe clones, capped web fetch cache, and goal planner dossier - Rework q extraction; add benchmark and 112 parser tests - Retire superpowers; move workspace to npm, Vitest, dprint, Biome, tsc, mise ## 0.0.2 - Bump package.json from 0.0.1 to 0.0.2 - Update README install examples to git:github.com/bugabinga/pi-ext@v0.0.2 - Leave extension sources, READMEs, tests unchanged from v0.0.1 ## 0.0.1 - Ship initial pi-ext set: goal, tldr, leaks, tps, quota, vcs-status - Add goal loop: autocomplete, progress UI, standing prompts, judge-gated updates - Add tldr live summaries, model footer, quota parsers, jj-aware workspace status - Fix session startup races, stale telemetry, aux LLM calls, provider secret leaks - Measure TPS from first assistant delta; ignore baseline stream chunks