Add plan-mode endpoint: POST /api/chat {mode:'plan'} (#27) #61
Closed
will.anderson
wants to merge 1 commits from
feat/plan-mode-endpoint into main
pull from: feat/plan-mode-endpoint
merge into: :main
:main
:feat/plan-mode-endpoint
:fix/operator-identity-home-resolution
:fix/wrapper-backlog-endpoints
:fix/list-typed-slice-offset
:feat/connectors-call-route
:fix/chat-vision-attachments
:fix/prevent-engram-corruption
:fix/emergency-regressions
:fix/session-continuity-hook
:fix/context-dedup-shared-ids
:fix/engram-float-parser
:improve/recall-context-format
:improve/recall-context-dedup
:improve/recall-cross-session-continuity
:improve/recall-emotional-recall
:improve/recall-activation-seed
:improve/recall-recall-completeness
:improve/recall-temporal-precision
:improve/recall-engram-scoring
:improve/recall-recall-reliability
:improve/recall-session-start-recall
:improve/reliability-engram-write
:improve/reliability-state-management
:improve/soul-memory-formation
:improve/safety-crisis-detection
:improve/reliability-route-error-recovery
:improve/reliability-llm-retry
:improve/reliability-session-boundary
:improve/reliability-safety-resilience
:improve/reliability-engram-connection
:improve/soul-routes-api
:improve/reliability-cross-session-affective
:propose/agent-workspace-root-read
:improve/reliability-conv-history
:improve/soul-strip
:improve/soul-chat-pipeline
:docs/conversation-retrieval-design
:propose/no-fake-tools-in-chat-mode
:fix/ci-soul-build-single-file
:fix/canonical-self-bridge
:feat/agent-tool-workspace-scope
:fix/agentic-tools-duplicate-web-search
:feat/layer-safety
:feat/layer-imprint
:feat/layer-stewardship
:test/layer-composition
:test/layer-safety
:test/layer-stewardship
:test/layer-imprint
:feat/memory-delete-update
:feat/native-web-search
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Delete Branch "feat/plan-mode-endpoint"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #27 item 2
What
Adds a
mode: "plan"path toPOST /api/chat:How
chat.el:handle_chat_plan(body)— single LLM call with a structured planning prompt. No tool calls. No state mutation. Grounded by Engram context for the message.routes.el: all/api/chathandlers now checkmode == "plan"before theagenticflag, routing to the new handler.Why
The agent panel (neuron-ui feat/agent-panel) has a "Plan before running" toggle. When on, the panel sends
{mode:"plan"}first, shows the step list, user edits/approves, then the real agentic request fires. This is the soul-side contract for that feature.Deployment note
dist/soul.cregeneration needed to ship (standard dist refresh — same flow as prior soul releases).POST /api/chat {mode:'plan'} returns a structured step list from the LLM without executing any tools. The client can show and edit this plan before sending the real agentic request. Implements issue #27 item 2 (Agent panel soul contract — plan mode).Pull request closed