--apply --experimental.
Prerequisites
- macOS or Linux (amd64 or arm64).
- A user-global setup for at least one of Codex (
~/.codex/) or Claude Code (~/.claude/).
1. Install
2. Open the terminal workspace
Runninggandalf with no arguments opens the Changes-first Home in the Bubble Tea TUI:
3. Capture a content-backed baseline
Content-backed snapshots are what make restore safe. They require an explicit--agent and --scope user for a currently supported agent.
~/.gandalf (or $GANDALF_STORE). List and inspect them:
4. Diff against your current state
Change something in your agent setup (add a skill, edit a hook), then compare:--json for machine-readable output.
5. Preview a restore
Dry-run is the default and never writes:6. Apply after review
Applying requires both--apply and --experimental (or GANDALF_EXPERIMENTAL=1). Gandalf creates a pre-apply restore point before writing.
--rollback to automatically undo on failure:
Next steps
Terminal workspace
Navigate Home, Console, Changes, Timeline, and Saves.
Bundles
Export, verify, and import portable
.gandalf archives.Team manifest
Declare shared MCP servers and skills in
gandalf.toml.Trust contract
Read the safety boundaries Gandalf promises.