Troubleshooting
Installation Issues
Section titled “Installation Issues””Command not found: ecc”
Section titled “”Command not found: ecc””Make sure the global npm bin directory is in your PATH:
npm config get prefix # Check npm prefixexport PATH="$PATH:$(npm config get prefix)/bin"Windows PowerShell Execution Policy
Section titled “Windows PowerShell Execution Policy”If install.ps1 fails with an execution policy error:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUserYarn Berry Compatibility
Section titled “Yarn Berry Compatibility”ECC supports Yarn 4.x (Berry). If you encounter issues, ensure nodeLinker: node-modules is set in .yarnrc.yml.
Hook Issues
Section titled “Hook Issues”Hooks Not Firing
Section titled “Hooks Not Firing”- Check that hooks are installed:
cat ~/.claude/hooks.json - Verify the hook profile:
echo $ECC_HOOK_PROFILE(default:standard) - Check for disabled hooks:
echo $ECC_DISABLED_HOOKS
Hook Errors on Windows
Section titled “Hook Errors on Windows”Windows uses .cmd wrappers for Node.js scripts. If hooks fail:
- Ensure Node.js is in your PATH
- Check that
scripts/hooks/files have correct line endings (LF, not CRLF)
Agent Issues
Section titled “Agent Issues”Agent Not Found
Section titled “Agent Not Found”Agents must be in the agents/ directory with .md extension and valid YAML frontmatter.
Agent Using Wrong Model
Section titled “Agent Using Wrong Model”Check the model field in the agent’s frontmatter. Valid values: opus, sonnet, haiku.
MCP Issues
Section titled “MCP Issues”MCP Server Connection Failed
Section titled “MCP Server Connection Failed”- Verify the server is installed and accessible
- Check API keys are set in environment variables
- Keep active MCP servers under 10 to avoid context window issues
Performance
Section titled “Performance”Slow Context Loading
Section titled “Slow Context Loading”- Reduce active MCP servers
- Use selective install (language-specific profile) instead of full install
- Run
/context-budgetto analyze token usage
High Token Usage
Section titled “High Token Usage”- Use model routing (
/model-route) to match tasks with appropriate model tiers - Run
/harness-auditto identify optimization opportunities - Use
/asidefor exploratory conversations that don’t need full context