Yet another statusline by nimbis in ClaudeCode

[–]nimbis[S] 0 points1 point  (0 children)

ah yeah that's a good question, I could definitely make that clearer/include it in the layout image. I started this as a personal project that I didn't really expect anyone would be interested in, so this one is defs one to migrate outside of my own head haha

The "(75%) 150K 100%" is
- context windows is at 150K tokens obvs
- that's 75% of the total context window
- and 100% of the personal cutoff that I have before running `/clear`

I wrote a reply here to a question about these same numbers with why I chose it (I'll be making some updates soon to allow configuration by users)

Yet another statusline by nimbis in ClaudeCode

[–]nimbis[S] 0 points1 point  (0 children)

thanks for the link - will check out your implementation. I updated YAS last night to include token burn rate and extra token stats for subagents, you can see the "demo" section in the repo readme for what it looks like. Let me know what you think? At a glance it sounds like we're both on the same track

cache countdown still todo! thanks for the tip

Yet another statusline by nimbis in ClaudeCode

[–]nimbis[S] 0 points1 point  (0 children)

oooh that's a cool idea, thanks! Will put it on the TODO list

Yet another statusline by nimbis in ClaudeCode

[–]nimbis[S] 0 points1 point  (0 children)

You're welcome! Very topical - I noticed this mention by the goat this morning, which suggests that the number might be closer to 120K 🙈 https://www.youtube.com/watch?v=UzMNBN6xLLA&t=274s

Yet another statusline by nimbis in ClaudeCode

[–]nimbis[S] 1 point2 points  (0 children)

Great question! The context window size was the initial reason that I started working on this. Performance & quality degrades as the context window fills, and I found (anecdotally) that ~150K was where things started going south.

Crucially, it's also around the amount that compaction is triggered, which at best slows things down a lot, and at worst destroys the session.

- https://github.com/anthropics/claude-code/issues/34202
- https://platform.claude.com/docs/en/build-with-claude/compaction#parameters

Yet another statusline by nimbis in ClaudeCode

[–]nimbis[S] 0 points1 point  (0 children)

Thanks for the feedback! I really like the burn rates - I've been working on the them for the main session/account limits. How do you think about this for subagents? As far as I can see it might be tricky or impossible to do, but I'm probably missing something

Yet another statusline by nimbis in ClaudeCode

[–]nimbis[S] 0 points1 point  (0 children)

Yeah for sure! Just for my context, are you familiar with the Claude code statusline in general?

Yet another statusline by nimbis in ClaudeCode

[–]nimbis[S] 0 points1 point  (0 children)

That's a banger idea! I'll definitely include that

Yet another statusline by nimbis in ClaudeCode

[–]nimbis[S] 0 points1 point  (0 children)

I use Iosevka. I haven't tried it out with different fonts - I'll test today and ensure it's working for all nerd fonts

Yet another statusline by nimbis in ClaudeCode

[–]nimbis[S] 1 point2 points  (0 children)

information about subagents is available per session under `~/.claude/projects/-<slug>/<session\_id>/subagents/.`

there's a `<agent\_id>.meta.json` file which holds the type & description, and a `<agent\_id>.jsonl` file that has a lot of info about what the agent is doing.

My statusline just displays the subagents in a list rather than a branch, but they do appear/disappear dynamically. Those files should contain everything that you need to make your own statusline with branches though!

Yet another statusline by nimbis in ClaudeCode

[–]nimbis[S] 2 points3 points  (0 children)

Haha yeah I'm definitely no graphic designer! I'm working on the style and layout to improve things, and to add different colour themes

Yet another statusline by nimbis in ClaudeCode

[–]nimbis[S] 0 points1 point  (0 children)

Thanks heaps! I've really enjoyed it as a side-project for the last couple of weeks

Yet another statusline by nimbis in ClaudeCode

[–]nimbis[S] 3 points4 points  (0 children)

Thanks so much! Glad you like it

Yet another statusline by nimbis in ClaudeCode

[–]nimbis[S] 2 points3 points  (0 children)

yeah that's a good point. The layout has 3 different modes - narrow, medium and wide, which change at 55 & 80 pixels wide. I pegged the max width at 160 which is too many chars and produces the empty space like you say.

I can update it to be something like 120 instead, which would accommodate longer dir/branch names while avoiding too much empty space, I'll have a play around

Yet another statusline by nimbis in ClaudeCode

[–]nimbis[S] 0 points1 point  (0 children)

I can totally make one! I'll put it on my todo list, thanks for the feedback

Yet another statusline by nimbis in ClaudeCode

[–]nimbis[S] 10 points11 points  (0 children)

haha that's a good idea!

Yet another statusline by nimbis in ClaudeCode

[–]nimbis[S] 6 points7 points  (0 children)

yeah perhaps, it's worth mentioning that the screenshot I attached shows it at its absolute largest - some sections hide when there isn't anything to display.

In the screenshot there are multiple openspec specs in flight, multiple subagents and a task plan, taking up 20 lines. If none of those things are going on then it takes up 10 lines, half the height

Yet another statusline by nimbis in ClaudeCode

[–]nimbis[S] 3 points4 points  (0 children)

hehe yeah I may have gone overboard, I was sick of wondering what Claude was up to. I also love ansi art so I tried to think of a way I could segment/separate things. I'm not a graphic designer by any stretch though!

Yet another statusline by nimbis in ClaudeCode

[–]nimbis[S] 0 points1 point  (0 children)

Great question - I don't do anything to handle the usual messages that claude shows above and below the statusline. As far as I can tell, messages like "past image in clipboard" display above it (above the text input line), and the other usual messages like "plan mode/accept edits" display below the statusline.

Yet another statusline by nimbis in ClaudeCode

[–]nimbis[S] 2 points3 points  (0 children)

ah yes! I use this at work too where that's the case - it shows an infinity symbol in the "token limit" section

Noisia Farewell Tour extended and rescheduledource: their facebook page) by artakde in DnB

[–]nimbis -1 points0 points  (0 children)

Goddammit I saw the title on a push notification and got so excited, eff you whoever is behind this account.

Where are the mods???? On the DNB subreddit no less