Claude Code statusline that estimates context pressure from local session token counts and a configurable context limit, then prints a compact risk tier.
Context percentage is only as accurate as the configured limit and the usage fields available in the statusline input., Use the warning as a cue to summarize or checkpoint work before context pressure affects reasoning quality., Do not treat a low percentage as proof that all relevant files, instructions, or tool results are still in scope.
Privacy notes
The script reads local session counters and does not inspect prompt text, files, or transcript contents., Token counts and configured limits can still reveal workload size in screenshots or shared terminal logs., Teams should avoid placing customer names or project identifiers in shell variables that appear in debugging output.
Author
MkDev11
Submitted by
MkDev11
Claim status
unclaimed
Last verified
2026-06-04
Decision playbook
Review trust signals before you adopt
Signals are present but mixed. Use the checklist below to confirm the source and operational safety for your environment.
Compare context
Selected
0
Current score
78
Baseline
—
Delta
No baseline selected
No major trust-signal divergence detected in the current selection.
Source and provenance checks
Complete
Confirm ownership and provenance before trusting install instructions.
Source link availableRequired
Open the canonical repository and verify ownership.
Done
Source provenance statusRequired
Marked as source-backed.
Done
Metadata reviewed
Registry metadata indicates a reviewed listing.
Done
Safety and privacy checks
Complete
Validate risk disclosures before installation or API wiring.
Safety notes presentRequired
Review the listed safety guidance before running commands.
Done
Privacy notes presentRequired
Review data handling notes before connecting accounts or secrets.
Done
Trust level risk gateRequired
Trust level does not block evaluation.
Done
Package and install checks
Needs review
Check package metadata and artifact integrity signals.
Install payload available
Install or copy payload is available for review.
Done
Package verification flag
No package verification flag provided.
Pending
Checksum metadata
No checksum provided for downloaded artifact.
Pending
Compare-driven decision checks
Needs review
Use compare context to validate trade-offs before adoption.
Compare tray has multiple entries
Add at least one more entry to compare trust differences.
Claude Code statusline documentation defines command-based statuslines with JSON passed on stdin.
Anthropic model documentation explains that models have context windows; this entry leaves the exact limit configurable so teams can track the model and workflow they use.
Duplicate check
Checked existing statuslines, the live HeyClaude statuslines index, open pull requests, and repository content for context-pressure-statusline, context window, token pressure, and context budget statuslines. Existing model and token entries are adjacent, but this file is specifically a configurable context-pressure gauge.
Disclosure
Editorial statusline recipe. No paid placement or affiliate link is used.
Show that Context Pressure Statusline is listed on HeyClaude. Paste this Markdown into your README — it renders the badge and links back to this page.
[](https://heyclau.de/entry/statuslines/context-pressure-statusline)
How it compares
Context Pressure Statusline side by side with 3 alternatives on trust, install, platform support, and disclosed safety notes — all from reviewed registry metadata.
1 trust signal differ across this comparison (Submitter).
Claude Code statusline that estimates context pressure from local session token counts and a configurable context limit, then prints a compact risk tier.
Multi-provider AI performance dashboard with context occupancy tracking, truncation warnings, TTFT latency, tokens/min rate, and model comparison metrics.
Claude Code statusline that reads the active model identifier from session input and displays real-time token usage as a percentage of the context window, with green/yellow/red color-coded warnings.
Real-time burn rate monitor showing cost per minute, tokens per minute, and projected daily spend to prevent budget overruns during Claude Code sessions.
✓Context percentage is only as accurate as the configured limit and the usage fields available in the statusline input.
Use the warning as a cue to summarize or checkpoint work before context pressure affects reasoning quality.
Do not treat a low percentage as proof that all relevant files, instructions, or tool results are still in scope.
✓Runs as a Claude Code statusline command on every refresh and depends on the local shell environment; a failure only affects status rendering, not your session.
✓Reads session JSON from stdin and writes formatted text to stdout only; does not modify files or make network calls.
✓Runs as a Claude Code statusline command on every refresh and depends on the local shell environment; a failure only affects status rendering, not your session.
Privacy notes
✓The script reads local session counters and does not inspect prompt text, files, or transcript contents.
Token counts and configured limits can still reveal workload size in screenshots or shared terminal logs.
Teams should avoid placing customer names or project identifiers in shell variables that appear in debugging output.
✓Reads the Claude Code statusline JSON from stdin (model, token usage, context occupancy) and renders it in the local terminal; it does not send data off-machine.
✓Processes token counts and model identifiers from the local Claude Code session input; no data is sent externally.
✓Reads the Claude Code statusline JSON from stdin (model, workspace path, token usage) and renders it in the local terminal; it does not send data off-machine.
Prerequisites
Claude Code statusline support with local JSON input.
jq available for reading session usage fields.
Optional CLAUDE_CONTEXT_LIMIT set to the model or workflow limit your team wants to track.
Claude Code CLI installed and configured
Bash shell available (bash 4.0+ recommended for arithmetic operations)
jq command-line JSON processor (jq 1.6+ recommended for safe extraction with // defaults)
date command with epoch conversion support (macOS: -j flag, Linux: -d flag)
Claude Code CLI installed and configured
Bash shell available (bash 4.0+ recommended for pattern matching with [[ ]] and string manipulation)
jq command-line JSON processor (jq 1.6+ recommended for safe extraction with // defaults)
awk command (for percentage calculation with floating point precision)
Claude Code CLI installed and configured
Bash shell available (bash 4.0+ recommended for arithmetic operations)
jq command-line JSON processor (jq 1.6+ recommended for safe extraction with // defaults)
bc calculator (bc 1.07+ required for floating point calculations - script will fail without bc)