MyJackfruit

Help
Browse topics · Changing your mind while building

Changing your mind while building

← Back to How do I start my project over?

Can I undo what I've built, or go back to an earlier version?

Short answer

Yes. Ask your AI to undo it; Agent.Coder's saved versions let it go back. A live app is published again only after your go.

Deeper

Your app's code is kept in versions. Agent.Coder, the agent that writes your app's code, works on code kept on your computer. Its rules name a project folder for the project's files, which can be a folder on your computer, a vault, or both; they do not say the code itself sits in that folder. An agent is your AI following one written procedure, its standing instructions, for one kind of work. Its rules say to save a version after each change that works, with a message that says what changed and why. It saves them with Git, the program programmers use to keep versions of their code. When it undoes a change it adds a new saved version that reverses it; the earlier versions stay in the history.

To undo something that was built, ask your AI in your own words, for example: This was the wrong approach, undo it. The standards do not say that Kai-Zen, the planning agent, passes an undo on, so say it to the AI that builds, and check afterwards that it did it. Agent.Coder's way of undoing runs only when you ask for it: when a whole approach was wrong, or when a change broke something else and undoing it is the safest way. It finds the saved versions that brought the change in and adds a new version that reverses them. Nothing is deleted: the history keeps both. It runs the tests again, the checks that show the code still works, then tells you the code is back where it was before that change. It does not build something new in its place until you have agreed the new direction.

Undoing is not used for everything. A fault in what was built, something that should work a little differently, or a test that fails is fixed in a new change instead; the answer How do I change the product while a project runs? shows how to ask for one. After each step, Kai-Zen also decides itself whether to keep what was built, throw it away or change it; the answer How do I decide to keep or throw away a step's result? tells more. Throwing a step away does not give back the time and AI use it took.

Your live app does not change by itself. If the change you undid was already live, the earlier version must be published again at the same address, and Kai-Zen never puts anything live without your go. Publishing a site you already hold again works and does not use a new one. The answer How do I update my app after it is live? shows how.

Inside one session of Claude Code, Anthropic's AI that you run in Terminal, the window where you type commands, there is also a quick undo: type /rewind, or press Esc twice when the box where you type is empty, and choose the point to go back to. Anthropic says it does not catch everything, for example files changed only by commands Claude Code ran, or edits made by helper agents it started, and that it is Not a replacement for version control: for lasting history it points to Git. Claude Code keeps these snapshots for about 30 days (https://code.claude.com/docs/en/checkpointing, read 13 November 2026). With Codex, OpenAI's AI for writing code, go back through the saved versions; we have not yet run a whole Kai-Zen project in Codex.

Going back in the code does not take back what was written to a vault, the place where a person or a group keeps their records. GilbPlatform never writes over a fact, one value in one field of a record: a change closes the old fact and adds the new one, but GilbApp shows no earlier versions. GilbApp has no button to bring a deleted record back. The answers How do I see a record as it was before (its history)? and How do I delete a record, and can I get it back? say more. To begin again from your idea, see How do I start my project over?

GilbApp has no control that undoes code or goes back to an earlier version. GilbApp's chat reaches a folder on your computer only when Claude Code, Anthropic's AI that you run in Terminal, the window where you type commands, is connected to it and a code folder is switched on (Choose a code folder, then Code in); otherwise code kept there needs Claude Code in Terminal. In Claude Code in Terminal, the window where you type commands (on a Mac, the Terminal app), you can ask the same way. Start Claude Code, type this line with your own short name, the one you gave your AI when you connected your computer, and press Return:
/mcp__gilb-<short name>__agent
Then say which project and what you want undone, and press Return.

This answer is written for a computer screen.

Source: Standards: Proc_v_Rollback (entry: only when the person asks; wrong approach, or a change broke something unrelated; not for a bug, adjusted behaviour or failing tests; revert, never reset; nothing deleted; tests run again; agree the new direction before coding), Rule_Code_git-workflow (RuleGitworkCommit), Agent.Coder (ProjectFolders, Contextual: rolling back), Kai-Zen.VTTRules.Act, Kai-Zen.GoLive, Kai-Zen.AskRules.Stop, Proc_v_i_c_PublishPagesDev (publishing again). GilbApp 49b1ae53 (https://gilb.com/app/version.json, read 13 November 2026): no control in src that undoes code or restores a version. Anthropic, read 13 November 2026: https://code.claude.com/docs/en/checkpointing (/rewind, Esc twice, Bash and subagent edits not restored, Not a replacement for version control, about 30 days). Live help pages, sentences shared: Will I understand what the AI built, and can I learn to code along the way?; Do I need a GitHub account?; How do I update my app after it is live?; Is my vault backed up, and how much can I store?; How do I see a record as it was before (its history)?; How do I delete a record, and can I get it back?; Can I use any AI, not only Claude Code or Grok?; How do I change the product while a project runs?; How do I start my project over?.

Checked against GilbApp d529620.