↓ Skip to main content
  1. Categories/

Technical Practice

2026

Postmortem: When df -h Lies — 5.71M Files Burned All Inodes
Technical Practice · 2026-10-26 · 11 分钟

Postmortem: When df -h Lies — 5.71M Files Burned All Inodes

A sudden production incident took down the user authentication system: gateways threw 502 Bad Gateway, while the auth service (Casdoor) returned persistent 503 Service Unavailable. Checking the root partition with df -h showed only 40% disk utilization, with 55GB of free space remaining. Yet system calls across the host crashed with no space left on device (ENOSPC). The culprit was a 6-month-old legacy PHP container. Bypassing broken garbage collection and battered by anonymous crawlers, it quietly generated 5.71 million zero-byte session files in a single flat directory, devouring all 6.35 million inodes available on the host filesystem.

2261 字 阅读 ➔
When git add Exits 0 but Stages Nothing: Debugging Git Stat-Cache
Technical Practice · 2026-10-09 · 7 分钟

When git add Exits 0 but Stages Nothing: Debugging Git Stat-Cache

When writing automation scripts or working in the terminal, developers assume a simple rule: as long as git add <file> exits with code 0, the change is staged. Today, while updating author metadata on the blog, I hit an elusive silent failure: real file modifications on disk, git diff clearly printing the hunk, git add returning 0, yet git status stubbornly insisting the file was untracked, with git diff --cached remaining completely empty.

1356 字 阅读 ➔
How I Actually Judge Whether an Agent Skill Is Worth Keeping
Technical Practice · 2026-10-08 · 10 分钟

How I Actually Judge Whether an Agent Skill Is Worth Keeping

By the time I was maintaining the fifteenth or so skill in dev-skills, I realized I had no reliable way to tell whether any of them actually worked. Every demo produced clean output. But the output had no control group, no causal grounding — I knew what happened with the skill mounted, not what would have happened without it. How I Was Judging at the Start # The original method was simple: write a skill, load it into Claude Code, run a task, check whether the output looked right. The first version of grill passed this way — I fed it a service design with a concurrency bug, the agent flagged a lock contention issue, I marked it valid.

2099 字 阅读 ➔
Pi's CodeMode vs. DeepSeek Harness PTC Mode
Technical Practice · 2026-10-04 · 6 分钟

Pi's CodeMode vs. DeepSeek Harness PTC Mode

When designing runtime architectures for modern coding agents, the traditional single-step tool-calling loop hits a hard engineering ceiling. In multi-file refactoring and cross-module codebase exploration, discrete JSON RPC turn-taking leads to interactive round-trip explosions and runaway context bloating. It also fails to express asynchronous dependencies between tool invocations. To overcome this scheduling bottleneck, Pi Coding Agent’s CodeMode and DeepSeek Harness’s (CLI: dsh) Programmatic Tool Calling (PTC) mode represent two divergent code-execution paradigms.

1271 字 阅读 ➔