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

clarp: Open Source Drop-In Replacement for Claude -p Before June 15 Metered Pricing
Claude -p moves to metered pricing on June 15. clarp is an open source CLI that replaces it for local workflows — just change the binary name from claude to clarp.

Claude Code Session Dashboard: Open Source Tool for Monitoring Multiple Sessions
An open-source dashboard that monitors multiple Claude Code sessions simultaneously, showing token usage, costs, session status, context window usage, and active subagents. Installation requires three commands: git clone, cd, and npm install && npm start.

TUI Studio: Visual Terminal UI Design Tool in Alpha
TUI Studio is a Figma-like visual editor for designing terminal user interfaces with drag-and-drop components, real-time ANSI preview, and planned export to six frameworks including Ink, BubbleTea, and Textual. Currently in alpha with non-functional exports, it's available for macOS, Windows, and Docker.

Claude Banana: A Claude Code plugin for image generation with design system awareness
Claude Banana is a Claude Code plugin that generates images using Google's Gemini API with context-aware prompt crafting. It reads Tailwind configs, CSS variables, design tokens, and existing assets to understand project visual styles.