Skip to content

Instantly share code, notes, and snippets.

View vrknetha's full-sized avatar

Ravi Kiran Vemula vrknetha

View GitHub Profile
@vrknetha
vrknetha / statusline.js
Created October 20, 2025 06:41
Custom Claude Code statusline that displays: - Model name and context window usage (percentage + token count) - Session ID - Current folder and git branch - Git status (staged, modified, untracked files) - Git ahead/behind remote - Python virtual environment detection - Docker container count - System memory usage (macOS) - Shell nesting level F…
#!/usr/bin/env node
"use strict";
const fs = require("fs");
const { execSync } = require("child_process");
// --- input ---
const input = readJSON(0); // stdin
const transcript = input.transcript_path;