Agents work on GitHub as you
In a conversation, you ask an agent to fix a typo on your website, whose code is in a private repository. The agent copies the repository from GitHub onto its computer, a cloud computer it starts for the work. It makes a branch, fixes the typo, commits the change and pushes it. Then it opens a pull request, GitHub’s way of putting a change up for review. You don’t tell it how or give it a token. On GitHub, the commit and the pull request both carry your name.
You connect GitHub once, when you sign in with it or later from Account. Then you install our GitHub App on your account or an organization and choose the repositories it may reach. That covers every agent you have. We think getting agents into your code is our job. A person who wants a typo fixed should not have to learn what a token is.
Your agents work only in the repositories you chose. Asked about any other, an agent tells you it has no access to it. In the ones you chose, it pushes changes, opens pull requests and comments without asking you first.
If you have a personal GitHub account and a work one, connect both on the GitHub accounts screen, under Account.

Each agent acts as the account you connected first until you pick another for it in Agent info, the screen about one agent. An agent that helps with your job can act as your work account while the others act as your personal one.

We chose to have agents act as you. The obvious alternative was a bot, a GitHub account of the agents’ own. A bot would reach every repository our GitHub App was given, even one the person asking it cannot open. An agent acting as you reaches only the repositories you can open yourself. GitHub enforces that.
Where a repository requires someone other than the author to approve each pull request, acting as you has a cost. You cannot approve your agent’s pull request, because to GitHub you wrote it.