-
Notifications
You must be signed in to change notification settings - Fork 1
Plan Mode
Edge adaptation status of the upstream plan mode collaboration feature.
Upstream reference: Plan Mode
Plan Mode (ctx.planMode) is an optional per-agent collaboration state that injects soft guidance into model requests while active. It provides:
-
Logged state —
plan/modeevents record activation/deactivation. These are logged but never enter the model transcript. State recovers throughfoldPlanMode()on session load. -
Policy prompt section — when active, a
plan:policysection is injected into the system prompt with deployment-configured guidance text. -
Exit tool + command — registers
exit_plan_modetool and/planslash command for user control. - Pending selection — user selections are queued and appended at the next pre-step boundary, ensuring consistent ordering with other session events.
Plan Mode is independent of the agent loop — it's a pure state toggle with a prompt-injection side effect.
Not Implemented The dsh-plan-mode package is not in Edge's dependencies and no plan mode plugin is installed. The /plan command and exit_plan_mode tool are not available.
Plan Mode has minimal dependencies — it's a standalone cordis plugin that injects ['agents', 'systemPrompt'], both of which Edge already provides. There are no platform blockers (no Node.js APIs, no filesystem access). Installation would be a single ctx.plugin(PlanMode, { section: '...' }) call with a configured guidance text.
The /plan command requires the command system. Edge currently has a commands/list stub in handleEdgeRemote but no command execution infrastructure. Plan Mode's command registration would work if the upstream command system is installed.
All plans — Plan Mode uses only session events and system prompt sections. No additional Cloudflare products required.
| Component | Status | Blocker |
|---|---|---|
| PlanMode plugin | Missing | Not added to dependencies |
plan:policy section |
Missing | Requires plugin |
/plan command |
Missing | Requires command system |
exit_plan_mode tool |
Missing | Requires plugin |
Evaluate Plan Mode installation. The plugin has no platform dependencies and minimal inject requirements. Main question: what guidance text should the plan:policy section contain for Edge's Cloudflare runtime? The /plan command also depends on the command execution system, which is not yet fully wired.
- Home
- Architecture
- Core & Scope
- Session & Persistence
- Model & Context
-
Execution & Tools
- Tools
- Bash
- Subprocess 🚫
- PTY Session 🚫
- Background Jobs 🚫
- Filesystem
- LSP Navigation 🚫
- Code Runtime 🚫
-
Web Access
⚠️ -
Skills
⚠️ - Workflow 🚫
- Subagent 🚫
-
Policy & Interaction
- Goal
- Approval 🚫
- Permission Presets 🚫
-
Sandbox
⚠️ - Plan Mode 🚫
- User Interaction 🚫
- Commands 🚫
- Schedule 🚫
- Message Feedback 🚫
- Platform & Access
- Development
- 首页
- 架构
- 核心与作用域
- 会话与持久化
- 模型与上下文
- 执行与工具
- 策略与交互
- 平台与接入
- 开发