rtk-ai/rtk

Add commands - PM2 & Redis-cli

Open

#1.859 geöffnet am 12. Mai 2026

Auf GitHub ansehen
 (1 Kommentar) (1 Reaktion) (0 zugewiesene Personen)Rust (2.914 Forks)batch import
area:clienhancementhelp wantedpriority:medium

Repository-Metriken

Stars
 (48.085 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 11T 1h) (45 gemergte PRs in 30 T)

Beschreibung

Hi,

Feature Request: Add support for pm2 and redis-cli

Commands

  • pm2 logs, pm2 list, pm2 status, pm2 env, pm2 restart, pm2 reload
  • redis-cli get, redis-cli del, and other redis-cli subcommands

Why

Both commands appear frequently in Node.js/backend Claude Code sessions and produce verbose output that pollutes the context window.

From rtk discover on my setup (88 sessions, last 30 days):

Command Count
pm2 logs 57
pm2 list 36
pm2 restart 34
pm2 reload 23
pm2 status 6
pm2 env 5
redis-cli 31
redis-cli get 11

Expected compression

pm2 logs — output is very repetitive (timestamps, repeated log lines, process names). Truncation + deduplication should yield 70-80% savings.

pm2 list / status — tabular output with fixed-width padding. Structure compression similar to ps aux (already handled by RTK at 91.8%).

redis-cli — responses are short for single-key queries but can be large for KEYS *, HGETALL, or LRANGE. Truncation + type-aware formatting would help.

Happy to test

I can run benchmarks on real output if you need before/after token counts.

Contributor Guide