Skip to content

feat(opencode): load repo root AGENTS for external reads#16920

Closed
edmundmiller wants to merge 1 commit intoanomalyco:devfrom
edmundmiller:feat/read-main-agents
Closed

feat(opencode): load repo root AGENTS for external reads#16920
edmundmiller wants to merge 1 commit intoanomalyco:devfrom
edmundmiller:feat/read-main-agents

Conversation

@edmundmiller
Copy link
Copy Markdown

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

@github-actions github-actions bot added the needs:compliance This means the issue will auto-close after 2 hours. label Mar 10, 2026
@github-actions
Copy link
Copy Markdown
Contributor

This PR doesn't fully meet our contributing guidelines and PR template.

What needs to be fixed:

  • PR description is missing required template sections. Please use the PR template.

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.

@github-actions
Copy link
Copy Markdown
Contributor

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:

  1. PR feat(opencode): load .opencode/AGENTS.md instructions #12096 - feat(opencode): load .opencode/AGENTS.md instructions

    • Directly related to AGENTS loading functionality
  2. PR fix(read): skip external directory prompt for global AGENTS.md #13753 - fix(read): skip external directory prompt for global AGENTS.md

    • Addresses external reads with AGENTS.md handling
  3. PR feat: support .local.md variants for instruction files #16108 - feat: support .local.md variants for instruction files

    • Related to instruction file loading patterns

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.

@edmundmiller edmundmiller deleted the feat/read-main-agents branch March 10, 2026 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs:compliance This means the issue will auto-close after 2 hours.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant