rtk-ai/rtk

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

Open

#796 opened on Mar 24, 2026

View on GitHub
 (3 comments) (0 reactions) (0 assignees)Rust (48,085 stars) (2,914 forks)batch import
effort-smallenhancementgood first issue

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