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 (2,914 forks)batch import
area:clieffort-smallenhancementgood first issuepriority:low

Repository metrics

Stars
 (48,085 stars)
PR merge metrics
 (Avg merge 11d 1h) (45 merged PRs in 30d)

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