diff --git a/packages/agent/src/index.ts b/packages/agent/src/index.ts index 5f1af9494e3..476e3937f5c 100644 --- a/packages/agent/src/index.ts +++ b/packages/agent/src/index.ts @@ -184,6 +184,7 @@ async function loadCharacterTryPath(characterPath: string): Promise { // Try different path resolutions in order const pathsToTry = [ characterPath, // exact path as specified + path.resolve(process.cwd(), '..', '..', characterPath), // relative to root directory path.resolve(process.cwd(), characterPath), // relative to cwd path.resolve(process.cwd(), "agent", characterPath), // Add this path.resolve(__dirname, characterPath), // relative to current script