🚀 Major Enhancement: Workflow-Based Tool Architecture v5.5.0 (#95)
* WIP: new workflow architecture * WIP: further improvements and cleanup * WIP: cleanup and docks, replace old tool with new * WIP: cleanup and docks, replace old tool with new * WIP: new planner implementation using workflow * WIP: precommit tool working as a workflow instead of a basic tool Support for passing False to use_assistant_model to skip external models completely and use Claude only * WIP: precommit workflow version swapped with old * WIP: codereview * WIP: replaced codereview * WIP: replaced codereview * WIP: replaced refactor * WIP: workflow for thinkdeep * WIP: ensure files get embedded correctly * WIP: thinkdeep replaced with workflow version * WIP: improved messaging when an external model's response is received * WIP: analyze tool swapped * WIP: updated tests * Extract only the content when building history * Use "relevant_files" for workflow tools only * WIP: updated tests * Extract only the content when building history * Use "relevant_files" for workflow tools only * WIP: fixed get_completion_next_steps_message missing param * Fixed tests Request for files consistently * Fixed tests Request for files consistently * Fixed tests * New testgen workflow tool Updated docs * Swap testgen workflow * Fix CI test failures by excluding API-dependent tests - Update GitHub Actions workflow to exclude simulation tests that require API keys - Fix collaboration tests to properly mock workflow tool expert analysis calls - Update test assertions to handle new workflow tool response format - Ensure unit tests run without external API dependencies in CI 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> * WIP - Update tests to match new tools * WIP - Update tests to match new tools --------- Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
committed by
GitHub
parent
4dae6e457e
commit
69a3121452
39
server.py
39
server.py
@@ -64,9 +64,9 @@ from tools import ( # noqa: E402
|
||||
DebugIssueTool,
|
||||
ListModelsTool,
|
||||
PlannerTool,
|
||||
Precommit,
|
||||
PrecommitTool,
|
||||
RefactorTool,
|
||||
TestGenerationTool,
|
||||
TestGenTool,
|
||||
ThinkDeepTool,
|
||||
TracerTool,
|
||||
)
|
||||
@@ -161,17 +161,17 @@ server: Server = Server("zen-server")
|
||||
# Each tool provides specialized functionality for different development tasks
|
||||
# Tools are instantiated once and reused across requests (stateless design)
|
||||
TOOLS = {
|
||||
"thinkdeep": ThinkDeepTool(), # Extended reasoning for complex problems
|
||||
"codereview": CodeReviewTool(), # Comprehensive code review and quality analysis
|
||||
"thinkdeep": ThinkDeepTool(), # Step-by-step deep thinking workflow with expert analysis
|
||||
"codereview": CodeReviewTool(), # Comprehensive step-by-step code review workflow with expert analysis
|
||||
"debug": DebugIssueTool(), # Root cause analysis and debugging assistance
|
||||
"analyze": AnalyzeTool(), # General-purpose file and code analysis
|
||||
"chat": ChatTool(), # Interactive development chat and brainstorming
|
||||
"consensus": ConsensusTool(), # Multi-model consensus for diverse perspectives on technical proposals
|
||||
"listmodels": ListModelsTool(), # List all available AI models by provider
|
||||
"planner": PlannerTool(), # A task or problem to plan out as several smaller steps
|
||||
"precommit": Precommit(), # Pre-commit validation of git changes
|
||||
"testgen": TestGenerationTool(), # Comprehensive test generation with edge case coverage
|
||||
"refactor": RefactorTool(), # Intelligent code refactoring suggestions with precise line references
|
||||
"planner": PlannerTool(), # Interactive sequential planner using workflow architecture
|
||||
"precommit": PrecommitTool(), # Step-by-step pre-commit validation workflow
|
||||
"testgen": TestGenTool(), # Step-by-step test generation workflow with expert validation
|
||||
"refactor": RefactorTool(), # Step-by-step refactoring analysis workflow with expert validation
|
||||
"tracer": TracerTool(), # Static call path prediction and control flow analysis
|
||||
}
|
||||
|
||||
@@ -179,14 +179,19 @@ TOOLS = {
|
||||
PROMPT_TEMPLATES = {
|
||||
"thinkdeep": {
|
||||
"name": "thinkdeeper",
|
||||
"description": "Think deeply about the current context or problem",
|
||||
"template": "Think deeper about this with {model} using {thinking_mode} thinking mode",
|
||||
"description": "Step-by-step deep thinking workflow with expert analysis",
|
||||
"template": "Start comprehensive deep thinking workflow with {model} using {thinking_mode} thinking mode",
|
||||
},
|
||||
"codereview": {
|
||||
"name": "review",
|
||||
"description": "Perform a comprehensive code review",
|
||||
"template": "Perform a comprehensive code review with {model}",
|
||||
},
|
||||
"codereviewworkflow": {
|
||||
"name": "reviewworkflow",
|
||||
"description": "Step-by-step code review workflow with expert analysis",
|
||||
"template": "Start comprehensive code review workflow with {model}",
|
||||
},
|
||||
"debug": {
|
||||
"name": "debug",
|
||||
"description": "Debug an issue or error",
|
||||
@@ -197,6 +202,11 @@ PROMPT_TEMPLATES = {
|
||||
"description": "Analyze files and code structure",
|
||||
"template": "Analyze these files with {model}",
|
||||
},
|
||||
"analyzeworkflow": {
|
||||
"name": "analyzeworkflow",
|
||||
"description": "Step-by-step analysis workflow with expert validation",
|
||||
"template": "Start comprehensive analysis workflow with {model}",
|
||||
},
|
||||
"chat": {
|
||||
"name": "chat",
|
||||
"description": "Chat and brainstorm ideas",
|
||||
@@ -204,8 +214,8 @@ PROMPT_TEMPLATES = {
|
||||
},
|
||||
"precommit": {
|
||||
"name": "precommit",
|
||||
"description": "Validate changes before committing",
|
||||
"template": "Run precommit validation with {model}",
|
||||
"description": "Step-by-step pre-commit validation workflow",
|
||||
"template": "Start comprehensive pre-commit validation workflow with {model}",
|
||||
},
|
||||
"testgen": {
|
||||
"name": "testgen",
|
||||
@@ -217,6 +227,11 @@ PROMPT_TEMPLATES = {
|
||||
"description": "Refactor and improve code structure",
|
||||
"template": "Refactor this code with {model}",
|
||||
},
|
||||
"refactorworkflow": {
|
||||
"name": "refactorworkflow",
|
||||
"description": "Step-by-step refactoring analysis workflow with expert validation",
|
||||
"template": "Start comprehensive refactoring analysis workflow with {model}",
|
||||
},
|
||||
"tracer": {
|
||||
"name": "tracer",
|
||||
"description": "Trace code execution paths",
|
||||
|
||||
Reference in New Issue
Block a user