PatchVault › Errors › Agent Operator Kit (23 skills)

/bin/sh: 1: claude: not found

Your agent command works in a terminal but fails under cron with "not found". cron runs /bin/sh with a minimal PATH (often /usr/bin:/bin), so tools installed under ~/.local/bin, ~/.npm-global/bin or nvm are invisible.

Check your code free (runs in your browser)

The box is pre-filled with a sample that triggers this error. Paste your own file to check it. Nothing leaves this page.

Or scan your whole repo locally (free, stdlib Python, read-only):

python3 <(curl -fsSL https://patchvault-81y.pages.dev/starters/agent-config-scan.py) .
Get the Agent Operator Kit (23 skills): $19 one-time

Why it happens

cron does not load your shell profile. Set PATH in the crontab or call the binary by absolute path (find it with `command -v claude`).

Manual fix

PATH=/home/me/.local/bin:/home/me/.npm-global/bin:/usr/local/bin:/usr/bin:/bin
*/30 * * * * flock -n /tmp/agent.lock /home/me/.local/bin/claude -p "..." >> /home/me/logs/agent.log 2>&1

Verify

Re-run your install/build and re-scan the file above. The finding should be gone. The paid fixer applies the same change across a repo: --dry-run shows the diff, --apply keeps a .bak of each file, and --rollback restores them.

Sources

Related errors

Full guide and free terminal scanner: Agent Operator Kit (23 skills). Last checked 2026-10-31.