-
Notifications
You must be signed in to change notification settings - Fork 16
Description
Description
Implement an AI copilot that analyzes drawing patterns and context to provide intelligent suggestions, auto-complete strokes, and predict user intent. Similar to GitHub Copilot but for visual drawing, suggesting next shapes, colors, and completing partial drawings.
Current workflow
Users draw without AI assistance; no predictive suggestions or context-aware completions.
Proposed solution
Train or fine-tune a model on canvas stroke sequences to predict likely next actions. Use transformer-based models to understand drawing context and provide real-time suggestions shown as ghost overlays that users can accept or ignore.
Technical requirements
Files to create:
backend/services/stroke_prediction_service.pybackend/services/context_analyzer.pybackend/ml_models/stroke_predictor.pyfrontend/src/components/AI/SuggestionOverlay.jsxfrontend/src/components/AI/CopilotPanel.jsxfrontend/src/hooks/useCopilot.js
Files to modify:
Canvas.jsdrawing.jsToolbar.js
Backend:
routes/copilot.pyconfig.py
Skills
Sequence modeling, transformer architectures, Python ML/PyTorch, React real-time UI, model serving, prompt engineering
Key features
- Real-time stroke prediction as ghost overlays
- Context-aware tool and color suggestions
- Pattern recognition (detecting grids, symmetry, repetition)
- Intent prediction (completing shapes, aligning objects)
- Multi-modal suggestions (text annotations, emoji additions)
- User feedback loop for model improvement
- Configurable suggestion aggressiveness
- Keyboard shortcuts to accept/reject suggestions
Challenges
Model training data collection, prediction latency (must be < 100ms), avoiding unhelpful suggestions, balancing creativity vs automation, model size vs inference speed
Getting started
Collect stroke sequence dataset from existing rooms, implement baseline prediction model, add ghost overlay rendering, create copilot API
Tests
Unit: stroke sequence → valid prediction format
Integration: suggestion accepted → added to canvas
UI: ghost overlay renders and can be dismissed
Performance: prediction latency < 100ms
Accuracy: suggestion acceptance rate > 30%
Resources
Transformer models for sequences, PyTorch/TensorFlow serving, WebSocket streaming predictions, sketch-rnn, Quick Draw dataset