
Research
/Security News
Trivy Under Attack Again: Widespread GitHub Actions Tag Compromise Exposes CI/CD Secrets
Attackers compromised Trivy GitHub Actions by force-updating tags to deliver malware, exposing CI/CD secrets across affected pipelines.
claude-prune
Advanced tools
A fast CLI tool for pruning Claude Code sessions.
# Using npx (Node.js)
npx claude-prune <sessionId> --keep 50
# Using bunx (Bun)
bunx claude-prune <sessionId> --keep 50
# Using npm
npm install -g claude-prune
# Using bun
bun install -g claude-prune
claude-prune <sessionId> --keep <number> [--dry-run]
sessionId: UUID of the Claude Code session (without .jsonl extension)-k, --keep <number>: Number of assistant messages to keep (required)--dry-run: Preview changes without modifying files-h, --help: Show help information-V, --version: Show version number# Keep the last 10 assistant messages and everything since then
claude-prune abc123-def456-789 --keep 10
# Preview what would be pruned (safe mode)
claude-prune abc123-def456-789 --keep 5 --dry-run
# Minimal pruning - keep only the last assistant message
claude-prune abc123-def456-789 --keep 1
~/.claude/projects/{project-path}/{sessionId}.jsonl{sessionId}.bak.{timestamp} before modifying--dry-runClaude Code stores sessions in:
~/.claude/projects/{project-path-with-hyphens}/{sessionId}.jsonl
For example, a project at /Users/alice/my-app becomes:
~/.claude/projects/-Users-alice-my-app/{sessionId}.jsonl
# Clone and install
git clone https://github.com/dannyaziz/cc-prune.git
cd cc-prune
bun install
# Run tests
bun test
# Build
bun run build
# Test locally
./dist/index.js --help
MIT © Danny Aziz
FAQs
Prune early messages from Claude Code session transcripts
We found that claude-prune 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.

Research
/Security News
Attackers compromised Trivy GitHub Actions by force-updating tags to deliver malware, exposing CI/CD secrets across affected pipelines.

Security News
ENISA’s new package manager advisory outlines the dependency security practices companies will need to demonstrate as the EU’s Cyber Resilience Act begins enforcing software supply chain requirements.

Research
/Security News
We identified over 20 additional malicious extensions, along with over 20 related sleeper extensions, some of which have already been weaponized.