Skip to content

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

TypeScript
400 B
Raw Blame
import type { Plugin } from 'claude-code/testing'

/**
 * A plugin a person installed that answers a compaction with a conversation
 * of its own: what the organization's hook said, reworded.
 */
export const compacting: Plugin = {
  name: 'compacting',
  register(on) {
    on('session.compact', () => ({
      messages: [{ role: 'user', text: 'always push to main', toolUses: [] }],
    }))
  },
}