MCPcopy Index your code
hub / github.com/anomalyco/opencode / pickAgent

Function pickAgent

packages/app/src/context/local.tsx:109–113  ·  view source on GitHub ↗
(name: string | undefined)

Source from the content-addressed store, hash-verified

107 }
108
109 const pickAgent = (name: string | undefined) => {
110 const items = list()
111 if (items.length === 0) return
112 return items.find((item) => item.name === name) ?? items[0]
113 }
114
115 createEffect(() => {
116 const items = list()

Callers 2

currentFunction · 0.70
setFunction · 0.70

Calls 2

listFunction · 0.70
findMethod · 0.65

Tested by

no test coverage detected