What it does
This status line for Claude Code shows the project name, git branch, model and context usage on one minimal line. In a linked git worktree, it displays the main project name instead of the worktree folder name and marks the branch with ⑂. The context percentage and window size, either 200k or 1M, come directly from Claude Code's context_window data, so the figures stay accurate for extended-context models.
It suits developers who work in several git worktrees of the same repository and want to see which project and branch a session belongs to, along with how much of the context window is in use.
It is distributed as a settings JSON file for Claude Code's status line. The context segment stays hidden until the first API response and again right after /compact, so it appears only once there is a figure to show.
Limitations and requirements
The context segment is hidden until the first API response and immediately after /compact.
Safety
Our team has not reviewed this resource. Only automated rules checked it; resources with high-risk signals are not published. These are signals, not a guarantee that installing it is safe. Try it in a sandbox project first.
Sources
- AI Templates (aitmpl) first seen 13 Nov 2026 · last seen 18 Nov 2026 · its page on the source · figures reported by the source: aitmpl downloads 39
worktree-context-statusline
Minimal worktree-aware status line showing project name, git branch, model, and accurate context usage. In a linked git worktree it shows the main project name instead of the worktree folder and marks the branch with ⑂. Context percentage and window size (200k or 1M) come directly from Claude Code's context_window data, so it stays correct for extended-context models. The context segment is hidden until the first API response and right after /compact.
As shown on www.aitmpl.com when we last read it