Back to Settings

Worktree Context Statusline

Settings statusline 25 Scanned by NVIDIA SkillSpector

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.

Install Command
npx claude-code-templates@latest --setting statusline/worktree-context-statusline
View on GitHub
claude-code — worktree-context-statusline

Scanned by NVIDIA SkillSpector

Automated static analysis (no LLM) · v2.12.0 · 2026-10-17

2 observations
scanner score 16/100

SkillSpector looks for patterns such as shell commands, credential access, network calls or unpinned dependencies. An observation is something worth reading in the files before you install, not a confirmed vulnerability. Components that run code locally, like hooks, MCP servers and security tooling, naturally show more of them.

  • Skill declares no tool scope ('permissions' or 'allowed-tools') but code capabilities were detected: shell.
    MCP Least Privilege · SKILL.md:1
  • subprocess module call
    Dangerous Code Execution · worktree-context-statusline.py:29

Learn more about NVIDIA SkillSpector.

Content

JSON
{
"description": "Minimal worktree-aware status line showing project name, git branch, model, and ..."
"statusLine": {
"type": "command"
"command": "python3 .claude/scripts/worktree-context-statusline.py"
}
}

Stack Builder

0 components

Your stack is empty

Browse components and click the + button to add them to your stack for easy installation.