Markdown source
File outline
# Changelog
## Unreleased
- Add a Tune cross-platform runner design that removes Bash/WSL and shell command strings, runs `.pi/tune/benchmark.mjs` directly with Node on every platform, preserves existing experiment behavior, and uses direct Git calls for discard
- Remove the `mode`, `shame`, `ssh-tools`, and `terminal-signals` extensions
- Add an `/overkill aftermath` design for improving one confirmed skill from all past Pi sessions, with checkable task mining, deterministic checks plus LLM rubric fallback, hash-split validation, strict no-tie acceptance, resumable staged results, and no automatic adoption or scheduling
- Fix npm audit's moderate `protobufjs` vulnerability by updating the root lockfile entry to 7.6.5
- Add a read-only `modernize` prompt and skill for auditing repositories against the latest Pi changelog and APIs, using resolved Pi package versions to scope the migration window
- Fix extension settings loading to use Pi's public settings API
- Add a root `typecheck` mise task for running the TypeScript typecheck
- Add The System's read-only project doctor, CLI, workflow skills, and prompt resources for validating project documents
- Fix The System task completion so results queue as follow-ups instead of crashing when the agent is already processing a prompt
- Hard-rename the `super` extension to `the-system`, including its package, load paths, skills, tests, and documentation references
- Add The System's project and document kernel with config parsing, Markdown and metadata validation, document indexing, reference-graph checks, shared CSS, and regression coverage for malformed or unsafe documents
- Add The System runtime governance with project-law prompt injection, initialization notices, governed-document write validation, symlink escape protection, and ownership confirmation for existing specs and mockups
- 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 `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 the `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`; bundled workflows assign
model tiers and thinking levels by phase role and complexity
- Remove ultra step and sub-agent timeouts so workflows run until completion or
explicit cancellation
- Add ultra aggregate token/cost accounting in workflow results from reported
sub-agent usage
- Show each ultra sub-agent's status, resolved model, thinking level, elapsed
time, token usage, and latest action in expanded workflow output while keeping
collapsed output compact; show total workflow wall time while running and
freeze it at completion, and stop completed and dropped agent timers at their
terminal event
- Show every ultra workflow phase from the start, including queued agents and
pending dynamic or conditional phases, with stable state transitions and
status icons
- Store ultra incomplete-run resume checkpoints in Pi session history, reusing
completed matching steps only on the same branch 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
- Discourage ordinary single-agent ultra runs unless they specifically need
isolation, background execution, an alternate model, resumability, strict
structured output, or future workflow reuse
- Add optional ultra `when` selectors for conditionally skipping workflow phases
and recording empty results without running an agent
- Make ultra workflow failures actionable with typed diagnostics, bounded
transport/output retries for tool-less steps, failure context for recovery
phases, and expanded failure evidence including the model, thinking level,
failed item, retry count, and final transcript tail
- Ship the ultra `feature` workflow (research → plan → adversarial critique →
conditional implement → conditional security/quality review), and make
`/ultra` positional args soak the trailing free text into the last declared
param so `/ultra feature <task>` passes the whole description through
- Ship the loop-free ultra `bug` workflow (investigate → regression test →
conditional fix → adversarial verification) as `/ultra bug <bug>`
- Validate ultra's `feature` and `bug` workflows in isolated fixtures, including
implementation and review, regression-driven fixes, and conditional skipping
when a reported bug is not reproduced
- 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:`
- 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 `<goal_objective_data>` /
`<untrusted_objective>` wrappers are unwrapped in compact and expanded widgets
- Fix goal status messages during active turns so they do not trigger extra agent
loops
- Add a root `bench` task for running extension benchmarks, with dedicated
benchmarks for goal, llmiterate, prompt-autopsy, q, terse, and web
- 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 LM 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 multi-select label clicks, preserve Unicode notes split across
request chunks, and place annotations correctly in scrolled options
- 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
- Save accepted mockup artifacts from brainstorming workflows
- 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
- Update The System design to use trusted rich-Markdown document bundles with raw HTML, remote and cross-bundle references, full Mermaid, document-owned assets, and filesystem containment. Use one parser and page renderer for consistent single-document and searchable book views, showing a compact frontmatter summary with every source-ordered field in a collapsed ledger. Isolate mockups in iframes only for layout, and fold the work into Phase 6 before spec authoring.
- Implement The System's rich-Markdown bundle kernel with schema-v2 migration, bundle discovery and reference checks, filesystem containment, runtime ownership rules, and removal of the legacy authored-HTML and shared-CSS kernel
- 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.
- Stop mise from loading parent-directory configuration and tasks when running
inside this repository
## 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