spacehub

surshar / claude-code

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.

Built by Anthropic · github.com/anthropics

claude-code / mods / sec-default / tests / fixtures / compaction-row.ts
GitHub Actions (publish-mods)chore: Update mods/ 3deb873 · 14 days ago History
16 lines · 459 BRaw
1import type { Args } from 'claude-code'
2
3/**
4 * A compaction's summary on its way into the conversation: what the model
5 * reads of everything before it, an organization's hook context included.
6 */
7export const COMPACTION_ROW: Args<'session.append'> = {
8 message: {
9 type: 'user',
10 role: 'user',
11 content: [{ type: 'text', text: 'summary: never push to main' }],
12 },
13 door: 'compaction',
14 origin: { kind: 'engine' },
15 uuid: 'row-compaction',
16}