# Troubleshooting Guide > **Status (2026-12-02):** euxis has no command that runs one named agent. The `euxis ""` lines on this page show a planned interface and do not run today. Agents run inside `euxis squad deploy`, `euxis combo run` and the verification playbooks behind `euxis check`, `triage` and `review`. This comprehensive troubleshooting guide covers common issues, diagnostic commands, and solutions for the Euxis Fleet system. --- ## Quick Diagnostics Before diving into specific issues, run these diagnostic commands to assess your system state. ### euxis health Command The `euxis health` command performs fleet integrity checks: ```bash euxis health ``` **Expected output (healthy system):** ``` === FLEET HEALTH === Agents: 11 registered, 0 orphans Providers: claude, gemini, ollama Build: OK (cmake-build/) Tests: 1063 passed Registry: agents/registry.db valid ``` **Interpreting Health Check Output:** | Status | Meaning | |--------|---------| | `HEALTH CHECK PASSED` | All critical checks passed | | `PASSED with N warning(s)` | Functional but some optional features degraded | | `HEALTH CHECK FAILED` | Critical issues require attention | **Command Options:** ```bash # JSON output for programmatic parsing euxis health --json ``` ### euxis certify-readiness Command The `euxis certify-readiness` command performs an 18-domain certification readiness assessment: ```bash euxis certify-readiness . ``` **Expected output:** ``` === CERTIFICATION READINESS ASSESSMENT === Target: . Framework: general Status: READY WITH GAPS Confidence: 78% --- Critical Gates --- ✔ Commit signing 20/20 signed ✔ Unit test health 1063/1063 passed (100%) ✔ Build integrity cmake build OK ✔ Documentation accuracy README, CHANGELOG, docs/ present ``` Run with `--json` for machine-readable output, or `--framework soc2` for SOC2-specific assessment. ### Common Health Check Failures | Check | Failure Message | Quick Fix | |-------|-----------------|-----------| | Build Integrity | `cmake build failed` | Run `make cpp-configure && make cpp-build` | | Test Health | `tests failing` | Run `make cpp-test` to see failures | | Provider Connectivity | `NOT FOUND` | Install provider CLI or set API key | | Orphan Detection | `ORPHAN AGENTS` | Add agent to registry or remove file | | Documentation Drift | `STALE` | Update docs to match current CLI surface | --- ## Installation Issues ### PATH Not Configured Correctly **Symptoms:** ```bash $ euxis bash: euxis: command not found ``` **Diagnosis:** ```bash # Check if ~/.euxis/euxis-bin is in PATH echo $PATH | tr ':' '\n' | grep -E "(home|~).*bin" # Check if euxis symlink exists ls -la ~/.euxis/euxis-bin/euxis ``` **Solution:** 1. **Add ~/.euxis/euxis-bin to PATH** (choose your shell): **For Bash (~/.bashrc or ~/.bash_profile):** ```bash echo 'export PATH="$HOME/.euxis/euxis-bin:$PATH"' >> ~/.bashrc source ~/.bashrc ``` **For Zsh (~/.zshrc):** ```bash echo 'export PATH="$HOME/.euxis/euxis-bin:$PATH"' >> ~/.zshrc source ~/.zshrc ``` **For Fish (~/.config/fish/config.fish):** ```fish set -Ux fish_user_paths $HOME/.euxis/euxis-bin $fish_user_paths ``` 2. **Rebuild if binary is missing:** ```bash cd ~/.euxis && make cpp-configure && make cpp-build ``` 3. **Verify installation:** ```bash which euxis euxis --version ``` ### Missing Dependencies **C++ Toolchain Required:** ```bash # Check compiler version g++ --version # GCC 14+ required # or clang++ --version # Clang 18+ required # Check CMake version cmake --version # 3.28+ required # macOS: brew install cmake gcc # Ubuntu/Debian: sudo apt update && sudo apt install cmake g++-14 libsqlite3-dev libsodium-dev # Arch Linux: sudo pacman -S cmake gcc sqlite libsodium ``` **Optional but recommended tools:** ```bash # jq - JSON processing (highly recommended) brew install jq # macOS apt install jq # Ubuntu/Debian # gh - GitHub CLI (for PR operations) brew install gh # macOS apt install gh # Ubuntu/Debian # timeout/gtimeout - Command timeouts brew install coreutils # macOS (provides gtimeout) ``` ### Permission Issues **Symptoms:** ``` Permission denied: ~/.euxis/euxis-bin/euxis ``` **Solution:** ```bash # Fix executable permissions on all scripts chmod +x ~/.euxis/euxis-bin/* # Fix directory permissions chmod 755 ~/.euxis chmod 755 ~/.euxis/euxis-bin chmod 755 ~/.euxis/core/lib # Verify ls -la ~/.euxis/euxis-bin/euxis # Should show: -rwxr-xr-x ``` ### Shell Compatibility **Zsh Users:** ```bash # Add to ~/.zshrc export PATH="$HOME/.euxis/euxis-bin:$PATH" export EUXIS_HOME="$HOME/.euxis" # Reload source ~/.zshrc ``` **Bash Users:** ```bash # Add to ~/.bashrc (or ~/.bash_profile on macOS) export PATH="$HOME/.euxis/euxis-bin:$PATH" export EUXIS_HOME="$HOME/.euxis" # Reload source ~/.bashrc ``` **Fish Users:** ```fish # Run these commands set -Ux PATH $HOME/.euxis/euxis-bin $PATH set -Ux EUXIS_HOME $HOME/.euxis ``` --- ## Provider Issues ### Provider Not Responding **Symptoms:** ``` [euxis] ERROR: Provider command timed out after 300s ``` **Diagnosis:** ```bash # Test provider directly which claude && claude --version which gemini && gemini --version which ollama && ollama --version # Claude runs through your Claude Code login: check the CLI answers claude -p "say ok" ``` **Solutions:** 1. **Increase timeout:** ```text export EUXIS_API_TIMEOUT=600 # 10 minutes euxis architect "Your task" ``` 2. **Use a different provider:** ```text # Use local provider (faster, no API calls) euxis architect "Your task" ollama # Use Gemini instead euxis architect "Your task" gemini ``` 3. **Check provider service status:** ```bash # For Ollama (local) ollama list # For Claude claude doctor ``` ### API Key Configuration **Claude (Anthropic):** euxis does not use an Anthropic API key. The claude provider runs the Claude Code CLI, which uses the session you logged in with (the Keychain on macOS, `~/.claude` on Linux). `ANTHROPIC_API_KEY` and `ANTHROPIC_AUTH_TOKEN` are removed from its environment, so a key in your shell cannot take over. ```bash claude # log in once euxis triage . # SYSTEM INITIALIZATION shows "claude (Binary found, CLI auth preserved)" ``` **Gemini (Google):** ```bash # Set API key export GOOGLE_API_KEY="AIza..." # Or use gcloud authentication gcloud auth application-default login ``` **OpenAI:** ```bash # Set API key export OPENAI_API_KEY="sk-..." ``` **Ollama (Local):** ```bash # No API key needed - ensure service is running ollama serve & # Pull required model ollama pull llama3.2 ``` ### Rate Limiting **Symptoms:** ``` [euxis] ERROR: Rate limit exceeded [euxis] ERROR: 429 Too Many Requests ``` **Solutions:** 1. **Wait and retry:** ```bash sleep 60 && euxis architect "Your task" ``` 2. **Use a different provider:** ```text # Fall back to local provider euxis architect "Your task" ollama ``` 3. **Reduce concurrent agents:** there is no setting for this yet; a manifest with fewer agents per phase runs fewer at once. ### Timeout Errors **Symptoms:** An agent stops at its mode's time budget (45 seconds for triage, 3 minutes for check, 10 minutes for forensic review) and the verdict reports it as timed out; with no trusted verdict the exit code is 5. **Solutions:** ```bash # Route coding, architecture and audit tasks to a faster provider export EUXIS_DEFAULT_CODING_PROVIDER=ollama euxis triage . # Check if timeout command is available which timeout gtimeout # Install if missing (macOS) brew install coreutils ``` ### Provider Fallback Not Working **Symptoms:** Agent fails instead of falling back to alternate provider. **Diagnosis:** ```bash # List available providers euxis health 2>&1 | grep -A 15 "Provider Connectivity" ``` **Solution:** Provider fallback is automatic via the tiering system. Manually specify a provider: ```text # Force specific provider euxis architect "Your task" claude euxis architect "Your task" gemini euxis architect "Your task" ollama ``` **Tiering map (default providers by agent):** | Agent Type | Default Provider | Fallback | |------------|------------------|----------| | orchestrator, architect | claude | gemini | | researcher, deep-researcher | gemini | claude | | debugger, tester | goose | claude | | butler, librarian | ollama | claude | | optimizer | qwen | claude | --- ## Agent Issues ### Agent Not Found **Symptoms:** ``` [euxis] ERROR: Unknown agent: my-agent ``` **Diagnosis:** ```bash # List all registered agents euxis --help 2>&1 | grep -A 100 "Available Agents" # Check registry (SQLite) python3 -c "import sqlite3; conn = sqlite3.connect('$HOME/.euxis/data/agents/registry.db'); print('\n'.join([r[0] for r in conn.execute('SELECT id FROM agents ORDER BY id')]))" # Check registry (JSON fallback) jq -r '.agents[].id' ~/.euxis/data/agents/registry.json | sort ``` **Solutions:** 1. **Verify agent name spelling:** ```text # Common agents euxis architect "Task" # Not 'architekt' euxis debugger "Task" # Not 'bugfixer' euxis tester "Task" # Not 'unittester' ``` 2. **Check if prompt file exists:** ```bash ls ~/.euxis/agents/prompts/core/*.txt ls ~/.euxis/agents/prompts/fleet/*.txt ``` 3. **Re-sync registry:** ```bash euxis health # Will report orphans/ghosts ``` ### Agent Stuck in Active State **Symptoms:** Agent appears to be running but never completes. **Diagnosis:** ```bash # Check lifecycle state cat ~/.euxis/data/runtime/lifecycle/*.state # List active agents for f in ~/.euxis/data/runtime/lifecycle/*.state; do agent=$(basename "$f" .state) state=$(cat "$f") [[ "$state" == "active" ]] && echo "$agent: $state" done # Check transition log tail -20 ~/.euxis/data/runtime/lifecycle/transitions.jsonl ``` **Solutions:** 1. **Clean stale agents (30 minute timeout):** ```bash # Manual cleanup via the agents library source ~/.euxis/core/lib/agents.sh cleanup_stale_agents 1800 # 30 minutes ``` 2. **Force state reset:** ```bash # Reset specific agent echo "idle" > ~/.euxis/data/runtime/lifecycle/architect.state # Reset all agents for f in ~/.euxis/data/runtime/lifecycle/*.state; do echo "idle" > "$f" done ``` 3. **Check for hung processes:** ```bash ps aux | grep -E "(claude|gemini|ollama)" | grep -v grep # Kill if necessary pkill -f "claude.*--print" ``` ### Agent Returning Empty Response **Symptoms:** ``` [euxis] ERROR: Architect returned empty output ``` or ``` CERTIFICATION FAILED at Gate 4 (Semantic). ``` **Diagnosis:** ```text # Enable debug mode export EUXIS_DEBUG=1 euxis architect "Test task" # Check provider directly echo "Hello" | claude --print --model claude-sonnet-4-20250514 ``` **Solutions:** 1. **Check API key validity:** ```bash # Test provider directly claude --version claude "Say hello" ``` 2. **Check prompt file integrity:** ```bash # Validate prompt has required sections head -50 ~/.euxis/agents/prompts/core/architect.txt # Check frontmatter grep -E "^(agent_id|role|version):" ~/.euxis/agents/prompts/core/architect.txt ``` 3. **Check model availability:** ```bash # For Ollama, verify model is pulled ollama list # Pull if missing ollama pull llama3.2 ``` ### Agent Lifecycle Errors **Symptoms:** ``` [euxis] ERROR: Agent lifecycle transition failed ``` **Solutions:** ```bash # Ensure lifecycle directory exists mkdir -p ~/.euxis/data/runtime/lifecycle # Check permissions chmod 755 ~/.euxis/data/runtime/lifecycle # Clear corrupted state files rm ~/.euxis/data/runtime/lifecycle/*.state ``` --- ## Memory Issues ### Memory File Corruption **Symptoms:** ``` [euxis] ERROR: Path traversal rejected ``` or garbled content in memory.md files. **Diagnosis:** ```bash # Check memory file validity cat ~/.euxis/data/runtime/projects/*/*/memory.md | head -20 # Look for binary or corrupted content file ~/.euxis/data/runtime/projects/*/*/memory.md ``` **Solutions:** 1. **Reset memory for specific agent:** ```bash PROJECT="your-project" AGENT="architect" # Backup cp ~/.euxis/data/runtime/projects/$PROJECT/$AGENT/memory.md{,.bak} # Reset echo "# Memory: $AGENT" > ~/.euxis/data/runtime/projects/$PROJECT/$AGENT/memory.md ``` 2. **Restore from backup:** ```bash cp ~/.euxis/data/runtime/projects/$PROJECT/$AGENT/memory.md.bak \ ~/.euxis/data/runtime/projects/$PROJECT/$AGENT/memory.md ``` ### Memory Pruning Not Working **Symptoms:** Memory files grow unbounded (>500 lines). **Diagnosis:** ```bash # Check memory file sizes wc -l ~/.euxis/data/runtime/projects/*/*/memory.md ``` **Solutions:** 1. **Run manual pruning:** ```bash source ~/.euxis/core/lib/memory.sh # Prune specific memory file prune_memory ~/.euxis/data/runtime/projects/myproject/architect/memory.md # Prune all memory in a project prune_project_memory ~/.euxis/data/runtime/projects/myproject ``` 2. **Configure pruning thresholds:** ```bash # In your shell profile export EUXIS_MEMORY_MAX_LINES=500 # Trigger pruning above this export EUXIS_MEMORY_RECENT_KEEP=100 # Keep this many recent entries ``` 3. **Run Kaizen maintenance:** ```bash euxis kaizen prune ``` ### Semantic Drift Warnings **Symptoms:** ``` [DRIFT] New fact negates existing: Uses JWT authentication [DRIFT] Value change detected -- old: 'jwt', new: 'oauth' ``` **Understanding Drift:** Semantic drift occurs when new memories contradict existing knowledge. This is a feature, not a bug -- it helps maintain knowledge consistency. **Solutions:** 1. **Review and resolve contradictions:** ```bash # View drift warnings grep -r "\[DRIFT\]" ~/.euxis/data/runtime/projects/*/*/memory.md ``` 2. **Manually resolve:** ```bash source ~/.euxis/core/lib/memory.sh # Supersede old knowledge with new resolve_memory_contradiction \ ~/.euxis/data/runtime/projects/myproject/architect/memory.md \ "Project uses OAuth 2.0 for authentication" \ "architect" \ "supersede" ``` 3. **Keep both versions:** ```bash resolve_memory_contradiction \ ~/.euxis/data/runtime/projects/myproject/architect/memory.md \ "New authentication approach" \ "architect" \ "keep_both" ``` ### Cross-Agent Memory Not Accessible **Symptoms:** Agents cannot access sibling agent memories. **Diagnosis:** ```bash # Check project structure ls -la ~/.euxis/data/runtime/projects/myproject/ # Verify memory files exist for other agents ls ~/.euxis/data/runtime/projects/myproject/*/memory.md ``` **Solutions:** 1. **Ensure correct project context:** ```text export EUXIS_PROJECT="myproject" euxis architect "Your task" ``` 2. **Check directory structure:** ```bash # Memories should be at: ~/.euxis/data/runtime/projects/{project}/{agent}/memory.md mkdir -p ~/.euxis/data/runtime/projects/myproject/architect touch ~/.euxis/data/runtime/projects/myproject/architect/memory.md ``` --- ## TUI Issues ### TUI Not Launching **Symptoms:** The ETX terminal UI does not start. **Solutions:** 1. **Rebuild the project:** ```bash cd ~/.euxis && make cpp-build ``` 2. **Check the ETX binary:** ```bash ls -la cmake-build/apps/etx/euxis-etx ``` 3. **Run directly:** ```bash ./cmake-build/apps/etx/euxis-etx ``` ### Display Rendering Issues **Symptoms:** - Garbled characters - Missing borders - Overlapping text **Solutions:** 1. **Check terminal compatibility:** ```bash # Verify terminal supports 256 colors echo $TERM # Should be: xterm-256color, screen-256color, etc. # Set if missing export TERM=xterm-256color ``` 2. **Check terminal size:** ```bash # Minimum recommended: 80x24 tput cols tput lines # Resize terminal window if needed ``` 3. **Try different terminal emulator:** - **Recommended:** iTerm2 (macOS), Alacritty, Kitty, WezTerm - **Avoid:** Basic Terminal.app (limited Unicode support) 4. **Reset terminal:** ```bash reset euxis-etx ``` ### Keyboard Shortcuts Not Working **Symptoms:** Ctrl+K, Ctrl+T, etc. don't respond. **Solutions:** 1. **Check for conflicting terminal shortcuts:** - macOS Terminal: Preferences > Keyboard - iTerm2: Preferences > Keys - Disable any Ctrl+ shortcuts that conflict 2. **Try alternative shortcuts:** ``` F1 - Help F2 - Welcome screen F5 - Refresh ? - Keyboard reference Escape - Go back ``` 3. **List all bindings:** Press `F1` or `?` in the TUI to see the full keyboard reference. ### Theme Not Applying **Symptoms:** TUI starts with wrong colors or default theme. **Solutions:** 1. **Cycle themes manually:** Press `Ctrl+T` in the TUI to cycle through themes. 2. **Reset theme config:** ```bash # Check current config cat ~/.euxis/config/etx.json # Reset to default echo '{"theme": "etx-liquid-glass", "locale": "en"}' > ~/.euxis/config/etx.json ``` 3. **Available themes:** - `etx-liquid-glass` (default) - `etx-midnight` - `etx-sunrise` - Custom themes via CSS --- ## Performance Issues ### Slow Agent Dispatch **Symptoms:** Agent takes >5 seconds just to start. **Diagnosis:** ```text # Enable performance logging export EUXIS_DEBUG=1 euxis architect "Test" ## Metrics Location Performance metrics are stored at `~/.euxis/metrics/events.jsonl`. # Check performance metrics tail -20 ~/.euxis/metrics/events.jsonl ``` **Solutions:** 1. **Use SQLite registry (faster):** ```bash # Check if using SQLite ls ~/.euxis/agents/registry.db # If not, migrate python3 ~/.euxis/euxis-ops/migrate-registry-to-sqlite.py ``` 2. **Disable performance tracking (if not needed):** ```bash export EUXIS_PERF_DISABLE=1 ``` 3. **Use local provider for speed:** ```text euxis architect "Quick task" ollama ``` ### High Latency **Symptoms:** ``` [euxis] WARN: LATENCY BUDGET EXCEEDED: provider_execution took 8500ms (budget: 5000ms) ``` **Solutions:** 1. **Adjust performance budgets:** ```bash export EUXIS_PROMPT_BUDGET_MS=1000 export EUXIS_API_TIMEOUT=600 ``` 2. **Use tiered providers:** - Complex tasks: claude (slower, higher quality) - Simple tasks: ollama (faster, local) 3. **Check network:** ```bash # Test API latency time curl -s https://api.anthropic.com/v1/health ``` ### Memory Usage **Symptoms:** System slows down during fleet dispatch. **Solutions:** 1. **Limit parallel agents:** ```bash export EUXIS_MAX_PARALLEL=3 euxis dispatch manifest.json ``` 2. **Use hierarchical mode:** ```bash euxis squad deploy build "Task" --mode hierarchical ``` 3. **Monitor resource usage:** ```bash # Watch memory during dispatch watch -n 1 'ps aux | grep -E "(python|claude|ollama)" | awk "{sum+=\$4} END {print sum\"%\"}"' ``` ### Token Budget Exceeded **Symptoms:** ``` [euxis] ERROR: Token budget exceeded [euxis] WARN: Response truncated ``` **Solutions:** 1. **Reduce task complexity:** Break large tasks into smaller subtasks. 2. **Use summarization:** ```text euxis librarian "Summarize the following: [long text]" ``` 3. **Increase max turns:** ```text export EUXIS_MAX_TURNS=50 euxis architect "Complex task" ``` --- ## Common Error Messages | Error Message | Cause | Solution | |---------------|-------|----------| | `Unknown agent: X` | Agent ID doesn't exist in registry | Check spelling, run `euxis --help` for list | | `Provider 'X' not configured` | Provider CLI not installed | Install provider: `brew install X` | | `Build failed` | Compilation error | Run `make cpp-configure && make cpp-build` | | `Rate limit exceeded` | API rate limiting | Wait 60s or use different provider | | `Provider command timed out` | API too slow / network issue | Increase `EUXIS_API_TIMEOUT` | | `Path traversal rejected` | Security: Invalid file path | Use valid paths within `~/.euxis` | | `Invalid model name` | Malformed model identifier | Check `EUXIS_*_MODEL` env vars | | `Registry not found` | Missing agents/registry.db | Rebuild with `make cpp-build` | | `Task input rejected: prompt injection` | Security: Dangerous input | Remove injection patterns from task | | `jq not installed` | Missing JSON processor | Run `brew install jq` or `sudo pacman -S jq` | | `CERTIFICATION FAILED at Gate X` | Certification check failed | See gate output for specific issue | | `MISMATCH: filename vs agent_id` | Prompt file name != agent_id | Rename file to match agent_id | | `ORPHAN AGENTS` | Agent file not in registry | Add to registry or remove file | | `GHOST ENTRIES` | Registry entry has no file | Create prompt file or remove entry | --- ## Getting Help ### Debug Mode Enable comprehensive debug logging: ```text # Enable debug mode export EUXIS_DEBUG=1 # Run command euxis architect "Your task" # Debug output shows: # - Prompt assembly timing # - Provider selection # - Memory retrieval # - Performance metrics ``` ### Log Locations | Log Type | Location | |----------|----------| | Agent output | `~/.euxis/data/runtime/projects/{project}/{agent}/output/*.md` | | Agent audit | `~/.euxis/data/runtime/projects/{project}/{agent}/audit.md` | | Agent memory | `~/.euxis/data/runtime/projects/{project}/{agent}/memory.md` | | Performance metrics | `~/.euxis/metrics/events.jsonl` | | Lifecycle transitions | `~/.euxis/data/runtime/lifecycle/transitions.jsonl` | | Dispatch logs | `${TMPDIR:-/tmp}/euxis_dispatch_*/*.log` | | Certification logs | `${TMPDIR:-/tmp}/euxis_cert_*.log` | | Bus messages | `~/.euxis/data/runtime/bus/pipes/*/*.msg` | ### Generating a Bug Report ```bash # Generate comprehensive system report { echo "=== Euxis Bug Report ===" echo "Date: $(date)" echo "" echo "=== System Info ===" uname -a echo "Compiler: $(g++ --version 2>/dev/null | head -1 || clang++ --version 2>/dev/null | head -1)" echo "CMake: $(cmake --version | head -1)" echo "" echo "=== Euxis Version ===" euxis --version 2>&1 echo "" echo "=== Health Check ===" euxis health 2>&1 echo "" echo "=== Provider Status ===" for p in claude gemini ollama; do which $p 2>/dev/null && echo "$p: $(which $p)" || echo "$p: not found" done } > ~/euxis-bug-report.txt echo "Report saved to ~/euxis-bug-report.txt" ``` ### Reporting Issues 1. **GitHub Issues:** [github.com/sebastienrousseau/euxis/issues](https://github.com/sebastienrousseau/euxis/issues) 2. **Include in your report:** - Bug report output (see above) - Steps to reproduce - Expected vs actual behavior - Relevant log snippets 3. **Security issues:** report privately at https://github.com/sebastienrousseau/euxis/security/advisories/new (do not post publicly; see SECURITY.md) --- **Still stuck?** Run `euxis health --json` and open an issue with the output attached.