PRD-66: Automatos Code Canvas
Executive Summary
Before & After
CURRENT STATE TARGET STATE
──────────────────────────── ────────────────────────────────
┌────────┐ ┌──────────────────┐ ┌────────┐ ┌────────────────────────┐
│ │ │ │ │ │ │ File Tree │ Monaco │
│ Chat │ │ Canvas (docs, │ │ Chat │ │ src/ │ ┌──────┐ │
│ Panel │ │ tables, code │ │ Panel │ │ ├─ auth.ts│ │- old │ │
│ │ │ as READ-ONLY │ │ │ │ ├─ test.ts│ │+ new │ │
│ │ │ snippets) │ │ │ │ └─ ... │ └──────┘ │
│ │ │ │ │ │ │ │ │
│ │ │ │ │ │ │ ┌─ Terminal ────────┐ │
│ │ │ │ │ │ │ │ $ pytest -v │ │
│ │ │ │ │ │ │ │ 4 passed, 0 fail │ │
│ │ │ │ │ │ │ └──────────────────┘ │
└────────┘ └──────────────────┘ └────────┘ └────────────────────────┘
- Read-only code snippets - Live Monaco editor with diff view
- Static terminal output - Streaming terminal (xterm.js)
- No file navigation - Full workspace file tree
- No accept/reject - Accept/Reject change controls1) Problem Statement
2) Goals & Success Metrics
Goals
ID
Goal
Description
Success Metrics
Metric
Target
Measurement
3) What Already Exists
Infrastructure (PRD-56 — Done)
Component
File
Status
Frontend Widget System (PRD-38.1/38.2 — Done)
Component
File
Status
The Gap
Missing Piece
Category
Solution
4) Technical Architecture
4.1 New Widget: coding_canvas
coding_canvas4.2 Component Hierarchy
4.3 Data Flow
4.4 Widget Type Registration
4.5 Tool to Widget Routing
5) Backend API Additions
5.1 Workspace File Browser
5.2 File Content Read
5.3 File Write (User Edits)
5.4 Enhanced Task Events
5.5 Worker-Side Changes
6) NPM Dependencies
Package
Version
Purpose
Bundle Size
7) Phased Implementation
Phase 1: Code Viewer Widget (Week 1)
Phase 2: Interactive Terminal (Week 2)
Phase 3: Full Coding Experience (Weeks 3-4)
8) Security Considerations
File Access
Terminal
File Editing (Phase 3)
9) Performance Considerations
Monaco Lazy Loading
Terminal Streaming
File Tree
10) Migration Path
Existing Widgets Unaffected
When CodingCanvas Activates
11) Future Extensions
Feature
Phase
Description
12) Competitive Landscape
Product
Code Canvas
File Tree
Diff View
Terminal
Accept/Reject
13) Implementation Checklist
Phase 1 (Code Viewer)
Phase 2 (Live Terminal)
Phase 3 (Full Coding)
14) Open Questions
#
Question
Options
Decision
Last updated

