Asoba Ona Terminal

title: β€œUsing / Commands (Interactive Mode)” layout: default nav_order: 4 redirect_from:

Using / Commands (Interactive Mode)

Master Ona Terminal’s interactive CLI with slash commands and examples.


Getting Started

Launch interactive mode:

ona-terminal

You’ll see the interactive prompt:

πŸ€– | 

Type any command or natural language request.


Essential System Commands

Help and Discovery

# Show all available commands
πŸ€– | /help

# List all slash commands with descriptions
πŸ€– | /commands

# Get help for specific command
πŸ€– | /help github

System Status and Configuration

# Check system status and model availability
πŸ€– | /status
πŸ€– | /health

# List available MCP servers and their status
πŸ€– | /servers

# Show available AI models
πŸ€– | /models
πŸ€– | /model

# Interactive configuration management
πŸ€– | /configure

File Operations

Reading and Viewing Files

# Read and display file contents
πŸ€– | /read config.py
πŸ€– | /read README.md
πŸ€– | /read src/main.py

# Read with line limit
πŸ€– | /read --lines 50 large_file.txt

Directory Operations

# List directory contents
πŸ€– | /list
πŸ€– | /list src/

# List with hidden files
πŸ€– | /list --all

# List with detailed information  
πŸ€– | /list --details

Search Operations

# Search for files and content by literal pattern
πŸ€– | /find main.py
πŸ€– | /find "function name"
πŸ€– | /find "import requests"

# Search by type
πŸ€– | /find --type file "*.py"
πŸ€– | /find --type dir "test*"
πŸ€– | /find --type content "TODO"

# Search in specific path
πŸ€– | /find pattern --path src/

Intelligent Search with AI-Powered Results

The /search command provides intelligent, context-aware search with relevance ranking and smart result limits. Perfect for exploring large codebases and finding relevant information quickly.

Basic Search:

# Search for concepts, patterns, or terms
πŸ€– | /search "authentication logic"
πŸ€– | /search "database migration"
πŸ€– | /search "error handling"

# Search with regex patterns (automatically detected)
πŸ€– | /search "function\s+\w+Auth"
πŸ€– | /search "class.*Controller"

Advanced Search Options:

# Limit results to specific file types
πŸ€– | /search "configuration" --extensions .py .yaml .json

# Search in specific directory
πŸ€– | /search "deployment scripts" --directory ./infrastructure

# Limit number of results (default: 50)
πŸ€– | /search "test cases" --max-results 10

# Combined options for focused search
πŸ€– | /search "API endpoints" --directory ./src --extensions .py .js --max-results 25

What Makes Search Intelligent:

βœ… Relevance Scoring - Results ranked by filename matches, occurrence count, and file importance
βœ… Context Snippets - Shows actual match context, not just filenames
βœ… Smart Size Limits - Automatically handles large results with intelligent truncation
βœ… File Type Priority - Prioritizes important development files (.py, .js, .md)
βœ… Regex Support - Automatically detects and handles regex patterns

Example Output:

Found 15 files matching 'authentication'. Showing top 15 results.

/src/auth/login.py
Match found: 'def authenticate_user(username, password): # Main authentication logic' - File contains 8 occurrences of 'authentication'.

/docs/security.md  
Match found: 'Authentication is handled through JWT tokens with 24-hour expiry' - File contains 12 occurrences of 'authentication'.

/tests/test_auth.py
Match found: 'class TestAuthentication(unittest.TestCase): def test_valid_authentication' - File contains 15 occurrences of 'authentication'.

Search vs Find:


Code Operations

AI-Assisted File Editing

# Edit files with AI assistance
πŸ€– | /edit config.py
πŸ€– | /edit src/main.py "add error handling"
πŸ€– | /edit README.md "update installation instructions"

# Interactive editing
πŸ€– | /edit app.py
# Follow prompts for what changes to make

GitHub Integration

Repository Operations

# GitHub authentication
πŸ€– | /github auth login
πŸ€– | /github auth status
πŸ€– | /github auth logout

# Repository information
πŸ€– | /github repo info owner/repo
πŸ€– | /github repo info owner/repo --details

# Issues management
πŸ€– | /github issues list owner/repo
πŸ€– | /github issues list owner/repo --state=closed

# Pull requests
πŸ€– | /github pr list owner/repo
πŸ€– | /github pr list owner/repo --state=all

# Webhooks
πŸ€– | /github webhook list owner/repo

# Rate limiting
πŸ€– | /github rate-limit

O&M Specific Commands

Inverter Operations

# Upload inverter data for analysis
πŸ€– | /upload-inverter upload CUSTOMER_ID LOCATION MANUFACTURER SERIAL_NUMBER FILE_PATH REGION CLIENT_ID
πŸ€– | /upload-inverter CUSTOMER_ID LOCATION MANUFACTURER SERIAL_NUMBER FILE_PATH REGION CLIENT_ID
πŸ€– | /upload-inverter CUSTOMER_ID LOCATION MANUFACTURER SERIAL_NUMBER FILE_PATH REGION CLIENT_ID

# Check upload status
πŸ€– | /upload-inverter status [UPLOAD_ID]
πŸ€– | /upload-inverter status [UPLOAD_ID]

# Generate forecasts
πŸ€– | /forecast-inverter start CUSTOMER_ID LOCATION MANUFACTURER SERIAL_NUMBER REGION FORECAST_TYPE HORIZON_DAYS FREQUENCY
πŸ€– | /forecast-inverter start CUSTOMER_ID LOCATION MANUFACTURER SERIAL_NUMBER REGION FORECAST_TYPE HORIZON_DAYS FREQUENCY
πŸ€– | /forecast-inverter start CUSTOMER_ID LOCATION MANUFACTURER SERIAL_NUMBER FILE_PATH REGION FORECAST_TYPE HORIZON_DAYS FREQUENCY

# Get forecast results
πŸ€– | /forecast-inverter get CUSTOMER_ID LOCATION MANUFACTURER SERIAL_NUMBER REGION OUTPUT_DIR FORECAST_TYPE
πŸ€– | /forecast-inverter get CUSTOMER_ID LOCATION MANUFACTURER SERIAL_NUMBER REGION OUTPUT_DIR FORECAST_TYPE

# Check forecast status
πŸ€– | /forecast-inverter status [REQUEST_ID]
πŸ€– | /forecast-inverter status [REQUEST_ID]

Example O&M Workflows

# Upload inverter data
πŸ€– | /upload-inverter SOLAR001 "Cape Town" "SolarEdge" SE12345 /data/inverter.csv af-south-1 client123

# Monitor processing
πŸ€– | /upload-inverter status SOLAR001_SE12345_1754151842

# Generate 7-day forecast
πŸ€– | /forecast-inverter start SOLAR001 "Cape Town" "SolarEdge" SE12345 af-south-1 P50 7 daily

# Get forecast results
πŸ€– | /forecast-inverter get SOLAR001 "Cape Town" "SolarEdge" SE12345 af-south-1 /tmp/forecasts P50

OODA Workflow Commands

The following commands map to the OODA loop (Observe, Orient, Decide, Act) for structured, agentic workflows.

Observe

# Run fault detection on an asset
πŸ€– | /detect run --asset INV-001

# List previous fault detection results
πŸ€– | /detect list

Orient

# Run diagnostics on an asset
πŸ€– | /diagnose run --asset INV-001

# List previous diagnostic results
πŸ€– | /diagnose list

Decide

# Calculate Energy-at-Risk for an asset
πŸ€– | /ear calc --asset INV-001 --horizons 24,72,168

# List previous EAR calculations
πŸ€– | /ear list

# Create a maintenance schedule
πŸ€– | /schedule create --assets INV-001 --horizon 168

# List existing schedules
πŸ€– | /schedule list

Act

# Build a bill of materials from a schedule
πŸ€– | /bom build --schedule_id <schedule_id>

# List existing bills of materials
πŸ€– | /bom list

# Create a work order from a bill of materials
πŸ€– | /order create --bom_id <bom_id>

# List existing work orders
πŸ€– | /order list

# Subscribe to job updates
πŸ€– | /track subscribe --email ops@example.com --job JOB-123

# List tracking subscriptions
πŸ€– | /track list

Configuration and Prompts

System Prompt Management

# List all available system prompts
πŸ€– | /prompts list

# Select a system prompt for current and future sessions
πŸ€– | /prompts select simple
πŸ€– | /prompts select medium
πŸ€– | /prompts select ooda

# Show current prompt
πŸ€– | /prompts current

Planning File Management (.ona)

# Set up .ona directory and .gitignore
πŸ€– | /ona setup
πŸ€– | /ona setup

# List all planning files in .ona directory
πŸ€– | /ona list
πŸ€– | /ona list

# Create planning files
πŸ€– | /ona create --content "Planning content here" --type plan
πŸ€– | /ona create --content "Analysis content here" --type insights

# Show .ona status
πŸ€– | /ona status

Command Categories Reference

System Commands

File Operations

GitHub Integration

O&M Operations

Configuration


Natural Language Integration

You can also use natural language for complex tasks:

# Code generation
πŸ€– | generate a python function that reads CSV files
πŸ€– | create a terraform module for AWS S3 bucket
πŸ€– | write unit tests for my authentication function

# Analysis and review
πŸ€– | analyze this Python file for performance issues
πŸ€– | review my repository structure and suggest improvements
πŸ€– | scan my codebase for security vulnerabilities

# Infrastructure operations
πŸ€– | deploy a microservices architecture on AWS
πŸ€– | create a Kubernetes deployment with monitoring
πŸ€– | analyze my inverter data and generate forecast

Tips and Best Practices

Command Efficiency

File Operations

GitHub Workflows

O&M Operations

Planning Integration


Troubleshooting

Command Not Found

If a command’s not recognized:

File Operations Issues

GitHub Integration Issues

O&M Data Issues

For additional help, use /help followed by the specific command name for detailed usage information.


Getting Started

Launch interactive mode:

ona-terminal

You’ll see the interactive prompt:

πŸ€– | 

Type any command or natural language request.


Essential System Commands

Help and Discovery

# Show all available commands
πŸ€– | /help

# List all slash commands with descriptions
πŸ€– | /commands

# Get help for specific command
πŸ€– | /help github

System Status and Configuration

# Check system status and model availability
πŸ€– | /status
πŸ€– | /health

# List available MCP servers and their status
πŸ€– | /servers

# Show available AI models
πŸ€– | /models
πŸ€– | /model

# Interactive configuration management
πŸ€– | /configure

File Operations

Reading and Viewing Files

# Read and display file contents
πŸ€– | /read config.py
πŸ€– | /read README.md
πŸ€– | /read src/main.py

# Read with line limit
πŸ€– | /read --lines 50 large_file.txt

Directory Operations

# List directory contents
πŸ€– | /list
πŸ€– | /list src/

# List with hidden files
πŸ€– | /list --all

# List with detailed information  
πŸ€– | /list --details

Search Operations

# Search for files and content by literal pattern
πŸ€– | /find main.py
πŸ€– | /find "function name"
πŸ€– | /find "import requests"

# Search by type
πŸ€– | /find --type file "*.py"
πŸ€– | /find --type dir "test*"
πŸ€– | /find --type content "TODO"

# Search in specific path
πŸ€– | /find pattern --path src/

Intelligent Search with AI-Powered Results

The /search command provides intelligent, context-aware search with relevance ranking and smart result limits. Perfect for exploring large codebases and finding relevant information quickly.

Basic Search:

# Search for concepts, patterns, or terms
πŸ€– | /search "authentication logic"
πŸ€– | /search "database migration"
πŸ€– | /search "error handling"

# Search with regex patterns (automatically detected)
πŸ€– | /search "function\s+\w+Auth"
πŸ€– | /search "class.*Controller"

Advanced Search Options:

# Limit results to specific file types
πŸ€– | /search "configuration" --extensions .py .yaml .json

# Search in specific directory
πŸ€– | /search "deployment scripts" --directory ./infrastructure

# Limit number of results (default: 50)
πŸ€– | /search "test cases" --max-results 10

# Combined options for focused search
πŸ€– | /search "API endpoints" --directory ./src --extensions .py .js --max-results 25

What Makes Search Intelligent:

βœ… Relevance Scoring - Results ranked by filename matches, occurrence count, and file importance
βœ… Context Snippets - Shows actual match context, not just filenames
βœ… Smart Size Limits - Automatically handles large results with intelligent truncation
βœ… File Type Priority - Prioritizes important development files (.py, .js, .md)
βœ… Regex Support - Automatically detects and handles regex patterns

Example Output:

Found 15 files matching 'authentication'. Showing top 15 results.

/src/auth/login.py
Match found: 'def authenticate_user(username, password): # Main authentication logic' - File contains 8 occurrences of 'authentication'.

/docs/security.md  
Match found: 'Authentication is handled through JWT tokens with 24-hour expiry' - File contains 12 occurrences of 'authentication'.

/tests/test_auth.py
Match found: 'class TestAuthentication(unittest.TestCase): def test_valid_authentication' - File contains 15 occurrences of 'authentication'.

Search vs Find:


Code Operations

AI-Assisted File Editing

# Edit files with AI assistance
πŸ€– | /edit config.py
πŸ€– | /edit src/main.py "add error handling"
πŸ€– | /edit README.md "update installation instructions"

# Interactive editing
πŸ€– | /edit app.py
# Follow prompts for what changes to make

GitHub Integration

Repository Operations

# GitHub authentication
πŸ€– | /github auth login
πŸ€– | /github auth status
πŸ€– | /github auth logout

# Repository information
πŸ€– | /github repo info owner/repo
πŸ€– | /github repo info owner/repo --details

# Issues management
πŸ€– | /github issues list owner/repo
πŸ€– | /github issues list owner/repo --state=closed

# Pull requests
πŸ€– | /github pr list owner/repo
πŸ€– | /github pr list owner/repo --state=all

# Webhooks
πŸ€– | /github webhook list owner/repo

# Rate limiting
πŸ€– | /github rate-limit

O&M Specific Commands

Inverter Operations

# Upload inverter data for analysis
πŸ€– | /upload-inverter upload CUSTOMER_ID LOCATION MANUFACTURER SERIAL_NUMBER FILE_PATH REGION CLIENT_ID
πŸ€– | /upload-inverter CUSTOMER_ID LOCATION MANUFACTURER SERIAL_NUMBER FILE_PATH REGION CLIENT_ID
πŸ€– | /upload-inverter CUSTOMER_ID LOCATION MANUFACTURER SERIAL_NUMBER FILE_PATH REGION CLIENT_ID

# Check upload status
πŸ€– | /upload-inverter status [UPLOAD_ID]
πŸ€– | /upload-inverter status [UPLOAD_ID]

# Generate forecasts
πŸ€– | /forecast-inverter start CUSTOMER_ID LOCATION MANUFACTURER SERIAL_NUMBER REGION FORECAST_TYPE HORIZON_DAYS FREQUENCY
πŸ€– | /forecast-inverter start CUSTOMER_ID LOCATION MANUFACTURER SERIAL_NUMBER REGION FORECAST_TYPE HORIZON_DAYS FREQUENCY
πŸ€– | /forecast-inverter start CUSTOMER_ID LOCATION MANUFACTURER SERIAL_NUMBER REGION FORECAST_TYPE HORIZON_DAYS FREQUENCY

# Get forecast results
πŸ€– | /forecast-inverter get CUSTOMER_ID LOCATION MANUFACTURER SERIAL_NUMBER REGION OUTPUT_DIR FORECAST_TYPE
πŸ€– | /forecast-inverter get CUSTOMER_ID LOCATION MANUFACTURER SERIAL_NUMBER REGION OUTPUT_DIR FORECAST_TYPE

# Check forecast status
πŸ€– | /forecast-inverter status [REQUEST_ID]
πŸ€– | /forecast-inverter status [REQUEST_ID]

Example O&M Workflows

# Upload inverter data
πŸ€– | /upload-inverter SOLAR001 "Cape Town" "SolarEdge" SE12345 /data/inverter.csv af-south-1 client123

# Monitor processing
πŸ€– | /upload-inverter status SOLAR001_SE12345_1754151842

# Generate 7-day forecast
πŸ€– | /forecast-inverter start SOLAR001 "Cape Town" "SolarEdge" SE12345 af-south-1 P50 7 daily

# Get forecast results
πŸ€– | /forecast-inverter get SOLAR001 "Cape Town" "SolarEdge" SE12345 af-south-1 /tmp/forecasts P50

OODA Workflow Commands

The following commands map to the OODA loop (Observe, Orient, Decide, Act) for structured, agentic workflows.

Observe

# Run fault detection on an asset
πŸ€– | /detect run --asset INV-001

# List previous fault detection results
πŸ€– | /detect list

Orient

# Run diagnostics on an asset
πŸ€– | /diagnose run --asset INV-001

# List previous diagnostic results
πŸ€– | /diagnose list

Decide

# Calculate Energy-at-Risk for an asset
πŸ€– | /ear calc --asset INV-001 --horizons 24,72,168

# List previous EAR calculations
πŸ€– | /ear list

# Create a maintenance schedule
πŸ€– | /schedule create --assets INV-001 --horizon 168

# List existing schedules
πŸ€– | /schedule list

Act

# Build a bill of materials from a schedule
πŸ€– | /bom build --schedule_id <schedule_id>

# List existing bills of materials
πŸ€– | /bom list

# Create a work order from a bill of materials
πŸ€– | /order create --bom_id <bom_id>

# List existing work orders
πŸ€– | /order list

# Subscribe to job updates
πŸ€– | /track subscribe --email ops@example.com --job JOB-123

# List tracking subscriptions
πŸ€– | /track list

Configuration and Prompts

System Prompt Management

# List all available system prompts
πŸ€– | /prompts list

# Select a system prompt for current and future sessions
πŸ€– | /prompts select simple
πŸ€– | /prompts select medium
πŸ€– | /prompts select ooda

# Show current prompt
πŸ€– | /prompts current

Planning File Management (.ona)

# Set up .ona directory and .gitignore
πŸ€– | /ona setup
πŸ€– | /ona setup

# List all planning files in .ona directory
πŸ€– | /ona list
πŸ€– | /ona list

# Create planning files
πŸ€– | /ona create --content "Planning content here" --type plan
πŸ€– | /ona create --content "Analysis content here" --type insights

# Show .ona status
πŸ€– | /ona status

Command Categories Reference

System Commands

File Operations

GitHub Integration

O&M Operations

Configuration


Natural Language Integration

You can also use natural language for complex tasks:

# Code generation
πŸ€– | generate a python function that reads CSV files
πŸ€– | create a terraform module for AWS S3 bucket
πŸ€– | write unit tests for my authentication function

# Analysis and review
πŸ€– | analyze this Python file for performance issues
πŸ€– | review my repository structure and suggest improvements
πŸ€– | scan my codebase for security vulnerabilities

# Infrastructure operations
πŸ€– | deploy a microservices architecture on AWS
πŸ€– | create a Kubernetes deployment with monitoring
πŸ€– | analyze my inverter data and generate forecast

Tips and Best Practices

Command Efficiency

File Operations

GitHub Workflows

O&M Operations

Planning Integration


Troubleshooting

Command Not Found

If a command isn’t recognized:

File Operations Issues

GitHub Integration Issues

O&M Data Issues

For additional help, use /help followed by the specific command name for detailed usage information.