mirror of
https://github.com/agentclientprotocol/claude-agent-acp.git
synced 2026-11-29 20:52:58 +00:00
Port the bridge's effort, Fast mode, ultracode and agent options and their set paths, the refusal fallback notice and model swap, the context window seed (getContextUsage and the cross-session cache), conversation_reset handling, and ExitPlanMode's clear-context option to the native v2 core. The protocol-neutral code moves out of acp-agent.ts into shared modules that both cores use: session-config-options.ts, session-fast-mode.ts, context-window.ts, the effort switch helpers in session-effort.ts, withCurrentModelInfo, and modelRefusalFallback. The native core continues an accepted clear-context plan with Claude Code's own /clear on the same query instead of the bridge's fresh query; the client sees the same updates.