I use Heroku kind of PaaS, but it's worthy to know Kubernetes, both solve the problems of Scaling and recovery were painful You manually deployed apps on servers Raw servers↓Cloud (AWS, VMs)↓Containers (Docker)↓Kubernetes ← (infra control path) ↓PaaS (Heroku) ← simpler abstraction↓Serverless (Vercel) ← even higher abstraction
Uncategorized
Claude Code Slash Commands: A Field Guide
Slash commands are the control panel for Claude Code. Type / at any prompt to see them. Here's what each one does, organized by what you're trying to accomplish. Starting and Navigating Sessions /resume — Pick up where you left off. Opens an interactive list of past sessions, searchable by branch name or content. You … Continue reading Claude Code Slash Commands: A Field Guide
Tips of Using Claude Code
Prompt Structure A well-structured prompt dramatically improves output quality. Use this ordering as a template: Role + high-level task (1–2 sentences) — Establish who Claude is and what it’s doing Dynamic / retrieved content — Paste in the data, documents, or context Claude needs Detailed task instructions — Specific rules, constraints, and goals Examples / … Continue reading Tips of Using Claude Code
Claude Code Leaked, Learn from the Best 06
How Claude Code Prevents Attacks? Think of it as five concentric walls, each catching something the previous one missed. --- Wall 1: The Blocklist (Fastest, Dumbest) utils/permissions/dangerousPatterns.ts has a hardcoded set called DANGEROUS_BASH_PATTERNS: python, node, deno, ruby, perl, php, lua, npx bash, sh, zsh, fish, ssh eval, exec, env, xargs, sudo Before any bash tool … Continue reading Claude Code Leaked, Learn from the Best 06
Claude Code Leaked, Learn from the Best 05
How does Claude Code do compression/compaction? Every turn, you send the entire conversation history to the API. Long sessions accumulate hundreds of messages. Eventually you hit the context window limit and the API refusesyour request. Compaction is how Claude Code survives long sessions without hitting that wall. There are four distinct compaction strategies, each triggered … Continue reading Claude Code Leaked, Learn from the Best 05
Claude Code Leaked, Learn from the Best 04
Compare this claw code the original Claude Code repo. main.py is replacement of main.ts, what is missing: The original main.tsx was a full interactive terminal app — you typed prompts, saw streaming responses, used keyboard shortcuts, saw colored output. The Pythonmain.py is just a command-line tool you call once and it prints a result. The … Continue reading Claude Code Leaked, Learn from the Best 04
Claude Code Leaked, Learn from the Best 03
How does Claude Code execute codes and where it calls LLM? There are three Levels of "Sandbox" — From Weak to Strong Level 1: No Sandbox (what this codebase has) # just returns a string, never actually runs anything def execute_tool(name, payload): return f"Tool '{name}' would handle payload '{payload}'" Level 2: Soft Sandbox (basic subprocess … Continue reading Claude Code Leaked, Learn from the Best 03
Claude Code Leaked, Learn from the Best 02
When we start building a complex agent, use these groups as a folder/module plan: Self-knowledge — what does the agent know about itself? Tool registry — what can my agent do? Router — which tool matches this input? Engine — process the turn, track limits Cost tracker — how much has been spent? Memory — … Continue reading Claude Code Leaked, Learn from the Best 02
Claude Code Leaked, Learn from the Best 01
Claude Code is the most powerful agent so far. Dive into its architect! First, Know Your Tools (commands.py, tools.py). You don't build the tools from scratch every time you open the toolbox — they're just sitting there, ready. In this codebase, that toolbox is a JSON file: reference_data/commands_snapshot.json ← list of ~150 commandsreference_data/tools_snapshot.json ← list … Continue reading Claude Code Leaked, Learn from the Best 01
Harness Engineering
What is harness engineering? It's about how agent systems wire tools, orchestrate tasks, and manage runtime context. Here is a repo, a clean-room reverse-engineering project that reconstructs the core patterns behind how Claude Code does harness engineering. GitHub - instructkr/claw-code: The fastest repo in history to surpass 50K stars ⭐, reaching the milestone in just … Continue reading Harness Engineering