Skip to main content

Missing CLI Binary

If claude, codex, or opencode is missing from PATH, execution fails early with a runtime error. Fix:
  • install the CLI
  • authenticate it
  • verify it is available in PATH

Invalid Working Directory

When using inDirectory('/path'), the directory must exist.
$response = AgentCtrl::claudeCode()
    ->inDirectory('/existing/path')
    ->execute('List top 3 refactors.');
// @doctest id="1b6d"

Stream Parse Failures

Malformed streaming JSON is fail-fast by default. Use response helpers to inspect tolerant-mode parsing (advanced bridge usage):
  • parseFailures()
  • parseFailureSamples()