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

Function createCompactCanUseTool

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

Source from the content-addressed store, hash-verified

1123}
1124
1125export function createCompactCanUseTool(): CanUseToolFn {
1126 return async () => ({
1127 behavior: 'deny' as const,
1128 message: 'Tool use is not allowed during compaction',
1129 decisionReason: {
1130 type: 'other' as const,
1131 reason: 'compaction agent should only produce text summary',
1132 },
1133 })
1134}
1135
1136async function streamCompactSummary({
1137 messages,

Callers 1

streamCompactSummaryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected