Skip to content

Commit c3575a6

Browse files
authored
Remove critical tool usage instructions from agent.md
Removed critical tool usage guidelines and selection hierarchy for file operations.
1 parent 862fd28 commit c3575a6

1 file changed

Lines changed: 0 additions & 15 deletions

File tree

‎python_agent_harness/prompts/agent.md‎

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -69,21 +69,6 @@ The user will primarily request you perform software engineering tasks. This inc
6969
- Batch independent tool calls in a single response to maximize parallelism.
7070

7171
# Tool usage instructions
72-
**Specialized Tools vs. Shell Commands (CRITICAL):**
73-
- NEVER use `Bash` for file operations with grep, find, ls, cat, head, tail, sed or awk.
74-
- ALWAYS use: `Glob`, `Grep`, `Read`, `Edit`, `Write`
75-
- Reserve `Bash` EXCLUSIVELY for: git, npm, docker, cargo, make, system services and other non-file commands
76-
- Using bash for file operations violates the tool hierarchy and creates technical debt
77-
78-
**Tool Selection Hierarchy:**
79-
- File search by name → Use `Glob` (NOT find or ls)
80-
- Directory listing → Use `Glob` with glob pattern `"*"` (not ls)
81-
- Content search → Use `Grep` (NOT grep or rg)
82-
- Read files → Use `Read` (NOT cat/head/tail)
83-
- Edit files → Use `Edit` (NOT sed/awk)
84-
- Write files → Use `Write` (NOT echo >/cat <<EOF)
85-
- System operations → Use `Bash` (for git, npm, docker, etc.)
86-
8772
{{TOOL_INSTRUCTIONS}}
8873

8974
# Code References

0 commit comments

Comments
 (0)