Skip to content

Commit c833d84

Browse files
Release v5.1.0: Multi-Agent Orchestration, Authentication Strategy & Batch Test Generation
🤖 Multi-Agent Orchestration - Agent Coordination Dashboard with 6 patterns (heartbeats, signals, events, approvals, quality metrics) - Support for custom agents and Anthropic LLM agents - Fixed HeartbeatCoordinator API compatibility in dashboard_demo.py - Real-time monitoring accessible at localhost:8000 🔐 Authentication Strategy System - Intelligent routing between Claude subscriptions and Anthropic API - CLI commands: setup, status, recommend, reset - Automatic cost optimization based on module size - Small/medium (<2000 LOC) → Claude subscription (free) - Large (>2000 LOC) → Anthropic API (pay per use) - Integrated into 7 workflows: document-gen, test-gen, code-review, bug-predict, security-audit, perf-audit, release-prep - Auth mode tracking in all workflow outputs 🧪 Batch Test Generation - Parallel test generation for rapid coverage improvement - AI-powered test template generation (cheap tier) - Complete test implementation (capable tier) - Process 10-50 modules simultaneously - Generated behavioral tests with comprehensive assertions - Autonomous test generation workflows 🧪 Comprehensive Testing - 7 new integration tests for auth strategy - All workflows tested with auth enabled/disabled - API and subscription mode verification - Cost tracking validation 📖 Documentation - AUTH_STRATEGY_GUIDE.md - User configuration guide - AUTH_CLI_IMPLEMENTATION.md - CLI command reference - AUTH_WORKFLOW_INTEGRATIONS.md - Integration patterns - 950+ lines of comprehensive documentation 🔧 Bug Fixes - Dashboard demo script: Updated to current HeartbeatCoordinator API - SecurityAuditWorkflow: Fixed LOC calculation for directories - CodeReviewWorkflow: Fixed auth mode tracking in scan stage 📦 Version Updates - pyproject.toml: 5.0.3 → 5.1.0 - src/empathy_os/__init__.py: __version__ updated - Dashboard footer: Updated to v5.1.0 Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 2f7d7be commit c833d84

25 files changed

Lines changed: 4621 additions & 169 deletions

CHANGELOG.md

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,60 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [5.1.0] - 2026-01-29
11+
12+
### Added
13+
14+
- **Authentication Strategy System**: Intelligent routing between Claude subscriptions and Anthropic API based on codebase/module size
15+
- Automatically detects module size and recommends optimal authentication mode (subscription vs API)
16+
- Cost optimization: Small/medium modules use subscription (free), large modules use API (1M context)
17+
- Configurable thresholds based on subscription tier (Pro, Max, Enterprise)
18+
- CLI commands for configuration management:
19+
- `python -m empathy_os.models.auth_cli setup` - Interactive configuration wizard
20+
- `python -m empathy_os.models.auth_cli status` - View current auth strategy (table or JSON)
21+
- `python -m empathy_os.models.auth_cli recommend <file>` - Get auth recommendation for specific file
22+
- `python -m empathy_os.models.auth_cli reset --confirm` - Clear configuration
23+
- Integrated into 7 major workflows with consistent 4-step pattern:
24+
- DocumentGenerationWorkflow
25+
- TestGenerationWorkflow
26+
- CodeReviewWorkflow
27+
- BugPredictWorkflow
28+
- SecurityAuditWorkflow
29+
- PerformanceAuditWorkflow
30+
- ReleasePreparationWorkflow
31+
- Non-breaking: Enabled by default with graceful degradation
32+
- Auth mode tracking: All workflows report `auth_mode_used` in output for telemetry
33+
- Comprehensive documentation: 3 guides (950+ lines total)
34+
- 7 integration tests created and passing
35+
36+
### Fixed
37+
38+
- **Dashboard Demo Script**: Updated `dashboard_demo.py` to use correct HeartbeatCoordinator API
39+
- Changed from `HeartbeatCoordinator(agent_id=...)` to `coordinator.start_heartbeat(agent_id=...)`
40+
- Changed from `coordinator.report()` to `coordinator.beat()`
41+
- Fixed compatibility with current telemetry API
42+
43+
- **SecurityAuditWorkflow**: Fixed LOC calculation and file scanning issues
44+
- Fixed `count_lines_of_code()` to handle directories recursively
45+
- Fixed file scanning to handle both single files and directories
46+
- Fixed data propagation in `_remediate` stage
47+
48+
- **CodeReviewWorkflow**: Fixed auth mode tracking in scan stage
49+
- Added `auth_mode_used` to scan stage output for cases where architect_review is skipped
50+
51+
### Documentation
52+
53+
- Added `docs/AUTH_STRATEGY_GUIDE.md` - Complete user guide with CLI commands (457 lines)
54+
- Added `docs/AUTH_CLI_IMPLEMENTATION.md` - CLI implementation details (286 lines)
55+
- Added `docs/AUTH_WORKFLOW_INTEGRATIONS.md` - Integration guide for all 7 workflows (430+ lines)
56+
- Updated all workflow documentation with auth strategy usage examples
57+
58+
### Tests
59+
60+
- Added 7 integration tests for auth strategy in workflows (all passing)
61+
- All existing tests continue to pass (127+ tests for DocumentGenerationWorkflow alone)
62+
- Zero breaking changes - full backward compatibility maintained
63+
1064
## [5.0.2] - 2026-01-28
1165

1266
### Added

README.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ pip install empathy-framework[developer]
2626
- **🔧 Advanced Tool Use:** Optimized for agentic workflows
2727

2828
**Timeline:**
29+
2930
-**v4.8.0 (Jan 2026):** Deprecation warnings for OpenAI/Google/Ollama providers
3031
-**v5.0.0 (Jan 26, 2026):** Non-Anthropic providers removed (BREAKING - COMPLETE)
3132
-**v5.0.2 (Jan 28, 2026):** Cost optimization suite with batch processing and caching monitoring
@@ -34,6 +35,58 @@ pip install empathy-framework[developer]
3435

3536
---
3637

38+
## What's New in v5.1.0
39+
40+
**🤖 Multi-Agent Orchestration** - Full support for custom agents and Anthropic LLM agents:
41+
42+
- **Agent Coordination Dashboard** - Real-time monitoring with 6 coordination patterns:
43+
- Agent heartbeats and status tracking
44+
- Inter-agent coordination signals
45+
- Event streaming across agent workflows
46+
- Approval gates for human-in-the-loop
47+
- Quality feedback and performance metrics
48+
- Demo mode with test data generation
49+
50+
- **Custom Agents** - Build specialized agents for your workflow needs
51+
- **LLM Agents from Anthropic** - Leverage Claude's advanced capabilities
52+
- Dashboard accessible at `http://localhost:8000` with `python examples/dashboard_demo.py`
53+
54+
**🔐 Authentication Strategy System** - Intelligent routing between Claude subscriptions and Anthropic API:
55+
56+
```bash
57+
# Interactive setup
58+
python -m empathy_os.models.auth_cli setup
59+
60+
# View current configuration
61+
python -m empathy_os.models.auth_cli status
62+
63+
# Get recommendation for a file
64+
python -m empathy_os.models.auth_cli recommend src/module.py
65+
```
66+
67+
**💰 Automatic Cost Optimization** - Workflows choose the best auth method:
68+
69+
- Small/medium modules (<2000 LOC) → Claude subscription (free)
70+
- Large modules (>2000 LOC) → Anthropic API (pay for what you need)
71+
- 7 workflows integrated: document-gen, test-gen, code-review, bug-predict, security-audit, perf-audit, release-prep
72+
- Auth mode tracking in all workflow outputs for telemetry
73+
74+
**🧪 Comprehensive Testing** - 7 new integration tests for auth strategy:
75+
76+
- All workflows tested with auth enabled/disabled
77+
- API and subscription mode verification
78+
- Cost tracking validation
79+
80+
**📖 Documentation** - 950+ lines across 3 guides:
81+
82+
- [AUTH_STRATEGY_GUIDE.md](docs/AUTH_STRATEGY_GUIDE.md) - User guide for configuration
83+
- [AUTH_CLI_IMPLEMENTATION.md](docs/AUTH_CLI_IMPLEMENTATION.md) - CLI command reference
84+
- [AUTH_WORKFLOW_INTEGRATIONS.md](docs/AUTH_WORKFLOW_INTEGRATIONS.md) - Integration patterns
85+
86+
[See Full Changelog](CHANGELOG.md#510---2026-01-29)
87+
88+
---
89+
3790
## What's New in v5.0.2
3891

3992
**💰 50% Cost Savings with Batch API** - Process non-urgent tasks asynchronously:

0 commit comments

Comments
 (0)