Skip to content

Support global AGENTS.md or custom default instructions for all sessions #23453

@RajnarayanChoudhary

Description

@RajnarayanChoudhary

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

Currently AGENTS.md is project-specific (created by /init per project). There's no way to set default instructions that apply to all sessions/projects globally.

Proposed solutions (any of these):

(1) Global AGENTS.md - Load instructions from ~/.config/opencode/AGENTS.md for all sessions
(2) Agent default system prompt - Allow setting default system prompt in global config
(3) Startup hook/initialization - Run initialization script on every new session
This would let users set preferences once (like "show code in conversation") that apply everywhere without repeating at each session.

Metadata

Metadata

Assignees

Labels

coreAnything pertaining to core functionality of the application (opencode server stuff)discussionUsed for feature requests, proposals, ideas, etc. Open discussion

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions