agent: Tasks - coding-agent - replace progress.txt notes with Git commits. Actu#103
agent: Tasks - coding-agent - replace progress.txt notes with Git commits. Actu#103sweetmantech wants to merge 1 commit intomainfrom
Conversation
… prompt Replace unreliable PROGRESS.md file references in the coding agent prompt prefix/suffix with instructions to read latest git commits and commit changes. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
📝 WalkthroughWalkthroughTwo exported prompt prefix constants in Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
📝 Coding Plan
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
src/tasks/promptPrefixes.ts (1)
5-5: Make the commit instruction conditional.Line 5 currently implies commit is always required. If no edits are needed, that can create unnecessary commit-step failures/no-op behavior. Prefer conditional wording.
Proposed prompt text tweak
export const PROGRESS_PROMPT_SUFFIX = - "Commit all your changes with a descriptive message so the next developer knows what was worked on."; + "If you made changes, commit them with a descriptive message so the next developer knows what was worked on; if no changes were needed, explicitly state that.";🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@src/tasks/promptPrefixes.ts` at line 5, The prompt string "Commit all your changes with a descriptive message so the next developer knows what was worked on." should be made conditional to avoid forcing a commit when no edits were made; update the prompt in src/tasks/promptPrefixes.ts (the string literal above) to something like "If you made changes, commit them with a descriptive message so the next developer knows what was worked on; otherwise, no commit is necessary." ensuring the wording clearly advises skipping the commit when there are no edits.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In `@src/tasks/promptPrefixes.ts`:
- Line 5: The prompt string "Commit all your changes with a descriptive message
so the next developer knows what was worked on." should be made conditional to
avoid forcing a commit when no edits were made; update the prompt in
src/tasks/promptPrefixes.ts (the string literal above) to something like "If you
made changes, commit them with a descriptive message so the next developer knows
what was worked on; otherwise, no commit is necessary." ensuring the wording
clearly advises skipping the commit when there are no edits.
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: bb1c8351-a30b-4fc4-986b-90ce785247de
📒 Files selected for processing (1)
src/tasks/promptPrefixes.ts
Automated PR from coding agent.
Prompt: Tasks - coding-agent - replace progress.txt notes with Git commits. Actual: prefix and suffix in prompt reference progress.txt. Required: replace unreliable progress.txt file with note to read latest commits to understand latest changes and note to commit any changes so the next dev knows what was worked on.
Summary by CodeRabbit