Skip to content

docs: add ccsessions / cc-session-num integration example#483

Open
treebird7 wants to merge 1 commit into
sirmalloc:mainfrom
treebird7:feat/ccsessions-integration
Open

docs: add ccsessions / cc-session-num integration example#483
treebird7 wants to merge 1 commit into
sirmalloc:mainfrom
treebird7:feat/ccsessions-integration

Conversation

@treebird7

Copy link
Copy Markdown

Summary

  • Adds ccsessions to the Related Projects section in README.md
  • Adds a new Integration Example: ccsessions section in docs/USAGE.md (same pattern as ccusage and AIWatch)
  • Adds cc-session-num to the Custom Command widget examples bullet list

What is cc-session-num?

ccsessions is a CLI session manager for Claude Code that lists sessions across projects and resumes by number. Its companion script cc-session-num is a zero-dependency Python widget that prints the current session's rank (#1, #2, …) by reading CLAUDE_CODE_SESSION_ID and matching it against ~/.claude/projects/*/*.jsonl sorted by mtime — the same sort order ccsessions uses.

It returns in milliseconds (local file scan only) and prints nothing when the session isn't found, so it plays well with ccstatusline's hide-when-empty separator collapsing.

Test plan

  • Verify docs/USAGE.md renders correctly (no broken markdown)
  • Verify README.md Related Projects link is correct
  • Optionally install cc-session-num and wire as a Custom Command widget to confirm output

🤖 Generated with Claude Code

Adds ccsessions to Related Projects in README and a new Integration
Example section in USAGE.md showing how to wire the cc-session-num
companion script as a Custom Command widget to display the current
session rank (sirmalloc#1, sirmalloc#2, …) in the status line.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant