Skip to content

scottcallan1987/claude-resume-statusline

Repository files navigation

Claude Code Resume Statusline

Never lose a Claude Code session again. This tool adds a persistent resume command to your Claude Code status bar so you can always pick up where you left off.

Claude Code CLI showing the resume statusline

The session ID is displayed at the bottom of every Claude Code session, ready to copy and paste whenever you need to resume.

Features

  • Status Bar — Displays resume: claude --resume <session_id> at the bottom of every Claude Code session
  • Session Log — Automatically logs every session start (with timestamp, session ID, and working directory) to ~/.claude/session-log.txt
  • Zero Dependencies — Pure bash, no jq or external tools required

Quick Install

git clone https://github.com/scottcallan1987/claude-resume-statusline.git
cd claude-resume-statusline
bash install-resume-statusline.sh

Restart any open Claude Code sessions to see the changes.

What Gets Installed

File Purpose
~/.claude/statusline.sh Script that renders the resume command in the status bar
~/.claude/settings.json Updated with statusLine config and a SessionStart hook
~/.claude/session-log.txt Append-only log of all session starts (created on first use)

If settings.json already exists, the installer backs it up to settings.json.bak before merging.

Usage

Resume a session — copy the command from the status bar:

claude --resume 602a057e-7d51-4ed6-b6cf-a8c5ef4b1b78

Browse recent sessions:

tail -20 ~/.claude/session-log.txt

Find a session by directory:

grep 'my-project' ~/.claude/session-log.txt | tail -5

Manual Setup

If you prefer not to use the installer, copy the relevant snippets into your own config:

  • settings-snippet.json — the statusLine block to add to ~/.claude/settings.json
  • hooks-snippet.json — the SessionStart hook for session logging
  • claude-resume-statusline.sh — copy to ~/.claude/statusline.sh and chmod +x

Uninstall

rm ~/.claude/statusline.sh
# Remove the "statusLine" and "SessionStart" blocks from ~/.claude/settings.json
# Optionally: rm ~/.claude/session-log.txt

License

MIT

About

Configuration scripts to add a resume code to the Claude Code CLI statusbar.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages