Skip to content

Tool descriptions consume excessive tokens in system prompt #11995

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions