# Windows child process lifecycle

> Windows child process lifecycle is an open-source agent skill for developer tools. Keeps long Windows child processes from orphaning, double-writing or corrupting outputs. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/JinNing6/Noosphere/tree/main/shared_skills/active/windows-child-process-lifecycle
- **Repository:** https://github.com/jinning6/noosphere
- **GitHub stars:** 18
- **License:** Apache-2.0
- **Skill name:** windows-child-process-lifecycle
- **Collection:** https://github.com/JinNing6/Noosphere
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

This skill tells an agent how to manage long-running jobs launched from a PowerShell harness on Windows. Its central rule is that the real child process tree, not the parent shell's reported result, decides whether a job is still running. Before launch it asks for a single foreground writer, a timeout longer than the expected runtime, checkpoints stored outside the authoritative output folder, and outputs written only after full validation.

When a timeout, cancellation or terminal loss happens, the skill directs the agent not to relaunch right away. Instead it looks up matching processes through Win32_Process, excludes its own diagnostic shell, and monitors any surviving child read-only using metadata such as file times, sizes and identity counts. A healthy child may be allowed to finish; otherwise the verified process tree must be terminated and confirmed gone before a new run starts.

Recovery focuses on detecting outputs changed after the parent command ended, comparing generation timestamps, backups and freeze hashes, and rejecting stale or mixed checkpoints. The guidance is written for PowerShell on Windows and is framed around Python, Node, build, test and model workloads, with no bundled scripts.

## When your agent uses it

> Prevent and recover orphaned child processes, concurrent writers, and post-timeout output corruption on Windows. Use when a PowerShell harness launches long-running Python, Node, benchmark, model, build, or test processes; when a tool timeout or terminal close may kill only the parent shell; or when output files change after a command was reported terminated.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/JinNing6/Noosphere/tree/HEAD/shared_skills/active/windows-child-process-lifecycle)
- [License: Apache-2.0](https://github.com/JinNing6/Noosphere/tree/HEAD/shared_skills/active/windows-child-process-lifecycle)

## Features

- **Child process tree checks:** Finds orphaned processes by command line, parent ID and resource usage after a timeout or terminal loss.
- **Single-writer discipline:** Ensures only one process writes authoritative outputs for a given execution freeze.
- **Checkpoint and freeze binding:** Ties resumable checkpoints to code, config and freeze hashes so stale rows are not reused.
- **Concurrent overwrite detection:** Compares timestamps, backups and outcome counts to spot outputs changed after a command ended.
- **Safe termination and relaunch:** Terminates a verified process tree and confirms descendants are gone before rerunning.
- **Completion checklist:** Lists conditions a run must meet, such as complete identity coverage and matching hashes, before it counts as clean.

## Good for

- Recover a benchmark run after the PowerShell tool timed out
- Check whether a Python training job is still running after a terminal closed
- Find and stop orphaned Node or build processes on Windows
- Verify that output files were not overwritten by a second concurrent run
- Resume a long evaluation from checkpoints without mixing stale results

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/windows-child-process-lifecycle` to use it in all your projects:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/JinNing6/Noosphere.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/windows-child-process-lifecycle &&
cp -R "$tmp/shared_skills/active/windows-child-process-lifecycle" ~/.claude/skills/windows-child-process-lifecycle &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/windows-child-process-lifecycle` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/windows-child-process-lifecycle` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/JinNing6/Noosphere.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/windows-child-process-lifecycle &&
cp -R "$tmp/shared_skills/active/windows-child-process-lifecycle" ~/.agents/skills/windows-child-process-lifecycle &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/windows-child-process-lifecycle` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/windows-child-process-lifecycle` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/JinNing6/Noosphere.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/windows-child-process-lifecycle &&
cp -R "$tmp/shared_skills/active/windows-child-process-lifecycle" ~/.cursor/skills/windows-child-process-lifecycle &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/windows-child-process-lifecycle` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/JinNing6/Noosphere.git --path shared_skills/active/windows-child-process-lifecycle
```

Or copy the folder to `~/.gemini/skills/windows-child-process-lifecycle` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/windows-child-process-lifecycle`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/JinNing6/Noosphere.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/windows-child-process-lifecycle &&
cp -R "$tmp/shared_skills/active/windows-child-process-lifecycle" ~/.copilot/skills/windows-child-process-lifecycle &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/windows-child-process-lifecycle` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/JinNing6/Noosphere.git
```

Then copy `Noosphere/shared_skills/active/windows-child-process-lifecycle` into your agent's skills folder as `windows-child-process-lifecycle`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When does Windows child process lifecycle trigger?

It applies when a PowerShell harness launches long-running Python, Node, benchmark, model, build or test processes, when a timeout or terminal close may have killed only the parent shell, or when output files change after a command was reported terminated.

### What does Windows child process lifecycle need to run?

The skill is a single SKILL.md with no scripts. Its steps rely on PowerShell and Win32_Process queries on Windows.

### Does Windows child process lifecycle kill processes automatically?

No. It says a healthy child may finish naturally, and termination is only advised when necessary, after verifying the process tree.

### Which AI clients does Windows child process lifecycle support?

The content does not tie it to a specific client, so it follows the shared agent skills format.

### How do I install Windows child process lifecycle in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/windows-child-process-lifecycle to use it in all your projects, or to .claude/skills/windows-child-process-lifecycle in one project.

### Does Windows child process lifecycle run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Windows child process lifecycle?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Windows child process lifecycle?

The closest alternatives to Windows child process lifecycle are Cleanup agent team node processes, Batch script progress, Credit stall mid orchestration revive collision, Principle make operations idempotent and Windows NPM run script shell.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Cleanup agent team node processes](https://ai-powered.com/skills/cleanup-agent-team-node-processes): Cleanup agent team node processes is an open-source agent skill for developer tools.
- [Batch script progress](https://ai-powered.com/skills/batch-script-progress): Batch script progress is an open-source agent skill for developer tools.
- [Credit stall mid orchestration revive collision](https://ai-powered.com/skills/credit-stall-mid-orchestration-revive-collision): Credit stall mid orchestration revive collision is an open-source agent skill for developer tools.
- [Principle make operations idempotent](https://ai-powered.com/skills/principle-make-operations-idempotent): Principle make operations idempotent is an open-source agent skill for developer tools.
- [Windows NPM run script shell](https://ai-powered.com/skills/windows-npm-run-script-shell): Windows NPM run script shell is an open-source agent skill for developer tools.
- [Enterprise agent ops](https://ai-powered.com/skills/enterprise-agent-ops): Enterprise agent ops is an open-source agent skill for developer tools.
- [Use pnpm](https://ai-powered.com/skills/use-pnpm): Use pnpm is an open-source agent skill for developer tools.
- [Script generator](https://ai-powered.com/skills/script-generator): Script generator is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/windows-child-process-lifecycle
