The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
#!/usr/bin/env node
const { readStdin, hookEnabled } = require('./adapter');
readStdin().then(raw => {
if (!hookEnabled('subagent:stop:audit', ['standard', 'strict'])) {
process.stdout.write(raw);
return;
}
try {
const input = JSON.parse(raw);
const agent = input.agent_name || input.agent || 'unknown';
console.error(`[ECC] Agent completed: ${agent}`);
} catch {
// Audit-only hook: malformed payloads must not interrupt the agent loop.
}
process.stdout.write(raw);
}).catch(() => process.exit(0));