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

Function getExploreBudget

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

Source from the content-addressed store, hash-verified

143 * but smaller ones should use fewer to avoid unnecessary overhead.
144 */
145export function getExploreBudget(fileCount: number): number {
146 if (fileCount < 500) return 1;
147 if (fileCount < 5000) return 2;
148 if (fileCount < 15000) return 3;
149 if (fileCount < 25000) return 4;
150 return 5;
151}
152
153/**
154 * 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