fork_session
Agent SDKDefinition
An Agent SDK operation that creates a copy of the current session state, allowing parallel exploration of different solution paths without affecting the original session. Each fork can proceed independently; results can be compared and the best chosen.
Example Usage
Fork the session before attempting a risky refactoring to preserve a safe rollback point while exploring the approach.