π¦ ClawHub
Frugal Orchestrator
by @nelohenriq
Token-efficient task orchestration system that delegates work to specialized subordinates while prioritizing system-level solutions over AI inference.
TERMINAL
clawhub install frugal-orchestratorπ About This Skill
Skill: Frugal Orchestrator
Metadata
Problem Statement
AI agents often waste tokens on tasks better solved by system tools (Linux commands, Python scripts). This creates unnecessary costs and slower execution.Solution: Frugal Orchestrator v0.5.0 with intelligent task routing, caching layer, and specialized subordinate delegation.
Result: 90%+ token reduction while maintaining full functionality
Core Capabilities
Module 1: Auto-Router
Purpose: Automatically detect task type and route optimallyTaskRouterModule 2: Token Tracker
Purpose: TOON-format token metrics loggingTokenTrackerModule 3: Cache Manager
Purpose: Content-addressable result caching with TTLCacheManagerModule 4: Error Recovery
Purpose: Resilient execution with retry/fallback chainsErrorRecovery, FailureTypeModule 5: Batch Processor
Purpose: Parallel task executionBatchProcessorModule 6: A2A Adapter
Purpose: Agent-to-Agent mesh communicationA2AAdapterModule 7: Learning Engine
Purpose: Pattern recognition for routing decisionsLearningEngineModule 8: Scheduler Integration
Purpose: Recurring task schedulingSchedulerClientQuick Start
# Run demonstration
cd /a0/usr/projects/frugal_orchestrator/demo && bash run_demo.sh
Python Integration
from scripts.auto_router import TaskRouter
from scripts.cache_manager import CacheManager
from scripts.token_tracker import TokenTrackerInitialize
router = TaskRouter(TokenTracker())
result = router.route("file_operations", task_input)
Project Statistics
| Metric | Value | |--------|-------| | Python Modules | 10 | | Shell Scripts | 6 | | Total Files | 58 | | Python LOC | 1,763 | | Token Reduction | 90%+ |Token Efficiency
| Feature | Token Reduction | |---------|---------------| | Auto-routing | 90-95% | | Caching | >99% for repeats | | Batch processing | Linear scaling |GitHub Repository
https://github.com/nelohenriq/frugal_orchestrator (v0.5.0)Version History
π‘ Examples
# Run demonstration
cd /a0/usr/projects/frugal_orchestrator/demo && bash run_demo.sh
Python Integration
from scripts.auto_router import TaskRouter
from scripts.cache_manager import CacheManager
from scripts.token_tracker import TokenTrackerInitialize
router = TaskRouter(TokenTracker())
result = router.route("file_operations", task_input)