
Company News
Socket Joins the OpenJS Foundation
Socket is proud to join the OpenJS Foundation as a Silver Member, deepening our commitment to the long-term health and security of the JavaScript ecosystem.
@this-dot/claude-code-context-status-line
Advanced tools
Custom Claude Code status line to restore context window visibility for AWS Bedrock users by displaying token usage.
Custom Claude Code status line to restore context window visibility for AWS Bedrock users by displaying token usage. Specifically designed for AWS Bedrock users who have lost access to the /context command in Claude Code and need to restore visibility into their context window usage.
Problem Statement: AWS Bedrock users in Claude Code lost access to the built-in /context command, making it impossible to see how much of the context window is being used during conversations.
Solution: This tool restores that visibility by parsing Claude Code's transcript files and displaying token usage directly in the status line.
How It Works: The tool reads JSONL transcript files generated by Claude Code, extracts token usage data (input + cache read + cache creation tokens), and formats it for display in the status line.
Normal Operation:
Opus (125k) - 125,000 total tokens with Claude 3.5 OpusSonnet 4 (1.2M) - 1.2 million tokens with Claude 3.5 SonnetClaude (50.5k) - 50,500 tokens with default model nameError States:
- (-) - Error reading transcript or no data availableChoose Method 1 if: You want automatic updates and minimal maintenance Choose Method 2 if: You need offline access or want to modify the script
Add this to your Claude Code settings (~/.claude/settings.json):
{
"statusLine": {
"type": "command",
"command": "npx -p @this-dot/claude-code-context-status-line ccstatus"
}
}
Verification:
# Test the installation
echo '{"transcript_path":"/tmp/test.jsonl","model":{"display_name":"Test"}}' | npx -p @this-dot/claude-code-context-status-line ccstatus
# Expected output: Test (-)
curl -o context-status.js https://raw.githubusercontent.com/thisdot/claude-code-context-status-line/main/src/context-status.js
chmod +x context-status.js
~/.claude/settings.json:{
"statusLine": {
"type": "command",
"command": "node /absolute/path/to/context-status.js"
}
}
Finding your Claude Code settings:
~/.claude/settings.json~/.claude/settings.json%USERPROFILE%\.claude\settings.jsonStatus line shows "- (-)" constantly:
claude --versionecho '{"transcript_path":"/path/to/transcript.jsonl"}' | npx -p @this-dot/claude-code-context-status-line ccstatus
Node.js not found errors:
node --versionbrew install node if using HomebrewPermission denied errors:
Status line doesn't update:
Local Operation Only:
File Access:
Data Handling:
Designed for Efficiency:
Scaling Characteristics:
Resource Usage:
Node.js:
Claude Code:
Operating Systems:
Dependencies:
What tokens are counted:
Status Line Behavior:
MIT License - see LICENSE file for details.
FAQs
Custom Claude Code status line to restore context window visibility for AWS Bedrock users by displaying token usage.
The npm package @this-dot/claude-code-context-status-line receives a total of 16 weekly downloads. As such, @this-dot/claude-code-context-status-line popularity was classified as not popular.
We found that @this-dot/claude-code-context-status-line demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket is proud to join the OpenJS Foundation as a Silver Member, deepening our commitment to the long-term health and security of the JavaScript ecosystem.

Security News
npm now links to Socket's security analysis on every package page. Here's what you'll find when you click through.

Security News
A compromised npm publish token was used to push a malicious postinstall script in cline@2.3.0, affecting the popular AI coding agent CLI with 90k weekly downloads.