Phase 2: Hooks System - Event-driven execution with HookEvent/HookAction types - HookManager for registration and execution Phase 3: Multi-Agent Workflow - Workflow orchestration with dependency graphs - WorkflowStep with conditions and retry support Phase 4: MCP (Model Context Protocol) Support - McpServer for external tool servers - McpManager for multiple server management Also includes core modules: cache, error_policy, feature_flags, git, logger, plugin, retry, rules 662 tests passing 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
710 B
710 B
Code Refactoring
Refactor the specified code with the following goals:
- Improve Readability - Clear naming, logical structure, remove complexity
- Reduce Duplication - Extract common patterns into reusable functions
- Enhance Maintainability - Better separation of concerns, SOLID principles
- Optimize Performance - Only if it doesn't sacrifice readability
Guidelines:
- Preserve existing behavior (no functional changes)
- Keep existing tests passing
- Add comments only where logic isn't self-evident
- Prefer small, focused functions over large ones
Output format:
- Analysis of current issues
- Refactoring plan
- Refactored code with explanations
- Summary of improvements