google-gemini/gemini-cli

[Hooks] Debug logs are too verbose

Open

#16629 opened on Jan 14, 2026

View on GitHub
 (5 comments) (0 reactions) (1 assignee)TypeScript (103,992 stars) (13,657 forks)batch import
area/agenthelp wantedkind/bugpriority/p2priority/p3status/bot-triaged

Description

What happened?

Currently with --debug turned on and hooks enabled, the debug log is spammed with essentially the entire agent trajectory for every hook lifecycle entrypoint. This makes it almost impossible to navigate and understand the debug logs.

What did you expect to happen?

A short debug message of which hook lifecycle point was reached and which detected hooks were invoked

Client information

N/A

Login information

No response

Anything else we need to know?

No response

Contributor guide