continue icon indicating copy to clipboard operation
continue copied to clipboard

Response Formatting Instructions Mixed Into Tool Descriptions

Open shanevcantwell opened this issue 11 months ago • 3 comments

Before submitting your bug report

Relevant environment info

- OS: any
- Continue version: 1.3.28 (verified against main branch)
- IDE version: any
- Model: any (all models receive conflicting instructions)
- config: any

Description

Response Formatting Instructions Mixed Into Tool Descriptions

Summary

Tool descriptions contain instructions about how to format response text, which conflates "how to use this tool" with "how to write your response."

Example

runTerminalCommand.ts:30:

"When suggesting subsequent shell commands ALWAYS format them in shell command blocks."

This instruction is about formatting the assistant's prose response, not about how to call the run_terminal_command tool.

The Problem

  1. Separation of concerns: Tool descriptions should describe the tool's purpose and parameters, not response formatting
  2. Maintenance: Formatting preferences are scattered across tool definitions instead of centralized
  3. Confusion: Models may interpret this as a tool-calling instruction rather than a formatting preference

Proposed Fix

Move response formatting instructions to the base system message or a dedicated formatting section, keeping tool descriptions focused on:

  • What the tool does
  • What parameters it accepts
  • When to use it vs alternatives
  • Any constraints or limitations

Affected Tools

  • run_terminal_command - "ALWAYS format them in shell command blocks"
  • Potentially others with similar mixed concerns

To reproduce

No response

Log output


shanevcantwell avatar Dec 25 '25 02:12 shanevcantwell

Related Issues

  • #9308 - Conflicting Instructions: Parallel vs Sequential Tool Calling
  • #5860 - Move Tool Descriptions to System Prompt for Improved Agent Mode (closed)
  • #8189 - edit_existing_file may need an improved description to help GLM-4.6 use it correctly all the time
  • #8885 - Some rules are treated as prompts
  • #3786 - Proposed configuration option for better control over hard-coded system messages (closed)
  • #4718 - Ability to override hardcoded tool call rule (closed)

continue avatar Dec 25 '25 02:12 continue

This issue hasn't been updated in 90 days and will be closed after an additional 10 days without activity. If it's still important, please leave a comment and share any new information that would help us address the issue.

github-actions[bot] avatar Mar 25 '26 02:03 github-actions[bot]

This issue was closed because it wasn't updated for 10 days after being marked stale. If it's still important, please reopen + comment and we'll gladly take another look!

github-actions[bot] avatar Apr 05 '26 02:04 github-actions[bot]