anomalyco / anomalyco/opencode
Legacy agent Markdown loses a separate model variant
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Description
A legacy agent Markdown definition with separate model and variant fields loses the requested variant. Adding another legacy field, such as temperature, makes the variant survive.
Plugins
Built-in agent configuration; no external plugins or model calls.
OpenCode version
V2 source checkout at 541937d12449e64d078c67e9013f1c288004b83f.
Steps to reproduce
Load this temporary agent file through the real config plugin and read its registered metadata with Agent.Service.get:
---
model: example/chat
variant: high
---
Review carefully.
example/chat is a fictional fixture reference; no model request is needed. Expected: the registered model retains variant: "high". Actual: only the provider and model ID remain. The native reference example/chat#high, or the legacy definition with temperature: 0.5 added, preserves the variant.
Operating System
macOS arm64, Bun 1.4.1.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue with the temporary legacy agent definition through the real config plugin, then inspect the metadata returned by Agent.Service.get. Trace how separate model and variant fields are registered, using the working native reference and the temperature variant as comparisons. Done means the registered metadata retains variant: "high" without requiring another legacy field or a model request.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- ai-infra-agents
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100