execute.js - Claude SDK execution with async generator support
package.json - Runtime dependencies
README.md - Complete documentation and troubleshooting guide
Web Documentation
Docker provider section on component pages
Provider comparison table (E2B vs Cloudflare vs Docker)
Installation instructions and prerequisites
Usage examples and best practices
๐ Usage
Basic Usage
npx claude-code-templates@latest \
--sandbox docker \
--prompt "Write a REST API with Express" \
--yes
With Specialized Agent
npx claude-code-templates@latest \
--sandbox docker \
--agent programming-languages/javascript-pro \
--prompt "Create a function to add two numbers" \
--yes
๐ Requirements
Docker Desktop installed and running
Anthropic API key configured
Node.js 14+ (for CLI)
๐ Provider Comparison
| Feature | E2B | Cloudflare | Docker |
|---------|-----|------------|--------|
| Location | โ๏ธ Cloud | ๐ Edge | ๐ Local |
| Setup | Easy | Easy | Medium |
| Best For | Full stack | Serverless | Local dev |
| API Keys | Anthropic + E2B | Anthropic | Anthropic |
๐ง Technical Improvements
Correct SDK Usage: Implemented async generator iteration for query()
Enhanced File Search: Scans multiple directories with find command
Smart Prompts: Informs Claude about working directory context
Flag Support: --yes flag now works correctly for sandbox execution
Error Handling: Comprehensive error messages and troubleshooting
๐ Bug Fixes
Fixed async generator iteration in Claude Agent SDK
Fixed --yes flag not skipping agent selection prompts