rtk-ai / rtk-ai/rtk

Gemini CLI --yolo to read files, it uses the read_file tool

Open
#796 3 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.