Skip to content

feat: two-tier model config for LLM cost control#173

Merged
G9Pedro merged 1 commit intomasterfrom
cursor/llm-model-cost-tiers-9e61
Mar 14, 2026
Merged

feat: two-tier model config for LLM cost control#173
G9Pedro merged 1 commit intomasterfrom
cursor/llm-model-cost-tiers-9e61

Conversation

@G9Pedro
Copy link
Copy Markdown
Contributor

@G9Pedro G9Pedro commented Mar 14, 2026

Closes #157

Adds tiered model configuration to .clawvault.json:

{"models": {"background": "claude-haiku-4-5", "default": "claude-sonnet-4-5", "complex": "claude-opus-4"}}
  • New ModelTier type and models.background/default/complex config keys
  • Observer compression uses tier-aware model resolution
  • Fully backward compatible — works without models config (falls back to env var)
  • All existing features, search backends, and config keys preserved

Files: src/lib/config-manager.ts, src/observer/observer.ts + tests

Co-authored-by: G9Pedro <G9Pedro@users.noreply.github.com>
@G9Pedro G9Pedro merged commit 6522d39 into master Mar 14, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Two-tier model config: backgroundModel vs complexModel for cost control

2 participants