9301d387faae58f9c6d5a7f9118d3d9d8d1874d4
- modelsdev.rs: ModelCatalog parses models.dev api.json → ModelInfo keyed by (provider, model); 24h file cache at ~/.cache/ai-harness/models.json with a baked assets/models-snapshot.json fallback so cost/limits work offline. load_cached_or_baked (no network) + refresh/refresh_default_cache (background). - App: loads the catalog at init (cached-or-baked, never blocks), warms the cache in a background task, and passes the session model's pricing into RunConfig.cost so session cost accrues for real. - TUI: AppState tracks session_cost/session_tokens from Session events; status bar shows "<tokens> · $<cost>". Snapshots updated. - 7 modelsdev tests (parse, defaults, unknown-model, baked snapshot, cache TTL, cached-vs-baked load). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
ai-harness
A terminal AI coding harness in Rust — ratatui TUI, GitHub Copilot / OpenAI / Anthropic providers, and fully config-driven multi-agent orchestration inspired by opencode and oh-my-opencode-slim.
Status: design phase. The full design lives in docs/.
Languages
Rust
100%