Get Repository Context
repo_contextReads baseline context for a GitHub repository—metadata, README, tech stack, open issues, and PRs—to understand the codebase before planning or creating work items.
Instructions
Read baseline context for a GitHub repository, including metadata, README summary, package.json summary, tech stack, common scripts, workflow file names, governance signals, agent instruction file summaries, open issues, and open PRs.
Use this tool at the start of any SDLC workflow to understand the codebase before planning or creating work items.
Args:
owner (string?): GitHub org or user. Defaults to GITHUB_OWNER env var.
repo (string?): Repository name. Defaults to GITHUB_REPO env var.
includeReadme (boolean): Include truncated README. Default: true.
includePackageJson (boolean): Include package.json summary, detected package manager, tech stack, and common scripts. Default: false.
includeWorkflows (boolean): Include .github/workflows/*.yml file names. Default: false.
includeAgentInstructions (boolean): Include summaries of AGENTS.md/CLAUDE.md if present. Default: false.
includeGovernance (boolean): Include whether a CODEOWNERS file exists. Default: false.
includePolicy (boolean): Include validated repository policy and provenance. Default: false.
includeOpenIssues (boolean): Include recent open issues. Default: false.
includeOpenPRs (boolean): Include open pull requests. Default: false.
issueLimit (number): Max open issues to fetch. Default: 20, max: 100.
prLimit (number): Max open PRs to fetch. Default: 20, max: 100.
maxReadmeChars (number): Max README characters before truncation. Default: 3000.
maxInstructionChars (number): Max characters per agent instruction file summary. Default: 1000.
Returns: Markdown summary of the repository context, plus structured content. Missing files (README, package.json, agent instructions) degrade gracefully rather than failing the whole call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | No | GitHub repo name. Falls back to GITHUB_REPO env var. | |
| owner | No | GitHub owner (org or user). Falls back to GITHUB_OWNER env var. | |
| prLimit | No | Max number of open PRs to fetch when includeOpenPRs is true. Default: 20, max: 100. | |
| issueLimit | No | Max number of open issues to fetch when includeOpenIssues is true. Default: 20, max: 100. | |
| includePolicy | No | Include the validated .agentic-sdlc.yml policy summary, rule IDs, digest, and source ref/SHA. | |
| includeReadme | No | Include a truncated README summary. | |
| includeOpenPRs | No | Include a list of open pull requests (up to 20). | |
| maxReadmeChars | No | Max README characters before truncation. Default: 3000. | |
| includeWorkflows | No | Include `.github/workflows/*.yml` file names (names only, not permissions -- use workflow_permissions_audit for that). | |
| includeGovernance | No | Include lightweight governance signals (currently: whether a CODEOWNERS file exists). For full branch protection details, use branch_protection_status. | |
| includeOpenIssues | No | Include a list of recent open issues (up to 20). | |
| includePackageJson | No | Include a package.json summary, detected package manager, tech stack, and common scripts. | |
| maxInstructionChars | No | Max characters per agent instruction file summary before truncation. Default: 1000. | |
| includeAgentInstructions | No | Include summaries of agent instruction files (AGENTS.md, CLAUDE.md) if present at the repo root. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| policy | No | ||
| topics | Yes | ||
| openPRs | No | ||
| scripts | No | ||
| fullName | Yes | ||
| language | Yes | ||
| pushedAt | Yes | ||
| techStack | No | ||
| workflows | No | ||
| governance | No | ||
| openIssues | No | ||
| visibility | Yes | ||
| description | Yes | ||
| policyDigest | No | ||
| policyErrors | No | ||
| defaultBranch | Yes | ||
| policySources | No | ||
| readmeSummary | No | ||
| packageManager | No | ||
| policyWarnings | No | ||
| openIssuesCount | Yes | ||
| stargazersCount | Yes | ||
| agentInstructions | No | ||
| appliedPolicyRules | No | ||
| packageJsonSummary | No |