
Research
/Security News
Mini Shai-Hulud Campaign Hits Red Hat Cloud Services npm Packages
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.
Ultra-fast token & cost tracker for Claude Code, Codex CLI, Gemini CLI, Qwen Code, OpenCode, and PI Agent. Built with Rust for ultra-fast performance (simd-json + rayon).
⚠️ Did you know? Claude Code deletes your session data after 30 days by default. Once deleted, your token usage and cost history are gone forever — unless you preserve them.

| Problem | Solution |
|---|---|
| 🐌 Existing tools are slow — 40+ seconds | ⚡ 1000x faster — cached queries in ~0.04s |
| 🗑️ Claude Code deletes data after 30 days | 💾 Persistent cache — history survives |
| 📊 No unified view — each CLI has separate data | 🎯 One dashboard — all CLIs in one place |
# No installation required
npx toktrack
# Or install globally
npm install -g toktrack
brew tap mag123c/toktrack
brew install toktrack
daily, weekly, monthly, stats with JSON output| CLI | Data Location |
|---|---|
| Claude Code | ~/.claude/projects/ |
| Codex CLI | ~/.codex/sessions/ |
| Gemini CLI | ~/.gemini/tmp/*/chats/ |
| OpenCode | ~/.local/share/opencode/storage/message/ |
| PI Agent | ~/.pi/agent/sessions/ |
| Platform | Architecture |
|---|---|
| macOS | x64, ARM64 |
| Linux | x64, ARM64 |
| Windows | x64 |
# Launch TUI dashboard
npx toktrack
# JSON output for scripting
npx toktrack daily --json
npx toktrack stats --json
| Tool | Time | Speedup |
|---|---|---|
| Existing tools | 40s+ | baseline |
| toktrack (cold) | ~1.0s | 40x faster |
| toktrack (cached) | ~0.04s | 1000x faster |
Measured on Apple Silicon with 2,000+ JSONL files (3.4 GB).
MIT
FAQs
Ultra-fast token & cost tracker for Claude Code, Codex CLI, and Gemini CLI
The npm package toktrack receives a total of 239 weekly downloads. As such, toktrack popularity was classified as not popular.
We found that toktrack 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
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.

Research
/Security News
The North Korean malware loader hides in a Packagist-listed package and its GitHub branch to fetch and execute remote code in a likely Contagious Interview-style lure.

Security News
The Rust project is moving toward formal rules on LLM use in contributions after months of internal debate over maintainer burden, code quality, and contributor experience.