mirror of
https://github.com/Heretek-AI/opencode.git
synced 2026-11-22 00:45:12 -10:00
15 lines
381 B
TypeScript
15 lines
381 B
TypeScript
import { Effect, Plugin } from "@opencode-ai/plugin/effect"
|
|
|
|
export default Plugin.define({
|
|
id: "config-effect-plugin",
|
|
effect: (ctx) =>
|
|
ctx.agent
|
|
.transform((agents) => {
|
|
agents.update("effect-configured", (agent) => {
|
|
agent.description = ctx.options.description
|
|
agent.mode = "subagent"
|
|
})
|
|
})
|
|
.pipe(Effect.asVoid),
|
|
})
|