How anuragdeshmukh27/q-ai works
Q is a local AI software-building team with a React pixel-office interface. The main workflow is a user goal or imported project entering through the UI and API, then moving through specification and contract design, planning, parallel engineering, review, integration and QA; generated projects can then be run and inspected. The README documents additional sandbox, model-routing, benchmarking, and record/replay capabilities. Several backend links are documented rather than visible in the partial excerpts, so those edges cite the README; unsampled implementation details are not inferred.
Main entry points: orchestrator.py Build orchestrator · App.tsx React interface · session.py Build sessions · goalspec.py Goal and contract design
Components 25
User interface
- React interface
frontend/src/App.tsx - Pixel office
frontend/src/office/scene.ts - UI state and stream
frontend/src/useQ.ts
Build workflow
- HTTP and WebSocket API
backend/app/main.py - Build sessions
backend/app/session.py - Build orchestrator
backend/app/orchestrator.py - Goal and contract design
backend/app/goalspec.py - Task planning
backend/app/agent/planning.py - Agent execution
backend/app/agent/loop.py - Code review
backend/app/agent/review.py - Branch integration
backend/app/integrator.py - Independent QA
backend/app/agent/qa.py
Agent runtime
- Sandboxed tools
backend/app/tools.py - Approval policy
backend/app/approvals.py - Structured model calls
backend/app/llm.py - Model routing
backend/app/router.py - VRAM scheduler
backend/app/scheduler.py - Model providers
backend/app/providers
Project output
- Generated project
backend/app/project.py - App scaffold
backend/app/scaffold.py - Resource design
backend/app/relations.py
Build history
- Build events
backend/app/events.py - Record and replay
backend/app/recording.py
Other components
- Builder
- Ollama
Connections 25
- Builder → React interface: sets goal
README.md - React interface → UI state and stream: uses state
frontend/src/App.tsx - UI state and stream → HTTP and WebSocket API: sends requests
frontend/src/useQ.ts - HTTP and WebSocket API → Build sessions: manages sessions
backend/app/main.py - Build sessions → Build orchestrator: starts builds
README.md - Build orchestrator → Goal and contract design: defines goal
backend/app/orchestrator.py - Build orchestrator → Task planning: plans tasks
backend/app/orchestrator.py - Build orchestrator → Agent execution: dispatches work
README.md - Build orchestrator → Code review: requests review
README.md - Build orchestrator → Branch integration: merges branches
README.md - Build orchestrator → Independent QA: runs QA
README.md - Agent execution → Sandboxed tools: uses tools
README.md - Sandboxed tools → Approval policy: checks policy
README.md - Build orchestrator → Structured model calls: requests completions
backend/app/orchestrator.py - Structured model calls → Model routing: selects model
- Structured model calls → VRAM scheduler: budgets models
backend/app/llm.py - VRAM scheduler → Model providers: loads provider
- Model providers → Ollama: calls locally
- Build orchestrator → Generated project: builds project
README.md - Build orchestrator → Build events: emits events
README.md - Build sessions → Record and replay: records or replays
README.md - Record and replay → Build events: stores events
README.md - Goal and contract design → Resource design: derives resources
- Goal and contract design → App scaffold: seeds app structure
- React interface → Pixel office: renders office
frontend/src/App.tsx