vanishingradient commited on
Commit
91d2777
·
verified ·
1 Parent(s): 59a0ac5

ls fallback: no assume src/

Browse files
src/deepagents_rl/data/swe_bench_lite.py CHANGED
@@ -50,8 +50,8 @@ def build_agent_prompt(problem_statement: str, *, instance_id: str) -> str:
50
  "interface (not by writing a plan or code only in plain text).\n"
51
  "Available tools: ls, glob, grep, read_file, write_file, edit_file, execute.\n"
52
  "Required workflow:\n"
53
- "1) Call ls or glob to inspect the repo.\n"
54
- "2) Call read_file / grep to find the bug.\n"
55
  "3) Call edit_file or write_file to apply a minimal fix.\n"
56
  "4) Optionally execute a quick check command.\n"
57
  "5) Stop calling tools and reply DONE with a short summary.\n"
 
50
  "interface (not by writing a plan or code only in plain text).\n"
51
  "Available tools: ls, glob, grep, read_file, write_file, edit_file, execute.\n"
52
  "Required workflow:\n"
53
+ "1) Call ls with path='.' (repo root). Do NOT assume a 'src/' folder exists.\n"
54
+ "2) Call read_file / grep on paths you actually saw.\n"
55
  "3) Call edit_file or write_file to apply a minimal fix.\n"
56
  "4) Optionally execute a quick check command.\n"
57
  "5) Stop calling tools and reply DONE with a short summary.\n"