Skip to content

Conversation

@marcusquinn
Copy link
Owner

Summary

  • Add model-registry-helper.sh — a SQLite-backed provider/model registry that syncs from subagent frontmatter, embedded pricing data, and live provider APIs
  • Supports 8 commands: sync, list, status, check, suggest, deprecations, diff, export
  • Implements normalized name matching to handle cross-provider naming variants (e.g., claude-3-5-haiku vs claude-haiku-3.5)

Task

Closes subtask t132.2 of the Cross-Provider Model Routing plan (t132). Unblocks t132.3 (Model availability checker).

Changes

File Change
.agents/scripts/model-registry-helper.sh New script (1122 lines)
.agents/tools/ai-assistants/models/README.md Added registry docs and updated "Adding New Models" section
.agents/tools/context/model-routing.md Added Model Registry section
.agents/subagent-index.toon Registered new script (52 scripts total)

Design Decisions

  • SQLite storage — matches existing framework patterns (memory, mail, supervisor DBs)
  • Three sync sources — subagent frontmatter for tier mapping, compare-models-helper.sh for pricing, provider APIs for live discovery
  • Normalized name matching — strips version numbers, date suffixes, and preview suffixes to match models across different naming conventions
  • 24h sync cache — avoids redundant API calls; --force overrides
  • Backup-before-sync — uses shared-constants.sh backup_sqlite_db pattern

Testing

All commands tested end-to-end:

  • sync --force — 5 tiers synced, 17 models from embedded data
  • list / list --provider Anthropic — correct filtering
  • status / status --json — health metrics and tier mapping
  • check — all 5 subagent tiers match registry entries
  • diff — correctly identifies matched vs unmatched models
  • suggest / deprecations — working (empty results expected without API keys)
  • export --json / export --csv — valid output
  • ShellCheck: zero violations

…eriodic sync (t132.2)

Create SQLite-backed model registry that syncs from three sources:
1. Subagent frontmatter (models/*.md tier definitions)
2. Embedded data (compare-models-helper.sh MODEL_DATA pricing/capabilities)
3. Provider APIs (Anthropic, OpenAI, Google, OpenRouter, Groq, DeepSeek)

Commands: sync, list, status, check, suggest, deprecations, diff, export
Features: 24h sync cache, normalized name matching across naming conventions,
JSON/CSV export, provider/tier filtering, backup-before-sync safety.

Design decisions:
- SQLite storage matches existing framework patterns (memory, mail, supervisor)
- Normalized name matching handles claude-3-5-haiku vs claude-haiku-3.5 variants
- Bidirectional LIKE + normalization ensures subagent-to-registry matching works
  across different provider naming conventions (preview suffixes, date suffixes)
- Reuses shared-constants.sh, init_log_file, backup_sqlite_db patterns
@gemini-code-assist
Copy link

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 9, 2026

Warning

Rate limit exceeded

@marcusquinn has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 17 minutes and 12 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feature/t132.2

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link

github-actions bot commented Feb 9, 2026

🔍 Code Quality Report

�[0;35m[MONITOR]�[0m Code Review Monitoring Report

�[0;34m[INFO]�[0m Latest Quality Status:
SonarCloud: 0 bugs, 0 vulnerabilities, 50 code smells

�[0;34m[INFO]�[0m Recent monitoring activity:
Mon Feb 9 05:10:34 UTC 2026: Code review monitoring started
Mon Feb 9 05:10:35 UTC 2026: SonarCloud - Bugs: 0, Vulnerabilities: 0, Code Smells: 50

📈 Current Quality Metrics

  • BUGS: 0
  • CODE SMELLS: 50
  • VULNERABILITIES: 0

Generated on: Mon Feb 9 05:10:38 UTC 2026


Generated by AI DevOps Framework Code Review Monitoring

@sonarqubecloud
Copy link

sonarqubecloud bot commented Feb 9, 2026

@marcusquinn marcusquinn merged commit 59e951f into main Feb 9, 2026
11 checks passed
alex-solovyev added a commit that referenced this pull request Feb 9, 2026
All 8 subtasks of t132 (Cross-Provider Model Routing) are now complete:
- t132.1: Model-specific subagents (PR #758)
- t132.2: Provider/model registry (PR #761)
- t132.3: Model availability checker (PR #770)
- t132.4: Fallback chain config (PR #781)
- t132.5: Supervisor model resolution (PR #787)
- t132.6: Quality gate with escalation (PR #788)
- t132.7: Multi-provider runner/cron support (PR #789)
- t132.8: Cross-model review workflow (PR #791)

Also fixed stale git conflict markers in TODO.md.
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.

1 participant