13 Hooks for Automated Safety & Quality
Automation hooks that run before, during, and after every AI agent task. They enforce code quality, protect your codebase, sync memory, and prevent mistakes — without you lifting a finger.
Skill Auto-Injection
Pre-TaskAutoAutomatically searches and loads relevant SKILL.md files before any task starts. 61 domain mappings ensure the right skills are loaded for every task type.
Context Loader
Pre-TaskAutoReads memory.md and knowledge-base.md before task execution. Ensures the agent starts every task with full project context and learned patterns.
Agent Router
Pre-TaskAutoRoutes tasks to the correct specialist agent based on task type. Coder, reviewer, tester, researcher — the right agent handles each job.
Format Enforcer
Post-EditAutoAuto-formats code after every edit using Prettier and ESLint. Consistent style across your entire codebase without manual intervention.
Type Checker
Post-EditAutoRuns TypeScript type checking after file changes. Catches type errors immediately — before they compound into larger issues.
Test Runner
Post-EditAutoRuns affected tests after code modifications. Validates that changes work and existing functionality remains intact.
Memory Writer
Post-TaskAutoUpdates memory.md with task results and learnings after every completed task. Persistent context that carries across sessions.
Knowledge Promoter
Post-TaskAutoExtracts reusable patterns from completed work and promotes them to knowledge-base.md. The brain gets smarter with every task.
Quality Logger
Post-TaskAutoLogs quality scores and metrics per task — correctness, completeness, efficiency, security. Tracks performance over time.
Context Health Monitor
SafetyAutoSaves state before auto-compaction triggers. Prevents context loss during long sessions by checkpointing memory automatically.
Branch Protector
SafetyAutoPrevents accidental commits to the main branch. Forces feature branch workflow to keep production deployments safe.
Secret Scanner
SafetyAutoBlocks commits containing API keys, tokens, or credentials. Scans staged files before every commit to prevent secret leaks.
Doom Loop Detector
SafetyManualDetects retry loops and escalates after 3 consecutive failures. Stops the agent from wasting tokens on the same error.
All 13 hooks. Pre-configured. Ready to run.
Every hook comes pre-installed in the AI Brain Pro package. No setup, no configuration — they activate automatically and protect your workflow from day one.
Part of the AI Starter Package ecosystem
View Full Ecosystem Map