Engineering digest
Field notes on coding agents, model choice, token spend and wire protocols.
-
Protocol internals
EN
API Key Hygiene: A Seven-Step Team Walkthrough
A practical walkthrough for engineering teams to inventory, isolate, store, monitor, rotate, and revoke API keys without slowing delivery.
-
Protocol internals
EN
Anthropic SDK: A Custom Base URL Walkthrough
Configure the Anthropic Python SDK for a custom endpoint, verify authentication and model IDs, and test errors, streaming, and production behavior.
-
Protocol internals
EN
Retries and Idempotency for Model API Calls
A numbered walkthrough for retrying model requests safely, controlling duplicate work, and protecting tool execution from repeated side effects.
-
Protocol internals
EN
Monitor API Latency From Your Own Code
A practical walkthrough for measuring API latency, streaming responsiveness, retries, and tail performance inside your application.
-
Protocol internals
EN
Separate API Keys Without Operational Chaos
A numbered walkthrough for separating project API keys, securing deployments, tracking usage, and rotating credentials without disruption.
-
Protocol internals
EN
Concurrency Limits: An Eight-Step Design Walkthrough
Build reliable API workloads with bounded queues, shared concurrency budgets, deadline-aware retries, and practical overload tests.
-
Protocol internals
EN
Streaming Responses with SSE: A Practical Walkthrough
Build reliable SSE streaming with correct event parsing, incremental rendering, cancellation, and explicit completion handling.
-
Protocol internals
EN
Handling 429 Errors Without Making Them Worse
A practical walkthrough for classifying 429 responses, respecting retry delays, controlling concurrency, and testing graceful recovery.
-
Protocol internals
EN
What a 401 From an API Relay Usually Means
A numbered walkthrough for tracing relay authentication failures, checking credentials, and separating client mistakes from upstream problems.
-
Protocol internals
EN
OpenAI-Compatible Endpoints: An Engineer’s Walkthrough
A practical, numbered guide to API compatibility, SDK configuration, streaming, tool calls, retries, and production checks.
-
Model matrix
EN
Gemini generateContent: A Developer Walkthrough
Build a reliable Gemini native API integration, from request payloads and response parsing to conversation state, streaming, and retries.
-
Build recipes
EN
Prepaid Credit, Refunds, and Unused Balance
A practical walkthrough of prepaid API balances, usage accounting, refund eligibility, and safe shutdown checks.
-
Build recipes
EN
Inexpensive Models for Lint-Style Checks
A numbered walkthrough for building useful AI lint checks with narrow rules, structured findings, bounded costs, and reliable CI behavior.
-
Token spend math
EN
Estimate the Bill Before an Agent Runs a Migration
A numbered walkthrough for scoping migration work, measuring a pilot, estimating retries, and enforcing a practical spending limit.
-
Token spend math
EN
Track API Spend Across Tokens Without Losing Context
A numbered engineering walkthrough for attributing API costs, reconciling usage, and enforcing budgets across multiple tokens.
-
Token spend math
EN
Does Streaming Change What You Pay?
A numbered walkthrough of streaming, token billing, usage tracking, cancellations, and retries for production API integrations.
-
Token spend math
EN
Build Reliable Spend Alerts from a Usage Log
A numbered walkthrough for turning API usage events into accurate budget alerts, with deduplication, late-event handling, and safe delivery.
-
Token spend math
EN
Generate Better Test Suites Without Overspending
A numbered walkthrough for generating useful tests while controlling context, retries, model selection, and maintenance costs.
-
Token spend math
EN
Estimate Tokens Before a Whole-Repository Scan
A numbered walkthrough for measuring repository tokens, budgeting agent passes, and checking real usage before a full scan.
-
Build recipes
EN
Stop Long Agent Sessions from Draining Credit
A numbered engineering walkthrough for controlling agent costs with bounded context, targeted tool output, checkpoints, and explicit stop conditions.
-
Build recipes
EN
How Weekly Capacity Ceilings Behave
A numbered engineering walkthrough of weekly capacity ceilings, reset windows, accounting, retries, and safe fallback behavior.
-
Agent workflows
EN
A Student Budget Setup for Coding Agents
A practical walkthrough for learning with coding agents while controlling API spending, protecting credentials, and building real engineering skills.
-
Token spend math
EN
Reading a Per-Request Cost Log, Line by Line
A numbered walkthrough for tracing request charges, interpreting token usage, and reconciling retries, cache activity, and billing records.
-
Token spend math
EN
Set a Token Budget for Every Pull Request
A practical walkthrough for allocating, enforcing, and reviewing AI token budgets across pull request workflows.
-
Build recipes
EN
Pay-As-You-Go or Capacity: Find the Break-Even
A numbered engineering walkthrough for comparing usage billing with capacity commitments, including workload mix, overflow, and operational costs.
-
Token spend math
EN
Route Easy Tasks to Cheaper Models, Safely
A practical walkthrough for lowering model spend with task classification, validation, selective escalation, and measurable quality checks.
-
Token spend math
EN
Why Token Counts Surprise New Users: 7 Steps
A practical walkthrough of tokenization, hidden context, reasoning, caching, and usage logging for engineers building with model APIs.
-
Token spend math
EN
Cache Writes vs. Reads: Follow the Token Bill
A numbered engineering walkthrough of cache pricing, break-even math, prompt layout, expiration, and billing checks.
-
Token spend math
EN
A Model Spend Budget for Five Engineers
A practical walkthrough for setting team limits, measuring API costs, routing work, and preventing surprise model spend.
-
Model matrix
EN
Choose a Model for Code Translation in 8 Steps
A practical walkthrough for selecting a code translation model using semantic checks, executable tests, and measured migration costs.
-
Token spend math
EN
Prompt Caching: How Cache Reads Lower the Bill
A numbered walkthrough for structuring reusable prompts, verifying cache reads, and measuring real savings without confusing hits with free tokens.
-
Agent workflows
EN
Estimate Your Monthly Claude Code Cost in Seven Steps
Build a monthly Claude Code budget from measured usage, actual token rates, caching, and the tasks you expect to finish.
-
Agent workflows
EN
Per-Token Billing for Coding Agents: A Walkthrough
Trace a coding agent’s bill from prompts and tool calls to caching, retries, and practical controls for predictable spending.
-
Model matrix
EN
Opus vs Sonnet: When the Larger Model Earns Its Keep
A practical walkthrough for deciding when to escalate engineering work from Sonnet to Opus, using tests, failure costs, and measured outcomes.
-
Protocol internals
EN
Comparing Reasoning Models on Concurrency Bugs
A numbered walkthrough for testing reasoning models on race conditions, deadlocks, cancellation, and the quality of their proposed fixes.
-
Model matrix
EN
Which Model Should Write Your Documentation?
A numbered walkthrough for choosing a documentation model using real tasks, source grounding, executable checks, and review effort.
-
Model matrix
EN
Grok 4.7 for Quick Scripting: A Practical Comparison
A numbered walkthrough for comparing Grok 4.7 on small scripting tasks, with practical checks for correctness, safety, and iteration cost.
-
Model matrix
EN
Qwen3.8 Max vs GLM-5.3 for Backend Work
A numbered walkthrough for comparing Qwen3.8 Max and GLM-5.3 on API changes, database migrations, debugging, and production readiness.
-
Model matrix
EN
Read Long Specifications with Kimi K3 in 8 Steps
A practical walkthrough for turning long specifications into traceable requirements, resolved questions, and reviewable engineering tasks.
-
Model matrix
EN
DeepSeek V4 Pro for Algorithm-Heavy Code
A practical walkthrough for using DeepSeek V4 Pro to design, verify, and integrate algorithm-heavy code without trusting plausible output.
-
Model matrix
EN
Context Windows: A Monorepo Walkthrough
A practical walkthrough of token budgets, repository retrieval, and verification for reliable AI-assisted work in monorepos.
-
Model matrix
EN
Which Model Reads Long Stack Traces Most Reliably?
A numbered walkthrough for testing stack-trace accuracy, preserving causal context, and choosing a model for dependable debugging.
-
Model matrix
EN
Picking the Right Model for Generating Tests
A practical walkthrough for evaluating test-generation models using real defects, mutation checks, context needs, and total engineering cost.
-
Model matrix
EN
Haiku 4.5 as an Inexpensive First-Pass Reviewer
Build a practical first-pass review workflow with Haiku 4.5, bounded inputs, evidence-based findings, and selective escalation.
-
Agent workflows
EN
Recovering from a Coding Agent’s Bad Multi-File Edit
A practical, seven-step walkthrough for preserving local work, reversing agent damage, and verifying a safe recovery across multiple files.
-
Agent workflows
EN
Split Work Between Gemini CLI and Claude Code
A practical walkthrough for dividing repository research, implementation, and verification between Gemini CLI and Claude Code.
-
Agent workflows
EN
Coding Assistant Habits That Shorten Code Review
A practical walkthrough for using coding assistants to produce smaller diffs, clearer tests, and pull requests that reviewers can verify quickly.
-
Agent workflows
EN
What Claude Code Remembers Between Sessions
A practical walkthrough of Claude Code sessions, CLAUDE.md, automatic memory, and the context you should save before starting fresh.
-
Agent workflows
EN
Read an Unfamiliar Codebase in One Afternoon
A seven-step walkthrough for using a coding agent to map a repository, trace behavior, test assumptions, and leave a useful handoff.
-
Agent workflows
EN
Codex for Infrastructure Changes You Can Review
A numbered workflow for using Codex on infrastructure-as-code changes while keeping diffs small, plans explicit, and approvals human.
-
Agent workflows
EN
Claude Code in a Devcontainer: A Practical Walkthrough
Set up Claude Code in a devcontainer with reproducible tooling, runtime credentials, gateway routing, and sensible permission boundaries.
-
Agent workflows
EN
One Endpoint for Your VS Code Coding Assistants
A practical walkthrough for routing VS Code coding assistants through one API hub without mixing up credentials, models, or protocols.
-
Agent workflows
EN
When Coding Agents Should Pause Before Shell Commands
A practical walkthrough for deciding when a coding agent can run a shell command, needs a safer plan, or must ask for approval.
-
Agent workflows
EN
Give Coding Agents a Dependable Unit Test Playbook
A numbered walkthrough for instructing coding agents to write deterministic, behavior-focused unit tests that catch meaningful regressions.
-
Agent workflows
EN
Codex Sandbox and Approvals: A Cautious Team Guide
A numbered walkthrough for choosing Codex sandbox boundaries, approval policies, network access, and safe automation defaults.
-
Agent workflows
EN
Keep Your Coding Agent in Its Own Git Worktree
A practical walkthrough for isolating agent edits with Git worktrees, explicit tool paths, sandbox boundaries, and review gates.
-
Agent workflows
EN
Claude Desktop vs. Terminal: A Daily Walkthrough
A practical walkthrough for choosing Claude Desktop or Claude Code, managing repository access, reviewing changes, and configuring API routing.
-
Agent workflows
EN
Two Coding Agents, One Repository, No Collisions
A practical walkthrough for isolating two coding agents, assigning ownership, and integrating their changes without repository collisions.
-
Agent workflows
EN
Pair Programming with Claude Code in a Large Monorepo
A practical walkthrough for scoping changes, tracing dependencies, testing behavior, and reviewing Claude Code patches in a large monorepo.
-
Agent workflows
EN
Gemini CLI for Small Shell Automation
A practical numbered walkthrough for using Gemini CLI to handle focused shell automation chores safely.