Overview
Build a Cmd+K panel for AI-powered text transformations, separate from the existing Cmd+P command palette.
Current State
- Cmd+P = Command Palette (21 commands)
- Cmd+K = Currently
editor:insert-link
- AI Infrastructure =
packages/ai-assistant/ (Claude client, prompts, RAG) — no UI commands wired
Design
Trigger: Cmd+K (remap insert-link to Cmd+Shift+K)
Sections:
- Quick Actions: New Note, Search, Open Recent
- AI Transform (requires selection): Summarize, Tweet, Rewrite, Extract, Expand, Blog Outline, Custom
- AI Ask (knowledge context): Ask about notes, Find related ideas
Workflow: Select text → Cmd+K → "Summarize" → AI streams result → Preview → "Insert" → Replaces selection
Architecture
renderer/components/CommandK/
├── CommandKPanel.tsx
├── CommandKInput.tsx
├── CommandKResults.tsx
├── CommandKPreview.tsx
└── useCommandK.ts
packages/ai-assistant/src/
├── commands/ (summarize, tweet, rewrite, etc.)
└── registry.ts
Decisions Needed
Deliverables
Overview
Build a Cmd+K panel for AI-powered text transformations, separate from the existing Cmd+P command palette.
Current State
editor:insert-linkpackages/ai-assistant/(Claude client, prompts, RAG) — no UI commands wiredDesign
Trigger: Cmd+K (remap insert-link to Cmd+Shift+K)
Sections:
Workflow: Select text → Cmd+K → "Summarize" → AI streams result → Preview → "Insert" → Replaces selection
Architecture
Decisions Needed
Deliverables