MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / getExploreBudget

Function getExploreBudget

src/mcp/tools.ts:134–140  ·  view source on GitHub ↗
(fileCount: number)

Source from the content-addressed store, hash-verified

132 * but smaller ones should use fewer to avoid unnecessary overhead.
133 */
134export function getExploreBudget(fileCount: number): number {
135 if (fileCount < 500) return 1;
136 if (fileCount < 5000) return 2;
137 if (fileCount < 15000) return 3;
138 if (fileCount < 25000) return 4;
139 return 5;
140}
141
142/**
143 * Adaptive output budget for `codegraph_explore`, scaled to project size.

Callers 3

getToolsMethod · 0.85
handleExploreMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected