Interactive Mode
Interactive Mode
Section titled “Interactive Mode”Interactive mode provides a guided, prompt-based workflow for running architecture analysis.
Overview
Section titled “Overview”Instead of memorizing flags and options, interactive mode asks you questions:
arxo analyze --interactiveWhat it prompts for:
- Project path — Directory to analyze
- Metrics — Agent and OpenClaw architecture (default)
- Output file — Where to save results (optional)
Getting Started
Section titled “Getting Started”Basic Interactive Analysis
Section titled “Basic Interactive Analysis”arxo analyze --interactiveExample session:
🔍 Arxo Interactive Analysis
? Select project directory: > . (current directory) Browse... Enter path manually
? Run agent and OpenClaw architecture? > Yes (default)
? Save report to file? > No, display in terminal Yes, save as JSON Yes, save as HTML
🚀 Starting analysis...✓ Agent and OpenClaw architecture analyzed
📊 Results:...Features
Section titled “Features”1. Smart Path Selection
Section titled “1. Smart Path Selection”Interactive mode offers multiple ways to select the project:
Option 1: Current Directory
? Select project directory: > . (current directory)Option 2: Browse Filesystem
? Select project directory: . (current directory) > Browse...Opens a file browser to select a directory.
Option 3: Manual Entry
? Select project directory: . (current directory) Browse... > Enter path manually
? Enter project path: /path/to/my-app2. Metrics
Section titled “2. Metrics”The default run includes Agent Architecture (reliability, governance, safety, coordination) and OpenClaw Architecture (config security, skill governance, observability, supply chain).
3. Output Format Selection
Section titled “3. Output Format Selection”Choose how to view results:
? Save report to file? > No, display in terminal Yes, save as JSON → report.json Yes, save as HTML → report.htmlCustom filename:
? Save report to file? No, display in terminal > Yes, save as JSON
? Output filename: my-analysis.json4. Configuration Detection
Section titled “4. Configuration Detection”If .arxo.yaml exists in the project:
✓ Found configuration: .arxo.yaml
? Use existing config or run defaults? > Use .arxo.yaml config Run defaults (agent + OpenClaw)Use Cases
Section titled “Use Cases”1. First-Time User
Section titled “1. First-Time User”Scenario: New to Arxo, want to explore
arxo analyze --interactive- Select current directory (
.) - Run agent and OpenClaw architecture (default)
- Display in terminal
- Review results
2. Evaluating a New Project
Section titled “2. Evaluating a New Project”Scenario: Downloaded a project, want to assess agent architecture
cd ~/Downloads/new-projectarxo analyze --interactive- Current directory is auto-selected
- Run default metrics (agent + OpenClaw)
- Save as HTML to share with team
3. No Config File
Section titled “3. No Config File”Scenario: Quick analysis without creating config
# Instead of:arxo analyze --format json --output report.json
# Use interactive mode:arxo analyze --interactiveFaster for one-off analysis.
4. Teaching/Demos
Section titled “4. Teaching/Demos”Scenario: Teaching Arxo to team members
Interactive mode is self-documenting:
- Runs agent and OpenClaw architecture by default
- Guides through output options
Keyboard Shortcuts
Section titled “Keyboard Shortcuts”During interactive prompts:
| Key | Action |
|---|---|
↑ / ↓ | Navigate options |
Enter | Select option |
Space | Toggle checkbox (multi-select) |
Ctrl+C | Cancel and exit |
Ctrl+D | Cancel and exit |
/ | Search/filter (in long lists) |
Advanced Usage
Section titled “Advanced Usage”Skip Prompts with Flags
Section titled “Skip Prompts with Flags”You can pre-fill some answers:
# Pre-select path, prompt for outputarxo analyze --interactive --path ./my-project
# Pre-select everything (no prompts)arxo analyze --path ./my-project --output report.jsonWhen does interactive mode activate?
- Explicit:
--interactiveflag - Implicit: Missing required arguments (not in all versions)
Configuration Wizard
Section titled “Configuration Wizard”Interactive mode can generate config files:
arxo init --interactivePrompts:
- Project type (TypeScript or Python)
- Analysis goals (CI, security, coupling, etc.)
- Policy strictness (Strict, Moderate, Lenient)
- Output preferences
Generates: .arxo.yaml with recommended settings
Comparison with CLI Flags
Section titled “Comparison with CLI Flags”| Task | Interactive Mode | CLI Flags |
|---|---|---|
| New users | ✅ Beginner-friendly | ❌ Must learn flags |
| Speed | ⏱️ Slower (prompts) | ⚡ Faster (direct) |
| Discoverability | ✅ Shows all options | ❌ Must read docs |
| Automation | ❌ Not scriptable | ✅ Fully scriptable |
| Memory | ✅ No flags to remember | ❌ Must remember flags |
| CI/CD | ❌ Not suitable | ✅ Perfect for CI |
Recommendation:
- Development/Exploration: Use
--interactive - Scripts/CI/CD: Use explicit flags
Troubleshooting
Section titled “Troubleshooting”Terminal Not Supported
Section titled “Terminal Not Supported”Error: “Interactive mode not supported in this terminal”
Cause: Running in non-interactive environment (CI, cron, etc.)
Solution: Use explicit flags:
arxo analyze --format jsonPrompt Doesn’t Appear
Section titled “Prompt Doesn’t Appear”Issue: Hangs after running --interactive
Causes:
- Stdin not connected: Redirected input
- Terminal emulator: Some terminals don’t support interactive prompts
Solutions:
-
Check stdin:
Terminal window # ❌ Won't workecho "" | arxo analyze --interactive# ✅ Worksarxo analyze --interactive -
Use explicit flags:
Terminal window arxo analyze --path .
Slow Browsing
Section titled “Slow Browsing”Issue: File browser is slow
Solution: Enter path manually:
? Select project directory: > Enter path manuallyCan’t Find Project
Section titled “Can’t Find Project”Issue: Project not listed in browse mode
Solution: Use absolute path:
? Enter project path: /full/path/to/projectExamples
Section titled “Examples”Example 1: Agent Architecture Check
Section titled “Example 1: Agent Architecture Check”$ arxo analyze --interactive
? Select project directory: . (current directory)? Run agent and OpenClaw architecture: Yes? Save report to file? No, display in terminal
✓ Analysis complete!✓ Agent architecture: overall_agent_health 0.72✓ No policy violationsExample 2: Generate HTML Report
Section titled “Example 2: Generate HTML Report”$ arxo analyze --interactive
? Select project directory: .? Run agent and OpenClaw architecture: Yes? Save report to file? Yes, save as HTML? Output filename: agent-report.html
✓ Report saved to: agent-report.html
$ open agent-report.htmlExample 3: Save JSON for CI
Section titled “Example 3: Save JSON for CI”$ arxo analyze --interactive
? Select project directory: .? Run agent and OpenClaw architecture: Yes? Save report to file? Yes, save as JSON? Output filename: report.json
✓ Report saved to: report.jsonTips and Best Practices
Section titled “Tips and Best Practices”1. Use the AI Preset
Section titled “1. Use the AI Preset”For agent architecture analysis:
arxo analyze --interactive# Choose default metrics2. Save HTML for Sharing
Section titled “2. Save HTML for Sharing”HTML reports are self-contained and easy to share:
arxo analyze --interactive# Choose "Yes, save as HTML"# Email/Slack the HTML file to team3. Use for Teaching
Section titled “3. Use for Teaching”Interactive mode is self-documenting:
- Team onboarding: Walk through options together
- Workshops: Demonstrate analysis flow
- Documentation: Screenshot the prompts
4. Combine with Config Files
Section titled “4. Combine with Config Files”Best of both worlds:
# Create config with interactive wizardarxo init --interactive
# Run analysis with interactive promptsarxo analyze --interactive# Choose "Use .arxo.yaml config"5. Bookmark Common Workflows
Section titled “5. Bookmark Common Workflows”Create shell aliases:
# ~/.bashrc or ~/.zshrcalias arxoi='arxo analyze --interactive'alias arxoa='arxo analyze'alias arxoah='arxo analyze --format html'Usage:
arxoi # Interactive modearxoa # Agent architecture (non-interactive)arxoah # Agent architecture report (HTML)Scripting with Interactive Mode
Section titled “Scripting with Interactive Mode”While interactive mode isn’t designed for automation, you can use expect or yes for demos:
Using yes (Limited)
Section titled “Using yes (Limited)”# Auto-select first option for all prompts (not recommended)yes "" | arxo analyze --interactiveUsing expect (Advanced)
Section titled “Using expect (Advanced)”#!/usr/bin/expect -f
spawn arxo analyze --interactive
# Select current directoryexpect "Select project directory:"send "\r"
# Confirm default metricsexpect "Run agent and OpenClaw"send "\r"
# Don't save to fileexpect "Save report to file?"send "\r"
expect eofNote: For real automation, use CLI flags instead.
Interactive Mode vs. IDE Extensions
Section titled “Interactive Mode vs. IDE Extensions”|| Feature | Interactive CLI | VSCode Extension | MCP (AI Assistant) | ||---------|----------------|------------------|-------------------| || Installation | CLI only | CLI + Extension | CLI + MCP Server | || Interface | Terminal prompts | GUI panels | Natural language | || Visualizations | Text-based | Rich webviews | AI-generated summaries | || File integration | Manual | Automatic (on save) | On-demand | || Ideal for | Quick checks, demos | Continuous development | AI-driven workflows |
Use all three:
- Interactive CLI for one-off analysis and demos
- VSCode extension for day-to-day development with visual feedback
- MCP integration for AI-assisted architecture reviews (see MCP Workflows)
MCP Example:
You: "Run architecture analysis on my project"AI: [Runs analyze_architecture via MCP] "Agent architecture: overall_agent_health 0.72, 2 findings (e.g. loop guard absence)..."Accessibility
Section titled “Accessibility”Interactive mode supports:
- Keyboard navigation: Arrow keys, Enter, Space
- Screen readers: ARIA labels on prompts
- High-contrast: Terminal color schemes respected
For users with accessibility needs:
# Use explicit flags for screen reader compatibilityarxo analyze --quietFuture Enhancements
Section titled “Future Enhancements”Upcoming features (check release notes):
- Config preview: Preview generated config before saving
- Metric search: Filter metrics by keyword
- History: Resume previous selections
- Validation: Real-time path/config validation
Next Steps
Section titled “Next Steps”- Quick Start - Getting started guide
- Running Analysis - How to run analysis
- Output Formats - Understanding reports
- MCP Workflows - AI-assisted architecture analysis
- Configuration - Config file reference
- CLI Reference - All CLI options