Skip to content

llm-task plugin: Cannot find module pi-embedded-runner.js #4056

@felipewilliam2

Description

@felipewilliam2

Description

The llm-task plugin fails when trying to execute a task with the following error:

Cannot find module '../../../agents/pi-embedded-runner.js'
Require stack:
- /usr/lib/node_modules/clawdbot/extensions/llm-task/src/llm-task-tool.ts

Root Cause

In extensions/llm-task/src/llm-task-tool.ts, the fallback import path for built installations is incorrect:

// Line ~28 - Current (broken):
const mod = await import("../../../agents/pi-embedded-runner.js");

// Should be:
const mod = await import("../../../dist/agents/pi-embedded-runner.js");

The module exists at /dist/agents/pi-embedded-runner.js, not /agents/pi-embedded-runner.js.

Workaround

Create a symlink as a temporary fix:

cd /usr/lib/node_modules/clawdbot
ln -s dist/agents agents

Environment

  • Clawdbot version: 2026.1.24-3
  • Installation: npm global (/usr/lib/node_modules/clawdbot)
  • OS: Linux (Ubuntu)

Expected Behavior

The llm-task plugin should correctly resolve the pi-embedded-runner.js module in built installations.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstaleMarked as stale due to inactivity

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions