Token-efficient task orchestration system that delegates work to specialized subordinates while prioritizing system-level solutions over AI inference.
AI agents often waste tokens on tasks better solved by system tools (Linux commands, Python scripts). This creates unnecessary costs and slower execution. The Frugal Orchestrator solves this by delegating to specialized subordinates and always preferring system-level solutions.
Goal: Achieve 90%+ token reduction while maintaining full functionality
coder → Scripts, automation, refactoringsysadmin → Infrastructure, Docker, networkingresearcher → Data gathering, documentationhacker → Security, penetration testingwriter → Content generation, documentation| Task Type | Delegate To | System Alternative |
|---|---|---|
| File processing | coder | awk, sed, jq |
| Data fetching | researcher | curl, wget |
| Text parsing | coder | grep, cut, tr |
| Web scraping | browser_agent | lynx -dump |
| Security scan | hacker | nmap, nikto |
When generating commands:
§§include() instead| chains are more efficientawk, sed vs Python importsxargs| ❌ Don't | ✅ Do |
|---|---|
| Delegate simple file operations | Use direct Linux commands |
| Spawn subordinate for one-line bash | Execute directly |
| Rewrite subordinate output | Include via §§include() |
| Use prose for structured data | Use tables and lists |
/a0/usr/skills/frugal-orchestrator/scripts/delegate.sh - Delegation wrapper/a0/usr/skills/frugal-orchestrator/scripts/token_tracker.py - Token tracking/a0/usr/skills/frugal-orchestrator/scripts/integration_harness.sh - Integration testingLocated in /a0/usr/skills/frugal-orchestrator/templates/:
subordinate_prompt.md - Subordinate instruction templateefficiency_report.md - Token savings report templateZIP package — ready to use