The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
perf(hooks): move post-edit-format and post-edit-typecheck to strict-only (#757)
Charlie Tonneslan0c7deb26a344
diff --git a/.opencode/plugins/ecc-hooks.ts b/.opencode/plugins/ecc-hooks.tsindex 305331475..9193bb412 100644--- a/.opencode/plugins/ecc-hooks.ts+++ b/.opencode/plugins/ecc-hooks.ts@@ -77,7 +77,7 @@ export const ECCHooksPlugin = async ({editedFiles.add(event.path)// Auto-format JS/TS files- if (hookEnabled("post:edit:format", ["standard", "strict"]) && event.path.match(/\.(ts|tsx|js|jsx)$/)) {+ if (hookEnabled("post:edit:format", ["strict"]) && event.path.match(/\.(ts|tsx|js|jsx)$/)) {try {await $`prettier --write ${event.path} 2>/dev/null`log("info", `[ECC] Formatted: ${event.path}`)@@ -116,7 +116,7 @@ export const ECCHooksPlugin = async ({) => {// Check if a TypeScript file was editedif (- hookEnabled("post:edit:typecheck", ["standard", "strict"]) &&+ hookEnabled("post:edit:typecheck", ["strict"]) &&input.tool === "edit" &&input.args?.filePath?.match(/\.tsx?$/)) {diff --git a/hooks/hooks.json b/hooks/hooks.jsonindex b44e6bf02..2b38e94ff 100644--- a/hooks/hooks.json+++ b/hooks/hooks.json@@ -182,7 +182,7 @@"hooks": [{"type": "command",- "command": "node \"${CLAUDE_PLUGIN_ROOT}/scripts/hooks/run-with-flags.js\" \"post:edit:format\" \"scripts/hooks/post-edit-format.js\" \"standard,strict\""+ "command": "node \"${CLAUDE_PLUGIN_ROOT}/scripts/hooks/run-with-flags.js\" \"post:edit:format\" \"scripts/hooks/post-edit-format.js\" \"strict\""}],"description": "Auto-format JS/TS files after edits (auto-detects Biome or Prettier)"@@ -192,7 +192,7 @@"hooks": [{"type": "command",- "command": "node \"${CLAUDE_PLUGIN_ROOT}/scripts/hooks/run-with-flags.js\" \"post:edit:typecheck\" \"scripts/hooks/post-edit-typecheck.js\" \"standard,strict\""+ "command": "node \"${CLAUDE_PLUGIN_ROOT}/scripts/hooks/run-with-flags.js\" \"post:edit:typecheck\" \"scripts/hooks/post-edit-typecheck.js\" \"strict\""}],"description": "TypeScript check after editing .ts/.tsx files"