# Use an existing agent-context repository

Point Alter Ego at a repository you already keep, without changing it.

If you already keep a repository laid out as `preferences.md`, `identity.md`, `clients/`, `projects/` and `skills/`, choose [GitHub](/docs/storage/github/) or [Azure DevOps](/docs/storage/azure-devops/) as storage and pick that repository. Alter Ego works with that layout as is. Your existing files and history are untouched, new changes arrive as normal commits.

## What Alter Ego recognises

Alter Ego reads the layout from what exists in the repository. Nothing is moved or renamed.

| Item | Where it looks |
| --- | --- |
| Rules | `preferences.md` at the top, or in `profile/` |
| Profile | `identity.md` at the top, or in `profile/` |
| Contexts | `clients/`, `projects/` and `knowledge/` |
| Playbooks | `skills/` or `playbooks/` |
| General journal | `journal/` when it exists, otherwise `clients/_unsorted` |

## What can be written

In such a repository [`write_file`](/docs/tools/#write_file) only writes in `clients`, `projects`, `knowledge`, `playbooks` and `skills`. Use [`remember`](/docs/tools/#remember) to add a rule or a fact to your preferences.
