
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
cc-sessions-cli
Advanced tools
A command-line tool for managing and viewing Claude Code session files (JSONL format).
This is an experimental project - use at your own risk.
npx executionnpm install -g cc-sessions-cli
Or run directly without installation:
npx --yes cc-sessions-cli
List all Claude Code session files in a directory:
cc-sessions-cli list [directory]
cc-sessions-cli list --format csv
cc-sessions-cli list --sort date --order desc
Options:
--format, -f: Output format (table, csv) - default: table--sort, -s: Sort by (date, name, size) - default: date--order, -o: Sort order (asc, desc) - default: descView the content of a specific session file:
cc-sessions-cli view <file-path>
cc-sessions-cli view session.jsonl --format human
cc-sessions-cli view session.jsonl --format llm
Options:
--format, -f: Output format (human, llm, jsonl) - default: human--no-timestamps: Hide timestamps in human formatThis tool can be executed by AI agents using:
npx --yes cc-sessions-cli list [directory]
npx --yes cc-sessions-cli view <file-path> --format llm
The tool outputs Claude Code session data in a format suitable for analysis. Agents can use this to help users with requests like:
npx --yes cc-sessions-cli list /path/to/project --format csvnpx --yes cc-sessions-cli view /path/to/project <session-id> --format llmThis project includes 2 example Claude Code sub-agents that demonstrate how to use cc-sessions-cli for powerful session analysis:
Purpose: Improve your prompting skills by analyzing conversation patterns Use cases: "How can I communicate better with Claude?" | "What prompting patterns work best?"
Purpose: Search and retrieve information from your session history Use cases: "When did we work on authentication?" | "What errors have we encountered?"
Copy agent files to your project's .claude/agents/ directory:
mkdir -p .claude/agents
# Copy the agent configuration from examples/ to .claude/agents/
Use the agents in Claude Code:
/agents session-analyzer # Analyze your prompting patterns
/agents session-query # Search your session history
Requirements: The agents use npx --yes cc-sessions-cli which auto-installs the tool as needed.
See the full configuration details in:
Readable conversation format with timestamps and clear role indicators.
Optimized for AI analysis with structured content and tool usage information.
Raw JSONL data for programmatic processing.
npm install
npm run dev
npm run build
npm run lint
See CLAUDE.md for development guidelines.
Apache 2.0
FAQs
A CLI tool to manage and view Claude Code sessions
We found that cc-sessions-cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.