feat(core): add Explore agent and rename TaskTool to AgentTool#2489
feat(core): add Explore agent and rename TaskTool to AgentTool#2489tanzhenxin merged 6 commits intomainfrom
Conversation
Rename the Task tool to Agent tool for clearer semantics and better alignment with industry terminology. This change includes: - Rename TaskTool -> AgentTool, TaskParams -> AgentParams - Rename TaskResultDisplay -> AgentResultDisplay - Add 'Explore' built-in agent for read-only codebase exploration - Add backward compatibility mappings for legacy tool names - Improve Agent tool description with clearer usage guidelines - Add case-insensitive agent name matching - Fallback to built-in agents when subagent loading fails Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
📋 Review SummaryThis PR successfully renames 🔍 General Feedback
🎯 Specific Feedback🟡 High
🟢 Medium
🔵 Low
✅ Highlights
|
Code Coverage Summary
CLI Package - Full Text ReportCore Package - Full Text ReportFor detailed HTML reports, please see the 'coverage-reports-22.x-ubuntu-latest' artifact from the main CI run. |
…_path This unifies the parameter naming convention across file-related tools (edit, write_file, read_file) to consistently use file_path. Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
- Update tool name aliases to map 'task' to 'agent' as legacy alias - Add proper 'agent' tool name aliases (Agent, AgentTool) - Update canonical-to-rule display mapping from 'task' to 'Agent' - Update tests to expect 'agent' instead of 'task' - Fix debug log message from [TaskTool] to [Agent] This completes the tool renaming from "task" to "agent" for clarity, as "agent" better describes the tool's purpose of delegating to subagents. Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This ensures the test has a properly initialized mock child process, fixing potential test failures during the task-to-agent-tool refactor. Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
TLDR
Adds a new
Explorebuilt-in agent specialized for fast, read-only codebase exploration with configurable thoroughness levels. Also renamesTaskTooltoAgentToolfor clearer semantics, and unifies file path parameter naming across file tools.Dive Deeper
New Explore Agent
The
Exploreagent is a specialized agent for quickly navigating and exploring codebases. It excels at:Key Features:
quick,medium, andvery thoroughlevelsAvailable Tools:
read_file,grep,glob,shell,ls,web_fetch,web_search,todo_write,memory,skill,lsp,ask_user_questionTaskTool → AgentTool Refactoring
As part of this change, the
TaskToolhas been renamed toAgentToolfor clearer semantics and better alignment with industry terminology.Renaming:
TaskTool→AgentTool(class)task.ts→agent.ts(file)TaskParams→AgentParams(interface)TaskResultDisplay→AgentResultDisplay(interface)'task'→'agent'Backward Compatibility:
tasktool name will be migrated automaticallyAdditional Improvements:
Unified File Path Parameter Naming
Renamed the
read_filetool parameter fromabsolute_pathtofile_pathfor consistency with other file-related tools (edit,write_file).Changes:
read-file.ts: Parameter renamedabsolute_path→file_pathcoreToolScheduler.ts: Updated file path extraction logictelemetry-utils.ts: Simplified path extractioncollect.ts: Removedabsolute_pathfallbackReviewer Test Plan
npm run buildcd packages/core && npx vitest run src/tools/agent.test.tstasktoolTesting Matrix
Linked issues / bugs
No linked issues
🤖 Generated with Qwen Code