Winclaude Alive banner
AlexAI-MCP AlexAI-MCP

Winclaude Alive

Development community

Description

Keeps your Windows terminal and Claude Code alive. Never wait for a dead terminal like waiting for a text from your ex at 3am.

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

winclaude-alive

Never lose Claude again. Keeps your Windows terminal and Claude Code alive — because waiting for a dead terminal is like waiting for a text from your ex at 3am.

윈도우에서 터미널이 죽어도 클로드가 살아있게. 밤새 죽은 터미널 붙잡고 안절부절하지 마세요.

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)

Why?

Dead terminals have the same energy as staring at your phone at 3am hoping your ex finally texts back. Nothing good happens, and you just lose time. `winclaude-alive` keeps Claude running so you can stop waiting on ghosts.

Features

  • Attaches to an existing Claude Code process if one is already running, or starts a new one if not.
  • Monitors for repeated error patterns in the watchdog log and restarts Claude when the threshold is reached.
  • Monitors Claude activity files under %USERPROFILE%\.claude and restarts Claude after an inactivity timeout.
  • Uses a single-instance lock file so only one watchdog can own the same working directory at a time.
  • Trims the watchdog log to the newest 5000 lines to keep the log bounded.
  • Supports configurable restart delay, polling interval, error window, and inactivity timeout.
  • Resolves portable defaults dynamically from the script location and %USERPROFILE% instead of hardcoded machine paths.
  • Supports -ClaudeCommand so the script can launch claude from PATH or a full executable path.
  • Supports -WhatIf to print the effective configuration and exit without starting the watchdog loop.

Requirements

  • Windows
  • PowerShell 5.1 or later
  • Claude Code CLI installed

Quick Start

Run the script from the directory you want Claude Code to use, or pass `-WorkDir` explicitly:

powershell -NoProfile -ExecutionPolicy Bypass -File .\winclaude_alive.ps1

Parameters

Name Default Description
WorkDir Script directory ($PSScriptRoot), falling back to the current location Working directory used before attaching or launching Claude Code.
`Res