Understand a repository or inspect source evidence
analyze_repoCALL to investigate behavior in public source: supply question and relevant path_hints found from actual usages, for up to four files with commit-pinned line citations. checked_sha selects a commit; base_sha adds before/after excerpts; pr selects a public PR and observes its head's GitHub check runs. source_ranges retrieves missing context at pinned revisions, up to 40 lines per range. Selection is bounded, not exhaustive or proof of compatibility. Without question, returns repository_brief with saved purpose, main parts, starting files, setup, revisions and gaps. Pass exactly one of repo or package. Example: {repo:'expressjs/multer',question:'How are file size limits handled?',path_hints:['lib/make-middleware.js']}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pr | No | Public PR number in repo. Requires question. Omit base_sha. | |
| repo | No | Public GitHub repository as owner/repo or a github.com URL. | |
| owner | No | Repository owner, when repo carries only the bare name. Optional: prefer the single owner/repo form in repo. | |
| package | No | npm package name, for example lodash or npm:@scope/pkg. To judge a specific VERSION rather than the package as a whole, use evaluate_dependency_change instead. | |
| base_sha | No | Compare source at this base commit; omit when using pr. | |
| question | No | ||
| path_hints | No | Scope retrieval to these repository-relative files or directories. Requires question. | |
| checked_sha | No | Immutable head revision; required with source_ranges. | |
| source_ranges | No | Read only these exact ranges, at most two per file/side and 40 lines per range. Requires question and checked_sha; base side also requires base_sha. Paths must fall within path_hints when supplied. Omit pr for base ranges. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tool | Yes | ||
| agent | Yes | ||
| status | Yes | ||
| schema_version | Yes | ||
| repository_brief | No | Concise saved repository orientation shared with the website: purpose, main parts, starting files, setup, revisions and gaps. Null when unavailable; omitted in source-evidence mode. |