ai-rulez 4.3.1 → 4.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.
Files changed (2) hide show
  1. package/README.md +23 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -153,6 +153,28 @@ Accepted values: `low`, `medium`, `high`, `xhigh`, `max`, `inherit`. ai-rulez em
153
153
 
154
154
  Each preset maps the value to its own vocabulary; tools without a documented config surface (Cursor, Copilot, Gemini, etc.) are silently skipped. See [docs/configuration.md](docs/configuration.md#defaults) for the full mapping table.
155
155
 
156
+ **Per-preset model selection for subagents** — Model strings differ per provider, so the same agent can declare a different model for each preset it targets:
157
+
158
+ ```yaml
159
+ # .ai-rulez/agents/research-helper.md
160
+ ---
161
+ name: research-helper
162
+ description: Multi-provider research subagent
163
+ claude_model: opus
164
+ copilot_model: gpt-5
165
+ cursor_model: claude-3.7-sonnet
166
+ ---
167
+ ```
168
+
169
+ ```toml
170
+ # .ai-rulez/config.toml — project-wide defaults
171
+ [defaults.model_by_preset]
172
+ claude = "sonnet" # used when an agent doesn't set its own claude_model
173
+ copilot = "gpt-5"
174
+ ```
175
+
176
+ Per-agent `<preset>_model` wins over `defaults.model_by_preset`; the legacy single `model:` field on an agent is the lowest-priority fallback for backward compatibility.
177
+
156
178
  **Installed Skills** — Pull reusable skills from external repos:
157
179
 
158
180
  ```toml
@@ -240,7 +262,7 @@ Add to `.pre-commit-config.yaml`:
240
262
  ```yaml
241
263
  repos:
242
264
  - repo: https://github.com/Goldziher/ai-rulez
243
- rev: v4.3.1
265
+ rev: v4.4.0
244
266
  hooks:
245
267
  - id: ai-rulez-recursive # generate outputs across the repo
246
268
  - id: ai-rulez-validate # dry-run validation
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-rulez",
3
- "version": "4.3.1",
3
+ "version": "4.4.0",
4
4
  "description": "Complete AI development workflow for 19+ tools. Ships with builtin rules, agents, and conventions. Generate native configs for Claude, Cursor, Copilot, Windsurf, Gemini, Codex and more from a single source.",
5
5
  "keywords": [
6
6
  "ai",