Does restoring a checkpoint change my code? #
Not by default: an AgentForge checkpoint restores the board and control state, and the "also restore the code" option is separate and off. If the option is ticked, the files that would change and the paths that will be left alone are previewed first, with the reason, and a "before restore" checkpoint that includes the code is taken before restoring. Code is written back byte for byte, and files git ignores (such as .env) and nested repositories are never overwritten or deleted.
See also: CheckpointRestore points tab