AI Commit Message Generator Git Hook with claude -p
Set up a git hook that drafts Conventional Commits messages and PR summaries with claude -p, with measured latency, the 1M-token limit and a secret filter.
4 articles tagged with #claude-code
Set up a git hook that drafts Conventional Commits messages and PR summaries with claude -p, with measured latency, the 1M-token limit and a secret filter.
Build a Claude Code PreToolUse hook that blocks rm -rf, force-push and .env reads, plus a PostToolUse test runner, with real JSON and exit codes.
Build a read-only SQLite MCP server in Python with the official SDK's MCPServer (formerly FastMCP), run it over stdio and HTTP, and call it from Claude Code with a real tool-call transcript.
Run claude -p headless for nightly jobs and CI: which permission flags really restrict tools, exit codes, JSON output, timeouts, RAM use and MCP cold starts.