feat(tmux): implement 2-hour inactivity session TTL reaper and prune command
This commit is contained in:
@@ -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"}]
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user