Aurelis

Aurelis Interactive Shell Guide

Complete guide to the enterprise-grade interactive development environment

๐Ÿš€ Overview

The Aurelis Interactive Shell is a powerful, AI-powered development environment that provides real-time access to GitHubโ€™s cutting-edge AI models for code analysis, generation, and optimization. It combines the convenience of a command-line interface with the intelligence of modern AI systems.

๐ŸŽฏ Key Features

โœจ Core Capabilities

๐Ÿ”ง Enterprise Features

๐Ÿš€ Getting Started

Starting the Shell

# Start interactive shell
aurelis shell

# Start with specific configuration
aurelis shell --config /path/to/config.yaml

# Start in debug mode
aurelis shell --debug

First-Time Setup Verification

# Check system status
aurelis:project> status

# Verify GitHub models
aurelis:project> models

# Test AI functionality
aurelis:project> generate "simple hello world function"

๐Ÿ“‹ Command Reference

๐Ÿ†˜ Help & Navigation

help - Get Command Information

# Show all available commands
aurelis:project> help

# Get detailed help for specific command
aurelis:project> help analyze
aurelis:project> help generate
aurelis:project> help search

status - System Status Check

# Show comprehensive system status
aurelis:project> status

# Example output:
# โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
# โ”‚ Component           โ”‚ Status      โ”‚ Details             โ”‚
# โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
# โ”‚ Session Manager     โ”‚ โœ“ Active    โ”‚                     โ”‚
# โ”‚ Model Orchestrator  โ”‚ โœ“ Active    โ”‚ 9 models available  โ”‚
# โ”‚ Code Analyzer       โ”‚ โœ“ Active    โ”‚                     โ”‚
# โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

analyze - Comprehensive Code Analysis

# Analyze a specific file
aurelis:project> analyze src/main.py

# Example output with metrics:
# โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
# โ”‚ Metric          โ”‚ Value       โ”‚
# โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
# โ”‚ Lines of Code   โ”‚ 245         โ”‚
# โ”‚ File Size       โ”‚ 8,432 bytes โ”‚
# โ”‚ Language        โ”‚ python      โ”‚
# โ”‚ Complexity      โ”‚ Medium      โ”‚
# โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
# Search for code patterns
aurelis:project> search "function definition"
aurelis:project> search "import pandas"
aurelis:project> search "class"

# Example output with highlighted matches:
# File: src/utils/helpers.py
#   42: def process_data(input_data):
#   58: def validate_input(data):
# 
# File: src/models/analyzer.py
#   15: def analyze_code(content):
#   89: def generate_report():

๐Ÿค– AI-Powered Development

generate - AI Code Generation

# Generate code from natural language
aurelis:project> generate "REST API endpoint for user authentication"
aurelius:project> generate "Python function to parse CSV files"
aurelis:project> generate "React component for file upload"

# The AI will generate complete, production-ready code with:
# - Proper error handling
# - Documentation
# - Type hints (where applicable)
# - Best practices implementation

explain - Code Explanation

# Get detailed explanation of code
aurelis:project> explain src/complex_algorithm.py

# Example output:
# โ•ญโ”€ Code Explanation: complex_algorithm.py โ”€โ•ฎ
# โ”‚                                          โ”‚
# โ”‚ ## Purpose                               โ”‚
# โ”‚ This module implements a sophisticated   โ”‚
# โ”‚ sorting algorithm with O(n log n)        โ”‚
# โ”‚ complexity...                            โ”‚
# โ”‚                                          โ”‚
# โ”‚ ## Key Components                        โ”‚
# โ”‚ - quicksort(): Main sorting function     โ”‚
# โ”‚ - partition(): Helper for pivot          โ”‚
# โ”‚ - median_of_three(): Optimization       โ”‚
# โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ

docs - AI Documentation Generation

# Generate comprehensive documentation
aurelis:project> docs src/api/endpoints.py

# Generates professional documentation including:
# - Function/class descriptions
# - Parameter documentation  
# - Return value specifications
# - Usage examples
# - Error handling information

# Option to save to file:
# Save documentation to file? [y/N]: y
# Enter filename [generated_docs.md]: api_documentation.md
# โœ“ Documentation saved to api_documentation.md

fix - Automated Code Fixing

# Analyze and fix code issues
aurelis:project> fix src/buggy_code.py

# AI will identify and suggest fixes for:
# - Syntax errors
# - Logic issues
# - Performance problems
# - Security vulnerabilities
# - Code style violations

refactor - Intelligent Refactoring

# Get refactoring suggestions
aurelis:project> refactor src/legacy_code.py

# AI provides suggestions for:
# - Code structure improvements
# - Performance optimizations
# - Readability enhancements
# - Design pattern applications
# - Maintainability improvements

test - Test Generation

# Generate comprehensive tests
aurelis:project> test src/calculator.py

# AI generates:
# - Unit tests with multiple scenarios
# - Edge case testing
# - Mock implementations
# - Test data fixtures
# - Performance benchmarks

๐ŸŽ›๏ธ Configuration & Management

config - Configuration Management

# Show current configuration
aurelis:project> config

# Show specific configuration section
aurelis:project> config models
aurelis:project> config security

# Modify configuration
aurelis:project> config set models.primary gpt-4o
aurelis:project> config set cache.ttl 7200

models - AI Model Management

# List available GitHub models
aurelis:project> models

# Example output:
# โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
# โ”‚ Model               โ”‚ Provider โ”‚ Best For                    โ”‚
# โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
# โ”‚ codestral-2501      โ”‚ Mistral  โ”‚ Code generation             โ”‚
# โ”‚ gpt-4o              โ”‚ OpenAI   โ”‚ Complex reasoning           โ”‚
# โ”‚ gpt-4o-mini         โ”‚ OpenAI   โ”‚ Fast responses              โ”‚
# โ”‚ cohere-command-r    โ”‚ Cohere   โ”‚ Documentation               โ”‚
# โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

# Test model connectivity
aurelis:project> models health

# Switch primary model
aurelis:project> models switch gpt-4o

session - Session Management

# Show current session information
aurelis:project> session

# List all available sessions
aurelis:project> session list

# Session management operations
aurelis:project> session save current_work
aurelis:project> session load previous_session
aurelis:project> session clear
aurelis:project> session export session_backup.json

tools - Available Tools

# List registered development tools
aurelis:project> tools

# Example output:
# โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
# โ”‚ Tool             โ”‚ Description                         โ”‚ Status โ”‚
# โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
# โ”‚ Code Analyzer    โ”‚ Static analysis and quality check   โ”‚ Active โ”‚
# โ”‚ Model Router     โ”‚ AI model routing and management     โ”‚ Active โ”‚
# โ”‚ Session Manager  โ”‚ Development session persistence     โ”‚ Active โ”‚
# โ”‚ Context Manager  โ”‚ Code context and file tracking      โ”‚ Active โ”‚
# โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

๐Ÿ› ๏ธ Utility Commands

history - Command History

# Show recent command history
aurelis:project> history

# Example output:
# โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
# โ”‚ Index โ”‚ Command                             โ”‚
# โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
# โ”‚   1   โ”‚ analyze src/main.py                 โ”‚
# โ”‚   2   โ”‚ generate "API endpoint"             โ”‚
# โ”‚   3   โ”‚ search "function"                   โ”‚
# โ”‚   4   โ”‚ docs src/utils.py                   โ”‚
# โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

clear - Clear Screen

# Clear screen and redisplay welcome
aurelis:project> clear

exit / quit - Exit Shell

# Exit shell with session saving
aurelis:project> exit
aurelis:project> quit

# Output:
# Saving session...
# โœ“ Session saved successfully
# Goodbye!

๐ŸŽจ Shell Features

Auto-completion

The shell provides intelligent auto-completion for:

# Command completion
aurelis:project> gen<TAB>
generate

# File path completion  
aurelis:project> analyze src/<TAB>
src/main.py    src/utils.py    src/config.py

# Context-aware completion
aurelis:project> config <TAB>
show    set    get    models    cache    security

aurelis:project> session <TAB>
list    load    save    clear    info    export    import

Syntax Highlighting

Progress Indicators

Long-running operations show progress:

aurelis:project> generate "complex algorithm"
โ ‹ Generating code... 

aurelius:project> search "large codebase query"
โ ™ Searching... [โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ] 1,247 files scanned

Rich Output Formatting

Results are displayed in professional tables and panels:

# Tables for structured data
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ Metric          โ”‚ Value       โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ Lines of Code   โ”‚ 1,247       โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

# Panels for detailed information
โ•ญโ”€ Generated Code โ”€โ•ฎ
โ”‚                  โ”‚
โ”‚ def authenticate โ”‚
โ”‚   # Complete     โ”‚
โ”‚   # implementation
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ

# Syntax-highlighted code blocks
import pandas as pd
import numpy as np

def process_data(df: pd.DataFrame) -> pd.DataFrame:
    """Process the input dataframe."""
    return df.dropna()

๐Ÿ”ง Advanced Usage

Workflow Integration

Development Workflow Example

# 1. Start new development session
aurelis:project> session clear

# 2. Analyze existing codebase
aurelis:project> search "TODO"
aurelis:project> analyze src/main.py

# 3. Generate new functionality
aurelis:project> generate "user authentication middleware"

# 4. Create documentation
aurelis:project> docs src/auth/middleware.py

# 5. Generate tests
aurelis:project> test src/auth/middleware.py

# 6. Save session for later
aurelis:project> session save auth_implementation

Code Review Workflow

# 1. Analyze code quality
aurelis:project> analyze src/new_feature.py

# 2. Get refactoring suggestions
aurelis:project> refactor src/new_feature.py

# 3. Identify potential issues
aurelis:project> fix src/new_feature.py

# 4. Generate comprehensive documentation
aurelis:project> docs src/new_feature.py

# 5. Create test coverage
aurelis:project> test src/new_feature.py

Batch Operations

# Search and analyze multiple files
aurelis:project> search "deprecated"
# Then analyze each file found:
aurelis:project> analyze src/legacy/old_api.py
aurelis:project> refactor src/legacy/old_api.py

# Generate documentation for entire module
aurelis:project> docs src/api/
aurelius:project> docs src/models/
aurelis:project> docs src/utils/

Session Management Best Practices

# Create themed sessions for different work
aurelis:project> session save frontend_work
aurelis:project> session save backend_api
aurelis:project> session save testing_suite

# Export sessions for backup
aurelis:project> session export frontend_backup.json

# Load specific session for context
aurelis:project> session load backend_api

๐Ÿ›ก๏ธ Security & Compliance

Secure File Handling

# The shell automatically filters sensitive files
aurelis:project> analyze config/secrets.yaml
# โŒ Access denied: File contains sensitive information

# Safe file patterns are allowed
aurelius:project> analyze src/main.py
# โœ“ Analysis complete

# Check security settings
aurelis:project> config security

Audit Trail

# All commands are logged for audit purposes
aurelis:project> analyze src/financial_data.py
# Logged: User analyzed financial_data.py at 2025-06-17 14:30:00

# Session activities are tracked
aurelis:project> session info
# Session ID: abc123-def456
# Commands executed: 15
# Files accessed: 8
# Start time: 2025-06-17 14:00:00

๐Ÿšจ Troubleshooting

Common Issues

1. AI Model Connectivity

# Check model status
aurelis:project> models health

# If models are unavailable:
# โŒ Model connectivity issue: Check GitHub token

# Test GitHub token
aurelis:project> config test

2. File Access Issues

# If file cannot be accessed:
aurelis:project> analyze /restricted/file.py
# โŒ File not found or access denied

# Check current directory
aurelis:project> pwd
# Check file permissions and paths

3. Performance Issues

# Check current configuration
aurelis:project> config processing

# Adjust concurrent requests if needed
aurelis:project> config set processing.concurrent_requests 3

# Clear cache if needed
aurelis:project> config set cache.enabled false

4. Session Issues

# If session fails to save:
aurelis:project> session clear
aurelis:project> session save new_session

# Check session directory permissions
aurelis:project> config show | grep session

๐Ÿ“Š Performance Tips

Optimization Strategies

  1. Use specific commands instead of general analysis for better performance
  2. Enable caching for frequently accessed operations
  3. Limit concurrent requests based on your API quotas
  4. Use appropriate models for different tasks (e.g., gpt-4o-mini for quick responses)
  1. Start with search to understand codebase structure
  2. Use analyze for specific files rather than entire directories
  3. Generate documentation incrementally rather than all at once
  4. Save sessions to preserve context between work periods

๐ŸŽฏ Next Steps: