opencode-agents-localopencode plugin to load AGENTS.local.md as personal, per-project system instructions
2
12
近 7 天 3
20.6
生态多维模型
6 个月前
2026-02-12
快速安装与配置
opencode.json写入当前项目的 opencode.json,只对这个仓库生效。
opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["opencode-agents-local@1.0.0"]
}写入 ~/.config/opencode/opencode.json,对所有项目生效。
~/.config/opencode/opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["opencode-agents-local@1.0.0"]
}若你要在本地改造这个插件,先装到项目里再从本地路径引用。
shell
pnpm add -D opencode-agents-localopencode 启动时会通过内嵌运行时自动加载 npm 依赖并缓存至本地目录,无需手动在全局环境执行安装。
An opencode plugin that loads AGENTS.local.md from your project directory into the system prompt.
Use it to inject per-project instructions that stay out of version control — ideal for personal preferences, local overrides, or machine-specific context.
Install
Add to your opencode.json:
{
"plugin": ["opencode-agents-local"]
}
Usage
Create an AGENTS.local.md in your project root:
<!-- AGENTS.local.md -->
- Always respond in Korean
- Use pnpm instead of npm
- The dev server runs on port 4000
The file contents are automatically appended to the system prompt on every chat.
Tip: Add
AGENTS.local.mdto your.gitignore— this is meant for personal, untracked instructions.
How it works
On each chat, the plugin:
- Looks for
AGENTS.local.mdin the working directory - If found and non-empty, appends its content to the system prompt
- If missing or empty, does nothing (no errors)
License
MIT