Troubleshooting
ModuleNotFoundError after upgrade
Section titled “ModuleNotFoundError after upgrade”If you see ModuleNotFoundError for packages like httpx after upgrading:
# Reinstall to update all dependenciespipx reinstall oak-ci
# Or with uvuv tool install --force oak-ciThis can happen when new dependencies are added to the package but the global installation wasn’t updated.
Command not found: oak
Section titled “Command not found: oak”Using pipx or uv:
# Ensure tools are in your PATH# Add to ~/.bashrc, ~/.zshrc, or equivalent:export PATH="$HOME/.local/bin:$PATH"
# Then reload your shell:source ~/.bashrc # or ~/.zshrcUsing pip:
# Check if pip's script directory is in PATHpython3 -m pip show oak-ci
# If installed with --user flag, add to PATH:export PATH="$HOME/.local/bin:$PATH"Something feels broken
Section titled “Something feels broken”oak init is idempotent and safe to re-run. It’s the first thing to try when something isn’t working:
oak init # Re-run initialization to repair setupFor CI-specific issues after an upgrade, oak upgrade followed by oak ci sync is the standard healing path:
oak upgrade # Update templates and agent commandsoak ci sync # Sync daemon, apply migrations, re-index if neededChanges not taking effect (editable install)
Section titled “Changes not taking effect (editable install)”If you’re developing OAK and changes aren’t reflected:
For Python code changes: They should work immediately with editable mode.
For dependency or entry point changes:
make setupPermission denied errors
Section titled “Permission denied errors”Using pipx or uv: Should work without sudo (installs to ~/.local).
Using pip: Don’t use sudo with pip — use the --user flag:
pip install --user oak-ci.oak directory not found
Section titled “.oak directory not found”Run oak init first to initialize the project.
AI agent commands not showing up
Section titled “AI agent commands not showing up”# Re-run init to install agent commandsoak init --agent claudeAgent commands are installed in their native directories (.claude/commands/, .github/agents/, etc.).
Daemon won’t start
Section titled “Daemon won’t start”Check if the daemon is already running:
oak ci statusIf the port is in use or the daemon is in a bad state:
oak ci stop # Stop any existing daemonoak ci start # Start freshUninstallation
Section titled “Uninstallation”# Using pipxpipx uninstall oak-ci
# Using uvuv tool uninstall oak-ci
# Using pippip uninstall oak-ciThis removes the CLI tool but does not delete project files created by oak init. To clean up a project, run oak remove.