Skip to content

Fix agent not calling tools on user requests#4

Merged
pnilan merged 1 commit intomainfrom
fix/tool-calling-prompt
Mar 7, 2026
Merged

Fix agent not calling tools on user requests#4
pnilan merged 1 commit intomainfrom
fix/tool-calling-prompt

Conversation

@pnilan
Copy link
Owner

@pnilan pnilan commented Mar 7, 2026

What

Fix the agent responding conversationally ("Sure, let me check!") instead of actually invoking its tools when asked to list synths, list MIDI ports, etc.

How

  • patchwork/agent.py — Replace the soft tool-usage instruction with explicit directives mapping user request patterns to specific tool calls. Uses IMPORTANT:, ALWAYS, and Never language to signal hard constraints to the model.

Recommended Review Order

  1. patchwork/agent.py — system prompt changes only

The agent was responding conversationally ("Sure, let me check!")
instead of actually invoking tools. Add explicit instructions mapping
user requests to specific tool calls with ALWAYS/Never directives.
@pnilan pnilan merged commit 4a4dcbd into main Mar 7, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant