Package Exports
- ccscope
- ccscope/src/CCScope.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ccscope) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
ccscope ๐
Claude Code Scope - Interactive terminal browser for Claude Code conversation transcripts
Overview
ccscope (Claude Code Scope) is a powerful terminal-based application that allows you to browse, analyze, and explore your Claude Code conversation logs. It provides an intuitive interface for navigating through sessions, response times, and tool usage analysis.
Features
- ๐ Interactive Browsing: Navigate through sessions and conversations with vim-like keybindings
- ๐ Rich Analytics: View response times and tool usage statistics
- ๐ Full-text Search: Search across all conversations with highlighting, OR conditions, and regex support
- ๐ Search Results Navigation: Navigate search results with left/right keys when viewing from search
- ๐ Search & Filter: Find specific conversations or filter by project
- ๐ฑ Responsive Design: Adapts to your terminal size with wide and compact layouts
- ๐ง Tool Analysis: Detailed breakdown of tool usage and execution flow
- ๐ Session Metrics: Track conversation duration, response times, and productivity
- ๐ Session Resume: Resume Claude Code sessions directly from ccscope with 'r' key
- ๐ Collapsible Tool Output: Long tool outputs (>20 lines) are collapsed by default, toggle with Ctrl+R
Screenshots
Session List View
๐ Claude Code Scope
========================================================================================================
๐ 35 Sessions | ๐ฌ 1503 Convos | โฑ๏ธ 4d 9h 23m
โถ 1 52ccc342 ccscope 48 convos 1h 51m 07/10 23:52 07/12 19:58
2 14208db7 sms-proto 7 convos 24m 24s 07/12 19:23 07/12 19:55
3 7726f0 mobile-documents 40 convos 1h 6m 07/12 15:25 07/12 19:22
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ/โ or k/j to select ยท Enter to view details ยท r resume ยท / full-text search ยท f filter ยท s sort ยท h help ยท q exit
Conversation Detail View
๐ Claude Code Scope
========================================================================================================
๐ฌ 48 Convos | โฑ๏ธ 1h 51m
Selected: [52ccc342] -Users-taguchiu-Documents-workspace-ccscope
๐ File: /Users/taguchiu/.claude/projects/...
โถ 1 07/10 14:30 12.3s 3t Help me refactor ViewRenderer...
2 07/10 14:35 8.7s 1t Add full-width character support
3 07/10 14:42 15.2s 5t Implement virtual scrolling
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ/โ or k/j to select conversation ยท Enter to view detail ยท โ/โ or h/l switch session ยท r resume ยท s sort ยท Esc back ยท q exit
Full Detail View
[52ccc342] -Users-taguchiu-Documents-workspace-ccscope [18-66/66] 100%
Conversation #15 of 48
========================================================================================================
๐ค USER:
Help me refactor the ViewRenderer component...
๐ค ASSISTANT:
I'll help you refactor the ViewRenderer component...
โบ Read(file: /src/ViewRenderer.js)
โฟ File content...
... +45 lines (ctrl+r to expand)
โบ Edit(file: /src/ViewRenderer.js)
โฟ Applied changes successfully
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ/โ or k/j 5-line scroll ยท Space/b page down/up ยท g/G top/bottom ยท โ/โ or h/l prev/next conversation ยท r resume ยท Esc back ยท q exit
Installation
Global Installation (Recommended)
npm install -g ccscope
Once installed, you can run ccscope
from anywhere in your terminal.
Quick Start
# Install globally
npm install -g ccscope
# Run ccscope
ccscope
# Or run without installation using npx
npx ccscope@latest
# That's it! ccscope will automatically find your Claude Code transcripts
Local Installation
git clone https://github.com/taguchiu/ccscope.git
cd ccscope
npm install
npm link
Alternative Installation Methods
# Install from GitHub directly
npm install -g git+https://github.com/taguchiu/ccscope.git
# Install specific version
npm install -g ccscope@1.2.1
# Install locally for development
npm install ccscope
Usage
Basic Usage
# Interactive browser mode
ccscope
# Run with npx (no installation required)
npx ccscope
# Show statistics commands
ccscope daily # Daily conversation statistics
ccscope project # Project-grouped statistics
ccscope search "query" # Search across all conversations
# Options
ccscope --help # Show help
# Search examples
ccscope search "async await"
ccscope search "error or warning" # OR search
ccscope search --regex "import.*from" # Regex search
ccscope search --regex "\berror\b" # Word boundary search
Resume Claude Code Sessions
Press r
in any view to resume a Claude Code session:
- Executes
claude -r <session-id>
to continue the conversation
This feature allows you to seamlessly continue conversations discovered through ccscope.
Navigation
Session List View
โ/โ
ork/j
: Navigate up/downEnter
: View session conversationsr
: Resume session withclaude -r
f
: Filter by projects
: Sort sessions (last activity, duration, conversations, start time, project name)/
: Search sessionsh
or?
: Show helpq
: Exit
Conversation Detail View
โ/โ
ork/j
: Navigate conversationsโ/โ
orh/l
: Switch sessionsEnter
: View full conversation detailr
: Resume session withclaude -r
s
: Sort conversations (date/time, duration, tools)Esc
: Back to session list
Full Detail View
โ/โ
ork/j
: Scroll content (5-line increments)Space/b
orPgDn/PgUp
: Page down/upCtrl+F/Ctrl+B
: Page forward/back (vim-style)Ctrl+D/Ctrl+U
: Half-page down/upg/G
: Jump to top/bottomโ/โ
: Previous/next conversation (or navigate search results if from search)Ctrl+R
: Toggle all tool output expansion/collapser
: Resume session withclaude -r
Esc
: Back to conversation list
Search Results View
โ/โ
ork/j
: Navigate search resultsEnter
: View conversation detailEsc
: Back to session listq
: Exit application
Configuration
ccscope automatically discovers Claude Code transcripts in this directory:
~/.claude/projects/
Supported Formats
ccscope reads Claude Code transcript files in JSONL format (.jsonl
extension).
Development
Project Structure
ccscope/
โโโ bin/ # Executable scripts
โ โโโ ccscope # Main CLI entry point
โโโ src/ # Source code
โ โโโ config.js # Configuration
โ โโโ SessionManager.js
โ โโโ StateManager.js
โ โโโ ViewRenderer.js
โ โโโ InputHandler.js
โ โโโ ThemeManager.js
โ โโโ CCScope.js
โโโ CLAUDE.md # Claude Code integration guide
โโโ examples/ # Example files
โโโ package.json
โโโ README.md
โโโ README.ja.md
โโโ LICENSE
Architecture
ccscope follows a modular architecture:
- CCScope: Main application orchestrator
- SessionManager: Handles transcript discovery and parsing
- StateManager: Manages application state and navigation
- ViewRenderer: Handles UI rendering and display logic
- InputHandler: Processes keyboard input and key bindings
- ThemeManager: Manages color themes and text formatting
- MouseEventFilter: Prevents mouse event artifacts in terminal output
Contributing
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add some amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Support
- ๐ Report Issues
- ๐ฌ Discussions
- ๐ฆ npm Package