Claude Code Hook Monitors WIP Accumulation in AI Coding Workflows

Monitoring WIP in AI Coding Workflows
A developer has created a UserPromptSubmit hook for Claude Code that addresses a common issue in AI-assisted development: AI agents lack visibility into accumulating work-in-progress. While the AI focuses on the current prompt, uncommitted changes can grow, commits can pile up without being pushed, changesets can go unwritten, and release PRs can remain open for extended periods.
How the Hook Works
The hook implements four checks that monitor different points where code accumulates between the editor and production:
- Check 1: Uncommitted changes exceeding 200 lines (both tracked and untracked)
- Check 2: Three or more unpushed commits
- Check 3: Pushed commits without a changeset file (which prevents release PR creation)
- Check 4: Release PRs that have been open longer than 24 hours
Checks 1 and 2 run locally using git commands and execute with every prompt submission, providing near-instant feedback. Checks 3 and 4 require GitHub API calls, so they run once after each push operation.
Design Philosophy
The key design decision was to implement these as nudges rather than gates. The hook doesn't block the AI from working but instead provides visibility through two channels:
additionalContextinjected into the AI's context- A
systemMessageprinted in the user's terminal
This approach means there's no permissionDecision component - both the AI and the developer can see the current state of the workflow without interrupting the coding process.
This type of tool is useful for developers who want to maintain better oversight of their AI-assisted development workflows, particularly when working on larger projects where WIP can easily accumulate unnoticed.
📖 Read the full source: r/ClaudeAI
👀 See Also

Open-Source MCP Server Turns Claude into an Autonomous Literary Agent for Querying Publishers
The Agentic Publishing Node is an MCP server that lets Claude automatically cross-reference manuscripts against literary agent wishlists, generate query letters, format to Shunn standard, and log pitches — all from local markdown files.
Spine Swarm: Multi-Agent AI System on Visual Canvas for Non-Coding Projects
Spine Swarm is a multi-agent system that works on an infinite visual canvas to complete complex non-coding projects like competitive analysis, financial modeling, SEO audits, pitch decks, and interactive prototypes. The system uses blocks as abstractions on top of AI models that can be connected to pass context between different model types.

ANE Optimization Through Phone-Steered AI Experiments Shows Kernel Fusion Benefits
A developer ran 55 experiments on Apple Neural Engine optimization, steering the process from their phone using Claude for brainstorming. Key improvements included fusing 3 ANE kernels into 1 mega-kernel, reducing validation loss from 3.75 to 2.49 and step time from 176ms to 96ms.

Developer Tests Qwen3.5 27B vs Larger Models for Local Coding Tasks
A developer tested multiple Qwen3.5 and Nemotron models, finding Qwen3.5-27B-GGUF:UD-Q6_K_XL performs well for development tasks on existing 2x RTX 3090 hardware, with 803 pp and 25 tg/s at 256k context on vast.ai.