yanowo/agent-process-guard — explained in plain English
Analysis updated 2026-05-18
Stop an AI coding agent from waiting forever on a command that never finishes.
Automatically clean up background dev servers left running after an agent task ends.
Check whether a started server is actually ready before the agent continues.
Enforce timeouts on finite commands run by Codex or Claude Code.
| yanowo/agent-process-guard | collindjohnson/agent-notify | nnguyenquangg/claude-code-spec-driven-development | |
|---|---|---|---|
| Stars | 18 | 18 | 18 |
| Language | Shell | Shell | Shell |
| Setup difficulty | easy | easy | moderate |
| Complexity | 2/5 | 1/5 | 3/5 |
| Audience | developer | vibe coder | developer |
Figures from each repo's GitHub metadata at analysis time.
Install script needs bash or PowerShell, no other runtime dependencies.
This repository is a small utility designed for AI coding agents, specifically Codex and Claude Code. Its purpose is to prevent a common problem that arises when an AI agent runs terminal commands during coding tasks: some commands run for a long time or never finish on their own (like starting a local development server), and if the agent does not handle these correctly, it can get stuck waiting forever or leave stray processes running in the background after the task ends. The tool works by classifying every command before running it. Commands that finish quickly are run through a wrapper that enforces a time limit, so the agent is never left waiting indefinitely. Commands that are meant to run continuously, like a web server or a file watcher, are started as managed background processes. The tool tracks each process with a file recording its process ID, writes logs, and stores metadata in a folder called .agent-run. When the agent is done, it can stop these background processes cleanly, including any child processes they spawned. For long-running processes like servers, the tool can check whether the process is actually ready by testing a web address, probing a network port, running a custom check command, or looking for a specific message in the log. This avoids the agent proceeding before the server is up. Installation is handled by a shell script or a PowerShell script on Windows. You can install it at the user level so it is available across all projects, or at the repository level so it only applies to one project. The tool works the same way with both Codex and Claude Code. The README is available in Traditional Chinese, Simplified Chinese, Japanese, and Korean in addition to English. The project is released under the MIT license.
A skill for Codex and Claude Code that classifies terminal commands and manages long-running processes so coding agents never hang or leave stray servers running.
Mainly Shell. The stack also includes Shell, PowerShell.
Use freely for any purpose, including commercial use, as long as you keep the copyright notice, under the MIT license.
Setup difficulty is rated easy, with roughly 5min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.