Skip to content

Instantly share code, notes, and snippets.

@razamit
razamit / statusline-command.py
Last active June 3, 2026 19:16
Claude Code custom status line
#!/usr/bin/env python3
import json, sys, subprocess, os, time
# Force UTF-8 output on Windows
sys.stdout.reconfigure(encoding='utf-8', errors='replace')
data = json.load(sys.stdin)
model = data.get('model', {}).get('display_name') or data.get('model', {}).get('id', 'Unknown')
cwd = data.get('workspace', {}).get('current_dir') or data.get('cwd') or os.getcwd()
@razamit
razamit / document-project.md
Created March 23, 2026 11:19
Slash command for Cursor / Claude Code — auto-documents your repo on every break

Document project (agent-oriented)

Update or create documentation so Cursor, Claude Code, and humans can orient fast. Prefer accurate, short, linked text over long dumps that will go stale.


Canonical entry point (pick one; link the other)

  1. Preferred: Add or update AGENTS.md at the repository root. Many tools and agents treat this as the machine-oriented map. Keep it factual: build, test, layout, conventions.
  2. If the repo already has a strong human README.md: Add a short “For contributors / agents” subsection that links to AGENTS.md instead of duplicating everything.
@razamit
razamit / README.md
Created June 18, 2026 12:57
Status Bar Keeper

Keep your custom Claude Code status bar alive next to an ad plugin (kickbacks.ai)

I have a custom Claude Code status line (model, git branch, context %, cost). Then I installed kickbacks.ai — a plugin that pays you to show ads in your dev tools — and it took over my status bar. I wanted both. Here's the rabbit hole and the fix that finally stuck.

How kickbacks.ai actually works

kickbacks.ai (internally "vibe-ads", a VS Code extension) writes a statusLine