You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue has been addressed by PR #9625 which implements the autoexec prompt functionality.\n\nThe implementation adds:\n- autoexec_prompt field to config schema\n- Modified Session.initialize to execute autoexec prompts at session start\n- Allows users to set prompts that automatically execute, such as 'if gh command ready then do not use git command'
Activity
github-actions commentedon Jan 20, 2026
This issue might be a duplicate of existing issues. Please check:
These issues all relate to automatically executing or setting default instructions/prompts without having to repeat them in each conversation.
Feel free to ignore if your specific use case is different from these.
zer0Black commentedon Jan 20, 2026
该功能具备,请把该要求写入全局的AGENTS.md中,全局AGENTS.md与 opencode.json配置文件在同级目录。看下图:
我的全局AGENTS.md示例:
AndersHsueh commentedon Jan 20, 2026
This issue has been addressed by PR #9625 which implements the autoexec prompt functionality.\n\nThe implementation adds:\n- autoexec_prompt field to config schema\n- Modified Session.initialize to execute autoexec prompts at session start\n- Allows users to set prompts that automatically execute, such as 'if gh command ready then do not use git command'