Synaro docs
AI task engine
Clarification, orchestration, Moonshot/Kimi integration, and task statuses.
AI work is asynchronous. The app calls the ai-orchestration-service, which may ask follow-up questions, then runs ANALYZING → GENERATING → APPLYING before marking DONE or FAILED.
Flow
- User sends a prompt from AI chat (optionally after voice capture)
- App may call /api/projects/[id]/ai-clarify for structured questions
- Submission creates a task polled via /api/ai-tasks/[taskId]
- Orchestrator reads the workspace via environment-service and writes file patches
- UI shows progress, resulting paths, and errors inline in the thread
Configuration
Set KIMI_API_KEY (Moonshot) in the orchestration service environment. Without a valid key, tasks fail with authentication errors from the provider.