Skip to content

Troubleshooting Guide

This guide helps you resolve common issues when using SuperQode.

Table of Contents

Installation Issues

"ModuleNotFoundError" when running SuperQode

Problem:

ModuleNotFoundError: No module named 'superqode'

Solutions:

  1. Install in development mode:

    cd /path/to/superqode
    pip install -e .
    

  2. Check Python path:

    python -c "import superqode; print('Import successful')"
    

  3. Reinstall:

    pip uninstall superqode
    pip install superqode
    

OpenCode Installation Issues

Problem:

โŒ OpenCode not found. Install with: npm i -g opencode-ai

Solutions:

  1. Install OpenCode globally:

    npm i -g opencode-ai
    

  2. Verify Node.js and npm:

    node --version
    npm --version
    

  3. Check npm permissions (macOS/Linux):

    sudo npm i -g opencode-ai
    

  4. Manual installation:

    # Clone and install manually
    git clone https://github.com/sst/opencode.git
    cd opencode
    npm install
    npm run build
    npm link  # or npm install -g .
    

Agent Connection Problems

"Agent not found" or "Agent unavailable"

Problem:

โŒ Agent 'opencode' not found

Solutions:

  1. Check OpenCode installation:

    opencode --version
    

  2. Verify agent configuration in YAML:

    team:
      qe:
        roles:
          unit_tester:
            enabled: true
    

  3. Restart SuperQode:

    # Exit TUI and restart
    superqode
    

"ACP connection failed"

Problem:

โŒ ACP agent not available for unit_tester, providing graceful degradation

Solutions:

  1. Install OpenCode:

    npm i -g opencode-ai
    

  2. Check OpenCode status:

    opencode --help
    

  3. Verify ACP adapter:

    npm install -g @josephschmitt/opencode-acp  # If using ACP adapter
    

QE Analysis Failures

"No tests detected" when tests exist

Problem:

Verdict: ๐ŸŸ  NO TESTS DETECTED - Add tests for proper validation

Solutions:

  1. Check test file patterns:
  2. Default patterns: **/*test* **/*spec* **/test_*
  3. Python: test_*.py, *test*.py
  4. JavaScript: *.test.js, *.spec.js

  5. Run with verbose logging:

    superqe run . --verbose
    

  6. Check file permissions:

    find . -name "*test*" -type f -ls
    

"Failed to parse jest JSON output"

Problem:

Failed to parse jest JSON output: Expecting value: line 1 column 1 (char 0)

Solutions:

  1. This is usually harmless - it's just Jest output parsing issues
  2. To suppress warnings, ensure proper Jest configuration
  3. Use different test runners if needed

Deep QE not showing agent activity

Problem:

superqe run . --mode deep
# Nothing appears in console

Solutions:

  1. Use verbose flag:

    superqe run . --mode deep --verbose
    

  2. Check OpenCode installation:

    opencode --version
    

  3. Verify agent roles are enabled:

    team:
      qe:
        roles:
          api_tester:
            enabled: true
          security_tester:
            enabled: true
    

Performance Issues

Slow startup time

Problem: SuperQode takes too long to start

Solutions:

  1. Use lazy loading (already implemented)
  2. Check system resources:

    top  # or htop
    

  3. Close other memory-intensive applications

High memory usage during QE

Problem: QE analysis uses too much memory

Solutions:

  1. Memory limits are already implemented (50MB per process)
  2. Run smaller analysis scopes:

    superqe run ./src --mode quick
    

  3. Use worktree isolation:

    superqe run . --worktree
    

Agent timeouts

Problem:

โฐ Agent analysis timed out after 30s

Solutions:

  1. Increase timeout:

    superqe run . --timeout 60
    

  2. Use specific roles instead of all:

    superqe run . -r unit_tester
    

Configuration Problems

YAML configuration not loading

Problem:

Configuration error: Invalid YAML format

Solutions:

  1. Validate YAML syntax:

    python -c "import yaml; yaml.safe_load(open('superqode.yaml'))"
    

  2. Check indentation (YAML is space-sensitive)

  3. Use online YAML validators

Roles not appearing

Problem: Expected roles don't show up in TUI

Solutions:

  1. Check YAML structure:

    team:
      qe:
        roles:
          unit_tester:
            enabled: true
    

  2. Restart SuperQode after config changes

  3. Use superqe init to reset configuration

Common Error Messages

"Another QE session is already running"

Problem: Multiple QE sessions conflict

Solution:

# Check running sessions
superqe status

# View session logs
superqe logs

"Permission denied" errors

Problem: File system access issues

Solutions:

# Check permissions
ls -la /path/to/project

# Fix permissions
chmod -R u+rwx /path/to/project

# Or run with sudo (not recommended)
sudo superqe run .

"Connection refused" for MCP servers

Problem: MCP servers not accessible

Solutions:

  1. Check MCP server configuration in YAML
  2. Verify MCP server processes are running:

    ps aux | grep mcp
    

  3. Restart MCP servers:

    mcp:
      servers:
        filesystem:
          command: "npx -y @modelcontextprotocol/server-filesystem /tmp"
    

"Import error" for custom modules

Problem: Python path issues in QE analysis

Solutions:

  1. Check Python environment:

    which python
    python -c "import sys; print(sys.path)"
    

  2. Use virtual environment:

    python -m venv venv
    source venv/bin/activate
    pip install superqode
    

Getting Help

If these solutions don't resolve your issue:

  1. Check the logs:

    superqe logs
    

  2. Run with debug output:

    superqode --debug qe run .
    

  3. Report issues on GitHub:

  4. GitHub Issues
  5. Include full error messages and environment details

  6. Email Support:

  7. Reach out to us at info@super-agentic.ai

  8. Community support:

  9. Check GitHub Discussions
  10. Join the SuperQode community

Health Check

Run this health check command to diagnose common issues:

python -c "
import sys
import subprocess
import shutil

print('๐Ÿ” SuperQode Health Check')
print('=' * 40)

# Check Python version
print(f'Python: {sys.version}')

# Check required packages
try:
    import textual
    print('โœ… Textual available')
except ImportError:
    print('โŒ Textual missing')

try:
    import rich
    print('โœ… Rich available')
except ImportError:
    print('โŒ Rich missing')

# Check OpenCode
if shutil.which('opencode'):
    print('โœ… OpenCode available')
    try:
        result = subprocess.run(['opencode', '--version'], capture_output=True, text=True, timeout=5)
        if result.returncode == 0:
            print(f'   Version: {result.stdout.strip()}')
        else:
            print('โŒ OpenCode not working')
    except:
        print('โŒ OpenCode check failed')
else:
    print('โŒ OpenCode not found')

# Check Node.js
if shutil.which('node'):
    try:
        result = subprocess.run(['node', '--version'], capture_output=True, text=True, timeout=5)
        print(f'โœ… Node.js: {result.stdout.strip()}')
    except:
        print('โŒ Node.js check failed')
else:
    print('โŒ Node.js not found')

print('\\n๐Ÿ’ก Run \"superqe run .\" to test QE functionality')
"