MCPcopy Index your code
hub / github.com/codeaashu/claude-code / dedup

Function dedup

src/tools/BashTool/prompt.ts:167–170  ·  view source on GitHub ↗
(arr: T[] | undefined)

Source from the content-addressed store, hash-verified

165// Dedup here before inlining into the prompt — affects only what the model sees,
166// not sandbox enforcement. Saves ~150-200 tokens/request when sandbox is enabled.
167function dedup<T>(arr: T[] | undefined): T[] | undefined {
168 if (!arr || arr.length === 0) return arr
169 return [...new Set(arr)]
170}
171
172function getSimpleSandboxSection(): string {
173 if (!SandboxManager.isSandboxingEnabled()) {

Callers 1

getSimpleSandboxSectionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected