Try ideas without risking your project
Agents can change many files in a few minutes. Enjoy has no undo button for those changes. Your safety net is Git, the version history most projects use, and two habits make it work for you.
Make save points with commits
A commit is a saved version of your project with a short description. Once a version is committed, an agent can bring it back later.
- Ask for commits when something works. “That works. Commit it with a short description.” To make it a standing habit, add a rule to your project’s Instructions, like the example Enjoy suggests there: “commit changes after every change.”
- See what changed. When an agent commits, its final reply shows View changes. Open it to see each changed file, as Changes or Before / after.
- Go back by asking. “Undo the changes from your last commit,” or “Put the homepage back the way it was before the newsletter change.” The agent uses your commits to do it.
- Keep a copy online. If your project is connected to a service like GitHub, open the branch button in the message box and select Push to upload your commits. See Push your branch.
If your project doesn’t use Git yet, ask: “Set up Git for this project and commit everything as a first version.”
Try bigger ideas in a worktree
Enjoy describes a worktree as “a copy of your project where an agent can try an idea, like a new look or a new page, without changing the original.” As long as your project uses Git, there’s nothing to set up.
- Ask for one. “Try a dark mode in a new worktree.” The conversation keeps going in the copy, with everything the agent already knows. A band at the top of the message box reads Working in, followed by the worktree’s name.
- Check the result. Ask the agent to show you the copy in the preview.
- Keep it. Select Merge into and your project’s name, in the band. Enjoy asks the agent right away, and it does the merge, working out anything both versions changed and asking you about what it can’t decide.
- Or drop it. Select the trash button, Delete worktree. Enjoy asks the agent right away, with no warning first, and the conversation moves back to the main project folder once the worktree is gone. If there’s anything you want to keep, tell the agent before you select it.
An example
“Try a calmer color scheme for the whole site in a new worktree. Commit it when you’re done and show me the preview.” You compare it with the original. You like it, so you select Merge into your project. If you hadn’t, you’d select Delete worktree and your project would be exactly as before.
Common pitfalls
- Going hours without a commit. The longer the gap, the more there is to untangle when something breaks.
- Running two experiments on the same files in the main folder. Each conversation edits the same files directly, so they can undo each other’s work. Give each experiment its own worktree. OpenAI’s Codex guide lists “running live tasks on the same files without using Git worktrees” as a common mistake.
- Uncommitted changes in your main project. They can get in the way of merging a worktree in. Ask an agent to commit them first.