From 51b37f67cab1370ac08215c1384c712bcda099af Mon Sep 17 00:00:00 2001 From: Colin McDonnell Date: Wed, 3 Dec 2025 16:40:53 -0800 Subject: [PATCH] Improve flow for non-PR Build mode --- fixtures/basic.txt | 2 +- modes.ts | 16 ++++++++++++++-- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/fixtures/basic.txt b/fixtures/basic.txt index b08735f..96f6fff 100644 --- a/fixtures/basic.txt +++ b/fixtures/basic.txt @@ -1 +1 @@ -Use the debug_shell_command MCP tool to run git status and show me the output. \ No newline at end of file +Implement a fun new feature in a new branch. No PR. \ No newline at end of file diff --git a/modes.ts b/modes.ts index 157dc9d..5cbb21f 100644 --- a/modes.ts +++ b/modes.ts @@ -26,9 +26,21 @@ export const modes: Mode[] = [ 6. ${reportProgressInstruction} -7. When you are done, create a final commit. If relevant, indicate which issue the PR addresses somewhere in the commit message (e.g. "Fixes #123"). Create a PR with an informative title and body. If relevant, include links to the issue or comment that triggered the PR. +7. When you are done, create a final commit. If relevant, indicate which issue the PR addresses somewhere in the commit message (e.g. "Fixes #123"). -8. Call report_progress one final time with a summary of the results. Include links to any created issues/PRs, e.g. \`[View PR](https://github.com/org/repo/pull/123)\` +8. By default, create a PR with an informative title and body. However, if the user explicitly requests a branch without a PR (e.g. "implement X in a new branch", "don't create a PR", "branch only"), just make changes the changes in a branch and push them. + +9. Call report_progress one final time with a summary of the results and a link to any artifacts created, like PRs or branches. + - If relevant, include links to the issue or comment that triggered the PR. + - If you created a PR, ALWAYS include a "View PR" link. e.g.: + \`\`\`md + [View PR ➔](https://github.com/org/repo/pull/123) + \`\`\` + - If you created a branch without a PR, ALWAYS include a "Create PR" link and a link to the branch. e.g.: + + \`\`\`md + [\`pullfrog/branch-name\`](https://github.com/pullfrogai/scratch/tree/pullfrog/branch-name) • [Create PR ➔](https://github.com/pullfrogai/scratch/compare/main...pullfrog/branch-name?quick_pull=1&title=&body=) + \`\`\` `, }, {