[PR #624] [MERGED] feat: configurable instructions #9668

Closed
opened 2026-02-16 18:13:57 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opencode/pull/624
Author: @rekram1-node
Created: 7/2/2025
Status: Merged
Merged: 7/2/2025
Merged by: @thdxr

Base: devHead: feat/configurable-instructions


📝 Commits (1)

  • 480e7f8 feat: configurable instructions

📊 Changes

4 files changed (+50 additions, -0 deletions)

View changed files

📝 packages/opencode/config.schema.json (+7 -0)
📝 packages/opencode/src/config/config.ts (+4 -0)
📝 packages/opencode/src/session/system.ts (+15 -0)
📝 packages/opencode/src/util/filesystem.ts (+24 -0)

📄 Description

Fixes: #583

Changes:

  • optional instructions config key (array of files to read for instructions)
  • behaviors:
    • instructions won't override the defaults only extend (AGENTS.md, CLAUDE.md, CONTEXT.md)
    • instructions can be globs (notably for .cursor/rules/*.mdc support)

This was just an initial pass happy to make any changes.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/anomalyco/opencode/pull/624 **Author:** [@rekram1-node](https://github.com/rekram1-node) **Created:** 7/2/2025 **Status:** ✅ Merged **Merged:** 7/2/2025 **Merged by:** [@thdxr](https://github.com/thdxr) **Base:** `dev` ← **Head:** `feat/configurable-instructions` --- ### 📝 Commits (1) - [`480e7f8`](https://github.com/anomalyco/opencode/commit/480e7f8b167f92a4cc64addceb2297ee596704fd) feat: configurable instructions ### 📊 Changes **4 files changed** (+50 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/opencode/config.schema.json` (+7 -0) 📝 `packages/opencode/src/config/config.ts` (+4 -0) 📝 `packages/opencode/src/session/system.ts` (+15 -0) 📝 `packages/opencode/src/util/filesystem.ts` (+24 -0) </details> ### 📄 Description Fixes: #583 Changes: - optional `instructions` config key (array of files to read for instructions) - behaviors: * instructions **won't override** the defaults only extend (AGENTS.md, CLAUDE.md, CONTEXT.md) * instructions can be globs (notably for .cursor/rules/*.mdc support) This was just an initial pass happy to make any changes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 18:13:57 -05:00
yindo closed this issue 2026-02-16 18:13:57 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9668