()
| 133 | } |
| 134 | |
| 135 | const getDefaultAgentDirs = () => { |
| 136 | const cwdAgents = path.join(process.cwd(), '.agents') |
| 137 | const parentAgents = path.join(process.cwd(), '..', '.agents') |
| 138 | const homeAgents = path.join(os.homedir(), '.agents') |
| 139 | return [cwdAgents, parentAgents, homeAgents] |
| 140 | } |
| 141 | |
| 142 | /** |
| 143 | * Load agent definitions from `.agents` directories. |