Status: NON-NEGOTIABLE Constitutional PrincipleDefined in
.aiox-core/constitution.md - All agents, tasks, and workflows MUST respect this principle. Violations are blocked automatically via gates.The Principle
The CLI (Command Line Interface) is the source of truth where all intelligence, execution, and automation reside. This is not a preference—it’s an architectural imperative.Core Tenet
Every feature MUST work 100% via CLI before any UI consideration. Dashboards observe; they never control or make decisions.
Constitutional Rules
From the AIOX Constitution v1.0.0:MUST Rules
CLI First Implementation
MUST: Toda funcionalidade nova DEVE funcionar 100% via CLI antes de qualquer UIEvery new feature must be fully functional through the command line before any user interface is considered.
Dashboard Observability Only
MUST: Dashboards apenas observam, NUNCA controlam ou tomam decisõesDashboards and UIs are read-only visualization layers. They cannot trigger actions, make decisions, or control system behavior.
UI Never Required
MUST: A UI NUNCA é requisito para operação do sistemaThe system must be fully operational without any graphical interface. CLI access is sufficient for all operations.
The Hierarchy
- CLI (Primary)
- Observability (Secondary)
- UI (Tertiary)
Maximum Authority
- All core functionality implemented here
- Complete access to all system capabilities
- Source of truth for automation
- Where agents execute commands
- Where workflows are orchestrated
aiox dev develop story-1.2.3aiox qa review story-1.2.3aiox devops push
Why CLI First?
1. Automation & AI Integration
Agent-Friendly
AI agents operate through command-line interfaces. CLI-first design ensures agents have full system access without UI dependencies.
2. Scriptability & Reproducibility
Script Everything
CLI commands can be scripted, version-controlled, and executed reliably across environments.
Reproducible Workflows
Same commands produce same results every time, regardless of who or what executes them.
3. CI/CD Integration
Pipeline Native
Continuous Integration/Continuous Deployment pipelines operate via CLI. CLI-first ensures seamless integration.
4. Remote & Headless Environments
Environment Agnostic
Servers, containers, and remote environments often lack graphical interfaces. CLI-first ensures functionality everywhere.
- Docker containers
- SSH sessions
- CI/CD runners
- Cloud functions
- Automated testing environments
5. Power & Precision
CLI provides:
- Precise control over all parameters
- Composability via pipes and scripting
- Batch operations
- Programmatic access
- Complete feature surface
Gate Enforcement
The development workflow includes automated checks:Practical Examples
Story Development
Quality Gates
Agent Commands
Every agent command is CLI-accessible:- Developer Agent
- QA Agent
- DevOps Agent
Benefits in Practice
Autonomous Agent Workflows
Autonomous Agent Workflows
Agents can execute complete development cycles without human intervention:This single command:
- Creates isolated worktree
- Plans implementation
- Executes all subtasks
- Runs verification
- Handles failures with retries
- Merges when complete
Multi-Agent Orchestration
Multi-Agent Orchestration
Complex workflows coordinating multiple agents:Behind the scenes:
- PM assigns executors
- SM validates stories
- Dev implements
- QA reviews
- DevOps deploys
Recovery & Debugging
Recovery & Debugging
CLI provides precise control for recovery:UI dashboards show status; CLI executes fixes.
Common Pitfalls
Best Practice: CLI → Test → Automate → Observe (optional UI)Result:
- Full automation capability
- Agent-friendly design
- CI/CD native
- Optional visualization
Integration with Other Principles
CLI First works in harmony with other constitutional principles:Agent Authority
Agents execute their exclusive operations via CLI commands
Story-Driven Development
All development workflows are CLI-executable
Quality First
Quality gates run via CLI commands in automation
Workflows
All workflows are sequences of CLI commands
Verification
How to verify CLI First compliance:Complete Feature Test
Can you execute the entire feature via CLI alone?✓ YES → Compliant
✗ NO → Violation
✗ NO → Violation
Agent Automation Test
Can an agent perform the operation without UI?✓ YES → Compliant
✗ NO → Violation
✗ NO → Violation
CI/CD Integration Test
Can the feature run in a headless CI/CD pipeline?✓ YES → Compliant
✗ NO → Violation
✗ NO → Violation
Summary
CLI First = Automation First
By making CLI the primary interface, AIOX ensures:
- Full agent automation capability
- Scriptable, repeatable workflows
- CI/CD native integration
- Environment independence
- Power user efficiency
Next Steps
Agent System
See how agents execute CLI commands
Workflows
Explore CLI-based workflow sequences
Getting Started
Start using AIOX CLI commands