# Vibe App Improvement Specification ## Realistic Enhancements Based on Existing Architecture ## Current State Analysis Vibe is an AI-powered app builder with: - ✅ **Mantis Farm**: Multi-agent system (Mantis #1-4 with EVOLVED/BRED/WILD states) - ✅ **Pipeline Stages**: PLAN → BUILD → REVIEW → DEPLOY → MONITOR - ✅ **Canvas**: Task node visualization with drag-and-drop - ✅ **Integrated Tools**: Code editor, database schema, git, browser, terminal (via modals) - ✅ **Chat Interface**: Real-time WebSocket with Mantis #1 - ✅ **Deployment**: Internal (GB Platform) and External (Forgejo ALM) - ✅ **MCP Panel**: Model Context Protocol servers - ✅ **Backend**: `/api/autotask/classify` endpoint for intent processing ## 🎯 Critical Improvements (Fix What's Broken) ### 1. Fix Task Node Rendering **Problem:** Nodes don't persist after page refresh **Fix:** ```javascript // Save nodes to localStorage function saveCanvasState() { localStorage.setItem('vibe_canvas_state', JSON.stringify({ nodes: taskNodes, project: currentProject, timestamp: Date.now() })); } // Restore on load function restoreCanvasState() { const saved = localStorage.getItem('vibe_canvas_state'); if (!saved) return; const state = JSON.parse(saved); currentProject = state.project; state.nodes.forEach((node, i) => { setTimeout(() => { addTaskNode(node.title, node.description, node.meta); }, i * 200); }); } // Call on init document.addEventListener('DOMContentLoaded', restoreCanvasState); ``` ### 2. Make Editor Actually Editable **Problem:** Editor modal loads but can't edit files **Fix:** ```html