diff --git a/src/executor.ts b/src/executor.ts index 76a991b..a56d6ca 100644 --- a/src/executor.ts +++ b/src/executor.ts @@ -689,7 +689,10 @@ async function executeTask( "", "The previous task is complete. There are uncommitted changes in the repository.", "", - "First stage all intended changes with `git add -A` (including untracked files), then create a meaningful git commit.", + "Only commit changes you made while completing this task. Do not commit pre-existing changes, changes from other work, or files unrelated to this task.", + "Review the git status and diff below to identify which changes are from your work, and stage only those files.", + "", + "Stage only the files relevant to this task with `git add `, then create a meaningful git commit.", "Use a descriptive commit message and follow conventional commits format.", "", "### Current Changes (git status --porcelain)",