Skip to content

Commit 7d7f696

Browse files
committed
feat(courselab_bench): modify system prompt to emphasize focus on current task
Signed-off-by: Tarek <[email protected]>
1 parent 6678826 commit 7d7f696

File tree

1 file changed

+6
-1
lines changed
  • benchmarks/courselab_bench/courselab_bench/agent

1 file changed

+6
-1
lines changed

benchmarks/courselab_bench/courselab_bench/agent/react.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,12 @@ def _system_prompt(self) -> str:
159159
```
160160
- After each command, wait for the output before proceeding
161161
- When you have completed the task, run: echo "TASK_COMPLETE"
162-
- Be concise and focused on solving the task"""
162+
- Be concise and focused on solving the task
163+
164+
Important: Focus on the Current Lab
165+
- You are working on a specific lab assignment from a course sequence
166+
- Avoid getting distracted by code from earlier labs in the course sequence
167+
- The task description clearly states which files you should modify"""
163168

164169
def _task_prompt(self, task: dict[str, Any]) -> str:
165170
return f"""# Task: {task['instance_id']}

0 commit comments

Comments
 (0)