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 This writes
--from-current to scaffold from your local setup.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. See the manifest reference for the full field list.
${ENV_VAR} interpolation is supported.gandalf.toml
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 Output lists missing MCP servers, skills, or hooks per agent, with target file paths.
--ci to exit non-zero on drift for use in CI.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.