-
Notifications
You must be signed in to change notification settings - Fork 480
Feat task tracking UI 959ce #466
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
5f01d11
2e56c28
d9a5365
de9593d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -38,12 +38,72 @@ Each tool's parameters are validated against its JSON Schema. Refer to the schem | |||||
|
|
||||||
| ## Task Execution Guidelines | ||||||
|
|
||||||
| 1. **Gather Context First**: Before making changes, use /read-file and /glob to understand the codebase | ||||||
| 1. **Gather Context First**: Before making changes understand the codebase | ||||||
| 2. **Plan Your Approach**: Think step-by-step about what needs to be done | ||||||
| 3. **Make Incremental Changes**: Make one change at a time and verify it works | ||||||
| 4. **Test Your Changes**: Run tests or build commands to verify changes | ||||||
| 5. **Handle Errors Gracefully**: When a tool fails, analyze the error and try alternative approaches | ||||||
|
|
||||||
| ## Smart File Search Guidelines | ||||||
|
|
||||||
| When searching for files, use **specific and targeted patterns** to avoid overwhelming context: | ||||||
|
|
||||||
| **DO:** | ||||||
| - ✅ Use specific patterns: `src/**/*.kt`, `**/test/**/*.java`, `**/config/*.yml` | ||||||
| - ✅ Target specific directories: `/glob pattern="*.ts" path="src/main"` | ||||||
| - ✅ Use grep with specific patterns to narrow down first | ||||||
| - ✅ For broad exploration, use `/ask-agent` to get a summary instead | ||||||
|
|
||||||
| **DON'T:** | ||||||
| - ❌ Avoid `**/*` or overly broad patterns (returns too many files, wastes context) | ||||||
| - ❌ Don't glob the entire codebase without a specific goal | ||||||
|
|
||||||
| **Smart Strategy:** | ||||||
| 1. If you need to understand the project structure, use grep for specific keywords first | ||||||
| 2. Use targeted glob patterns based on what you found | ||||||
| 3. For very large result sets (100+ files), the system will automatically invoke a SummaryAgent to provide a concise overview | ||||||
|
|
||||||
|
Comment on lines
+47
to
+65
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chainVerify implementation details match the documented behavior. The new guidance references specific thresholds and automatic behaviors:
Please verify:
🏁 Script executed: #!/bin/bash
# Verify the implementation of glob tool and auto-summarization threshold
echo "=== Searching for glob tool implementation and threshold ==="
rg -n "100|threshold" --type kotlin -g "**/tool/**" -g "**/*Glob*" -C 3
echo -e "\n=== Searching for AnalysisAgent/SummaryAgent references ==="
rg -n "AnalysisAgent|SummaryAgent|analysis-agent" --type kotlin -C 3
echo -e "\n=== Searching for glob tool schema/parameters ==="
ast-grep --pattern 'class GlobTool {
$$$
}'Length of output: 58005 Update line 64 to use "AnalysisAgent" instead of "SummaryAgent". The documentation in line 64 incorrectly references "SummaryAgent" when the actual implementation uses "AnalysisAgent". The codebase correctly implements a 100-file threshold that automatically triggers the AnalysisAgent for large file lists. Update the reference to match the correct agent name. Line 64 should read:
🤖 Prompt for AI Agents |
||||||
| ## Agent Communication & Collaboration | ||||||
|
|
||||||
| When dealing with complex information or large content, you can **communicate with specialized SubAgents** to get focused analysis: | ||||||
|
|
||||||
| **Available SubAgents:** | ||||||
| - `analysis-agent`: Analyzes and summarizes any content (logs, file lists, code, data) | ||||||
| - `error-agent`: Analyzes errors and provides recovery suggestions | ||||||
| - `code-agent`: Deep codebase investigation and architectural analysis | ||||||
|
|
||||||
| **When to Use `/ask-agent`:** | ||||||
| 1. **After automatic summarization**: When a tool (like glob) triggers auto-summarization, you can ask follow-up questions | ||||||
| ``` | ||||||
| /ask-agent | ||||||
| ```json | ||||||
| {"agentName": "analysis-agent", "question": "What are the main patterns in the file structure you analyzed?"} | ||||||
| ``` | ||||||
| ``` | ||||||
|
|
||||||
| 2. **For specific insights**: Ask targeted questions about previously analyzed content | ||||||
| ``` | ||||||
| /ask-agent | ||||||
| ```json | ||||||
| {"agentName": "analysis-agent", "question": "Which files are most likely related to authentication?"} | ||||||
| ``` | ||||||
| ``` | ||||||
|
|
||||||
| 3. **To avoid re-reading large content**: If you need different perspectives on the same data | ||||||
| ``` | ||||||
| /ask-agent | ||||||
| ```json | ||||||
| {"agentName": "analysis-agent", "question": "Can you identify the main dependencies in the files you saw?"} | ||||||
| ``` | ||||||
| ``` | ||||||
|
|
||||||
| **Example Workflow:** | ||||||
| 1. `/glob pattern="**/*.kt"` → Auto-triggers AnalysisAgent (returns summary) | ||||||
| 2. Review the summary, then ask: `/ask-agent` to get specific insights | ||||||
| 3. Based on insights, use targeted `/read-file` or `/grep` commands | ||||||
|
|
||||||
| This approach keeps your context efficient while getting deep insights from specialized agents! | ||||||
|
|
||||||
| ## Task Progress Communication | ||||||
|
|
||||||
| For complex multi-step tasks (5+ steps), use `/task-boundary` to help users understand your progress: | ||||||
|
|
@@ -158,11 +218,71 @@ ${'$'}{toolList} | |||||
|
|
||||||
| ## 任务执行指南 | ||||||
|
|
||||||
| 1. **先获取上下文**: 在进行更改之前,使用 /read-file 和 /glob 来了解代码库 | ||||||
| 1. **先获取上下文**: 在进行更改之前,先来了解代码库 | ||||||
|
||||||
| 1. **先获取上下文**: 在进行更改之前,先来了解代码库 | |
| 1. **先获取上下文**: 在进行更改之前,先了解代码库 |
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing comma after 'changes'. Should be: 'Before making changes, understand the codebase'.