Runs the workflow for optimizing oh-my-opencode agent and category model settings in this project. Use when the user wants to optimize, review, recalibrate, or compare OMO model mappings, especially for work vs personal profiles, provider preferences, or questions like "what should my omo agent models be", "optimize my oh-my-opencode models", or "recommend better models for sisyphus, explore, librarian, or categories".
Optimize oh-my-opencode model assignments for this repo by reconciling the user's target profile, provider scope, live model availability, and the latest upstream matching guidance.
This skill is for recommendation and analysis. It does not auto-edit Nix or JSON config unless the user separately asks for implementation.
Use this skill when the user wants to:
sisyphus, oracle, explore, or librarian,Do not use this skill for unrelated model questions, direct single-model substitutions with no optimization intent, or general LLM comparisons that are not about this project's OMO config.
Follow these principles throughout the workflow:
work or personal unless the user explicitly asks for both.opencode models output as the source of truth for what the user can actually select.The primary configuration file for this repo is:
modules/home-manager/features/ai-tools/opencode/plugins/oh-my-opencode.nix
Important local facts:
personalOverrides and workOverrides.agents.<name>.model and categories.<name>.model.~/.config/opencode/oh-my-opencode.jsonc.nh darwin switch . or nh os switch ., but this skill does not apply changes unless explicitly asked.Execute the workflow in this order.
First determine which profile is being optimized.
work or personal, use that.Then clarify provider scope.
Read the current OMO config before recommending anything.
Start with:
modules/home-manager/features/ai-tools/opencode/plugins/oh-my-opencode.nix~/.config/opencode/oh-my-opencode.jsonc if it exists and is relevantExtract the current agent and category assignments for the selected profile. Use that snapshot as the baseline for all comparisons.
Fetch the latest model-matching guide from:
https://github.com/code-yeongyu/oh-my-openagent/blob/dev/docs/guide/agent-model-matching.md
Treat it as a recommendation source, not guaranteed ground truth.
When using the guide:
Run opencode models against the provider set under consideration.
Use:
opencode models
opencode models <provider>
Examples:
opencode models github-copilot
opencode models openai
opencode models opencode
Rules:
opencode models unless separately documented.Do a slot-by-slot comparison for the selected profile.
Check at least these dimensions:
explore and librarian favor speed and cost over maximum reasoning depth.Be especially careful with these classes of slots:
sisyphus, metis, prometheus, and atlas.hephaestus, oracle, and momus.explore and librarian, where "upgrade to the smartest model" is usually the wrong move.visual-engineering, deep, quick, and unspecified-*, where the recommendation is often about the model family rather than a single universal winner.Report the answer in two buckets:
Use this section for cases where something is unavailable, incompatible with the chosen provider scope, or clearly conflicts with the upstream role shape.
Examples:
opencode models for the chosen provider set.Use this section for subjective upgrades or tradeoffs.
Examples:
For each recommendation, include:
When useful, include the Nix path to change, such as:
personalOverrides.agents.explore.modelworkOverrides.categories.quick.modelPrefer this structure:
<work|personal><providers considered><quality|cost|latency|balanced>A concise summary of the current relevant slots.
Only include if any exist.
Primary recommendations and tradeoffs.
State the recommended mapping direction in plain language. If multiple valid paths remain, choose one primary path and explain why.
List uncertainty, missing providers, fetch failures, or places where upstream and live availability diverged.
opencode models output.work and personal should share the same mapping.If the user explicitly asks to apply the recommendation:
modules/home-manager/features/ai-tools/opencode/plugins/oh-my-opencode.nix only for the selected profile.Do not perform this implementation path unless the user asked for it.