Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix: agent prompt now explicitly includes commit/push in task instructions

Adam Eivy8dc5bbc4cb91
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.md
index 8244be13f8..f64ade4bf0 100644
--- a/.changelog/NEXT.md
+++ b/.changelog/NEXT.md
@@ -27,3 +27,4 @@
- **Resume Agent modal not dismissing** — clicking "Queue Resume Task" successfully queued the task but left the modal open; modal now closes on successful submit
- **Pending task edit form unresponsive** — save/cancel buttons on the edit form for pending tasks did not respond to taps; dnd-kit's sortable wrapper interfered with pointer events inside sortable items. Sorting is now disabled while editing, pointer events are stopped from propagating through the edit form, and button touch targets are enlarged to 40px minimum height
- **Broken worktree detection** — worktree cleanup now verifies `rev-parse --show-toplevel` matches the expected worktree path before trusting `git status`; prevents broken worktrees (missing `.git` file) from resolving to a parent repo and incorrectly blocking removal
+- **Agent prompt missing commit step** — agent instructions now explicitly include "commit and push" in the numbered steps and the simplify section reinforces committing after review, preventing agents from completing work without pushing changes
diff --git a/server/services/agentPromptBuilder.js b/server/services/agentPromptBuilder.js
index a2a3b2b47d..a2f0737fd8 100644
--- a/server/services/agentPromptBuilder.js
+++ b/server/services/agentPromptBuilder.js
@@ -197,7 +197,7 @@ Use the findings from the previous stage to inform your work. If the previous st
// Build simplify section if enabled
const simplifySection = isTruthyMetaFn(task.metadata?.simplify) ? `
## Simplify Step
-After completing your work and before committing, run \`/simplify\` to review the changed code for reuse, quality, and efficiency. Fix any issues found before committing.
+After completing your work and before committing, run \`/simplify\` to review the changed code for reuse, quality, and efficiency. Fix any issues found, then commit and push using \`/do:push\`.
` : '';
// Build review loop section if enabled
@@ -305,7 +305,8 @@ ${skillSection ? `## Task-Type Skill Guidelines\n\n${skillSection}\n` : ''}${too
1. Analyze the task requirements carefully
2. Make necessary changes to complete the task
3. Test your changes when possible
-4. Provide a summary of what was done
+4. Commit and push your changes (see Git Hygiene below)
+5. Provide a summary of what was done
## Guidelines
- Focus only on the assigned task