MCPcopy Index your code
hub / github.com/colbymchenry/codegraph / detect

Function detect

scripts/agent-eval/probe-sweep.mjs:59–66  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

57// Detect signals in response text — these are the levers we've added that
58// otherwise only show up via "agent ran X more tool calls" downstream.
59const detect = (text) => ({
60 hasEntryPoints: /^### Entry Points/m.test(text),
61 hasRelatedSymbols: /^### Related Symbols/m.test(text),
62 hasFlowTrace: /^## Inline flow trace/m.test(text),
63 hasRouteManifest: /^## Routing manifest/m.test(text),
64 hasTopHandler: /^### Top handler file/m.test(text),
65 hasSmallRepoTail: /This project is small/.test(text),
66});
67
68const filterRepos = args.repos ? new Set(String(args.repos).split(',')) : null;
69const subjects = SWEEP.filter(s => !filterRepos || filterRepos.has(s.id));

Callers 1

probe-sweep.mjsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected