| name | ccsinfo |
| description | Query and analyze Claude Code session data from a remote server. Use when asked to inspect Claude Code sessions, view conversation history, check tool calls, track tasks, search prompts, or view usage statistics. Requires CCSINFO_SERVER_URL to be set and a ccsinfo server running. |
ccsinfo - Claude Code Session Info
Access and analyze Claude Code session data from a remote ccsinfo server running on the user's machine.
Server Repository: https://github.com/myk-org/ccsinfo
Requirements
1. Server Setup (on the machine with Claude Code data)
The ccsinfo server must be running on the machine that has Claude Code session data.
Install and run the server:
uv tool install git+https://github.com/myk-org/ccsinfo.git
ccsinfo serve --host 0.0.0.0 --port 9999
The server reads Claude Code session data from ~/.claude/projects/ and exposes it via REST API.
For full server documentation, see: https://github.com/myk-org/ccsinfo
2. Client Setup (where this skill runs)
The ccsinfo CLI tool must be installed. Check if installed:
which ccsinfo
If not installed, run the installation script:
bash scripts/install.sh
3. Configuration
Set the CCSINFO_SERVER_URL environment variable to point to your server:
export CCSINFO_SERVER_URL=http://192.168.1.100:9999
Add this to your shell profile (.bashrc, .zshrc, etc.) to persist across sessions.
Quick Start
All commands automatically connect to the remote server via $CCSINFO_SERVER_URL.
List recent sessions
ccsinfo sessions list
Show session details (supports partial ID matching)
ccsinfo sessions show <session-id>
View conversation messages
ccsinfo sessions messages <session-id>
Search sessions by content
ccsinfo search sessions "search term"
View global statistics
ccsinfo stats global
Common Workflows
Inspect a specific session
-
List sessions to find the ID:
ccsinfo sessions list
-
Show session details:
ccsinfo sessions show <id>
-
View messages:
ccsinfo sessions messages <id>
-
Check tool calls:
ccsinfo sessions tools <id>
Find sessions by content
ccsinfo search sessions "refactor"
ccsinfo search messages "fix bug"
ccsinfo search history "implement feature"
Track tasks
ccsinfo tasks pending
ccsinfo tasks list -s <session-id>
ccsinfo tasks show <task-id> -s <session-id>
View statistics and trends
ccsinfo stats global
ccsinfo stats daily
ccsinfo stats trends
Work with projects
ccsinfo projects list
ccsinfo projects show <project-id>
ccsinfo projects stats <project-id>
Output Formats
Most commands support --json for machine-readable output:
ccsinfo sessions list --json
ccsinfo stats global --json
This is useful for parsing results programmatically or filtering with jq.
Session ID Matching
Session IDs support partial matching - use the first few characters:
ccsinfo sessions show a1b2c3
Reference
For complete command reference, see cli-commands.md.
Troubleshooting
Check server connectivity
echo $CCSINFO_SERVER_URL
ccsinfo sessions list
Verify installation
which ccsinfo
ccsinfo --version
Reinstall if needed
bash scripts/install.sh