Clooks: A Persistent Hook Runtime for Claude Code

Performance Problem and Solution
As Claude Code pipelines grow more robust, hook counts can increase from 2-3 lightweight checks to 50+ handlers across SessionStart, PreToolUse, PostToolUse, and Stop events. Each hook typically spawns a fresh Node or Python process, creating latency from pure spawning overhead that accumulates per session.
Clooks solves this by providing a persistent HTTP daemon that handles hook dispatch without process spawning. Since Claude Code already supports HTTP hooks natively, Clooks gives you a daemon worth pointing them at.
Performance Benchmarks
From the source benchmarks:
- Single invocation: ~34.6ms → ~0.31ms
- Full session (120 calls): ~3,986ms → ~23ms
Core Features
clooks migrate: Converts existing hooks automatically with one command, no rewriting required- LLM handlers: Call Claude directly from hook config with prompt templates and variables like $TRANSCRIPT, $GIT_DIFF, $ARGUMENTS
- Batch grouping: Handlers with the same batchGroup share a single API call
- Dependency resolution:
depends: [other-handler]syntax with topological sorting into parallel execution waves - Plugin system: Package reusable hook sets as clooks-plugin.yaml, install with
clooks add - Hot reload: Edit the manifest, daemon picks it up instantly
- Metrics + cost tracking:
clooks statsshows what's firing,clooks coststracks LLM spend
Getting Started
Install with: npm install -g /clooks
Then run: clooks migrate
Current version is v0.5, actively developed with rough edges. The tool is open to contributions.
📖 Read the full source: r/ClaudeAI
👀 See Also

German Bureaucracy Assistant Prompt for Claude: Structured Legal Correspondence
A detailed system prompt for Claude that turns the AI into a structured assistant for German bureaucracy, contracts, insurance disputes, and official letters, with strict fact-checking and DIN 5008 formatting.

Optio: Orchestrating AI Coding Agents in Kubernetes from Ticket to PR
Optio is an open-source orchestration system that turns tickets into merged pull requests using AI coding agents like Claude Code or Codex. It handles the full lifecycle in isolated Kubernetes pods with a feedback loop that auto-resumes agents on CI failures or review feedback.

7-Agent System in Claude Code Replaces Sprint Ceremonies for Solo Devs
A PM-turned-solo-dev built a 7-agent team inside Claude Code that handles QA, PR review, security, architecture, and backlog grooming — all triggered by a single /review command.

Query Your Jira Sprint Via Claude MCP: Instant Status, Unassigned Issues, and Blocked Items
A Reddit user connected Jira to Claude via MCP, then asked plain‑language questions about their sprint and got instant clean tables — no clicking through boards.