| name | github |
| description | Can browse code/issues of specific repo, global search and comment on PRs. |
| pattern | github\.com/[\w-]+/[\w-]+ |
Browse Single Repo
Use webfetch tool with GitChamber API to list, read, search code.
API_URL: https://gitchamber.com/repos/{owner}/{repo}/{branch}/
- List:
GET {API_URL}/files/...?glob=** - Read:
GET {API_URL}/files/...?glob=**&start=1&end=50&showLineNumbers=true - Search:
GET {API_URL}/search/{query}?glob=**/*.ts
Note: It'll 404 without glob=** or glob=**/*.{ext}.
Global Repo Search
bun {base dir}/scripts/search-repos.ts <query>
Examples
bun {base dir}/scripts/search-repos.ts 'lang:ts stars:>100 mcp'
bun {base dir}/scripts/search-repos.ts 'topic:neovim lang:lua'
Tips
- Narrow by language:
lang:ts,lang:go - Filter by stars:
stars:>100,stars:50..200 - Sorted by latest updates (default) to find active projects
- Use short, unique terms for better results
Global Code Search
bun {base dir}/scripts/search-code.ts <query>
Examples
bun {base dir}/scripts/search-code.ts 'opencode-ai/plugin lang:ts'
bun {base dir}/scripts/search-code.ts 'useQuery filename:*.tsx'
Tips
- Use unique package names/imports to discover underrated repos
- Filter by language:
lang:ts - Use
filename:*.tsxto target specific file types - Search error messages to find solutions
Search Issues/PRs
bun {base dir}/scripts/search-issues.ts <issue|pr> <query>
Pull Request Operations
bun {base dir}/scripts/pr.ts <owner> <repo> <pr_number> [method] [...args]
Methods:
get(default) - PR detailsdiff- Raw difffiles- Changed files listcomments- List review comments with threadscomment <path> <line> <body>- Add comment on single linecomment <path> <start_line> <end_line> <body>- Add comment on line rangereply <comment_id> <body>- Reply to existing comment
Examples
bun {base dir}/scripts/pr.ts facebook react 35404 comment src/index.ts 10 15 'This block could be refactored'
Tips
- When asked to review a PR, first use
diffto identify specific code blocks. - Provide feedback by making separate comments on specific lines or ranges instead of a single top-level review.
- Check existing
commentsto see if a point was already raised or to respond to existing threads.