In short.
Accessing GitHub is a setup guide for developers building repository-aware Claude Managed Agents, but the integration is in beta and hosted session transcripts persist until deleted. It documents sandbox repository mounts, GitHub MCP tools, multiple repositories and token rotation. Public repositories can be cloned without credentials, but pushing requires a token; private repositories require one to clone. Mounted repositories stay attached for the session's lifetime. Pricing, exact fine-grained token permissions and complete MCP authentication details are not established. The examples were not executed, and successful pull-request creation is not demonstrated.
Researched and written by an AI model and checked by a second AI model. How it works
Covers the complete documentation page at [https://platform.claude.com/docs/en/managed-agents/github.md], including all language examples, repository fields, token permissions, lifecycle rules, availability and data-handling notices. Linked pages about environments, skills, the MCP connector, events, files and self-hosted retention are excluded. No commands, code or API requests were executed; functionality, performance, reliability and completed pull-request behavior remain untested.
The overview
Identity
Accessing GitHub is an Anthropic documentation page explaining GitHub access within Claude Managed Agents. The original source address is [https://platform.claude.com/docs/en/managed-agents/github.md], and its declared page address is [https://platform.claude.com/docs/en/managed-agents/github].
The resource is a feature guide with configuration examples, rather than a separately installable agent or plugin. It describes beta availability on Claude API, Claude Platform on AWS and Claude Models on Google Cloud managed by Anthropic.
Assessment
The guide is useful for understanding how repository access fits into an agent session. Its strongest details concern accepted repository URLs, checkout selection, tokenless access, network restrictions and the distinction between reusable agent configuration and session resources.
It leaves important implementation questions open. The repository token is documented for cloning and pushing, while authentication for GitHub MCP operations is not fully explained. The pull-request section shows a request to fix, commit and push code, without a completed pull request or its result.
Users
The guide suits developers building coding assistants, code-review agents or maintenance automation that needs repository files and GitHub operations. Multiple repository mounts also make it relevant to tasks spanning separate frontend and backend repositories.
Beginners receive examples in several languages, but still need to understand API credentials, Git branches and development environments. Experienced developers gain more from the field definitions, networking rules and resource lifecycle details. Teams requiring HIPAA eligibility should account for the page's explicit ineligibility notice.
Capabilities
A session can clone one or more GitHub repositories into its sandbox under /workspace. Each repository can use its default branch, a named branch or a specified commit. The guide also describes GitHub MCP access for repository operations and creating pull requests.
Repositories are cached, which the page says makes later sessions using the same repository start faster; no measured improvement is supplied. Running sessions support listing repository resources and rotating their authorization tokens.
Mounting a repository automatically loads skills from its root .claude/skills directory. Discovery happens once per session, using the repository state checked out at session start.
Using it
Requirements
The documented setup uses an Anthropic API key, a Managed Agents agent definition, an environment and a supported Claude model. GitHub MCP is declared at [https://api.githubcopilot.com/mcp/] and enabled through an MCP toolset. No minimum CLI or SDK release is specified.
Repository URLs must use the HTTPS form https://github.com/<owner>/<repo>, as shown on the page, without a .git suffix. SSH URLs and other forms are rejected. A public repository can clone without a token and accept local commits, but pushing fails; a private repository without a token fails to clone after session creation.
The permission table lists repo for private cloning and pull-request creation, and repo or public_repo for issue operations depending on repository visibility. The accompanying warning recommends fine-grained personal access tokens with minimum permissions, but does not map these scope names to exact fine-grained permission settings.
Mechanism
The integration has two parts: a repository resource provides a working copy inside the session sandbox, while the declared GitHub MCP server exposes GitHub tools. MCP, or Model Context Protocol, is the connection used here to make those external tools available to the agent.
The agent definition holds the MCP server URL without an authentication token. The session's github_repository resource can carry authorization_token for cloning and pushing; that token is not echoed in API responses. Whether it also authenticates MCP operations is not established by this page.
Repository resources remain attached for the lifetime of a session. Their tokens can be rotated using resource IDs, but changing which repositories are mounted requires a new session.
Setup
The documented sequence starts by creating an agent with a GitHub MCP server declaration and matching mcp_toolset. Its example disables web_search and web_fetch. Next, session creation supplies the agent, environment and repository resources, including a required URL, an optional token, an optional mount path (defaulting to /workspace/<repo-name>) and an optional checkout.
With limited networking, the MCP server's host must appear in allowed_hosts or session creation returns a 400 error. The guide also documents allow_mcp_servers=true as a setting that turns off this MCP-host check.
Additional repositories are separate entries in the resources array. After creation, resource listing provides the IDs needed for token updates. Equivalent examples are supplied through cURL, the ant CLI and several language SDKs.
Example
The documentation creates a Code Reviewer agent using claude-opus-5-5, declares GitHub MCP and mounts the placeholder repository [https://github.com/org/repo] at /workspace/repo. Its GitHub token value is also a placeholder.
A later session message asks the agent to fix a type error in src/utils.ts, commit the change to a new branch and push it. This illustrates task submission, but the displayed request does not explicitly ask for pull-request creation. No resulting diff, push receipt or pull-request URL is shown, and the example was not executed.
Assessment & evidence
Limitations
The feature is in beta. Hosted Managed Agents are marked ineligible for zero data retention, with an exception noted for self-hosted Managed Agents whose details are not explained on this page. Session transcripts persist until deleted. The HIPAA ineligibility notice applies to all Managed Agents sub-features.
Changing the mounted repository set requires a new session, and skill discovery occurs only at session start. Live rediscovery of skills after repository edits is not documented.
The cURL token-rotation example is abbreviated and does not show a complete update request. The page also supplies no runtime evidence for code quality, successful pull requests, failure recovery or cache performance.
Reasoning
The documented structure should suit repeated coding tasks: the agent defines available tools, while each session supplies its repositories and clone/push credentials. This is a practical inference from the configuration structure, rather than a demonstrated operational result.
A commit checkout can help keep starting files and automatically discovered skills consistent between sessions. Conversely, tasks that need to change repository attachments during a session face a documented lifecycle constraint. These details are more useful for judging fit than the unmeasured caching claim.
Alternatives
The page offers several implementation routes for the same integration: cURL, the ant CLI, Python, TypeScript, C#, Go, Java, PHP and Ruby. It does not establish functional or reliability differences between these routes.
For public-code inspection, tokenless cloning is a documented option, with local commits possible but no pushing. The page does not compare competing agent services or GitHub automation products, so their relative cost, control and reliability are not assessed.
Evidence
The evidence is the complete Accessing GitHub documentation page at [https://platform.claude.com/docs/en/managed-agents/github.md]. It contains API and SDK examples, repository field definitions, token guidance, lifecycle rules, availability information and data-handling notices.
These are documented capabilities and constraints. No commands or API requests were executed, and the page supplies no independent measurements, runtime logs or completed pull-request results. Linked documentation cannot establish additional behavior within this scope.
Access & freshness
Costs
The page provides no prices, billing units, included quotas or free allowances for Managed Agents, model use, GitHub MCP access or repository caching. Setup and operating costs therefore remain unknown.
The claim that caching speeds later session starts does not establish a billing reduction or measurable cost saving.
Rights
No explicit licence for the documentation or sample code appears on the supplied page, so redistribution rights are not established here. Licensing and reuse permissions for mounted repositories are also outside its coverage.
The GitHub token guidance describes technical access permissions. It does not establish ownership of repository contents or permission to redistribute them.
Freshness
The supplied documentation was captured on 14 November 2026 at 03:33:36 UTC. The page does not provide a publication or last-update date, so its maintenance history is unknown.
Examples use anthropic-version 2026-10-21, the beta header managed-agents-2026-04-01 and the toolset identifier agent_toolset_20260401. These identify the documented API configuration; they do not establish a release or maintenance date. Compatibility with other headers, SDK releases or future beta behavior is not assessed.
Actions
Before implementation, establish pricing, GitHub MCP authentication and exact fine-grained token permissions. Confirm that the documented transcript retention and HIPAA status fit the intended repository data.
Choose the repository URL, branch or commit and inspect its root .claude/skills contents, since mounting loads those skills at session start. Configure the MCP host allowance when using limited networking.
A first implementation should verify cloning, the resulting code change, pushing and pull-request creation as separate outcomes. The page's task-submission example alone does not establish any of those results.
