-
Notifications
You must be signed in to change notification settings - Fork 5
feat: success pattern tracking with model routing integration (t102.3) #779
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| --- | ||
| description: Suggest optimal model tier for a task description | ||
| description: Suggest optimal model tier for a task description using rules + pattern history | ||
| agent: Build+ | ||
| mode: subagent | ||
| model: haiku | ||
|
|
@@ -11,27 +11,40 @@ Task: $ARGUMENTS | |
|
|
||
| ## Instructions | ||
|
|
||
| 1. Read `tools/context/model-routing.md` for the routing rules and tier definitions. | ||
| 1. First, check pattern history for data-driven insights: | ||
|
|
||
| 2. Analyze the task description against the routing rules: | ||
| ```bash | ||
| ~/.aidevops/agents/scripts/pattern-tracker-helper.sh recommend "$ARGUMENTS" | ||
| ``` | ||
|
Comment on lines
+14
to
+18
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
If the intent is task-type-specific routing, the agent would need to extract a task type from 🤖 Prompt for AI Agents |
||
|
|
||
| 2. Read `tools/context/model-routing.md` for the routing rules and tier definitions. | ||
|
|
||
| 3. Analyze the task description against the routing rules: | ||
| - **Complexity**: Simple transform vs reasoning vs novel design | ||
| - **Context size**: Small focused task vs large codebase sweep | ||
| - **Output type**: Classification vs code vs architecture | ||
|
|
||
| 3. Output a recommendation in this format: | ||
| 4. Combine pattern history with routing rules: | ||
| - If pattern data exists and shows a clear winner (>75% success rate with 3+ samples), weight it heavily | ||
| - If pattern data is sparse or inconclusive, rely on routing rules | ||
| - If pattern data contradicts routing rules, note the conflict and explain | ||
|
|
||
| 5. Output a recommendation in this format: | ||
|
|
||
| ```text | ||
| Recommended: {tier} ({model_name}) | ||
| Reason: {one-line justification} | ||
| Cost: ~{relative}x vs sonnet baseline | ||
| Pattern data: {success_rate}% success rate from {N} samples (or "no data") | ||
| ``` | ||
|
|
||
| 4. If the task is ambiguous, suggest the tier and note what would push it up or down: | ||
| 6. If the task is ambiguous, suggest the tier and note what would push it up or down: | ||
|
|
||
| ```text | ||
| Recommended: sonnet (claude-sonnet-4) | ||
| Reason: Code modification with moderate reasoning | ||
| Cost: ~1x baseline | ||
| Pattern data: 85% success rate from 12 samples | ||
|
|
||
| Could be haiku if: the change is a simple rename/reformat | ||
| Could be opus if: the change requires architectural decisions | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Command list may be incomplete.
The available commands list mentions
suggest, recommend, analyze, stats, report, export, but the example above (lines 50-52) demonstrates therecordcommand. Shouldrecordbe included in the available commands list for completeness?📝 Suggested fix to include record command
📝 Committable suggestion
🤖 Prompt for AI Agents