# nelhage/reptyr

Reparent a running program to a new terminal

Repository: https://github.com/nelhage/reptyr
Canonical: https://ross.abutalabs.com/products/reptyr
Language: C
License: MIT
License Family: permissive
Last push: 2025-11-20T19:01:58+00:00

## Health v2 (maintenance only)
Score: 56/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 53, release rhythm 35, longevity 100
- inputs: {"age_days": 5711, "days_push": 286, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 6325, forks 230 (observed 2026-08-28T04:09:41.763800+00:00)

## What it is
reptyr is a command-line utility that reparents an already-running process to a new terminal using ptrace. It lets you move long-running programs into a terminal multiplexer like tmux or screen so they survive closing an SSH session.

## Use cases
- move a running process into tmux before closing ssh
- reattach a long-running command to a new terminal
- rescue a process started without a terminal multiplexer
- keep a job running after disconnecting from ssh
- attach an existing process to screen or tmux

## When to choose
- you started a long-running process over ssh and forgot to use tmux or screen
- you need full terminal interaction including ^C, ^Z, and window resizing after reattaching
- you want a reliable alternative to the gdb-based screenify script

## When to avoid
- you only need to start new processes in a multiplexer rather than move existing ones
- you are on an OS other than Linux or FreeBSD
- you need to reattach backgrounded jobs' shell job control, which reptyr cannot fully fix

## Facets
- artifact type: cli-tool
- maturity: active
- function: developer-tools, terminal-ui, cli
- domain: developer-tools, operating-systems
- platform: bsd, cli
- tags: ptrace, terminal-multiplexer, process-management, tmux, screen, command-line, linux

## Member repositories
- nelhage/reptyr (main) score 56

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:41.763800+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:46:10.701531+00:00, confidence not recorded.
  - readme: https://github.com/nelhage/reptyr (fetched 2026-08-28T04:09:41.763800+00:00, sha f473524aad15)
- Data as of 2026-08-30T08:39:29.467469+00:00.
