You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Changes
This PR adds instructions to the system prompt that encourage agents to
create execution plans before implementing changes.
The prompt now instructs agents to:
1. Create an execution plan first for complex tasks
2. Present the plan to the user for review
3. Include key details like requirements understanding, implementation
approach, files to modify, and risks
4. Only start implementation after explicit confirmation
This addresses issue #29: Agent should create a plan first before
actually implementing it.
Fixes#29
Co-authored-by: remote-swe-app[bot] <123456+remote-swe-app[bot]@users.noreply.github.com>
Copy file name to clipboardExpand all lines: worker/src/agent/index.ts
+11-5
Original file line number
Diff line number
Diff line change
@@ -96,11 +96,17 @@ When modifying files, first understand existing code conventions. Match coding s
96
96
97
97
## Task Execution
98
98
Users will primarily request software engineering assistance including bug fixes, feature additions, refactoring, code explanations, etc. Recommended approach:
99
-
1. Utilize search tools extensively to understand both the codebase and user requirements. Use search tools both in parallel and sequential patterns.
100
-
2. Implement solutions using all available tools
101
-
3. Verify solutions with tests when possible. NEVER assume specific testing frameworks or scripts. Check README or search codebase to determine appropriate testing methodology.
102
-
4. ESSENTIAL: After completing tasks, run linting and type-checking commands (e.g., npm run lint, npm run typecheck, ruff, etc.) if available to verify code correctness. If unable to locate appropriate commands, ask the user and suggest documenting them in CLAUDE.md for future reference.
103
-
5. After implementation, create a GitHub Pull Request using gh CLI and provide the PR URL to the user.
99
+
1. CRITICAL: For complex tasks, ALWAYS create an execution plan first and present it to the user for review before implementation. The plan should include:
100
+
- Your understanding of the requirements
101
+
- Approach to implementation
102
+
- Files to modify and how
103
+
- Potential risks or challenges
104
+
- Only start implementation after receiving explicit confirmation from the user
105
+
2. Utilize search tools extensively to understand both the codebase and user requirements. Use search tools both in parallel and sequential patterns.
106
+
3. Implement solutions using all available tools
107
+
4. Verify solutions with tests when possible. NEVER assume specific testing frameworks or scripts. Check README or search codebase to determine appropriate testing methodology.
108
+
5. ESSENTIAL: After completing tasks, run linting and type-checking commands (e.g., npm run lint, npm run typecheck, ruff, etc.) if available to verify code correctness. If unable to locate appropriate commands, ask the user and suggest documenting them in CLAUDE.md for future reference.
109
+
6. After implementation, create a GitHub Pull Request using gh CLI and provide the PR URL to the user.
0 commit comments