You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The compiled Archon binary (all platforms, tested on v0.3.6 darwin-arm64) cannot execute any workflow with provider: claude. The @anthropic-ai/claude-agent-sdk path resolution falls back to a hardcoded file:// URI from the GitHub Actions build environment.
Error
error: Module not found "/Users/runner/work/Archon/Archon/node_modules/.bun/
@anthropic-ai+claude-agent-sdk@0.2.89+27912429049419a2/node_modules/
@anthropic-ai/claude-agent-sdk/cli.js"
Repeats 3× per retry, then the node fails. All provider: claude workflow nodes are affected.
Root cause
The SDK integration code in the compiled binary contains:
pathToClaudeCodeExecutable is never set by the workflow runner, so it always falls through to the import.meta.url-derived path. Inside a bun build --compile binary, import.meta.url is frozen to the CI runner's filesystem (/Users/runner/work/Archon/Archon/...), which doesn't exist on end-user machines.
This is the same class of issue as #986 (build-time vs runtime resolution), but #986 only fixed bundled-build.ts constants — the SDK module path was not addressed.
Related: #1176 proposes claudeBinaryPath config, which would be the user-facing workaround.
Reproduction
curl -fsSL https://archon.diy/install | bash
archon version # works — v0.3.6, Build: binary
mkdir -p .archon/workflows && cat > .archon/workflows/test.yaml << 'EOF'name: testprovider: claudenodes: - id: hello prompt: "Say hello"EOF
archon workflow run test"say hello"# → error: Module not found "/Users/runner/work/Archon/Archon/..."
Workaround
Create a symlink farm at the expected path pointing to the real SDK in the Bun cache:
Description
The compiled Archon binary (all platforms, tested on v0.3.6 darwin-arm64) cannot execute any workflow with
provider: claude. The@anthropic-ai/claude-agent-sdkpath resolution falls back to a hardcodedfile://URI from the GitHub Actions build environment.Error
Repeats 3× per retry, then the node fails. All
provider: claudeworkflow nodes are affected.Root cause
The SDK integration code in the compiled binary contains:
pathToClaudeCodeExecutableis never set by the workflow runner, so it always falls through to theimport.meta.url-derived path. Inside abun build --compilebinary,import.meta.urlis frozen to the CI runner's filesystem (/Users/runner/work/Archon/Archon/...), which doesn't exist on end-user machines.This is the same class of issue as #986 (build-time vs runtime resolution), but #986 only fixed
bundled-build.tsconstants — the SDK module path was not addressed.Related: #1176 proposes
claudeBinaryPathconfig, which would be the user-facing workaround.Reproduction
Workaround
Create a symlink farm at the expected path pointing to the real SDK in the Bun cache:
This breaks if the SDK version changes in a future Archon release.
Environment
curl -fsSL https://archon.diy/install | bash)Suggested fix
Set
pathToClaudeCodeExecutableto a runtime-resolved path before calling the SDK. Options:which claudeat runtime (simplest — Claude Code is a prerequisite anyway)claudeBinaryPathconfig) and use it as the primary resolution pathcli.jsas an embedded asset inside the compiled binary