Gemini CLI --yolo to read files, it uses the read_file tool
Open
Nobody has claimed this yet.
area:cli
effort-small
enhancement
good first issue
priority:low
- Dominant language
- Rust
- Stars
- 81.1k
- Forks
- 5.1k
- Avg merge
- 4d 21h
- Merged PRs (30d)
- 35
Description
RTK only registers a BeforeTool hook on run_shell_command. But when Gemini CLI uses --yolo to read files, it uses the read_file tool
Can we extend rtk to hook into read_file also?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the BeforeTool hook registration for run_shell_command and how Gemini CLI's read_file tool is handled under --yolo. Extend the hook coverage to read_file, then verify that file reads receive the intended RTK behavior without changing the existing run_shell_command path.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cli, tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100