# Implementation Plan: DeepSeek API Provider Support ## Phase 1: Infrastructure & Common Logic [checkpoint: 0ec3720] - [x] Task: Initialize MMA Environment `activate_skill mma-orchestrator` 1b3ff23 - [x] Task: Update `credentials.toml` schema and configuration logic in `project_manager.py` to support `deepseek` 1b3ff23 - [x] Task: Define the `DeepSeekProvider` interface in `ai_client.py` and align with existing provider patterns 1b3ff23 - [x] Task: Conductor - User Manual Verification 'Infrastructure & Common Logic' (Protocol in workflow.md) 1b3ff23 ## Phase 2: DeepSeek API Client Implementation - [x] Task: Write failing tests for `DeepSeekProvider` model selection and basic completion - [x] Task: Implement `DeepSeekProvider` using the dedicated SDK - [x] Task: Write failing tests for streaming and tool calling parity in `DeepSeekProvider` - [x] Task: Implement streaming and tool calling logic for DeepSeek models - [x] Task: Conductor - User Manual Verification 'DeepSeek API Client Implementation' (Protocol in workflow.md) ## Phase 3: Reasoning Traces & Advanced Capabilities - [x] Task: Write failing tests for reasoning trace capture in `DeepSeekProvider` (DeepSeek-R1) - [x] Task: Implement reasoning trace processing and integration with discussion history - [x] Task: Write failing tests for token estimation and cost tracking for DeepSeek models - [x] Task: Implement token usage tracking according to DeepSeek pricing - [x] Task: Conductor - User Manual Verification 'Reasoning Traces & Advanced Capabilities' (Protocol in workflow.md) ## Phase 4: GUI Integration & Final Verification - [x] Task: Update `gui_2.py` and `theme_2.py` (if necessary) to include DeepSeek in the provider selection UI - [x] Task: Implement automated regression tests for the full DeepSeek lifecycle (prompt, streaming, tool call, reasoning) - [x] Task: Verify overall performance and UI responsiveness with the new provider - [x] Task: Conductor - User Manual Verification 'GUI Integration & Final Verification' (Protocol in workflow.md)