pi-mono/packages/coding-agent/docs
Armin Ronacher e4c75a7322 fix(coding-agent): replace the system prompt when a handler forces it
Add SystemMessage.replace: replaying a system message with the flag discards the
accumulated prompt content, sections, and tools before applying it, and providers
collapse the transcript into one leading system message whenever a later message
replaces it.

A forced prompt from before_agent_start is opaque, so it is persisted as a replace
message holding the text in content with no sections (the agent loop fills in the
full tool set). Leaving force mode persists another replace message with the
structured sections. Previously the forced prompt became a preamble section patch,
so models with native mid-conversation system messages kept the original prompt
as their leading system prompt and received the forced one as a later update.
2026-09-16 23:35:01 +02:00
..
images Add pi.dev donation attribution 2026-02-03 23:00:40 +01:00
compaction.md feat(coding-agent): support per-model compaction token budgets 2026-09-10 08:37:20 +02:00
containerization.md docs(coding-agent): document running pi in Docker Sandboxes (#9077) 2026-09-04 15:27:32 +02:00
custom-provider.md Mid conversation system messages (#9548) 2026-09-16 15:54:07 +02:00
development.md fix(coding-agent): update repository links to "earendil-works/pi" (#9278) 2026-09-07 14:09:39 +02:00
docs.json docs: validate documentation navigation and reachability (#9380) 2026-09-09 17:34:42 +02:00
environment-variables.md fix(coding-agent): keep remote harness dependencies development-only 2026-09-05 12:45:04 +02:00
extensions.md fix(coding-agent): replace the system prompt when a handler forces it 2026-09-16 23:35:01 +02:00
index.md feat(coding-agent): expose session metadata to bash tools (#6967) 2026-07-22 20:15:02 +02:00
json.md fix(coding-agent): update repository links to "earendil-works/pi" (#9278) 2026-09-07 14:09:39 +02:00
keybindings.md fix(coding-agent): selector save keybindings (#9149) 2026-09-04 18:06:21 +02:00
llama-cpp.md fix: llama.cpp guidance as no default (#8236) 2026-08-17 12:15:56 +02:00
models.md Mid conversation system messages (#9548) 2026-09-16 15:54:07 +02:00
packages.md feat(coding-agent): update managed installations in place 2026-08-24 09:34:34 +02:00
prompt-templates.md fix(coding-agent): support all-argument prompt defaults closes #6695 2026-07-17 13:52:32 +02:00
providers.md fix(coding-agent): update repository links to "earendil-works/pi" (#9278) 2026-09-07 14:09:39 +02:00
quickstart.md docs(settings): default model and thinking 2026-08-26 16:25:30 +02:00
rpc.md fix(coding-agent): cancel compaction on session abort 2026-09-03 09:41:55 +02:00
sdk.md Mid conversation system messages (#9548) 2026-09-16 15:54:07 +02:00
security.md fix(coding-agent): update repository links to "earendil-works/pi" (#9278) 2026-09-07 14:09:39 +02:00
session-format.md fix(coding-agent): replace the system prompt when a handler forces it 2026-09-16 23:35:01 +02:00
sessions.md Add startup session name flag 2026-05-29 11:40:58 +02:00
settings.md feat(coding-agent): support per-model compaction token budgets 2026-09-10 08:37:20 +02:00
shell-aliases.md docs(coding-agent): add windows.md and shell-aliases.md 2026-01-25 22:12:03 +01:00
skills.md fix(coding-agent): keep skills available with bash-only tools (#8552) 2026-09-03 11:08:26 +02:00
terminal-setup.md fix(tui): detect Zed terminal capabilities (#8828) 2026-09-01 11:03:34 +02:00
termux.md feat(tui): Simplify clipboard handling (#9163) 2026-09-05 23:52:32 +02:00
themes.md feat(tui): alt mode scrollbar but prettier (#8801) 2026-09-04 00:05:47 +02:00
tmux.md docs(coding-agent): update tmux requirement docs 2026-06-07 10:34:57 +02:00
tui.md fix(coding-agent): embed all session status spinners in the editor border 2026-09-07 15:31:00 +02:00
usage.md feat(tui): allow disable copy on fullscreen, ctrl + x copies selection (#8731) 2026-08-27 18:07:54 +02:00
windows.md feat(coding-agent): add optional PowerShell tool (#8512) 2026-08-24 12:27:03 +02:00