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:
OpenCode Test
2025-12-31 21:35:32 -08:00
parent 690c57caeb
commit d9332ae118
5 changed files with 446 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@@ -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"]
}
}
}