Skip to content

P0: Claude Browser Auth - Use Claude Pro/Max for Complex Tasks #65

@adrianwedd

Description

@adrianwedd

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

  1. Claude Detection - When to use Claude vs local
  2. Browser Auth - OAuth flow with Claude.ai
  3. Session Management - Store and refresh tokens
  4. Request Proxy - Route to Claude API
  5. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions