analyze_repo
Map a public Python GitHub repository by cloning it if needed and returning language stats, packages, entry points, test command, largest modules with imports, README excerpt, and repo notes.
Instructions
Map a public Python GitHub repo. CALL THIS FIRST for any new repo.
Clones the repo if needed (full history, so later blame/bisect work), then returns a RepoMap: lines per language, top-level packages, entry points (console scripts, main.py), test framework and the exact suggested test command, the 25 largest non-test modules with their intra-repo imports (parsed with ast), a README excerpt, and notes such as "no tests found" or "uses C extensions". Results are cached per HEAD commit; pass refresh=True to rebuild.
Args: repo: "owner/name" or a github.com URL. refresh: rebuild even if a map for this commit is cached.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"repo": "<repo>"
},
"name": "analyze_repo"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | ||
| refresh | No |