AI-powered developer workflows with cost optimization and pattern learning. Run code review, debugging, testing, and release workflows from your terminal or Claude Code. Smart tier routing saves 34-86% on LLM costs. -brightgreen) Empathy Framework is evolving to focus exclusively on Anthropic/Claude to unlock features impossible with multi-provider abstraction: - ๐ฆ Prompt Caching: 90% cost reduct
Add this skill
npx mdskills install Smart-AI-Memory/empathy-frameworkComprehensive AI workflow framework with cost optimization, multi-agent orchestration, and extensive tooling
AI-powered developer workflows with cost optimization and pattern learning.
Run code review, debugging, testing, and release workflows from your terminal or Claude Code. Smart tier routing saves 34-86% on LLM costs.
pip install empathy-framework[developer]
Empathy Framework is evolving to focus exclusively on Anthropic/Claude to unlock features impossible with multi-provider abstraction:
Timeline:
Migration Guide: docs/CLAUDE_NATIVE.md
๐จ Dashboard Enhancements - Improved usability and clarity:
๐ Documentation Improvements:
๐งช Test Infrastructure:
๐ค Multi-Agent Orchestration - Full support for custom agents and Anthropic LLM agents:
Agent Coordination Dashboard - Real-time monitoring with 6 coordination patterns:
Custom Agents - Build specialized agents for your workflow needs
LLM Agents from Anthropic - Leverage Claude's advanced capabilities
Dashboard accessible at http://localhost:8000 with python examples/dashboard_demo.py (Requires Redis)
๐ Authentication Strategy System - Intelligent routing between Claude subscriptions and Anthropic API:
# Interactive setup
python -m empathy_os.models.auth_cli setup
# View current configuration
python -m empathy_os.models.auth_cli status
# Get recommendation for a file
python -m empathy_os.models.auth_cli recommend src/module.py
๐ฐ Automatic Cost Optimization - Workflows choose the best auth method:
๐งช Comprehensive Testing - 7 new integration tests for auth strategy:
๐ Documentation - 950+ lines across 3 guides:
๐ฐ 50% Cost Savings with Batch API - Process non-urgent tasks asynchronously:
empathy batch submit batch_requests.json # Submit batch job
empathy batch status msgbatch_abc123 # Check progress
empathy batch results msgbatch_abc123 output.json # Download results
Perfect for: log analysis, report generation, bulk classification, test generation
๐ Precise Token Counting - >98% accurate cost tracking:
count_tokens() API for billing-accurate measurements๐ Cache Performance Monitoring - Track your 20-30% caching savings:
empathy cache stats # Show hit rates and cost savings
empathy cache stats --verbose # Detailed token metrics
empathy cache stats --format json # Machine-readable output
๐งญ Adaptive Routing Analytics - Intelligent tier recommendations:
empathy routing stats # Performance metrics
empathy routing check --all # Tier upgrade recommendations
empathy routing models --provider anthropic # Compare models
๐ง Dashboard Fixes - All 6 agent coordination patterns now operational:
See Full Changelog | Batch API Guide | User API Docs
โก 18x Faster Performance - Massive performance gains through Phase 2 optimizations:
๐งญ Natural Language Workflows - Use plain English instead of workflow names:
/workflows "find security vulnerabilities" # โ security-audit
/workflows "check code performance" # โ perf-audit
/workflows "predict bugs" # โ bug-predict
/plan "review my code" # โ code-review
๐ Real-World Performance:
๐ฏ Improved Navigation:
/workflow into /workflows (automated analysis) and /plan (planning/review)See CHANGELOG.md | Performance Docs
$0 Workflows via Skills - Multi-agent workflows run through Claude Code's Task tool instead of API calls. No additional cost with your Claude subscription.
Socratic Workflows - Interactive discovery through guided questions. Workflows ask what you need rather than requiring upfront configuration.
Security Hardened - Fixed critical vulnerabilities (path traversal, JWT, SSRF).
Hub-Based Commands - Organized workflows into intuitive command hubs.
pip install empathy-framework[developer]
# Auto-detect API keys
python -m empathy_os.models.cli provider
# Or set explicitly
python -m empathy_os.models.cli provider --set anthropic
In Claude Code:
/dev # Developer tools (debug, commit, PR, review)
/testing # Run tests, coverage, benchmarks
/workflows # Automated analysis (security, bugs, perf)
/plan # Planning, TDD, code review
/docs # Documentation generation
/release # Release preparation
# Natural language support:
/workflows "find security issues"
/plan "review my code"
# Direct tool access via MCP (v5.1.1+):
# Claude Code automatically discovers Empathy tools through the MCP server
# Just describe what you need in natural language:
"Run a security audit on src/" โ Invokes security_audit tool
"Generate tests for config.py" โ Invokes test_generation tool
"Check my auth configuration" โ Invokes auth_status tool
"Analyze performance bottlenecks" โ Invokes performance_audit tool
MCP Server Integration (v5.1.1+):
Empathy Framework now includes a Model Context Protocol (MCP) server that exposes all workflows as native Claude Code tools:
.claude/mcp.jsonTo verify MCP integration:
# Check server is running
echo '{"method":"tools/list","params":{}}' | PYTHONPATH=./src python -m empathy_os.mcp.server
# Restart Claude Code to load the MCP server
# Tools will appear in Claude's tool list automatically
See .claude/MCP_TEST_RESULTS.md for full integration details.
CLI:
empathy workflow run security-audit --path ./src
empathy workflow run test-coverage --target 90
empathy telemetry show # View cost savings
Python:
from empathy_os import EmpathyOS
async with EmpathyOS() as empathy:
result = await empathy.level_2_guided(
"Review this code for security issues"
)
print(result["response"])
Workflows are organized into hubs for easy discovery:
| Hub | Command | Description |
|---|---|---|
| Developer | /dev | Debug, commit, PR, code review, quality |
| Testing | /testing | Run tests, coverage analysis, benchmarks |
| Documentation | /docs | Generate and manage documentation |
| Release | /release | Release prep, security scan, publishing |
| Workflows | /workflows | Automated analysis (security, bugs, perf) |
| Plan | /plan | Planning, TDD, code review, refactoring |
| Utilities | /utilities | Project init, dependencies, profiling |
| Learning | /learning | Pattern learning and session evaluation |
| Context | /context | State management and memory |
| Agent | /agent | Create and manage custom agents |
Natural Language Support:
# Use plain English - intelligent routing matches your intent
/workflows "find security vulnerabilities" # โ security-audit
/workflows "check code performance" # โ perf-audit
/workflows "predict bugs" # โ bug-predict
/plan "review my code" # โ code-review
/plan "help me plan this feature" # โ planning
# Or use traditional workflow names
/workflows security-audit
/plan code-review
Interactive menus:
/dev # Show interactive menu
/dev "debug auth error" # Jump directly to debugging
/testing "run coverage" # Run coverage analysis
/release # Start release preparation
Workflows guide you through discovery instead of requiring upfront configuration:
You: /dev
Claude: What development task do you need?
1. Debug issue
2. Create commit
3. PR workflow
4. Quality check
You: 1
Claude: What error or unexpected behavior are you seeing?
How it works:
Create custom agents with Socratic guidance:
/agent create # Guided agent creation
/agent team # Build multi-agent teams interactively
When using Claude Code, workflows run as skills through the Task tool - no API costs:
/dev # $0 - uses your Claude subscription
/testing # $0
/release # $0
/agent create # $0
For programmatic use, smart tier routing saves 34-86%:
| Tier | Model | Use Case | Cost |
|---|---|---|---|
| CHEAP | Haiku / GPT-4o-mini | Formatting, simple tasks | ~$0.005 |
| CAPABLE | Sonnet / GPT-4o | Bug fixes, code review | ~$0.08 |
| PREMIUM | Opus / o1 | Architecture, complex design | ~$0.45 |
# Track API usage and savings
empathy telemetry savings --days 30
# 4 parallel agents check release readiness
empathy orchestrate release-prep
# Sequential coverage improvement
empathy orchestrate test-coverage --target 90
Up to 57% cache hit rate on similar prompts. Zero config needed.
from empathy_os.workflows import SecurityAuditWorkflow
workflow = SecurityAuditWorkflow(enable_cache=True)
result = await workflow.execute(target_path="./src")
print(f"Cache hit rate: {result.cost_report.cache_hit_rate:.1f}%")
Workflows learn from outcomes and improve over time:
from empathy_os.orchestration.config_store import ConfigurationStore
store = ConfigurationStore()
best = store.get_best_for_task("release_prep")
print(f"Success rate: {best.success_rate:.1%}")
from empathy_llm_toolkit.providers import (
AnthropicProvider, # Claude
OpenAIProvider, # GPT-4
GeminiProvider, # Gemini
LocalProvider, # Ollama, LM Studio
)
# Provider configuration
python -m empathy_os.models.cli provider
python -m empathy_os.models.cli provider --set hybrid
# Workflows
empathy workflow list
empathy workflow run
# Cost tracking
empathy telemetry show
empathy telemetry savings --days 30
empathy telemetry export --format csv
# Orchestration
empathy orchestrate release-prep
empathy orchestrate test-coverage --target 90
# Meta-workflows
empathy meta-workflow list
empathy meta-workflow run release-prep --real
# Individual developers (recommended)
pip install empathy-framework[developer]
# All LLM providers
pip install empathy-framework[llm]
# With caching (semantic similarity)
pip install empathy-framework[cache]
# Enterprise (auth, rate limiting)
pip install empathy-framework[enterprise]
# Healthcare (HIPAA compliance)
pip install empathy-framework[healthcare]
# Development
git clone https://github.com/Smart-AI-Memory/empathy-framework.git
cd empathy-framework && pip install -e .[dev]
# At least one provider required
export ANTHROPIC_API_KEY="sk-ant-..."
export OPENAI_API_KEY="sk-..."
export GOOGLE_API_KEY="..."
# Optional (but required for Agent Dashboard): Redis for memory
export REDIS_URL="redis://localhost:6379"
Install the Empathy VSCode extension for:
See SECURITY.md for vulnerability reporting.
Automated security scanning in CI/CD - 82% accuracy, blocks critical issues:
# Run security audit locally
empathy workflow run security-audit
# Scan specific directory
empathy workflow run security-audit --input '{"path":"./src"}'
Documentation:
Key achievements:
See CONTRIBUTING.md for guidelines.
Apache License 2.0 - Free and open source for everyone. Use it, modify it, build commercial products with it. Details โ
This project stands on the shoulders of giants. We are deeply grateful to the open source community and all the amazing projects that make this framework possible.
View Full Acknowledgements โ
Special thanks to:
And to all 50+ open source projects we depend on. See the complete list โ
Want to contribute? See CONTRIBUTORS.md
Built by Smart AI Memory ยท Docs ยท Examples ยท Issues
Install via CLI
npx mdskills install Smart-AI-Memory/empathy-frameworkEmpathy Framework is a free, open-source AI agent skill. AI-powered developer workflows with cost optimization and pattern learning. Run code review, debugging, testing, and release workflows from your terminal or Claude Code. Smart tier routing saves 34-86% on LLM costs. -brightgreen) Empathy Framework is evolving to focus exclusively on Anthropic/Claude to unlock features impossible with multi-provider abstraction: - ๐ฆ Prompt Caching: 90% cost reduct
Install Empathy Framework with a single command:
npx mdskills install Smart-AI-Memory/empathy-frameworkThis downloads the skill files into your project and your AI agent picks them up automatically.
Empathy Framework works with Claude Code, Claude Desktop, Cursor, Vscode Copilot, Windsurf, Continue Dev, Codex, Gemini Cli, Amp, Roo Code, Goose, Opencode, Trae, Qodo, Command Code. Skills use the open SKILL.md format which is compatible with any AI coding agent that reads markdown instructions.