---
description: Claude-Native Architecture Migration Guide: **Version:** v5.0.0 **Status:** Complete (Claude-Native) **Completed:** January 26, 2026 --- ## Overview Empathy Fra
---
Version: v5.0.0 Status: Complete (Claude-Native) Completed: January 26, 2026
Empathy Framework is transitioning to a Claude-native architecture to fully leverage Anthropic's advanced features and provide the best possible development experience for AI-powered workflows.
Strategic Direction: Rather than maintaining compatibility with multiple LLM providers (OpenAI, Google Gemini, Ollama), we're focusing exclusively on Claude to unlock features that are impossible to achieve with multi-provider abstraction.
-
Prompt Caching (90% Cost Reduction)
- Cache repeated prompts (system messages, examples, context)
- Reduce costs by up to 90% on cached content
- Faster response times (cached content processed instantly)
- Learn more
-
200K Context Window
- Largest context window available (vs 128K for competitors)
- Process entire codebases in a single request
- Maintain conversation context across long sessions
- Learn more
-
Extended Thinking (Reasoning Transparency)
- See Claude's internal reasoning process
- Debug AI decision-making
- Improve prompt engineering with visibility
- Learn more
-
Computer Use & Tool Calling Optimizations
- Advanced tool use capabilities
- Multi-step agentic workflows
- Code execution and validation
- Learn more
By removing multi-provider support, we can:
- Reduce codebase complexity - Remove ~2,300 lines of provider abstraction code
- Faster iteration - No need to test against 4 different APIs
- Better features - Build Claude-specific optimizations without workarounds
- Clearer positioning - "The Claude framework" vs "Multi-LLM framework"
Status: Current Phase
What's happening:
- Deprecation warnings added to OpenAI, Google, Ollama, and Hybrid providers
- All existing code continues to work
- Documentation updated with migration guidance
- Users informed of upcoming changes
What you should do:
- Run
empathy versionto check you're on v4.8.0+ - If you see deprecation warnings, start planning migration
- Test your workflows with Anthropic provider
- Report any issues or blockers
Status: COMPLETE (BREAKING RELEASE)
What changed:
- OpenAI, Google Gemini, and Ollama providers REMOVED
primary_providerconfig must be"anthropic"(only valid value)- Hybrid mode REMOVED (ProviderMode.SINGLE only)
- Multi-provider abstractions REMOVED
- ~600 lines of provider abstraction code removed
- All tests updated to Anthropic-only
Migration completed:
- ✅ MODEL_REGISTRY now contains only Anthropic models
- ✅ ModelProvider enum reduced to ANTHROPIC only
- ✅ ProviderMode enum reduced to SINGLE only
- ✅ CLI commands updated (provider set/show)
- ✅ All test files updated to use Anthropic
- ✅ Fallback system simplified (tier-to-tier within Anthropic)
For users upgrading from v4.x:
- Set
ANTHROPIC_API_KEYenvironment variable - Update configuration:
provider: "anthropic" - Remove references to OpenAI/Google/Ollama from your code
- All workflows will automatically use Claude models
Status: Planned
What's coming:
- Prompt caching enabled by default (90% cost reduction)
- Extended thinking support for debugging
- Optimized for Claude's 200K context window
- New Claude-specific workflow examples
- Performance optimizations for tool calling
- Sign up for Anthropic account: https://console.anthropic.com/
- Navigate to Settings → API Keys
- Create new API key
- Copy the key (starts with
sk-ant-)
Option A: Environment Variable (Recommended)
# Add to ~/.bashrc, ~/.zshrc, or .env file
export ANTHROPIC_API_KEY="sk-ant-api03-..."Option B: Project .env File
# Create .env in project root
echo "ANTHROPIC_API_KEY=sk-ant-api03-..." > .envOption C: Empathy Config File
# Create ~/.empathy/.env
mkdir -p ~/.empathy
echo "ANTHROPIC_API_KEY=sk-ant-api03-..." > ~/.empathy/.envCurrent configuration (deprecated):
# empathy.config.yml
provider:
mode: single
primary_provider: openai # ⚠️ DEPRECATED
# Or hybrid mode
provider:
mode: hybrid # ⚠️ DEPRECATEDNew configuration:
# empathy.config.yml
provider:
mode: single
primary_provider: anthropic # ✅ Required in v5.0.0If you're using WorkflowConfig:
from empathy_os.workflows.config import WorkflowConfig
# Before (deprecated)
config = WorkflowConfig(
provider="openai", # ⚠️ DEPRECATED
models={
"cheap": "gpt-4o-mini",
"capable": "gpt-4o",
"premium": "o1"
}
)
# After (Claude-native)
config = WorkflowConfig(
provider="anthropic", # ✅ Use Claude models
models={
"cheap": "claude-3-5-haiku-20241022",
"capable": "claude-sonnet-4-5",
"premium": "claude-opus-4-5-20251101"
}
)If you're using the Builder pattern:
from empathy_os.workflows.builder import WorkflowBuilder
from empathy_os.workflows.test_gen import TestGenerationWorkflow
# Provider is automatically detected from config
workflow = (
WorkflowBuilder(TestGenerationWorkflow)
.with_config(config) # Config specifies anthropic
.with_cache_enabled(True)
.build()
)# Run your workflows with Anthropic provider
empathy workflow run test-gen --input '{"file":"src/main.py"}'
# Check for deprecation warnings
empathy workflow run my-workflow 2>&1 | grep DEPRECATION
# Verify API key is working
empathy provider show# Upgrade to v4.8.0+ to get deprecation warnings
pip install --upgrade empathy-framework
# When v5.0.0 is released (February 2026)
pip install --upgrade empathy-framework>=5.0.0| Tier | Model | Cost (per 1M tokens) | Best For |
|---|---|---|---|
| Cheap | claude-3-5-haiku-20241022 |
$0.80 / $4.00 | Simple tasks, validation, formatting |
| Capable | claude-sonnet-4-5 |
$3.00 / $15.00 | Code generation, analysis, most workflows |
| Premium | claude-opus-4-5-20251101 |
$15.00 / $75.00 | Complex reasoning, architecture, critical decisions |
Cheap Tier (Haiku):
- Syntax validation
- Code formatting
- Simple refactoring
- Documentation generation
- Fast iteration during development
Capable Tier (Sonnet 4.5):
- Test generation
- Code review
- Feature implementation
- Bug analysis
- Most production workflows
Premium Tier (Opus 4.5):
- Architecture design
- Complex debugging
- Security analysis
- Performance optimization
- Mission-critical decisions
Workflow: Test Generation (10 files)
├─ Cheap: GPT-4o-mini ($0.15/M in, $0.60/M out)
├─ Capable: GPT-4o ($2.50/M in, $10.00/M out)
└─ Premium: o1 ($15.00/M in, $60.00/M out)
Total cost: ~$2.50 per run
No prompt caching available
Workflow: Test Generation (10 files)
├─ Cheap: Claude Haiku ($0.80/M in, $4.00/M out)
├─ Capable: Claude Sonnet 4.5 ($3.00/M in, $15.00/M out)
└─ Premium: Claude Opus 4.5 ($15.00/M in, $75.00/M out)
First run: ~$3.20
Subsequent runs (with cache): ~$0.32 (90% cheaper!)
Prompt caching saves ~$2.88 per run after first execution.
Solution:
# Check if key is set
echo $ANTHROPIC_API_KEY
# If empty, add to your shell config
echo 'export ANTHROPIC_API_KEY="sk-ant-..."' >> ~/.bashrc
source ~/.bashrcSolution:
Update your configuration to use anthropic:
# empathy.config.yml
provider:
primary_provider: anthropic # Changed from 'openai'Solution: Update model IDs to Claude models:
# Before
models = {"capable": "gpt-4o"}
# After
models = {"capable": "claude-sonnet-4-5"}Solution: Warnings are shown once per session to avoid spam. To suppress entirely:
import warnings
warnings.filterwarnings("ignore", category=DeprecationWarning)Note: Better to migrate than suppress warnings!
A: No, all existing code continues to work. You'll see deprecation warnings, but functionality is unchanged.
A: v5.0.0 (planned for February 2026). You have ~1 month to migrate.
A: Contact Anthropic support or consider using v4.x until you can migrate. We recommend migrating soon to benefit from new features.
A: Not after v5.0.0. Ollama support is being removed. If offline usage is critical, stay on v4.x.
A: Claude Sonnet 4.5 and Opus 4.5 both support vision. Claude's vision is competitive with GPT-4o.
A: Yes! In v5.1.0, prompt caching will be enabled by default. No code changes needed.
A: You can stay on v4.x (which will receive security patches through 2026), or fork the framework and maintain your own provider support.
A: Technical decision is reversible, but unlikely. We're committed to Claude-native architecture for the long term.
If you encounter migration problems:
- Check GitHub Issues
- Create new issue with:
- Current configuration
- Error messages
- What you've tried
- Framework version (
empathy version)
- Discussions: GitHub Discussions
- Documentation: docs.empathy-framework.dev
Need help migrating? We're here to help:
- Open a discussion thread titled "Migration Help: [Your Use Case]"
- Describe your current setup
- Community and maintainers will assist
After migrating to Claude:
- Enable prompt caching (coming in v5.1.0) - 90% cost reduction
- Try extended thinking - See Claude's reasoning process
- Use 200K context - Process larger codebases
- Explore new workflows - Claude-native examples coming soon
- Anthropic Documentation
- Claude Models Overview
- Prompt Caching Guide
- Extended Thinking Documentation
- Empathy Framework Changelog
Questions? Open an issue or discussion on GitHub. Timeline concerns? Let us know - we're listening!
Last Updated: January 26, 2026 Version: v4.8.0 Status: Deprecation Phase (Phase 1/3)