You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Safe by default: pipe python3 output through rtk summary heuristic when output > 1KB
Explicit: add rtk py alias for python3 with --summary / --raw flags
Known limitation
Heredoc forms (python3 <<EOF) — the hook parser does not currently rewrite these (verified echo $(cat ...) is similarly bypassed for safety). Issue only addresses the direct-invocation path.
Context
rtk 0.42.3
Most useful for: short one-off scripts where output is dominated by debug prints
Feature request to add a proxy/filter for generic python3/python invocations with output summarization; well-scoped proposal but low-value use cases acknowledged by author
Triaged automatically by wshm · This is an automated analysis, not a human review.
I am working on this against current develop. I will add rtk python routing for direct python/python3 invocations, preserve interactive and version modes as passthroughs, summarize only output larger than 1 KiB with full-output recovery, and cover module/script/inline routing plus stdin behavior.
Volume data point from another environment (Windows, rtk discover -a, 176 sessions / 10,086 Bash commands over the last 30 days):
python is the top unhandled command with 634 invocations in 30 days — roughly 11x the 58 in the title. The dominant form by far is the heredoc one (python - <<'EOF'), which the issue body currently scopes out as a known limitation.
Closing as a duplicate of #928, which tracks the same request - rewrite and filter support for direct python/python3 invocations covering script, -m module and heredoc forms - and has the fullest breakdown and reproduction. The specifics raised here (usage counts, summarisation threshold, venv and absolute-path interpreters) are worth adding as a comment there so they are not lost. Please continue the discussion on #928.
Activity
pszymkowiak commentedon Jun 7, 2026
🔍 Automated Triage
featurelowSummary
Feature request to add a proxy/filter for generic python3/python invocations with output summarization; well-scoped proposal but low-value use cases acknowledged by author
Triaged automatically by wshm · This is an automated analysis, not a human review.
lntutor commentedon Jul 20, 2026
I am working on this against current develop. I will add
rtk pythonrouting for directpython/python3invocations, preserve interactive and version modes as passthroughs, summarize only output larger than 1 KiB with full-output recovery, and cover module/script/inline routing plus stdin behavior.host-felice commentedon Aug 26, 2026
Volume data point from another environment (Windows,
rtk discover -a, 176 sessions / 10,086 Bash commands over the last 30 days):pythonis the top unhandled command with 634 invocations in 30 days — roughly 11x the 58 in the title. The dominant form by far is the heredoc one (python - <<'EOF'), which the issue body currently scopes out as a known limitation.Posting the count only, no input on the design.
KuSh commentedon Sep 13, 2026
Closing as a duplicate of #928, which tracks the same request - rewrite and filter support for direct
python/python3invocations covering script,-m moduleand heredoc forms - and has the fullest breakdown and reproduction. The specifics raised here (usage counts, summarisation threshold, venv and absolute-path interpreters) are worth adding as a comment there so they are not lost. Please continue the discussion on #928.