dev_gh
Search GitHub issues and pull requests using semantic search. Understand your projectâs history and context.
Usage
dev_gh(action, query?, number?, format?, limit?, type?, state?, labels?, author?)Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
action | "search" | "context" | "related" | required | Action type |
query | string | â | Search query (for search action) |
number | number | â | Issue/PR number (for context/related) |
format | "compact" | "verbose" | "compact" | Output format |
limit | number | 10 | Maximum results |
type | "issue" | "pull_request" | all | Filter by type |
state | "open" | "closed" | "merged" | all | Filter by state |
labels | string[] | â | Filter by labels |
author | string | â | Filter by author |
Actions
Search
Semantic search across issues and PRs:
âUse dev_gh action search, query âperformance problems with large filesââ
## GitHub Search Results
Query: "performance problems with large files"
1. đ´ #127: File upload times out for large files [92%]
2. đ˘ #98: Optimize chunked file processing [87%]
3. đľ PR #112: Add streaming for large file uploads [84%]Get Context
Get full context for a specific issue or PR:
âUse dev_gh action context, number 42â
## Issue #42: Add user preferences API
**State:** Open | **Author:** @developer | **Labels:** enhancement, api
### Description
We need an API endpoint for user preferences...
### Comments (3)
1. @reviewer: Should we use JSON or a dedicated table?
2. @developer: I'm thinking a separate preferences table...
3. @maintainer: Let's go with the table approach.
### Related PRs
- PR #45: Database schema updates (merged)Find Related
Find issues/PRs related to a specific one:
âUse dev_gh action related, number 42â
## Related to #42: Add user preferences API
1. #38: User settings page redesign [89%]
2. #29: API authentication improvements [76%]
3. PR #45: Database schema updates [72%]Examples
Filter Open Bugs
âUse dev_gh action search, query âcrashâ, type issue, state open, labels [âbugâ]â
Find Authorâs Issues
âUse dev_gh action search, query ârefactorâ, author âusernameââ
Requirements
â ď¸ Index GitHub first. Run
dev gh indexto enable semantic search:dev gh index
This fetches and indexes your repositoryâs issues and PRs.
Tips
Search by intent, not keywords. Try âissues about slow API responsesâ instead of âperformanceâ.
GitHub index auto-reloads. Changes are detected automatically when you re-run
dev gh index.
Response Metadata
{
"metadata": {
"tokens": 456,
"duration_ms": 234,
"results_total": 45,
"results_returned": 10
}
}