Skip to content

fix: guide models to use short keywords for codegraph_context task param#589

Closed
wwhsaber wants to merge 1 commit into
colbymchenry:mainfrom
wwhsaber:fix/task-param-description
Closed

fix: guide models to use short keywords for codegraph_context task param#589
wwhsaber wants to merge 1 commit into
colbymchenry:mainfrom
wwhsaber:fix/task-param-description

Conversation

@wwhsaber
Copy link
Copy Markdown

Problem

The task parameter description of codegraph_context currently reads:

"Description of the task, bug, or feature to build context for"

This leads models to pass verbose natural language sentences, diluting FTS5 search results with noise words.

Fix

Updated the description to guide models toward short keywords with a concrete explanation:

Short keywords or symbol paths to search for (e.g. "AuthService/login" or "payment webhook handler"). Use concise terms — the search is FTS5-based, so verbose sentences dilute results with noise words.

Fixes #571

The current description 'Description of the task, bug, or feature to build
context for' leads models to pass verbose natural language sentences. Since
the underlying search is FTS5-based, this dilutes the signal with noise
words and causes misses on queries that would otherwise succeed with short
keywords.

Updated the description to:
- Emphasize short keywords or symbol paths
- Explain that the search is FTS5-based
- Provide concrete examples of good input

Fixes colbymchenry#571
@wwhsaber
Copy link
Copy Markdown
Author

Closing this PR as it only modifies description text. Will submit more substantial contributions instead.

@wwhsaber wwhsaber closed this May 31, 2026
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.

codegraph_context task parameter description misleads models into passing natural language instead of keywords

2 participants