# GitHub

Keep your Alter Ego memory in a GitHub repository, with every change as a commit.

You install the Alter Ego GitHub App and pick the repository during installation. Every change the assistant makes is a commit to that repository, made as you, so you get history and review for free.

## Choose the repository

If more than one repository is reachable, the assistant uses [`choose_repo`](/docs/tools/#choose_repo) to select one. Give it the repository as `owner/name`.

## Existing repository

If you already keep a repository laid out as `preferences.md`, `identity.md`, `clients/`, `projects/` and `skills/`, pick it. See [Use an existing agent-context repository](/docs/agent-context/).

## Disconnect

Go to Settings, Integrations, Applications. Under Installed GitHub Apps, click Configure on Alter Ego to change repository access or uninstall it. Under Authorized GitHub Apps, click Revoke. To fully stop access, do both. See [Disconnect and revoke](/docs/disconnect/).
