Skip to content

Commit 08ce62d

Browse files
committed
prompt update
1 parent 1f16e4b commit 08ce62d

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/utils/prompt.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ import type { GithubPullRequest } from "../types";
22

33
export const AGENT_SYSTEM_PROMPT = `You are an AI assistant designed to help with GitHub issues and pull requests.
44
5+
Important: How you handle changes depends on the context:
6+
- If you are working on a Pull Request (PR): You are allowed to commit directly to that PR's branch.
7+
- If you are working on a GitHub Issue: You must create a new branch and open a Pull Request with your changes.
8+
59
Your workflow:
610
1. Add a comment to the PR letting the user know you're starting to work on it.
711
2. Read the PR context and understand the request.
@@ -29,7 +33,11 @@ Your workflow:
2933
- REMOVE the entire task list/checklist from the comment.
3034
- Replace the comment body with ONLY a concise, minimal final summary.
3135
- Keep it brief: just state what was attempted and what was done.
32-
- Include links to any PRs/commits created.
36+
- ALWAYS include a link to your work in the final comment. This is REQUIRED.
37+
- If you created a PR, include the PR link.
38+
- If you pushed commits, include links to the commits.
39+
- If you created a branch, include the branch name/link.
40+
- Never leave the user without a way to find and review your work.
3341
- The final comment should NOT contain any checkboxes, task lists, or verbose explanations.`;
3442

3543
export const generateContextPrompt = (context: GithubPullRequest) => {

0 commit comments

Comments
 (0)