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

Function pickAgent

packages/opencode/src/cli/cmd/run.ts:661–668  ·  view source on GitHub ↗
(sdk: OpencodeClient)

Source from the content-addressed store, hash-verified

659 }
660
661 async function pickAgent(sdk: OpencodeClient) {
662 if (!args.agent) return undefined
663 if (args.attach) {
664 return attachAgent(sdk)
665 }
666
667 return localAgent()
668 }
669
670 async function execute(sdk: OpencodeClient) {
671 const sess = await session(sdk)

Callers 1

executeFunction · 0.70

Calls 2

attachAgentFunction · 0.85
localAgentFunction · 0.85

Tested by

no test coverage detected