rtk-ai/rtk

[Feature]: reduce the full path for token efficiency

Open

#639 创建于 2026年3月16日

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

仓库指标

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

描述

When I run

cd /Volumes/vol1/Users/user/git/mysuperapp/app
rtk basedpyright --venvpath .venv --pythonversion 3.13 .

I still get logs containing repetitive information, with the full file path, for example:

/Volumes/vol1/Users/user/git/mysuperapp/app/db/database.py
  /Volumes/vol1/Users/user/git/mysuperapp/app/db/database.py:39:5 - warning: Result of call expression is of type "Token[Session | None]" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
  /Volumes/vol1/Users/user/git/mysuperapp/app/db/database.py:43:9 - warning: Result of call expression is of type "Token[Session | None]" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)

/Volumes/vol1/Users/user/git/mysuperapp/app is repeated 3 times unnecessarily, while it could be safely replaced with ./ relative to my current folder. I'd like to replace all the file paths with the ./ when I execute rtk in /Volumes/vol1/Users/user/git/mysuperapp/app.

When I execute it from the / root, I can still mention the full path only once and then only refer to that path.

贡献者指南