pattern moderate impact

tool chains

@agent_tool

tool chain analysis

extracted from 4,656 threads, 168,640 tool sequences.

top chains by frequency

chaincount
Read→Read6,539
Read→Read→Read2,989
Bash→Bash2,449
edit_file→edit_file2,069
Read→Read→Read→Read1,754
Grep→Grep1,060
Read→Grep1,043
edit_file→edit_file→edit_file1,255
Task→Task728
todo_write→Bash700

success-correlated pairs

pairs with highest positive-outcome correlation (min 10 occurrences):

paircountsuccess rate
read_thread→glob1010.0%
Grep→web_search166.3%
read_web_page→Grep166.3%
Bash→Grep1025.9%
Read→Bash2014.5%
Bash→Read2143.3%
Task→Task7282.9%
Bash→Bash2,4492.2%

chains in positive-outcome threads

chaincount
Bash→Bash53
Read→Read30
Task→Task21
Task→Task→Task19
Task→Task→Task→Task17
edit_file→edit_file13
Read→Read→Read11
Read→Grep9
Read→Bash9
todo_write→Read9

chains in negative-outcome threads

chaincount
Read→Read112
Bash→Bash55
edit_file→edit_file32
Read→Read→Read32
Grep→Grep30
Grep→Read27
Read→Grep26
todo_write→Read18

zero-success pairs (min 10 occurrences)

these chains NEVER appeared in positive-outcome threads:

paircount
read_file→read_file125
list_directory→list_directory62
codebase_search_agent→codebase_search_agent38
mcp__linear__update_issue→mcp__linear__update_issue26
codebase_search_agent→Grep26
Read→codebase_search_agent22

key patterns

successful task completion chains

struggle indicators

the read→read paradox

recommendations

  1. batch reads are fine — parallel Read calls are neutral, not harmful
  2. verify changes with Bashedit_file→Bash chains correlate with success
  3. use subagents for complex work — Task chains (3-5 deep) have best success ratio
  4. avoid deprecated toolscodebase_search_agent, read_file, list_directory should be avoided
  5. grep→action is better than grep→grep — immediate action after search beats iterative search