Orchestra CLI
October 2, 2025 Β· View on GitHub
3-Depth Agent Orchestration System powered by Claude Code
Orchestra CLI is a hierarchical agent orchestration system with three distinct layers (L1/L2/L3) designed for safe, observable, and efficient task automation.
π Quick Start
# Install dependencies
pnpm install
# Build
pnpm build
# Run (development)
pnpm dev
# Execute a task
orchestra run "Create README and lint" --plan-only
π Documentation
Full documentation is available in multiple languages:
Key Documents
- Architecture - System design and 3-layer architecture
- CLI UX - Command reference and usage examples
- Code Scaffolding - Project structure guide
- Security - Security best practices
ποΈ Project Structure
orchestra-cli/
βββ src/
β βββ cli/ # CLI entry point
β βββ config/ # Configuration loader & schema
β βββ logger/ # JSONL logger
β βββ l1/ # L1 Orchestrator
β βββ l2/ # L2 Coordinator
β βββ l3/ # L3 Worker
β βββ types/ # TypeScript type definitions
βββ tests/
β βββ unit/ # Unit tests
β βββ integration/ # Integration tests
β βββ fixtures/ # Test scenarios
βββ config/ # Default configuration
βββ docs/ # Documentation (EN/KO)
π οΈ Tech Stack
- Language: TypeScript
- Runtime: Node.js 20+
- Package Manager: pnpm
- LLM Backend: Claude Code (Sonnet 4.5)
- Testing: Vitest
- Linting: ESLint + Prettier
π Features
- 3-Layer Architecture: L1 (Orchestrator), L2 (Coordinator), L3 (Workers)
- Security-First: Whitelist-based tool access, filesystem/network sandboxing
- Observable: JSONL logs, trace ID propagation, markdown reports
- Safe Execution:
--plan-onlyand--dry-runmodes - LLM-Powered Planning: Claude Code generates intelligent task decomposition
- Retry & Recovery: Exponential backoff, partial failure handling
π§ͺ Development
# Install dependencies
pnpm install
# Run type checking
pnpm typecheck
# Run linter
pnpm lint
# Format code
pnpm format
# Run tests
pnpm test
# Run tests with coverage
pnpm test:coverage
π¦ Available Commands
orchestra run <task> [options] # Execute a task
orchestra agent ls # List agents
orchestra agent inspect <level> # Inspect agent details
orchestra eval run <scenario> # Run evaluation
Options
--plan-only- Generate plan only, do not execute--dry-run- Simulate execution without running tools--config <path>- Configuration file (default:./orchestra.config.yaml)--concurrency <n>- Number of parallel workers (default: 1)--retries <n>- Retry count override
πΊοΈ Roadmap
- Day 1-2: Project scaffolding and basic infrastructure
- Day 3-4: Logger, CLI parser, run directory management
- Day 5-7: L2 Coordinator (LLM adapter, DAG generation)
- Day 8-9: L3 Worker (tool execution, retry)
- Day 10: L1 policy engine, report generation
- Day 11-12: Testing (unit + integration)
- Day 13-14: Debugging, polish, MVP release
See Next Steps for detailed roadmap.
π€ Contributing
We welcome contributions! Please see our Contributing Guidelines for details.
π License
MIT License - see LICENSE for details.
π Links
- Documentation: docs/
- GitHub: https://github.com/example/orchestra-cli
- Issues: https://github.com/example/orchestra-cli/issues
Built with β€οΈ using TypeScript + Claude Code