rtk-ai/rtk

Feature request: add rtk rewrite for `docker exec`

Open

#275 创建于 2026年2月28日

在 GitHub 查看
 (1 评论) (0 反应) (0 负责人)Rust (2,914 fork)batch import
area:clieffort-mediumenhancementhelp wantedpriority:high

仓库指标

Star
 (48,085 star)
PR 合并指标
 (平均合并 11天 1小时) (30 天内合并 45 个 PR)

描述

Context

rtk discover --all shows docker exec as the #1 unhandled command across our sessions:

  • 1,953 invocations in the last 30 days
  • Typical usage: docker exec <container> nginx -s reload, docker exec <container> alembic upgrade head, etc.

Request

Add an RTK rewrite/filter for docker exec output to reduce token usage. The output of commands run inside containers is often verbose (full stack traces, log dumps, env dumps) and could benefit from RTK's filtering.

Example commands

docker exec oysi_static nginx -s reload
docker exec pricing_api alembic upgrade head
docker exec <container> env

Found via rtk discover --all.

贡献者指南