MCPcopy
hub / github.com/claude-code-best/claude-code / createCompactCanUseTool

Function createCompactCanUseTool

src/services/compact/compact.ts:1159–1168  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1157}
1158
1159export function createCompactCanUseTool(): CanUseToolFn {
1160 return async () => ({
1161 behavior: 'deny' as const,
1162 message: 'Tool use is not allowed during compaction',
1163 decisionReason: {
1164 type: 'other' as const,
1165 reason: 'compaction agent should only produce text summary',
1166 },
1167 })
1168}
1169
1170async function streamCompactSummary({
1171 messages,

Callers 1

streamCompactSummaryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected