feat: Add token-aware agent orchestration system
Summary
- Integrated token-aware agent orchestration into buildkit CLI
- Added automatic detection when tasks exceed 500 tokens
- Enforces mandatory agent use for multi-file operations
Changes
- Add
buildkit agent
command for managing agents - Create agent CLI tool with list, search, analyze, spawn commands
- Implement token threshold detection system
- Integrate with existing buildkit infrastructure
Token Savings
This system will prevent token waste by automatically spawning agents for:
- Multi-file operations (3+ files)
- Database operations
- API integrations
- Testing workflows
- Deployment tasks
Testing
Run ./buildkit agent list
to see available agents
Run ./buildkit agent analyze "[task]" [files]
to check token usage