# 6.1 Key Commands

# Key Commands

## Mission Control
```bash
node ~/system/tools/mc.js list                    # List open tasks
node ~/system/tools/mc.js show <id>               # Task details
node ~/system/tools/mc.js add "title" -p H        # Create high-priority task
node ~/system/tools/mc.js done <id> "reason"      # Complete task
node ~/system/tools/mc.js next-task               # Get next eligible task
```

## Pi-Orchestrator
```bash
node ~/system/kernel/pi-orchestrator.js status    # Fleet health + worker pool
node ~/system/kernel/pi-orchestrator.js stop      # Stop daemon
launchctl kickstart -k gui/501/com.john.pi-orchestrator  # Restart daemon
```

## Pipeline Engine
```bash
node ~/system/kernel/pipeline-engine.js status <task-id>    # Pipeline status
node ~/system/kernel/pipeline-engine.js advance <task-id>   # Advance to next stage
node ~/system/kernel/pipeline-engine.js create-pipeline <id> # Create pipeline for task
```

## Virtual Companies
```bash
bash ~/system/tools/company.sh list               # List all companies
bash ~/system/tools/company.sh info CodeCraft      # Company details
```

## Minions
```bash
node ~/system/tools/minion.js run "task" --project <path>   # Run minion
node ~/system/tools/minion.js status                         # Running minions
node ~/system/tools/minion.js list                           # Completed runs
```

## HiveMind
```bash
node ~/system/agents/hivemind/hivemind.js query "question"  # Semantic search
node ~/system/agents/hivemind/hivemind.js post agent type "msg"  # Store knowledge
```

## Key File Paths

| Path | Purpose |
|------|---------|
| `~/system/kernel/pi-orchestrator.js` | Main orchestrator daemon |
| `~/system/kernel/pipeline-engine.js` | Multi-company pipeline |
| `~/system/tools/mc.js` | Mission Control CLI |
| `~/system/tools/minion.js` | Minion executor |
| `~/system/agents/hivemind/` | HiveMind knowledge base |
| `~/system/config/pi-orchestrator-config.json` | Orchestrator config |
| `~/system/config/ollama-fleet.json` | Model fleet config |
| `~/companies/` | Virtual company definitions |
| `~/system/databases/mission-control.db` | MC task database |
| `~/system/databases/minions.db` | Minion run history |
| `~/system/logs/pi-orchestrator.log` | Orchestrator log |
```