Releases: dnouri/pi-coding-agent
Releases · dnouri/pi-coding-agent
v2.0.0
2.0.0
Breaking Changes
- Emacs 29.1 required: The chat buffer now uses Emacs's built-in tree-sitter support for markdown rendering. Emacs 28 is no longer supported. This is the right trade-off: tree-sitter gives us a proper parse tree instead of brittle regexps, and the result is code that works much better together with Emacs's display engine.
- markdown-mode dependency removed: The
markdown-mode/gfm-modepackage is no longer used. If you customizedmarkdown-modefaces for the chat buffer, those customizations no longer apply - phscroll support removed: The optional
phscrollintegration for horizontal table scrolling has been dropped. Wide markdown tables that exceed the window width will wrap, which is not ideal. A proper solution is in progress
Tree-sitter Markdown
- md-ts-mode replaces gfm-mode — A tree-sitter major mode for Markdown, bundled in the package until it is released on MELPA, now renders the chat buffer. Headings, emphasis, code spans, links, tables, fenced code blocks, and markup hiding all come from the parse tree. This replaced a 450-line pre-fontification pipeline that maintained hidden per-language buffers, synchronized content incrementally, and fought with jit-lock; a net reduction of over 500 lines of render code (#150)
- Syntax-highlighted tool output: Diffs, file contents, and shell output are wrapped in fenced code blocks with language-specific tree-sitter injection. When the file extension is recognized, you get proper syntax highlighting; otherwise the content is left plain (#150)
- Grammar management: A new module,
pi-coding-agent-grammars.el, handles tree-sitter grammar installation. On first session start, you are prompted to install the two essential grammars (markdown, markdown-inline) and optionally ~20 language grammars for code block highlighting.M-x pi-coding-agent-install-grammarsis available at any time (#150)
Performance
- Simpler streaming path: With tree-sitter, modification hooks no longer need to be inhibited during streaming.
jit-lock-after-changeis very cheap per delta; the idle fontification timer and manualfont-lock-flushcalls are gone (#150) - Incremental thinking-block rendering — Thinking deltas now append only new content instead of deleting and reinserting the entire blockquote region on every delta, eliminating O(n) cost growth in long thinking blocks (#153)
- Batched redisplay — Multiple JSON lines delivered in a single process
read()now produce one redisplay cycle instead of one per event (#153)
Improvements
- Full tool rendering on session resume — Resuming a session now displays each tool call with its header, output, overlays, and toggle — exactly as it appeared during the live conversation. The old
[N tool calls]summary is gone (#152)
v1.3.6
1.3.6
Features
- Built-in slash commands work from the input buffer —
/new,/model,/compact,/session,/fork,/resume,/export,/copy,/name,/quit, and/reloadnow autocomplete and dispatch locally instead of being sent to the LLM as prompt text. Extension and skill commands still pass through to pi. (#148) - Slash commands accept arguments —
/model opuspre-fills or auto-selects the model picker with fuzzy matching;/export /tmp/out.htmlexports to a custom path;/compact keep API detailspasses instructions;/name my-sessionsets the name directly. (#148) - Smarter model selector — Fuzzy matching (
opus→ "Opus 4.6"), auto-select on unique match, and shortened display names matching the header-line. Fixes "current: unknown" when invoked from the input buffer. (#148)
Fixes
- Backslash in
\n,\t,\retc. no longer hidden in chat — markdown-mode was hiding the backslash in escape sequences; now only valid CommonMark escape targets (§2.4) are affected. (#147) - phscroll detected correctly with lazy package managers — Users of straight.el, elpaca, and similar no longer get a spurious "Install phscroll?" prompt when the package is already installed. (#142)
- Dictionary completions removed from input buffer — TAB and C-M-i no longer offer dictionary words; only slash commands,
@filereferences, and file paths are completed; hat tip @luckysori. (#141)
v1.3.5
📺 Watch the demo video (7m 18s)
1.3.5
Fixes
- Fork-at-point is now reliable in deep and compacted sessions — mapping now resolves via
get_fork_messages, preserves visible-turn alignment, and surfaces clearer RPC errors when fork lookup fails. (#139) - Large generic tool details toggles no longer freeze or overflow — expanding/collapsing big
**Details**payloads avoids expensive full-region fontification and prevents regexp stack-overflow failures. (#137) - Startup version handling is simpler and more robust — the header stays stable while pi CLI version is detected after process start and shown as a minibuffer notice (
Pi: version X.Y.Z), reducing startup lock contention; thanks @jorgeavaldez for the initial report. (#140) - Cleaner toggle/session test behavior and CI output — dependency checks are stubbed in unit tests that don’t require a real
pibinary, eliminating noisy missing-piwarnings. (#138)
v1.3.4
1.3.4
Fixes
- RET navigation is now accurate across tool output —
read,edit, and custom tool outputs now map to the correct file/line in both collapsed and expanded views, with clearer behavior on non-content lines. (#135) - Manual compaction is now queue-safe and more resilient — queued send/steer input is handled safely during compaction, steer-send failures preserve input, and compaction is guarded when process state is invalid. (#134)
- Smoother write-streaming previews — optimized streaming preview updates avoid unnecessary redraw work, while keeping fontify state correct and handling edge-case delta behavior more robustly. (#136)
v1.3.3
1.3.3
Features
- Fork from any chat turn (
f) — branch a conversation directly from point in the chat buffer with confirmation flow and improved turn navigation. (#124) - More informative status line during work — the header now clearly shows what the agent is doing (
thinking,replying,running,compact,idle), refreshes cost/context stats sooner, and surfaces extension status messages. (#121; thanks @SayreBlades) - Clearer session command behavior —
M-x pi-coding-agentnow consistently restores/focuses the current session;M-x pi-coding-agent-toggleis the explicit hide/show command (frame-local behavior). (#125, #133; thanks @conornash) - Custom pi launch command — new
pi-coding-agent-executablesupports wrappers like("npx" "pi"). (#131)
Fixes
- Thinking block streaming stability — multiple fixes for whitespace normalization, block separation, and markdown syntax propertization in large thinking blocks. (#123, #128, #132)
- Local test reliability improved —
make testnow prefers the local checkout on load-path, avoiding accidental use of an installed package version. (#130; thanks @jorgeavaldez)
v1.3.2
1.3.2
Improvements
- Copy now defaults to visible text —
M-w/C-w/C-kstrip hidden markdown markup by default; raw markdown copying remains available via customization. (#120, #116) - Markdown syntax highlighting for input prompts (opt-in) — GFM highlighting was introduced in this release and is available via customization. (#117, #120)
Fixes
- Streaming tool output no longer flickers under markdown fontification — prevents temporary heading/bold rendering glitches while deltas stream in. (#119)
- Extension status text strips ANSI escape sequences — header-line status is now clean and readable in Emacs; thanks @conornash. (#118)
- Read/tool fence and thinking rendering stability improvements — more robust fenced block handling (including nested backticks) and improved file-line navigation from tool output. (#122)
v1.3.1
1.3.1
Features
- Better display for extension tools — Tools outside of built-in tools (i.e. any extension tool like
subagent) didn't show a lot of useful information neither in the header line, nor in body, depending on tool implementation. We fix that by now displaying all JSON args to the tool header (so you know what the tool has been called with exactly), and we also surfacedetailspayloads from the extension, below the normal tool output. (#112)
Performance
- Speed up text output in tool calls by up to 23x — Several improvements inlcuding unnecessary updates were made, and tool output is back to being super responsive and fast from an earlier regression. (#113)
Internal
v1.3.0
1.3.0
Features
- Live-streaming tool output — See code being written in real-time as the LLM generates it, with syntax highlighting and a stable rolling tail preview (#102)
- Refined tool block styling — Successful tool blocks use a neutral theme-derived background instead of bright green; tool names are bold-italic, arguments are italic (#103)
Fixes
- GUI scroll oscillation — Fixed a bug in GUI Emacs where the chat buffer would jump to a random position while scrolling, caused by an interaction between
hl-line-modeand hidden markup (#100) - Transient menu crash with many commands — Projects with more than 9 skills, templates, or extensions no longer crash the transient menu (#109)
- Transient menu key conflict — Stats key changed from
Stoito avoid collision with the Skills submenu (#109)
v1.2.6
1.2.6
Fixes
- Emacs 30 compatibility — Bumped minimum transient version to 0.9.0 (required for the 3-element group vector format), fixed phscroll test isolation, and added Emacs 30.1 to the CI matrix. (#99)
- Theme-aware faces — Removed all hardcoded colors; faces now inherit from standard theme-aware faces (
secondary-selection,diff-added,diff-removed) and headers are fontified by gfm-mode. Custom themes work properly out of the box. (#97) - Consistent blank lines between chat sections — Eliminated extra blank lines that appeared between the assistant header and response content. (#98)