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.
Description
The
llm-taskplugin fails when trying to execute a task with the following error:Root Cause
In
extensions/llm-task/src/llm-task-tool.ts, the fallback import path for built installations is incorrect: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 agentsEnvironment
/usr/lib/node_modules/clawdbot)Expected Behavior
The
llm-taskplugin should correctly resolve thepi-embedded-runner.jsmodule in built installations.