Learn how checkpoints automatically save your work and how rollbacks let you undo changes.
With Replit, you never have to worry about losing your work.Replit’s checkpoint and rollback system provides comprehensive version control and state management for your entire development environment.When you use Replit Agent or Assistant, checkpoints automatically capture your complete project state. This includes not just your code changes, but workspace contents, AI conversation context, and connected databases.
A checkpoint is a complete snapshot of your Replit App state created automatically by Agent and Assistant at key development milestones. Unlike traditional version control that only tracks code changes, Replit checkpoints capture your entire development context.Think of checkpoints as save points in a video game - you can always go back to a working version of your app.
Workspace contents: All files, directories, installed packages, and project configuration
AI conversation context: The complete conversation history and context that led to current state
Database states: Connected databases and their data at the time of checkpoint creation
Environment configuration: Runtime settings, secrets (references), and deployment configurations
Agent memory: The AI’s understanding of your project architecture, preferences, and patterns
This comprehensive approach means you can confidently experiment with changes, knowing you can restore not just your code, but your entire development context.
Rollback functionality allows you to restore your Replit App to any previous checkpoint state with a single click. This is far more powerful than traditional Git revert operations.
Complete workspace state: All files return to their exact state at the selected checkpoint
AI conversation context: Agent and Assistant conversations are restored to the point of the checkpoint, maintaining context continuity
Database contents: Connected databases are restored to their state at checkpoint creation
Project configuration: Environment variables, dependencies, and runtime configurations
Development environment: Tool configurations and workspace settings
When you use the rollback feature, you restore the Replit App to a previous state. This removes all changes made after that point, including code edits and database changes.
For specific components, you also have targeted rollback options:
Database rollbacks: You can roll back databases independently from the database pane, giving you granular control over data restoration without affecting your entire workspace
Checkpoints appear in multiple locations throughout your Replit workspace:Agent tab: View all Agent-created checkpoints with descriptions and rollback options
Assistant tab: Access Assistant-generated checkpoints and undo/restore functionality Git pane: See checkpoints as Git commits with full version control integration
History view: In Agent chat, click the history icon to access a complete timeline of all checkpoints and their progression