#14701: Agent: enforce execute-first replies and clarify whisper modes
agents
stale
size: M
Cluster:
Skill Enhancements and Fixes
<!-- greptile_comment -->
<h2>Greptile Overview</h2>
<h3>Greptile Summary</h3>
This PR updates agent guidance and follow-up prompt construction, and adjusts skill documentation:
- Adds “execute-first” tool-call guardrails to the agent system prompt (`src/agents/system-prompt.ts`) with a unit test to pin the new text.
- When draining queued messages in collect mode, appends a stale-state reminder to the collect summary so the model treats queued items as potentially invalidating prior assumptions (`src/auto-reply/reply/queue/drain.ts`) with a corresponding test update.
- Clarifies Whisper skill docs to distinguish local vs API transcription, and flips a couple bundled `skills/**/scripts/*.sh` files to be executable; adds a test ensuring skill shell scripts are executable on Unix.
<h3>Confidence Score: 5/5</h3>
- This PR is safe to merge with minimal risk.
- Changes are small, localized, and covered by updated/new unit tests; the only functional change is adding an extra reminder line to an internal collect prompt summary and adding prompt guardrail strings.
- No files require special attention
<!-- greptile_other_comments_section -->
<sub>(3/5) Reply to the agent's comments like "Can you suggest a fix for this @greptileai?" or ask follow-up questions!</sub>
<!-- /greptile_comment -->
Most Similar PRs
#9273: Add files via upload
by cyrilliu1974 · 2026-02-05
81.5%
#8873: fix: document skill loading locations in system prompt
by ytfh44 · 2026-02-04
80.7%
#13833: Cursor/cloud agent 1770777372587 3zom0
by zhch158 · 2026-02-11
79.5%
#15852: fix: pass agentId when resolving IRC session paths
by MisterGuy420 · 2026-02-14
78.5%
#13792: Claude/openclaw token efficiency q ni2s
by imecostalima · 2026-02-11
78.3%
#14432: System prompt: add guidance for spawning background sub-agents
by vignesh07 · 2026-02-12
78.1%
#23749: fix some issues
by tronpis · 2026-02-22
78.0%
#6690: UX: clearer /queue and /subagents output
by kamb5686 · 2026-02-01
77.6%
#12871: fix: use bash and warn about shell injection (issue #12836)
by ambicuity · 2026-02-09
77.2%
#23371: chore: add agentlint/prguard/secretmap skills + gitignore restart.sh
by alexmelges · 2026-02-22
76.9%