Short description
allow using different models for different opencode profiles
What problem does this solve?
I run two opencode profiles, one for work and one for personal stuff. I use magic-context for both. the problem is I cannot use different models for the historian / dreamer / sidecar between the two profiles. I tried using a project-level config, but that blocks overriding the models. what I would like is something similar to opencode's OPENCODE_CONFIG=, where I can specify which config to use for magic-context / AFT.
Proposed solution
an environment variable MAGIC_CONTEXT_CONFIG=, that can be used to override the default / project config when starting opencode.
Alternatives considered
project-level config: blocks changing model:
## ⚠️ Magic Context Config Warning
Some configuration values are invalid and were replaced with defaults:
- [project config] Ignoring historian.model from project config (security: historian model selection is user-level only; a repository cannot force extra compaction cost).
Check your `magic-context.jsonc` to fix these values.
(I understand preventing repos from forcing arbitrary models, so this will probably not change)
Area
OpenCode plugin
Additional context
No response
Short description
allow using different models for different opencode profiles
What problem does this solve?
I run two opencode profiles, one for work and one for personal stuff. I use magic-context for both. the problem is I cannot use different models for the historian / dreamer / sidecar between the two profiles. I tried using a project-level config, but that blocks overriding the models. what I would like is something similar to opencode's
OPENCODE_CONFIG=, where I can specify which config to use for magic-context / AFT.Proposed solution
an environment variable
MAGIC_CONTEXT_CONFIG=, that can be used to override the default / project config when starting opencode.Alternatives considered
project-level config: blocks changing model:
(I understand preventing repos from forcing arbitrary models, so this will probably not change)
Area
OpenCode plugin
Additional context
No response