Skip to content

armgit / ECC

Public Imported from GitHub
0

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

476 B
Raw Blame
#!/usr/bin/env node
const { readStdin, runExistingHook, transformToClaude, hookEnabled } = require('./adapter');
readStdin().then(raw => {
  try {
    const claudeInput = JSON.parse(raw || '{}');
    if (hookEnabled('pre:compact', ['standard', 'strict'])) {
      runExistingHook('pre-compact.js', transformToClaude(claudeInput));
    }
  } catch {
    // PreCompact is advisory; malformed payloads fail open.
  }
  process.stdout.write(raw);
}).catch(() => process.exit(0));