Prompt file imported from keisato848/daidoko (
.github/prompts/agent-suite-step-03-harden-hooks.prompt.md). Copyright stays with the author.
Use the current implementation status as the baseline for this step.
Focus only on step 03: harden the hook layer in .github/hooks/agent-suite.json and the matching scripts in scripts/agent/.
Task:
- Improve
SessionStart,PreToolUse, orPostToolUsebehavior without adding long-running or opaque hook logic. - Keep guardrails aligned with local-data retention and the no-destructive-command policy.
- Prefer deterministic checks and compact
systemMessageoutput. - Update the status document if hook coverage or remaining gaps change.
Validation:
- Run
pnpm agent:customizations:test. - Run
node scripts/agent/validate-changed-slice.mjs --files .github/hooks/agent-suite.json scripts/agent/hook-session-start.mjs scripts/agent/hook-pretool-guard.mjs scripts/agent/hook-posttool-validate.mjs docs/agent-suite-implementation-status.md.
Output:
- The hook changes.
- The validations run.
- Any remaining fixture tests that should be added next.