pi-mono/packages/coding-agent/src/core
Armin Ronacher 3d8f74357c
feat(ai): support message-anchored tool loading (#6474)
This adds cache-friendly dynamic tool loading anchored to tool results. Purely additive active-tool changes are recorded with `addedToolNames`, allowing supported Anthropic and OpenAI Responses models to load tool definitions at the point they become available instead of placing them in the cached prompt prefix.

It retains safe fallback behavior for unsupported models and non-additive changes but it will wipe caches.
2026-07-10 23:52:54 +02:00
..
compaction fix(coding-agent): count custom messages in compaction budget 2026-07-09 12:46:03 +02:00
export-html fix: upgrade marked to 18.0.5 2026-06-16 17:41:59 +02:00
extensions feat(ai): support message-anchored tool loading (#6474) 2026-07-10 23:52:54 +02:00
tools fix(coding-agent): allow extra edit replacement fields 2026-07-04 01:52:17 +02:00
agent-session-runtime.ts Closes #5045, /new should not persist if original session was ephemeral 2026-06-09 14:17:33 +02:00
agent-session-services.ts feat(coding-agent): add extension project trust decisions 2026-06-08 12:59:08 +02:00
agent-session.ts feat(coding-agent): add prompt cache miss tracking (#6427) 2026-07-09 14:12:57 +02:00
auth-guidance.ts chore(ts): use source import extensions 2026-05-20 00:04:03 +02:00
auth-storage.ts fix(coding-agent): surface auth storage save failures 2026-07-01 21:24:26 +02:00
bash-executor.ts chore(ts): use source import extensions 2026-05-20 00:04:03 +02:00
cache-stats.ts feat(coding-agent): add prompt cache miss tracking (#6427) 2026-07-09 14:12:57 +02:00
defaults.ts chore: migrate pi packages to earendil works scope 2026-05-07 15:59:42 +02:00
diagnostics.ts refactor(coding-agent): unify SkillWarning and ResourceDiagnostic 2026-01-24 00:45:01 +01:00
event-bus.ts Fix event bus async error handling, clear pending messages on session switch, improve SDK docs 2026-01-04 22:04:50 +01:00
exec.ts chore(ts): use source import extensions 2026-05-20 00:04:03 +02:00
experimental.ts feat(coding-agent): add experimental feature guard (#5547) 2026-06-09 13:23:07 +02:00
footer-data-provider.ts fix: refresh branch in footer on WSL /mnt repos 2026-05-31 17:12:11 -07:00
http-dispatcher.ts fix(coding-agent): handle undici mid-stream client errors 2026-06-30 11:44:14 +02:00
index.ts fix(coding-agent): add settled agent lifecycle event 2026-07-09 12:42:08 +02:00
keybindings.ts fix(coding-agent): fall back to text clipboard paste 2026-07-10 21:46:15 +02:00
messages.ts chore: migrate pi packages to earendil works scope 2026-05-07 15:59:42 +02:00
model-registry.ts feat(ai): support message-anchored tool loading (#6474) 2026-07-10 23:52:54 +02:00
model-resolver.ts fix(coding-agent): skip unauthenticated default model 2026-07-02 10:48:11 +02:00
output-guard.ts fix(coding-agent): retry RPC stdout backpressure 2026-05-24 22:59:35 +02:00
package-manager.ts Improve project-local pi config (#6309) 2026-07-06 20:50:30 +02:00
project-trust.ts feat(coding-agent): export project config dir name 2026-06-18 10:27:11 +02:00
prompt-templates.ts feat(coding-agent): add prompt template argument defaults 2026-06-09 15:12:07 +03:00
provider-attribution.ts fix(coding-agent): remove Vercel AI Gateway attribution 2026-07-03 15:14:01 +02:00
provider-display-names.ts fix(coding-agent): clarify ZAI Coding Plan label 2026-06-22 13:04:08 +02:00
resolve-config-value.ts fix(coding-agent): run legacy WSL bash commands via stdin 2026-06-19 15:08:25 +02:00
resource-loader.ts fix(coding-agent): avoid Windows context file walk hang 2026-07-09 11:30:59 +02:00
sdk.ts feat(coding-agent): add before_provider_headers extension hook (#6350) 2026-07-06 22:35:56 +02:00
session-cwd.ts fix(coding-agent): handle missing session cwd 2026-04-05 21:24:32 +02:00
session-manager.ts fix(ai,agent,coding-agent): normalize null message content at ingestion boundaries (#6343) 2026-07-06 20:47:08 +02:00
settings-manager.ts feat(coding-agent): expand ~ in shellPath setting (#6470) 2026-07-09 23:23:06 +02:00
skills.ts fix(coding-agent): Clean up Path Handling (#4873) 2026-05-22 11:25:15 +02:00
slash-commands.ts fix(coding-agent): align reload descriptions 2026-07-09 11:47:44 +02:00
source-info.ts chore(ts): use source import extensions 2026-05-20 00:04:03 +02:00
system-prompt.ts Remove unavailable tool preference guideline 2026-05-28 23:37:13 +02:00
telemetry.ts chore(ts): use source import extensions 2026-05-20 00:04:03 +02:00
timings.ts fix(coding-agent): preserve extension timing measurements 2026-06-25 02:07:32 -05:00
trust-manager.ts fix(coding-agent): avoid project trust prompt for update (#5674) 2026-06-12 23:37:16 +02:00