Compare commits
2 Commits
d78820dcd4
...
3873821a31
| Author | SHA1 | Date | |
|---|---|---|---|
|
3873821a31
|
|||
|
9c2801b643
|
@@ -402,7 +402,6 @@ invoke_agent_with_summary() {
|
|||||||
summary=$(echo "${output}" | sed -n '/^## Recommendation/,/^## /{/^## Recommendation/d;/^## /d;p}' | sed '/^$/d' | head -10)
|
summary=$(echo "${output}" | sed -n '/^## Recommendation/,/^## /{/^## Recommendation/d;/^## /d;p}' | sed '/^$/d' | head -10)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Failsafe: extract up to 5 meaningful lines if no markers found
|
|
||||||
if [[ -z "${summary}" ]]; then
|
if [[ -z "${summary}" ]]; then
|
||||||
summary=$(echo "${output}" | grep -v "^$" | grep -v "^#" | grep -v "^\-\-\-" | tail -10 | head -5)
|
summary=$(echo "${output}" | grep -v "^$" | grep -v "^#" | grep -v "^\-\-\-" | tail -10 | head -5)
|
||||||
fi
|
fi
|
||||||
@@ -411,7 +410,11 @@ invoke_agent_with_summary() {
|
|||||||
append_context "${agent}" "${summary}"
|
append_context "${agent}" "${summary}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "${output}"
|
if [[ -z "${output}" ]] || [[ -z "$(echo "${output}" | tr -d '[:space:]')" ]]; then
|
||||||
|
echo "[${agent} agent completed but produced no text output. The agent may have performed work via tool calls (file writes, builds, etc.) that did not generate visible text. Check the project directory for changes.]"
|
||||||
|
else
|
||||||
|
echo "${output}"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
###########################
|
###########################
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ instructions: |
|
|||||||
2. Study existing patterns (read 1-2 similar files)
|
2. Study existing patterns (read 1-2 similar files)
|
||||||
3. Write the code (using tools, NOT chat output)
|
3. Write the code (using tools, NOT chat output)
|
||||||
4. Verify it compiles/builds
|
4. Verify it compiles/builds
|
||||||
5. Signal completion
|
5. Signal completion with a summary
|
||||||
|
|
||||||
## Todo System
|
## Todo System
|
||||||
|
|
||||||
@@ -82,12 +82,13 @@ instructions: |
|
|||||||
|
|
||||||
## Completion Signal
|
## Completion Signal
|
||||||
|
|
||||||
End with:
|
When done, end your response with a summary so the parent agent knows what happened:
|
||||||
|
|
||||||
```
|
```
|
||||||
CODER_COMPLETE: [summary of what was implemented]
|
CODER_COMPLETE: [summary of what was implemented, which files were created/modified, and build status]
|
||||||
```
|
```
|
||||||
|
|
||||||
Or if failed:
|
Or if something went wrong:
|
||||||
```
|
```
|
||||||
CODER_FAILED: [what went wrong]
|
CODER_FAILED: [what went wrong]
|
||||||
```
|
```
|
||||||
@@ -104,4 +105,3 @@ instructions: |
|
|||||||
- Project: {{project_dir}}
|
- Project: {{project_dir}}
|
||||||
- CWD: {{__cwd__}}
|
- CWD: {{__cwd__}}
|
||||||
- Shell: {{__shell__}}
|
- Shell: {{__shell__}}
|
||||||
|
|
||||||
|
|||||||
@@ -8,12 +8,13 @@ variables:
|
|||||||
description: Project directory to explore
|
description: Project directory to explore
|
||||||
default: '.'
|
default: '.'
|
||||||
|
|
||||||
|
mcp_servers:
|
||||||
|
- ddg-search
|
||||||
global_tools:
|
global_tools:
|
||||||
- fs_read.sh
|
- fs_read.sh
|
||||||
- fs_grep.sh
|
- fs_grep.sh
|
||||||
- fs_glob.sh
|
- fs_glob.sh
|
||||||
- fs_ls.sh
|
- fs_ls.sh
|
||||||
- web_search_loki.sh
|
|
||||||
|
|
||||||
instructions: |
|
instructions: |
|
||||||
You are a codebase explorer. Your job: Search, find, report. Nothing else.
|
You are a codebase explorer. Your job: Search, find, report. Nothing else.
|
||||||
|
|||||||
@@ -8,12 +8,13 @@ variables:
|
|||||||
description: Project directory for context
|
description: Project directory for context
|
||||||
default: '.'
|
default: '.'
|
||||||
|
|
||||||
|
mcp_servers:
|
||||||
|
- ddg-search
|
||||||
global_tools:
|
global_tools:
|
||||||
- fs_read.sh
|
- fs_read.sh
|
||||||
- fs_grep.sh
|
- fs_grep.sh
|
||||||
- fs_glob.sh
|
- fs_glob.sh
|
||||||
- fs_ls.sh
|
- fs_ls.sh
|
||||||
- web_search_loki.sh
|
|
||||||
|
|
||||||
instructions: |
|
instructions: |
|
||||||
You are Oracle - a senior architect and debugger consulted for complex decisions.
|
You are Oracle - a senior architect and debugger consulted for complex decisions.
|
||||||
|
|||||||
@@ -22,12 +22,13 @@ variables:
|
|||||||
description: Auto-confirm command execution
|
description: Auto-confirm command execution
|
||||||
default: '1'
|
default: '1'
|
||||||
|
|
||||||
|
mcp_servers:
|
||||||
|
- ddg-search
|
||||||
global_tools:
|
global_tools:
|
||||||
- fs_read.sh
|
- fs_read.sh
|
||||||
- fs_grep.sh
|
- fs_grep.sh
|
||||||
- fs_glob.sh
|
- fs_glob.sh
|
||||||
- fs_ls.sh
|
- fs_ls.sh
|
||||||
- web_search_loki.sh
|
|
||||||
- execute_command.sh
|
- execute_command.sh
|
||||||
|
|
||||||
instructions: |
|
instructions: |
|
||||||
|
|||||||
Reference in New Issue
Block a user