Something went wrong. Try again.
source dump of claude code forked from oppi.li/claude-code
Something went wrong. Try again.
530 B · 15 lines
TypeScript
at main
12345678910111213141516import type { Command } from '../../commands.js'import { isEnvTruthy } from '../../utils/envUtils.js'
const compact = { type: 'local', name: 'compact', description: 'Clear conversation history but keep a summary in context. Optional: /compact [instructions for summarization]', isEnabled: () => !isEnvTruthy(process.env.DISABLE_COMPACT), supportsNonInteractive: true, argumentHint: '<optional custom summarization instructions>', load: () => import('./compact.js'),} satisfies Command
export default compact