How yahya-tech-ai/saro works
Saro is an AI workspace whose implemented path centers on mode-aware chat: a user works in the web UI, submits a message, the chat API builds a prompt and calls a configured model provider, streams the reply, and saves conversation history. Separate APIs manage provider configuration and saved chats. The repository also includes Aro Mini, a standalone inference API backed by a local PyTorch checkpoint. README capabilities such as coding, research, and agent modes are represented by prompt modes; broader automation and overnight execution are not evidenced here. UI-to-route wiring is not shown in the sampled source.
Main entry points: store.ts Chat and message store · route.ts Chat streaming · modes.ts Mode prompts · config.ts Provider configuration
Components 17
Workspace UI
- Saro workspace
app/page.tsx
Workspace API
- Chat streaming
app/api/chat/route.ts - Model settings API
app/api/config/route.ts - Provider status API
app/api/status/route.ts - Chat listing API
app/api/chats/route.ts - Chat detail API
app/api/chats/[id]/route.ts - Turn save API
app/api/turns/route.ts - Aro Mini route
app/api/aro-mini/route.ts
Configuration and chat state
- Mode prompts
lib/modes.ts - Provider configuration
lib/config.ts - Chat and message store
lib/store.ts - SQLite database
lib/db.ts
Aro Mini inference
- Inference API server
aro-mini/server.py - Transformer generation
aro-mini/model.py
Other components
- Workspace user
- External model provider
- Model checkpoint
aro-mini/aro_mini_v0_1.pt
Connections 15
- Workspace user → Saro workspace: uses
README.md - Chat streaming → Provider configuration: reads settings
app/api/chat/route.ts - Chat streaming → Mode prompts: builds prompt
app/api/chat/route.ts - Chat streaming → Chat and message store: loads and saves
app/api/chat/route.ts - Chat streaming → External model provider: requests completion
app/api/chat/route.ts - Model settings API → Provider configuration: reads and saves
app/api/config/route.ts - Provider status API → Provider configuration: reads settings
app/api/status/route.ts - Chat listing API → Chat and message store: lists chats
app/api/chats/route.ts - Chat detail API → Chat and message store: reads and deletes
app/api/chats/[id]/route.ts - Turn save API → Mode prompts: parses modes
app/api/turns/route.ts - Turn save API → Chat and message store: saves turns
app/api/turns/route.ts - Chat and message store → SQLite database: queries
lib/store.ts - Chat and message store → Mode prompts: normalizes modes
lib/store.ts - Inference API server → Transformer generation: loads and generates
aro-mini/server.py - Transformer generation → Model checkpoint: loads weights
aro-mini/model.py