github alexknowshtml/smaug v0.3.0
v0.3.0 - Cost Tracking, Folder Tags & Cross-Platform Support

latest release: v0.3.1
3 days ago

What's New

๐Ÿ’ฐ Token Usage Tracking

Track your Claude API costs with the new -t flag:

npx smaug run -t

Displays a detailed breakdown at the end of each run showing input/output tokens, cache usage, and estimated costs by model.

๐Ÿ“ Bookmark Folder Support

Preserve your Twitter bookmark folder organization! Configure folder IDs mapped to tag names:

{
  "folders": {
    "1234567890": "ai-tools",
    "0987654321": "articles-to-read"
  }
}

Bookmarks now include folder tags in both bookmarks.md entries and knowledge file frontmatter.

โšก Configurable Parallel Processing

New parallelThreshold config option (default: 8) controls when parallel subagent processing kicks in. Small batches now process sequentially for faster results:

{
  "parallelThreshold": 8
}

๐ŸŽฏ Batch Limiting

Process bookmarks in controlled batches with the new --limit flag:

npx smaug run --limit 50 -t    # Process 50 at a time with cost tracking

๐Ÿ› Bug Fixes

  • Fixed nested Claude invocation - Resolved hanging issues when Claude spawns subprocesses
  • Fixed stdin handling - Changed from inherit to pipe to prevent blocking
  • Fixed bird CLI pipe buffering - JSON output now captured correctly on all systems
  • Fixed tilde expansion - Home directory paths now work reliably across platforms

๐ŸŒ Cross-Platform Improvements

  • Replaced jq and sed shell commands with Node.js equivalents
  • No additional system dependencies beyond Node.js
  • Works on Windows (with Node.js), macOS, and Linux

๐Ÿงช Developer Experience

  • Added comprehensive test suite
  • CI workflow for automated testing
  • Improved error messages and logging

Upgrading

git pull
npm install

No breaking changes from v0.2.x.

Full Changelog

v0.2...v0.3.0

Don't miss a new smaug release

NewReleases is sending notifications on new releases.