docs: add ccsessions / cc-session-num integration example#483
Open
treebird7 wants to merge 1 commit into
Open
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
README.mddocs/USAGE.md(same pattern as ccusage and AIWatch)cc-session-numto the Custom Command widget examples bullet listWhat 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-numis a zero-dependency Python widget that prints the current session's rank (#1,#2, …) by readingCLAUDE_CODE_SESSION_IDand matching it against~/.claude/projects/*/*.jsonlsorted by mtime — the same sort orderccsessionsuses.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
docs/USAGE.mdrenders correctly (no broken markdown)README.mdRelated Projects link is correctcc-session-numand wire as a Custom Command widget to confirm output🤖 Generated with Claude Code