Skip to content

Commit 681bf17

Browse files
tjp2021claude
andcommitted
docs: explain weight tuning with examples in README
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent a224c7f commit 681bf17

1 file changed

Lines changed: 23 additions & 9 deletions

File tree

README.md

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -179,20 +179,36 @@ notify:
179179
enabled: true # macOS notifications on kill
180180

181181
# Tune signal weights (each 0.0 - 1.0)
182+
# Higher weight = that signal contributes more to the orphan score.
183+
# A process is killed when its total score >= kill_threshold (default 0.6).
184+
#
185+
# Common tuning scenarios:
186+
# Getting false positives on MCP servers while IDE is open?
187+
# → Lower parent_ide_dead (e.g. 0.1) so IDE presence matters less
188+
# Running headless servers with no TTY that aren't orphans?
189+
# → Lower no_tty (e.g. 0.05) so terminal absence matters less
190+
# Want more aggressive cleanup of long-running processes?
191+
# → Raise exceeded_duration (e.g. 0.4)
192+
# Want to rely almost entirely on PPID detection?
193+
# → Raise ppid_is_init (e.g. 0.7) and lower the others
182194
weights:
183-
ppid_is_init: 0.4
184-
no_tty: 0.15
185-
parent_ide_dead: 0.3
186-
exceeded_duration: 0.25
187-
has_listener: 0.2
195+
ppid_is_init: 0.4 # Parent process died (PPID reparented to launchd)
196+
parent_ide_dead: 0.3 # No IDE running on this machine
197+
exceeded_duration: 0.25 # Process running longer than pattern's max_duration
198+
has_listener: 0.2 # Process is bound to a listening port
199+
no_tty: 0.15 # No controlling terminal
188200

189-
# Never kill these
201+
# Note: setting one weight preserves all others at their defaults.
202+
# You only need to specify the weights you want to change.
203+
204+
# Never kill these (in addition to built-in system process protection)
190205
blocklist:
191206
- postgres
192207
- redis-server
193208
- nginx
194209

195-
# Processes to skip even if they match patterns
210+
# Always skip these even if they match a pattern and score above threshold.
211+
# Use this for persistent servers you intentionally run in the background.
196212
allowlist:
197213
- my-persistent-mcp-server
198214

@@ -201,8 +217,6 @@ extra_patterns:
201217
- ~/.config/devreap/my-patterns.yaml
202218
```
203219
204-
Setting one weight preserves all others at their defaults — no silent zeroing.
205-
206220
## Built-in Patterns
207221
208222
18 patterns across 4 categories:

0 commit comments

Comments
 (0)