What's New
๐ฐ Token Usage Tracking
Track your Claude API costs with the new -t flag:
npx smaug run -tDisplays 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
inherittopipeto 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
jqandsedshell 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 installNo breaking changes from v0.2.x.