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

Function addTok

scripts/agent-eval/parse-session.mjs:91–91  ·  view source on GitHub ↗
(t)

Source from the content-addressed store, hash-verified

89// Token totals (main + subagents), consistent across main-thread and subagent runs.
90const tok = { gen: 0, fresh: 0, cached: 0 };
91const addTok = (t) => { tok.gen += t.gen; tok.fresh += t.fresh; tok.cached += t.cached; };
92addTok(sumTokens(join(projDir, sessionId + '.jsonl')));
93if (existsSync(subDir)) {
94 for (const f of readdirSync(subDir).filter(f => f.endsWith('.jsonl'))) addTok(sumTokens(join(subDir, f)));

Callers 1

parse-session.mjsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected