Skip to content
Arxo Arxo

Interactive Mode

Interactive mode provides a guided, prompt-based workflow for running architecture analysis.

Instead of memorizing flags and options, interactive mode asks you questions:

Terminal window
arxo analyze --interactive

What it prompts for:

  1. Project path — Directory to analyze
  2. Metrics — Agent and OpenClaw architecture (default)
  3. Output file — Where to save results (optional)

Terminal window
arxo analyze --interactive

Example 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:
...

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-app

The default run includes Agent Architecture (reliability, governance, safety, coordination) and OpenClaw Architecture (config security, skill governance, observability, supply chain).

Choose how to view results:

? Save report to file?
> No, display in terminal
Yes, save as JSON → report.json
Yes, save as HTML → report.html

Custom filename:

? Save report to file?
No, display in terminal
> Yes, save as JSON
? Output filename: my-analysis.json

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)

Scenario: New to Arxo, want to explore

Terminal window
arxo analyze --interactive
  1. Select current directory (.)
  2. Run agent and OpenClaw architecture (default)
  3. Display in terminal
  4. Review results

Scenario: Downloaded a project, want to assess agent architecture

Terminal window
cd ~/Downloads/new-project
arxo analyze --interactive
  1. Current directory is auto-selected
  2. Run default metrics (agent + OpenClaw)
  3. Save as HTML to share with team

Scenario: Quick analysis without creating config

Terminal window
# Instead of:
arxo analyze --format json --output report.json
# Use interactive mode:
arxo analyze --interactive

Faster for one-off analysis.

Scenario: Teaching Arxo to team members

Interactive mode is self-documenting:

  • Runs agent and OpenClaw architecture by default
  • Guides through output options

During interactive prompts:

KeyAction
/ Navigate options
EnterSelect option
SpaceToggle checkbox (multi-select)
Ctrl+CCancel and exit
Ctrl+DCancel and exit
/Search/filter (in long lists)

You can pre-fill some answers:

Terminal window
# Pre-select path, prompt for output
arxo analyze --interactive --path ./my-project
# Pre-select everything (no prompts)
arxo analyze --path ./my-project --output report.json

When does interactive mode activate?

  • Explicit: --interactive flag
  • Implicit: Missing required arguments (not in all versions)

Interactive mode can generate config files:

Terminal window
arxo init --interactive

Prompts:

  1. Project type (TypeScript or Python)
  2. Analysis goals (CI, security, coupling, etc.)
  3. Policy strictness (Strict, Moderate, Lenient)
  4. Output preferences

Generates: .arxo.yaml with recommended settings


TaskInteractive ModeCLI 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

Error: “Interactive mode not supported in this terminal”

Cause: Running in non-interactive environment (CI, cron, etc.)

Solution: Use explicit flags:

Terminal window
arxo analyze --format json

Issue: Hangs after running --interactive

Causes:

  1. Stdin not connected: Redirected input
  2. Terminal emulator: Some terminals don’t support interactive prompts

Solutions:

  1. Check stdin:

    Terminal window
    # ❌ Won't work
    echo "" | arxo analyze --interactive
    # ✅ Works
    arxo analyze --interactive
  2. Use explicit flags:

    Terminal window
    arxo analyze --path .

Issue: File browser is slow

Solution: Enter path manually:

? Select project directory:
> Enter path manually

Issue: Project not listed in browse mode

Solution: Use absolute path:

? Enter project path: /full/path/to/project

Terminal window
$ 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 violations
Terminal window
$ 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.html
Terminal window
$ 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.json

For agent architecture analysis:

Terminal window
arxo analyze --interactive
# Choose default metrics

HTML reports are self-contained and easy to share:

Terminal window
arxo analyze --interactive
# Choose "Yes, save as HTML"
# Email/Slack the HTML file to team

Interactive mode is self-documenting:

  • Team onboarding: Walk through options together
  • Workshops: Demonstrate analysis flow
  • Documentation: Screenshot the prompts

Best of both worlds:

Terminal window
# Create config with interactive wizard
arxo init --interactive
# Run analysis with interactive prompts
arxo analyze --interactive
# Choose "Use .arxo.yaml config"

Create shell aliases:

Terminal window
# ~/.bashrc or ~/.zshrc
alias arxoi='arxo analyze --interactive'
alias arxoa='arxo analyze'
alias arxoah='arxo analyze --format html'

Usage:

Terminal window
arxoi # Interactive mode
arxoa # Agent architecture (non-interactive)
arxoah # Agent architecture report (HTML)

While interactive mode isn’t designed for automation, you can use expect or yes for demos:

Terminal window
# Auto-select first option for all prompts (not recommended)
yes "" | arxo analyze --interactive
#!/usr/bin/expect -f
spawn arxo analyze --interactive
# Select current directory
expect "Select project directory:"
send "\r"
# Confirm default metrics
expect "Run agent and OpenClaw"
send "\r"
# Don't save to file
expect "Save report to file?"
send "\r"
expect eof

Note: For real automation, use CLI flags instead.


|| 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)..."

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:

Terminal window
# Use explicit flags for screen reader compatibility
arxo analyze --quiet

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