Skip to content

feat(opencode): configure local instruction filenames#33419

Draft
pranjalv123 wants to merge 1 commit into
anomalyco:devfrom
pranjalv123:configurable-instructions
Draft

feat(opencode): configure local instruction filenames#33419
pranjalv123 wants to merge 1 commit into
anomalyco:devfrom
pranjalv123:configurable-instructions

Conversation

@pranjalv123

@pranjalv123 pranjalv123 commented Jun 22, 2026

Copy link
Copy Markdown

Issue for this PR

Closes #32069

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Adds local_instruction_filenames for directory-scoped instructions such as REVIEW.md. Configured files load alongside AGENTS.md in both legacy and V2 instruction discovery, instead of being loaded eagerly through config.instructions.

The setting merges across config scopes, survives v1 config migration, and is included in the generated SDK types. Legacy discovery also compares resolved physical paths so case aliases cannot load a built-in file twice or bypass the Claude prompt opt-out.

How did you verify your code works?

  • Tested proximity loading when AGENTS.md and REVIEW.md exist in the same directory.
  • Tested V2 discovery across multiple config scopes.
  • Tested config merging, v1 migration, path alias deduplication, and the Claude prompt opt-out.
  • Ran the affected tests and typechecks in packages/opencode, packages/core, and packages/sdk/js.

Screenshots / recordings

Not applicable; this change has no UI.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@github-actions github-actions Bot added needs:compliance This means the issue will auto-close after 2 hours. and removed needs:compliance This means the issue will auto-close after 2 hours. labels Jun 22, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

@pranjalv123 pranjalv123 force-pushed the configurable-instructions branch 2 times, most recently from 87d3488 to 0e72b0b Compare June 22, 2026 20:54
@pranjalv123 pranjalv123 force-pushed the configurable-instructions branch from 0e72b0b to 157e2ef Compare June 22, 2026 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE]: Configurable filenames for proximity instruction loading

1 participant