MCPcopy
hub / github.com/anomalyco/opencode / current

Function current

packages/app/src/context/local.tsx:183–185  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

181 const agent = {
182 list,
183 current() {
184 return pickAgent(scope()?.agent ?? store.current)
185 },
186 set(name: string | undefined) {
187 const item = pickAgent(name)
188 if (!item) {

Callers 14

configuredFunction · 0.70
snapshotFunction · 0.70
cycleFunction · 0.70
listFunction · 0.70
setFunction · 0.70
absoluteFunction · 0.70
getFunction · 0.70
createDirSyncContextFunction · 0.70
indexFunction · 0.70
statusFunction · 0.70
readyFunction · 0.70
projectFunction · 0.70

Calls 8

resolveModelVariantFunction · 0.90
firstModelFunction · 0.85
pickAgentFunction · 0.70
scopeFunction · 0.70
findMethod · 0.65
listMethod · 0.65
getMethod · 0.65
currentMethod · 0.45

Tested by

no test coverage detected