Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.
Python agentagent-osaiai-agentsai-partnerchatopsclaudeclaude-codecodexdevtoolsdiscord-botlark-botllmlocal-firstlong-term-memoryopencodeslack-botvibe-codingvibeywechat
Desktop Mini Main Session MVP
Change Contract
- Intent: Make the desktop mini resolve one stable built-in Vibey session through
GET /api/sessions/main. - Backend boundary: Resolve or recreate
ses_mainunder the SQLite writer lock. The row hasscope_id=NULL,metadata.kind=main, the built-in Vibey Agent, and a principal-safe~/.avibe/main/<principal>/workdir created on first use. Returncan_chat=truefor an authorized caller even without a Project. - Frontend boundary:
ApiContext.getMainSession()calls the new endpoint.PetPageuses that result to bind the main session on startup and through its Vibey switcher path, while existing bindings continue to validate throughgetSessionResult(session_id). - Compatibility: Keep
POST /api/desktop-mini/sessionunchanged. Preserve existing standalone session behavior by using the new explicitworkdironly for the main-session path. - Validation contract: Cover first create, reuse, row recreation, non-Show-Page workdir, no-Project creation, and the frontend request path. Run focused pytest, changed-file Ruff, and
uibuild. - Out of scope: Permissions, Inbox, Show Page, IM, native desktop code, context rotation, and migration of old desktop-mini bindings.
Repair Contract
- Keep the fixed
ses_mainidentity and serve only the instance Owner. Do not add principal-to-session mapping or editor access for standalone main sessions in this slice. - Validate every built-in invariant before reusing an existing row. A corrupted row returns a coded conflict instead of being silently repaired.
- Treat an archived
ses_mainrow as terminal. Normal archive and update paths refuse the reserved ID, and the main-session endpoint never reactivates an archived row. - Prepare the main workdir before reserving the SQLite writer lock. Ordinary standalone sessions keep their existing Show Page workdir behavior.