Files
ai-agent/backend/models.py
Gabriel Vidal 18b9888841 feat(ai-agent): harness-aware backend — pi models, dual transcript sources, qwen pricing
/api/spawn + /api/resume accept harness ("claude"|"pi"), stamp it into the
conversation meta sidecar, and resume falls back to the harness the session
started on. /api/models now merges the Anthropic list with pi-harness entries
(qwen 3.6 via OpenRouter + EVOX2 LM Studio local; PI_MODELS_JSON override),
each entry tagged harness/provider/label. The indexer + SSE watcher accept a
list of transcript sources — the Claude Code projects dir plus the runner's
PI_TRANSCRIPTS_DIR mirror (new ro mount) — imported into one archive.
conversations.py prices the qwen family (OpenRouter rates; local ≈ free) and
ConvMeta carries the harness to the UI.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-13 04:40:25 +02:00

7.7 KiB