MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / add

Function add

src/cli/slash-commands.ts:580–580  ·  view source on GitHub ↗
(id?: string)

Source from the content-addressed store, hash-verified

578 const estTokens = Math.ceil(charCount / 3.5);
579 const ctxWindow = 32_768; // conservative; actual model may have more
580 const pct = Math.round((estTokens / ctxWindow) * 100);
581 const filled = Math.min(40, Math.floor(pct / 2.5));
582 const bar = '█'.repeat(filled) + '░'.repeat(Math.max(0, 40 - filled));
583 const roleStats = new Map<string, { count: number; chars: number }>();

Callers 1

handleSlashCommandFunction · 0.70

Calls 2

addMethod · 0.80
hasMethod · 0.45

Tested by

no test coverage detected