News for hackers. Stuff that matters.
Re:Maximizing the value of your Claude Code sessions by BeetleB on Friday August 14, 2026 @02:55PM (#49303086)
> @-mention files instead of naming them. The file gets attached to your message directly, which saves a Read call, or a search if Claude has to go find it.

I've heard it argued that this is an antipattern. If the file is large, it will read the whole file. With Read or something similar, it can do a targeted search and read only the relevant portion.

Is this still not the case?

Also, since they mention /context: Can anyone explain why /context takes so long to run? It usually takes several seconds, and I've had cases of it taking over a minute.

And why don't they just show the basics in a status line somewhere? Just a plain: "120K/200K tokens" I hate having to type /context just to get this. And I shouldn't need to install an extension.

Re:Maximizing the value of your Claude Code sessions by sadfgknerknksdf on Friday August 14, 2026 @03:09PM (#49303274)
You can make your own status line with something like "120K/200K Fable 5", it's nice.
Re:Maximizing the value of your Claude Code sessions by 9dev on Friday August 14, 2026 @03:21PM (#49303419)
You can do tons more, really. There’s even a built-in /statusline command to modify it; mine shows both context window usage alongside session and weekly limit, all of them as progress bars. Just ask Claude to do it.
Re:Maximizing the value of your Claude Code sessions by user43928 on Saturday August 15, 2026 @02:33AM (#49308253)
That's what is shown by default in the app.

I'll never understand why anyone would want to restrict themselves to a terminal interface instead, and I say this as a Vim user.

Re:Maximizing the value of your Claude Code sessions by 9dev on Saturday August 15, 2026 @08:59AM (#49310194)
> That's what is shown by default in the app.

It is shown in Claude Desktop if you care to check in Settings > Usage, sure - but not in Claude Code, updated as you work with it.

> I'll never understand why anyone would want to restrict themselves to a terminal interface instead, and I say this as a Vim user.

I usually work with Claude in tandem, that is: The agent is actively working while I am either reviewing code or making changes myself in other places. So this means I want to work within my IDE. If you use Claude Code to vibe-code without interacting with the codebase at all, the Desktop app is probably fine, but for all other purposes, you'll need to run it either in the CLI or integrated into your editor.

And since I use different editors and don't like using either a sub-par U integration or locking myself into the harness of my IDE's vendor, I prefer the CLI as a universal way of running Claude Code.

Re:Maximizing the value of your Claude Code sessions by user43928 on Saturday August 15, 2026 @11:28AM (#49311397)
Claude Desktop also contains Claude Code that you need to select specifically over the default or Cowork. I would refer to it as Claude app vs Claude (Code) CLI.

The app has a context wheel on the right of the chat box, showing both current conversation context breakdown and 5h as well as weekly limits.

Re:Maximizing the value of your Claude Code sessions by bix6 on Saturday August 15, 2026 @09:59AM (#49310619)
> It is shown in Claude Desktop if you care to check in Settings > Usage, sure - but not in Claude Code, updated as you work with it.

What? Claude Code shows you context window and session limits right next to the text input box.

Re:Maximizing the value of your Claude Code sessions by 9dev on Saturday August 15, 2026 @10:10AM (#49310733)
The default status line doesn't do that, but admittedly it has been a while since I used vanilla Claude Code. Either way, it definitely does not display weekly limits out of the box
Re:Maximizing the value of your Claude Code sessions by 50or05 on Saturday August 15, 2026 @02:24AM (#49308194)
except in vsc, there it cannot do it
Re:Maximizing the value of your Claude Code sessions by rhaksw on Friday August 14, 2026 @03:02PM (#49303188)
> I've heard it argued that this is an antipattern. If the file is large, it will read the whole file. With Read or something similar, it can do a targeted search and read only the relevant portion.

I suspect you're right and that's why they haven't fixed @-search in the desktop app.

I actually don't find myself using it anymore since moving to the desktop app. I went from using various AI extensions in the IDE to Claude Code desktop.

But if that's accurate, why mention it in this post? Maybe because that's the first thing developers will try when moving away from a code editor?

Re:Maximizing the value of your Claude Code sessions by zmmmmm on Friday August 14, 2026 @06:50PM (#49305584)
so i actually read beyond the TLDR and the reasons are:

- it gets attached early so fully cached, even if later cache is busted

- it gets included in every request automatically, so if your following requests are going to keep triggering File Read requests it will be much cheaper and faster to keep sending it

My main question is how this works if Claude itself keeps editing the file. Surely then you are sabotaging your own cache rather than helping it.

The things to add this way would be static files that you don't expect to change and to be highly relevant to the following requests. Especially if you want them to be mandatory reading and not just hope the agent will read it.

Re:Maximizing the value of your Claude Code sessions by imgyuri on Saturday August 15, 2026 @09:57AM (#49310608)
it's easy to create one, or use something like https://github.com/jarrodwatts/claude-hud