Skip to main content
Gandalf’s team manifest lets you declare a shared AI agent environment as code. Commit a gandalf.toml at the repository root, and teammates get a repeatable Codex and Claude Code setup with drift detection and non-destructive apply.
1

Initialize the manifest

Create the manifest and skills directory. Use --from-current to scaffold from your local setup.
This writes gandalf.toml and .gandalf/skills/. Use -f to overwrite an existing manifest.
2

Edit gandalf.toml

Declare MCP servers, skills, hooks, and an env template. ${ENV_VAR} interpolation is supported.
gandalf.toml
See the manifest reference for the full field list.
3

Commit the manifest to git

Commit gandalf.toml and .gandalf/skills/ so teammates get the same setup on checkout.
4

Check for drift

Compare the manifest to each local agent. Add --ci to exit non-zero on drift for use in CI.
Output lists missing MCP servers, skills, or hooks per agent, with target file paths.
5

Apply the manifest

Preview, then apply. Apply runs Smart Merge (non-destructive) and creates a pre-apply safety snapshot.
On success, Gandalf prints the safety snapshot name so you can roll back:
Smart Merge only adds or updates entries declared in the manifest. It does not delete or modify unrelated personal user settings.