drizzy-agent 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -110,15 +110,74 @@ Create `.opencode/drizzy-agent.jsonc` or `~/.config/opencode/drizzy-agent.jsonc`
110
110
  }
111
111
  ```
112
112
 
113
- ### Troubleshooting: Version Display Issues
113
+ ### How Configuration Works (Snapshot-Based Defaults)
114
114
 
115
- If you see an old version (like 3.11.2) instead of the current version, clear the cache:
115
+ DrizzyAgent uses a **snapshot-based** configuration system. When you run `drizzy-agent install`, the tool creates a minimal config containing only your provider selections:
116
+
117
+ ```jsonc
118
+ {
119
+ "$schema": "...",
120
+ "_install_defaults": {
121
+ "snapshot_version": 1,
122
+ "providers": {
123
+ "claude": "yes",
124
+ "openai": false,
125
+ "gemini": false,
126
+ // ... which providers you selected during install
127
+ }
128
+ }
129
+ }
130
+ ```
131
+
132
+ The `_install_defaults` section is **install-managed and read-only**. It captures which providers you selected. The actual `agents` and `categories` configuration is computed at runtime from current fallback rules based on your available providers.
133
+
134
+ **Benefits of this approach:**
135
+ - Your config stays small and focused on your provider choices
136
+ - Model fallbacks automatically improve with each plugin update
137
+ - No manual updates needed when better models become available
138
+
139
+ #### Adding Custom Overrides
140
+
141
+ You can add explicit overrides on top of the computed defaults:
142
+
143
+ ```jsonc
144
+ {
145
+ "_install_defaults": { /* ... */ },
146
+ "agents": {
147
+ "coder": {
148
+ "model": "claude-opus-4" // This overrides the computed default
149
+ }
150
+ },
151
+ "categories": {
152
+ "deep": {
153
+ "model": "o3-mini" // Override for specific category
154
+ }
155
+ }
156
+ }
157
+ ```
158
+
159
+ Explicit overrides take precedence over computed defaults. Omitting a field means "use the computed default."
160
+
161
+ #### Updating Provider Selections
162
+
163
+ Rerun the install command to update provider selections:
116
164
 
117
165
  ```bash
118
- rm -rf ~/.cache/opencode/node_modules/drizzy-agent
166
+ bunx drizzy-agent install
119
167
  ```
120
168
 
121
- This removes cached data from the previous package name.
169
+ Or manually override by editing `~/.config/opencode/drizzy-agent.jsonc`:
170
+
171
+ ```jsonc
172
+ {
173
+ "agents": {
174
+ "coder": { "model": "claude-opus-4" }
175
+ },
176
+ "categories": {
177
+ "deep": { "model": "o3-mini" }
178
+ }
179
+ }
180
+ ```
122
181
 
123
182
  ## Development
124
183