pi-mono/packages/coding-agent/docs
Cristina Poncela Cubeiro 9e7582aa03
feat: sqlite session storage (#6594)
This PR:

- Adds retainedTail to compaction entries in the new agent harness so we don't have to walk up the tree for the 2000 tokens before compaction,
- Changes getPathToRoot to getPathToRootOrCompaction to only load until last compaction, as unnecessary to access all nodes where it is called,
- Adds a SQLite storage backend, in a separate packages/session-backend-sqlite, with a migration system and schemas as per on-site discussions: sessions to match session header messages (except for metadata, which I couldn't understand what it's used for or where it gets written, so I omitted it), session_entries for shared entry types as columns plus payload as a json for what remains, session_sequences to represent the append-only, serialized nature of the jsonl files, branch_entries to attribute nodes to branches (relationship one-to-many), and session_materialized with the session info (see /session in TUI) to act as a "cache" or quick-access for costs, message count, token info, labels, session name, and model-thinking-level config (e.g. for fast resume).
- This is compatible with the new agent harness Session abstraction.
2026-07-21 11:36:31 +02:00
..
images Add pi.dev donation attribution 2026-02-03 23:00:40 +01:00
compaction.md fix: complete extension usage accounting 2026-07-20 17:06:22 +02:00
containerization.md docs(coding-agent): reorder containerization patterns 2026-06-15 09:16:13 +02:00
custom-provider.md feat(coding-agent): accept native extension providers 2026-07-17 10:58:48 +02:00
development.md docs(coding-agent): fix development AGENTS link 2026-05-27 22:51:30 +02:00
docs.json docs(coding-agent): document security model 2026-06-08 15:56:29 +02:00
extensions.md fix: complete extension usage accounting 2026-07-20 17:06:22 +02:00
index.md feat(coding-agent): add llama.cpp router integration 2026-07-17 16:25:00 +02:00
json.md chore: migrate pi packages to earendil works scope 2026-05-07 15:59:42 +02:00
keybindings.md feat(coding-agent): add message copy shortcut 2026-07-10 21:35:53 +02:00
llama-cpp.md feat(coding-agent): add Hugging Face llama search 2026-07-17 17:13:39 +02:00
models.md add deferred tools support for kimi in openai-completions api 2026-07-16 12:26:56 +00:00
packages.md feat(coding-agent): add model catalog refresh flag 2026-07-16 12:46:49 +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 feat(ai): add Qwen Token Plan as built-in provider (#6858) 2026-07-20 13:53:30 +02:00
quickstart.md fix(coding-agent): fall back to text clipboard paste 2026-07-10 21:46:15 +02:00
rpc.md fix: complete extension usage accounting 2026-07-20 17:06:22 +02:00
sdk.md feat(coding-agent): replace model registry with model runtime 2026-07-14 17:48:45 +02:00
security.md docs(coding-agent): reorder containerization patterns 2026-06-15 09:16:13 +02:00
session-format.md feat: sqlite session storage (#6594) 2026-07-21 11:36:31 +02:00
sessions.md Add startup session name flag 2026-05-29 11:40:58 +02:00
settings.md feat(coding-agent): expand ~ in shellPath setting (#6470) 2026-07-09 23:23:06 +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 feat(coding-agent): add project trust gating 2026-06-05 10:51:43 +02:00
terminal-setup.md fix(tui): bind ctrl+j as newline by default 2026-06-22 13:57:02 +02:00
termux.md docs: recommend scriptless npm installs 2026-05-20 14:47:18 +02:00
themes.md feat(ai): add max thinking level 2026-07-09 22:30:53 +02:00
tmux.md docs(coding-agent): update tmux requirement docs 2026-06-07 10:34:57 +02:00
tui.md docs(coding-agent): fix obsolete extension UI examples closes #6735 2026-07-17 09:36:59 +02:00
usage.md fix: complete extension usage accounting 2026-07-20 17:06:22 +02:00
windows.md docs(coding-agent): add windows.md and shell-aliases.md 2026-01-25 22:12:03 +01:00