SIGN IN SIGN UP

feat(agents): add agent definitions file loader and opencode.json reader

- Add loadAgentDefinitions() for explicit file path loading (.md/.json/.jsonc)
- Add readOpencodeConfigAgents() for independent opencode.json(c) reading
- Extract parseMarkdownAgentFile() from loader.ts for reuse
- Refactor loader.ts to use extracted parser (-50 LOC)
- Add comprehensive test coverage (13 tests for definitions loader, 10 tests for opencode reader)
- Support inline agents + agent_definitions paths in opencode.json(c)
- Inline agents override definition-file agents (correct precedence)

Part of agent definitions enhancement (Wave 2/3)
B
Brandon Webb committed
5755a90c3b4a6a514a7ea88534d4ad1716d20924
Parent: fd28f7e
Committed by YeonGyu-Kim <code.yeon.gyu@gmail.com> on 4/15/2026, 1:57:54 AM