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

Method holdBack

src/mcp/tools.ts:7500–7502  ·  view source on GitHub ↗
(room: number)

Source from the content-addressed store, hash-verified

7498 : rankedClusters.slice(p + 1).reduce((n, other) => (other.c.maxImportance < EXACT_IMPORTANCE
7499 ? n : n + exactCostOf(other.c) + GAP_MARKER.length), 0);
7500 const holdBack = (room: number): number => (owedExact > 0
7501 ? Math.min(room, Math.max(exactCostOf(rc.c), room - owedExact))
7502 : room);
7503 if (first) {
7504 const firstCap = holdBack(cap);
7505 const section = renderCluster(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected