Skip to content

Tool descriptions consume excessive tokens in system prompt #11995

@MartinWie

Description

@MartinWie

Problem

The tool description files (bash.txt, todowrite.txt, task.txt) are included in the system prompt for every message. Currently they are verbose and consume ~3,000-4,000 tokens per message unnecessarily.

Proposal

Condense the tool descriptions while preserving:

  • All safety rules (git safety, permission handling)
  • Core usage instructions
  • Essential examples

Remove:

  • Redundant explanations
  • Lengthy examples that don't add value
  • Verbose formatting

Expected Impact

~69% reduction in tool description token usage, reducing per-message costs without changing tool behavior.

Metadata

Metadata

Assignees

Labels

perfIndicates a performance issue or need for optimization

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions