This tutorial walks through a complete first session in a git repository.
By the end, you will:
- install
sess - start a session
- pause and resume it
- end it and return to the base branch
You need:
gitgh- a git repository on disk
For issue selection and PR creation, make sure gh is already authenticated.
curl -fsSL https://github.com/Orctatech-Engineering-Team/sess-cli/releases/latest/download/install.sh | sudo bashOn Windows, download and extract the archive instead:
Invoke-WebRequest -Uri "https://github.com/Orctatech-Engineering-Team/sess-cli/releases/latest/download/sess-windows-amd64.zip" -OutFile "sess.zip"
Expand-Archive sess.zip -DestinationPath .
Move-Item .\sess.exe "$env:USERPROFILE\\bin\\sess.exe"
# Add $env:USERPROFILE\bin to PATH if it is not already thereCheck that it is available:
sess --versioncd /path/to/your-repoSESS must run inside a git repository.
Run:
sess startSESS will guide you through:
- selecting a GitHub issue or starting without one
- entering a branch name when needed
- choosing a branch type such as
feature,bugfix, orrefactor - resolving dirty working tree state before branching
If the repository is already tracked, SESS reuses that tracked project record. If not, it creates one and stores it locally.
Run:
sess statusYou should see:
- the current branch
- whether the session is active or paused
- elapsed time
- linked issue information when present
If you need to stop working for a while:
sess pauseThe session remains tracked, but time stops accumulating.
When you are ready to continue:
sess resumeIf you are no longer on the saved session branch, SESS checks it out before resuming.
When the work is ready to hand off:
sess endDepending on the repository state, SESS may:
- ask for a commit message if the working tree is dirty
- ask for PR summary, testing, and notes
- rebase onto the tracked base branch
- push the session branch
- create a new PR or reuse an existing one
- switch back to the base branch
- prompt whether to keep or delete the local session branch
If there is nothing to ship, SESS lets you end the session without creating a PR.
After sess end, you should be back on the base branch.
Check:
sess status
sess projectsUse sess projects to see tracked repositories and recent session state across your system.
- For common day-to-day tasks, see How-to: Run the session workflow.
- For exact command behavior, see Reference: Commands.
- For failure handling and recovery guidance, see How-to: Troubleshoot common problems.