Add tiered model delegation for gmail operations
Implements cost-efficient gmail operations by delegating to appropriate model tiers via Claude CLI subprocess. Simple fetches use no LLM, summarization and triage delegate to Sonnet, complex reasoning stays with Opus (PA). Uses subscription instead of API key. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -64,5 +64,54 @@
|
||||
"default_start": "lowest_capable",
|
||||
"log_usage": true,
|
||||
"review_frequency": "weekly"
|
||||
},
|
||||
"skill_delegation": {
|
||||
"gmail": {
|
||||
"description": "Tiered model selection for email operations",
|
||||
"tiers": {
|
||||
"haiku": {
|
||||
"operations": [
|
||||
"count_unread",
|
||||
"list_emails",
|
||||
"fetch_metadata",
|
||||
"simple_search"
|
||||
],
|
||||
"examples": [
|
||||
"How many unread emails?",
|
||||
"List emails from sender X",
|
||||
"Any emails with attachments?"
|
||||
]
|
||||
},
|
||||
"sonnet": {
|
||||
"operations": [
|
||||
"summarize_email",
|
||||
"summarize_thread",
|
||||
"categorize_emails",
|
||||
"extract_action_items",
|
||||
"group_by_topic"
|
||||
],
|
||||
"examples": [
|
||||
"Summarize this email",
|
||||
"What are the OpenAgents notifications about?",
|
||||
"Group my emails by project"
|
||||
]
|
||||
},
|
||||
"opus": {
|
||||
"operations": [
|
||||
"prioritize_inbox",
|
||||
"strategic_analysis",
|
||||
"cross_reference_context",
|
||||
"complex_reasoning"
|
||||
],
|
||||
"examples": [
|
||||
"What should I respond to first?",
|
||||
"How does this relate to my current projects?",
|
||||
"What's the sentiment across these threads?"
|
||||
]
|
||||
}
|
||||
},
|
||||
"default": "haiku",
|
||||
"escalate_on": ["insufficient_context", "reasoning_required", "user_dissatisfied"]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user