feat(tmux): implement 2-hour inactivity session TTL reaper and prune command

This commit is contained in:
operator
2026-10-05 16:23:45 +00:00
parent c13ee20ea4
commit 945e6bb481
4 changed files with 72 additions and 0 deletions
+4
View File
@@ -89,6 +89,9 @@ muse <account> tmux capture <session> --lines 30
# Kill a session
muse <account> tmux kill <session>
# Prune unattached sessions inactive for >2 hours (or custom --ttl in seconds)
muse <account> tmux prune [--ttl 7200]
```
### Via Autonomous Agent Directives:
@@ -98,6 +101,7 @@ Agents can emit structured tool calls in sidechats:
[TOOL tmux.send {"session": "build-worker", "keys": "ls -la"}]
[TOOL tmux.capture {"session": "build-worker", "lines": 20}]
[TOOL tmux.list {}]
[TOOL tmux.prune {"ttl": 7200}]
[TOOL tmux.kill {"session": "build-worker"}]
```