PIsberg

Claude Light — AI skill for Claude Code

AI community

claude_light.py is an interactive CLI chat tool for querying and editing a codebase using Claude.

How to install Claude Light

This entry records only its repository, not the path inside it, so there is no exact command to give. Open PIsberg/claude_light and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Claude Light does

claude_light.py is an interactive CLI chat tool for querying and editing a codebase using Claude. By combining Anthropic's prompt caching with a highly optimized hybrid RAG (Retrieval-Augmented Generation) pipeline, it drastically reduces API costs while maintaining full context of your project.

Alternatives in AI

  • Startup Canvas — Generate Startup Canvas combining Product Strategy and Business Model 7.8k ★
  • Ccstatusline — by sirmalloc - A highly customizable status line formatter for Claude Code CLI that displays model info, git b 5.5k ★
  • Om Humanize — Voice-calibrated editing — makes Claude-drafted text sound like you wrote it, not like AI wrote it 4.6k ★

README

Claude Light: Auto-Warmer & Hybrid RAG Chat CLI

`claude_light.py` is an interactive CLI chat tool for querying and editing a codebase using Claude. By combining Anthropic's prompt caching with a highly optimized hybrid RAG (Retrieval-Augmented Generation) pipeline, it drastically reduces API costs while maintaining full context of your project.

**License:** Free for personal and hobby use ([PolyForm Noncommercial](LICENSE)). Commercial use requires a license — contact [Peter Isberg](mailto:isberg.peter+cl@gmail.com).

![claude_light](https://github.com/user-attachments/assets/15dcb11d-c68a-4991-a5d8-adb1679e4e3b)

[![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/PIsberg/claude_light/badge)](https://scorecard.dev/viewer/?uri=github.com/PIsberg/claude_light/)

📊 Real-World Benchmark Results

Measured against 4 popular Python open-source libraries, running the same 10 queries per repo with each tool (live API runs, 2026-03-23).

**Claude Code** = the Anthropic CLI (`claude --print`), each query in a fresh isolated session using its built-in tool-calling to fetch files on demand. **claude_light** = this project — hybrid RAG + prompt caching with automatic model routing.

Cost per 10 queries — Claude Code vs claude_light

Repository Repo size Claude Code claude_light Savings
psf/requests v2.31.0 108K tokens $0.91 $0.23 75%
pallets/flask 3.0.0 144K tokens $1.62 $0.17 89%
encode/httpx 0.25.2 191K tokens $1.75 $0.45 74%
bottlepy/bottle 0.13.2 92K tokens $1.52 $0.30 80%
Total (≈40 queries) $5.81 $1.16 80% / 5× cheaper

Why Claude Code costs more

Claude Code is a powerful general-purpose agentic tool and the cost difference reflects that:

  • Its built-in system prompt and tool definitions consume ~35–40K tokens per session (cached, but cache-reads still cost $0.30/M).
  • It always uses