OpenCodesession-managementbuilt-in

/new

Start a new session. Aliases: /clear. Keybind: Ctrl+x n.

When to use

  • Switching to a fresh task
  • Resetting context after completing work

More OpenCode commands