I had been trying to see the usage statistics while using claude code on agentic.nvim. However, the output was empty.
Asked my nvim config claude agent for this and here is what it replied:
Root cause found. agentic.nvim deliberately silences /usage output at session_manager.lua:374-378:
elseif update.sessionUpdate == "usage_update" then
-- Usage updates contain token/cost information - currently informational only
-- Fields: used (tokens), size (context window), cost (optional: amount, currency)
-- Keeping silent for now to avoid "press any key" prompts on large JSON output
When you run /usage, the agent's response comes back as a usage_update session message, and that handler is intentionally a no-op. The README mentions a "Smart Context" feature for usage info but the plugin's chat widget doesn't render it.
Seems like the plugin is intentionally not showing the statistics.
I had been trying to see the usage statistics while using claude code on agentic.nvim. However, the output was empty.
Asked my nvim config claude agent for this and here is what it replied:
Seems like the plugin is intentionally not showing the statistics.