feat(opencode): load repo root AGENTS for external reads#16920
feat(opencode): load repo root AGENTS for external reads#16920edmundmiller wants to merge 1 commit intoanomalyco:devfrom
Conversation
|
This PR doesn't fully meet our contributing guidelines and PR template. What needs to be fixed:
Please edit this PR description to address the above within 2 hours, or it will be automatically closed. If you believe this was flagged incorrectly, please let a maintainer know. |
|
The following comment was made by an LLM, it may be inaccurate: Based on my search, I found related PRs that address similar functionality: Potentially Related PRs:
These PRs are related to the same area (AGENTS/instructions loading) but don't appear to be exact duplicates. PR #16920 specifically focuses on loading repo-root AGENTS for external reads, which appears to be a focused improvement over the previous approaches in these related PRs. |
Summary\n- load only the repo-root AGENTS.md when reading files outside the active project\n- keep existing in-project progressive loading behavior unchanged\n- add regression coverage for external repo reads\n\n## Testing\n- cd packages/opencode && bun test test/session/instruction.test.ts\n- cd packages/opencode && bun test test/tool/read.test.ts -t "loaded instructions"\n- cd packages/opencode && bun typecheck