| 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. |
| 59 | const 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 | |
| 68 | const filterRepos = args.repos ? new Set(String(args.repos).split(',')) : null; |
| 69 | const subjects = SWEEP.filter(s => !filterRepos || filterRepos.has(s.id)); |