rtk-ai/rtk

Feature request: python3 command support

Open

#784 ouverte le 23 mars 2026

Voir sur GitHub
 (1 commentaire) (0 réactions) (0 assignés)Rust (2 914 forks)batch import
area:clieffort-mediumenhancementgood first issuehelp wantedpriority:medium

Métriques du dépôt

Stars
 (48 085 stars)
Métriques de merge PR
 (Merge moyen 11j 1h) (45 PRs mergées en 30 j)

Description

Use Case

Python scripts are frequently executed inline (heredocs) or directly during AI-assisted development sessions. The output from Python scripts — tracebacks, print statements, data dumps — can be verbose and consume unnecessary context tokens.

Statistics (from rtk discover)

  • ~570 python3 commands in 30 days (single user)
  • ~420 heredoc invocations (python3 << 'EOF' ... EOF)
  • ~150 direct script executions (python3 script.py)

Proposed Behavior

rtk python3 could:

  • Compress long tracebacks (show only the relevant frames)
  • Truncate large data output (e.g., list/dict dumps)
  • Deduplicate repeated log lines (same as RTK already does for other commands)

Impact

Second most frequent unhandled command category in rtk discover output.

Guide contributeur