searchcode
Analyze a GitHub repository to inspect languages, complexity, and tech stack; search code, list files, read source, and find quality issues.
Instructions
Per-repo code intelligence via SearchCode (free, no auth). Use analyze for instant repo overview (languages, complexity, tech stack, credentials), search for searching code within a repo, findings for code quality issues, file_tree to list files, or get_file to read a file. No rate limits. e.g. searchcode(action='analyze', repository='https://github.com/expressjs/express')
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Subdirectory path filter (for analyze/findings/file_tree) | |
| query | No | Search query (for search action) | |
| action | Yes | analyze=repo overview, search=search code, findings=quality issues, file_tree=list files, get_file=read file | |
| category | No | Filter findings by category (for findings action) | |
| end_line | No | End line (for get_file without symbol_name) | |
| language | No | Language filter (for analyze action) | |
| severity | No | Filter by severity (for findings action) | |
| repository | No | Git URL or owner/repo — REQUIRED for every searchcode action (e.g. https://github.com/expressjs/express) | |
| start_line | No | Start line (for get_file without symbol_name) | |
| max_results | No | Max results (for search/findings) | |
| symbol_name | No | Function/class name to extract (for get_file action) | |
| detail_level | No | Response verbosity (for analyze action) | summary |
| context_lines | No | Context lines around matches (for search action) | |
| case_sensitive | No | Case-sensitive search (for search action) |