-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Priority: CRITICAL - Leverage Existing Subscription
Problem
User has Claude Pro/Max subscription but system can't use it. Complex reasoning tasks need Claude's capabilities.
Existing Infrastructure
- Browser auth system exists (
src/mcp_client/browser_auth.py) - OAuth callback handling implemented
- MCP integration endpoints available
- Just needs Claude-specific implementation
Target Architecture
LLM Router Decision Tree:
├── Simple/Private → Local Ollama
├── Complex/Private → Warn user, get consent
└── Complex/Approved → Claude via browser auth
Claude Browser Auth Flow:
1. User initiates complex task
2. System recognizes need for Claude
3. Opens browser for auth
4. User approves in Claude.ai
5. System gets session token
6. Routes complex queries to Claude
Acceptance Criteria
- Detect when Claude would be beneficial
- Browser auth flow for Claude.ai
- Session token management
- Privacy-preserving request routing
- Graceful fallback if auth fails
- Clear user consent for each use
Implementation Tasks
- Claude Detection - When to use Claude vs local
- Browser Auth - OAuth flow with Claude.ai
- Session Management - Store and refresh tokens
- Request Proxy - Route to Claude API
- Privacy Layer - Anonymize before sending
Privacy Requirements
- User MUST consent before sending to Claude
- Show what data will be sent
- Anonymize PII when possible
- Store sessions locally only
Example Use Cases
- Complex multi-step planning
- Research requiring broad knowledge
- Creative writing/ideation
- Code generation for complex systems
- Debate/analysis of nuanced topics
Definition of Done
- Can authenticate with Claude.ai
- Complex tasks routed appropriately
- User maintains control over data
- Works alongside local Ollama
Why This Matters
User is PAYING for Claude Pro/Max but can't use it with the ADHD system. Complex cognitive tasks benefit from Claude's capabilities. This maximizes existing resources without additional cost.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request