Planning mode (#2370)
<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Adds a new Plan chat mode for guided requirements gathering and
implementation planning, with a preview panel to review and accept
plans, and an automatic handoff to Agent v2 when accepted. Plans can be
saved as markdown when the user opts to persist and are retrievable per
chat/app.
- **New Features**
- Plan chat mode with a focused system prompt and plan-only agent tools
(planning_questionnaire, write_plan, exit_plan).
- Persistent questionnaire UI above the chat input (text, radio,
checkbox) and a Plan panel to view and accept the drafted plan.
- IPC events (plan:update, plan:questionnaire, plan:exit) to stream plan
updates, show questionnaires, and switch to implementation in a new chat
on acceptance.
- Optional persist toggle with file-based storage in .dyad/plans and
CRUD IPC (create/get/update/delete, per app/chat).
- Shortcut to implement a saved plan: /implement-plan=<plan-id>, with
plan ID validation for safety.
- **Migration**
- Install dependency: @base-ui/react/radio-group.
- Adds a Drizzle migration creating a plans table
(0025_romantic_mantis.sql).
- .dyad/ is automatically added to .gitignore.
<sup>Written for commit f464e9ad242bf731068ce7b86efb48ae734ea8c4.
Summary will update on new commits.</sup>
<!-- End of auto-generated description by cubic. -->
<!-- devin-review-badge-begin -->
---
<a href="https://app.devin.ai/review/dyad-sh/dyad/pull/2370">
<picture>
<source media="(prefers-color-scheme: dark)"
srcset="https://static.devin.ai/assets/gh-open-in-devin-review-dark.svg?v=1">
<img
src="https://static.devin.ai/assets/gh-open-in-devin-review-light.svg?v=1"
alt="Open with Devin">
</picture>
</a>
<!-- devin-review-badge-end -->
---------
Co-authored-by:
Claude Opus 4.5 <noreply@anthropic.com>
正在显示
drizzle/0025_romantic_mantis.sql
0 → 100644
e2e-tests/plan_mode.spec.ts
0 → 100644
src/atoms/planAtoms.ts
0 → 100644
src/components/ui/radio-group.tsx
0 → 100644
src/hooks/usePlan.ts
0 → 100644
src/hooks/usePlanEvents.ts
0 → 100644
src/ipc/handlers/planUtils.ts
0 → 100644
src/ipc/handlers/plan_handlers.ts
0 → 100644
src/ipc/types/plan.ts
0 → 100644
src/prompts/plan_mode_prompt.ts
0 → 100644
请
注册
或者
登录
后发表评论