-
Notifications
You must be signed in to change notification settings - Fork 1.5k
feat(model-optimizer): static model rankings with model-config --apply #866
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
feat(model-optimizer): static model rankings with model-config --apply #866
Conversation
Static rankings by category (orchestrator, reasoning, fast, coding, instruction, multimodal, creative, free). No API calls needed - completely free model optimization. HELP WANTED: We need help ranking AI models! Please contribute. Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1 issue found across 9 files
Confidence score: 4/5
- This PR looks safe to merge with minimal risk; the main concern is limited to config path handling in the test command.
src/cli/model-optimizer/test-command.tswritesoh-my-opencode.jsonto a hard-coded~/.configpath, which can bypass shared config resolution (XDG/APPDATA/OPENCODE_CONFIG_DIR) and lead to applied config not being read.- Pay close attention to
src/cli/model-optimizer/test-command.ts- hard-coded config path may bypass shared resolution and cause applied config to be ignored.
Prompt for AI agents (all issues)
Check if these issues are valid — if so, understand the root cause of each and fix them.
<file name="src/cli/model-optimizer/test-command.ts">
<violation number="1" location="src/cli/model-optimizer/test-command.ts:131">
P2: --apply writes oh-my-opencode.json to a hard-coded ~/.config path, bypassing the shared config resolution (XDG/APPDATA/OPENCODE_CONFIG_DIR) used elsewhere, so applied config may not be read.</violation>
</file>
Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.
Adds 'model-config' command that detects available models and shows optimal configuration based on static rankings. Usage: model-config # Show optimal config model-config --verbose # Show full rankings model-config --apply # Write config to oh-my-opencode.json Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Documentation for the simplified static rankings approach. Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
246ac02 to
d9effb3
Compare
Fixes the issue identified by cubic-dev-ai where --apply used a hardcoded ~/.config path, bypassing the shared config resolution logic that respects: - OPENCODE_CONFIG_DIR environment variable - XDG_CONFIG_HOME on Linux - APPDATA on Windows Now uses getOpenCodeConfigPaths() from shared utilities to ensure the applied config is written to the same location that oh-my-opencode reads from.
|
Fixed the issue identified by cubic-dev-ai in commit 059cf67: Issue: Fix: Now uses
This ensures the applied config is written to the same location that oh-my-opencode reads from. |
- Add detailed JSDoc in rankings.ts explaining how to modify each section - Expand AGENTS.md with step-by-step contribution guide - Add Model Config Optimizer section to main README with usage examples
|
Thinking out loud... The best community input you can get is from https://lmarena.ai/leaderboard for general categories beyond just programming. We could probably pick different categories across these ranking sites and tie them to different agents. |
Summary
model-configCLI command that shows optimal model configuration based on static rankings--applyflag to automatically write config to the user's oh-my-opencode.jsonUsage
Help Wanted 🙏
We need help ranking AI models!
The static rankings in
src/cli/model-optimizer/rankings.tsare based on general observations, but we'd love community input to improve them. If you have experience with these models and can help refine the rankings, please:Categories that need ranking help:
orchestrator- Best overall models for complex tasksreasoning- Best for debugging/architecturefast- Fast + capable for quick lookupscoding- Best coding modelsinstruction- Best instruction-followingmultimodal- Vision-capable modelscreative- Creative/artistic modelsfree- Free/cheap fallback modelsTest Results