File size: 401 Bytes
3e05655
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import { define } from "@opencode-ai/plugin/v2/effect"
import { Effect } from "effect"

export default 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),
})