mirror of
https://github.com/anomalyco/opencode.git
synced 2026-07-19 13:53:44 +00:00
fix(tui): stabilize reload connection state
This commit is contained in:
parent
24ab17e718
commit
8dd993d25a
16 changed files with 224 additions and 19 deletions
16
.opencode/plugins/sample-agent.ts
Normal file
16
.opencode/plugins/sample-agent.ts
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
export default {
|
||||
id: "sample-agent-plugin",
|
||||
setup: async (ctx) => {
|
||||
await ctx.agent.transform((agents) => {
|
||||
agents.update("sample-plugin-agent", (agent) => {
|
||||
agent.description = "Example subagent registered by .opencode/plugins/sample-agent.ts"
|
||||
agent.mode = "subagent"
|
||||
agent.prompt = [
|
||||
"You are the sample plugin agent for this repository.",
|
||||
"Use this agent to verify that local plugin auto-discovery can add agents.",
|
||||
"Keep responses concise and explain which plugin registered you when asked.",
|
||||
].join("\n")
|
||||
})
|
||||
})
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue