Skip to content

Conversation

@juancadile
Copy link

Summary

  • New bun batch <tickers.txt> command for headless batch processing
  • Supports custom query templates with {TICKER} placeholder
  • Each run creates timestamped output folder (outputs/YYYY-MM-DD_HH-MM-SS/)
  • Generates individual JSON files per ticker + combined _combined.json
  • JSON output includes: query, answer, tasks with tool calls, metadata

Usage

bun batch tickers.txt
bun batch tickers.txt --template "Analyze {TICKER} growth"
bun batch tickers.txt --output ./research

Output Structure

outputs/2025-01-12_14-30-45/
├── AAPL.json
├── GOOGL.json
├── NVDA.json
└── _combined.json   # All results in one file for LLM consumption

Test Plan

  • Tested with 41 tickers (~58 min total run)
  • Verified JSON output structure
  • Verified _combined.json generation
  • Typecheck passes

🤖 Generated with Claude Code

Features:
- New `bun batch <tickers.txt>` command for headless batch processing
- Supports custom query templates with {TICKER} placeholder
- Each run creates timestamped output folder (outputs/YYYY-MM-DD_HH-MM-SS/)
- Generates individual JSON files per ticker + combined _combined.json
- JSON output includes: query, answer, tasks with tool calls, metadata

Usage:
  bun batch tickers.txt
  bun batch tickers.txt --template "Analyze {TICKER} growth"
  bun batch tickers.txt --output ./research

Also adds CLAUDE.md with codebase documentation for AI assistants.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@juancadile
Copy link
Author

juancadile commented Jan 12, 2026

Thank you for this repo, @virattt - it's super useful. I wanted to run a batch of an entire portfolio so I built this little feature. Hope all is good!

@virattt virattt added the run-ci Runs CI label Feb 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

run-ci Runs CI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants