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
:fix/engram-is-canonical
:fix/graph-edges-no-canonical-clobber
:docs/architecture-2026-08-14-deep-night
:fix/mcp-wrapper-agentic-routing
:merge-pr154-v2
:merge-pr151-v2
:merge-pr150-v2
:merge-pr149-v2
:build-audit-1786832983
:fix-mcp-wrapper-tool-schemas
:docs-cognitive-architecture
:docs/session-2026-08-13-language-faculty
:docs/geo-operators-el-cutover-reversal-2026-08-13
:docs/engram-cognitive-architecture-2026-08-12
:engram-store-wiring
:el-route-decorators
:fix/bound-session-payload
:rebase/openai-tools-onto-main
:rebase/gate-state-key-reads-onto-main
:feat/gold-set-heldout
:feat/structural-audit
:feat/claim24-unfloored-semantic
:feat/executive-filter-recall
:feat/recall-through-activation
:chore/regen-soul-amalgam-20260807
:reconcile/hotfix-to-main-launch
:salvage/elh-state-20260704
:feat/plan-mode-endpoint
:fix/operator-identity-home-resolution
:fix/prevent-engram-corruption
: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
:docs/conversation-retrieval-design
No Reviewers
Labels
Clear labels
BETA-CRITICAL
blocks-public-beta
HELD
ORTHOGONAL
P0
POST-BETA
security
On the beta critical path — must resolve before ship
Must be fixed before any public beta
Blocked pending an external decision (counsel / dual sign-off)
Parallel workstream (testing/hardening) — safe to assign off critical path
Drop-everything severity
Important but not blocking the beta ship
Security vulnerability
No labels
Milestone
No items
No Milestone
Projects
Clear projects
No projects
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: neuron-technologies/neuron#61
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