RSSAmplifier

Blog

Karan Bansal's Blog

Thoughts on AI, building systems, and lessons from the trenches.

karanbansal.inRSS feed ↗7 posts

Latest posts

The Model Is Banned From Math

An ITR-filing skill went from 37 to 628 GitHub stars off one stranger's tweet. The design rule that earned it: the LLM reads your documents and interviews you, but every rupee comes from tested Python. The one-in-350,000 rounding bug the fuzzer caught, and the statute bug it never could.

How to Write Loops with Claude Code

I read the first 182 replies to Gergely Orosz's 'can you share loops you regularly use?' One linked a loop you could actually run. Seven copy-paste loops in the order to learn them: /goal, /loop, the bounded Ralph, Stop hooks, dynamic workflows, cloud routines, and the full stack, with the termination checks, cost mechanics, and guardrails that keep them from burning $6,000 overnight.

Anatomy of a $5 "Good Morning"

My most expensive API requests ever are an acknowledgment, a menu choice, and a parade of good mornings. Receipts from 12,992 real Claude Code requests: the 60-minute cache cliff, the subagent meter, and why your bill tracks what the harness re-establishes, not what you type.

Prompt Caching Doesn't Cache Prompts

Prompt caching is the single biggest cost lever for LLM agents. But it doesn't cache your prompt. Here's what it actually caches, why prefixes must match exactly, and the rules that turn a $4.50 agent run into $0.62.

You're Slower Than You Think: The 4 Levers of AI-Era Speed

AI made optimizing your own workflow nearly free. The bottleneck moved from whether it's worth it to whether you even notice. Four levers (Connect, Encode, Teach, Parallelize), each with a tell you can catch yourself in.

The 2-Minute Claude Code Upgrade You're Probably Missing: LSP

Every Claude Code user is running without LSP. That means 30-60s grep searches instead of 50ms precise answers. Here's how to enable it: setup, real debug data, and undocumented discoveries.

Claude Code's Most Underrated Feature: Hooks

Hooks are Claude Code's most underrated feature. From the event logger to safety hooks that block dangerous commands and protect secrets, plus a complete guide with ready-to-use code.