Checkpoints
Checkpoints provide a powerful yet simple way to safeguard your work and explore ideas without fear.
Memex helps you build and modify your projects through conversation. But what happens if a change doesn't work out, or you want to go back to an earlier version of your files? That's where Checkpoints come in – think of it as an automatic safety net for your project, woven directly into your chat.
What is Checkpointing?
Imagine having a "time machine" for your project files that automatically saves snapshots of your work at key moments during your conversation with Memex. Checkpointing does exactly that.
Whenever you send a message, or whenever Memex modifies files or runs code in your project, it automatically creates a Checkpoint. This Checkpoint captures the exact state of all your project files at that specific moment.
It all happens seamlessly in the background, ensuring you have a history of your project's evolution without needing to manually save versions.
How Does it Help You?
Peace of Mind: Experiment freely! If an AI suggestion or code execution doesn't pan out, you can easily undo it.
Effortless Versioning: No need to constantly commit changes manually just because the AI is involved. Checkpoints handle it automatically.
Track Changes: See exactly when file changes occurred in the context of your conversation.
Go Back in Time: Easily revert your entire project to a state from earlier in your chat.
Seeing Your Checkpoints
You'll notice small icons appearing next to certain messages in your conversation thread. These indicators signify that a Checkpoint was saved at that point:
Next to your messages: A Checkpoint was saved before Memex started working on your request.
Hovering over these icons might show you quick details about the saved Checkpoint.
Restoring to a Checkpoint
Made a wrong turn? Want to go back? Restoring is simple:
Find the message in your chat history that corresponds to the state you want to return to.
Look for the action menu on that message (often where you find options like "Copy").
Click the "Restore" button (it might have an icon like a clock or rewind symbol).
You'll see a confirmation asking if you're sure. Restoring will:
Revert all files in your project back to how they were at that Checkpoint.
Adjust your current chat history, removing messages that came after the Checkpoint you restored to. This keeps your chat consistent with your project's files.
Confirm, and Memex will restore the files and update the chat view.
It's like rewinding both your project and the conversation to that specific point in time.
What About My Own Git Repository?
If you're already using Git to manage your project, don't worry! The Checkpointing feature is designed to work alongside your existing setup without any interference.
It doesn't create any messy
.git
files or folders in your project directory.It respects your
.gitignore
file automatically.Your own commits and Git history remain completely separate and unaffected.
Think of Checkpoints as a complementary layer of safety specifically for the changes happening within your Memex session.
Checkpoints provide a powerful yet simple way to safeguard your work and explore ideas without fear. Enjoy the confidence of knowing you can always step back if needed!
Last updated