TechInsights.app

Practical, in-depth guides for people who build with AI.

Tutorials, prompt engineering, and developer reference for people who build with AI — not just read about it.

264+ Articles published
101 Categories
Clean Up QuickBooks POS Data Before You Migrate: Merge Duplicates and Run Verify Data
Featured · Data Migration

Clean Up QuickBooks POS Data Before You Migrate: Merge Duplicates and Run Verify Data

Merge duplicate items and customers, then check the company file for damage, so you do not carry a mess into your next system.

Read the full story →

Latest articles

Calibrate an LLM Judge Against Human Labels Before You Trust Its Scores: Kappa, Swap Tests, and Per-Class Errors AI Engineering Practice
AI Engineering Practice

Calibrate an LLM Judge Against Human Labels Before You Trust Its Scores: Kappa, Swap Tests, and Per-Class Errors

An LLM judge is a measuring instrument. Before its scores drive a release decision, check how often it agrees with careful human reviewers, where it is biased, and which classes it gets wrong.

News Brief 7 min read
Don't Run a Tool Call Until Its Block Closes: Gating Streamed Tool Arguments AI Engineering Practice
AI Engineering Practice

Don't Run a Tool Call Until Its Block Closes: Gating Streamed Tool Arguments

Streaming lets a chat UI feel fast. For tool use it also means your client holds a call that has started but not finished, so the code reading the stream needs a rule for when an argument becomes a command.

News Brief 7 min read
Fuzz the Arguments, Not the Prompt: Property-Based Tests for Agent Tool Validators AI Engineering Practice
AI Engineering Practice

Fuzz the Arguments, Not the Prompt: Property-Based Tests for Agent Tool Validators

Models send near-miss tool arguments: booleans as numbers, trailing newlines, Unicode digits. Three properties and a property-testing library find the validator bugs hand-written cases miss.

News Brief 7 min read
Quarantine Flaky Eval Cases: Repeat Each Case, Sort by Stability, and Fix the Grader Before the Prompt AI Engineering Practice
AI Engineering Practice

Quarantine Flaky Eval Cases: Repeat Each Case, Sort by Stability, and Fix the Grader Before the Prompt

A noisy overall score usually comes from a minority of unstable cases. Run each case several times, bucket by outcome, and handle graders, inputs and borderline tasks differently.

News Brief 7 min read
Single-Flight for LLM Calls: Coalescing Identical In-Flight Requests Without Sharing the Wrong Answer AI Engineering Practice
AI Engineering Practice

Single-Flight for LLM Calls: Coalescing Identical In-Flight Requests Without Sharing the Wrong Answer

Duplicate requests that arrive while the first is still running slip past any cache. A small coalescing layer fixes that, if you get the key, cancellation and error handling right.

News Brief 7 min read
Stuck Agents Don't Announce Themselves: Detecting Loops With Call-and-Result Fingerprints AI Engineering Practice
AI Engineering Practice

Stuck Agents Don't Announce Themselves: Detecting Loops With Call-and-Result Fingerprints

A step cap ends a stuck run after the money is spent. Fingerprint each tool call and its result, tell polling from looping, and respond in stages before the budget is gone.

News Brief 7 min read
Read 40 Failures Before You Edit the Prompt: Building a Failure Taxonomy From Eval Results AI Engineering Practice
AI Engineering Practice

Read 40 Failures Before You Edit the Prompt: Building a Failure Taxonomy From Eval Results

A pass rate says how often you fail, not why. How to label a sample of failing eval cases, tally the labels, and let the dominant failure mode, including a bad grader, decide your next fix.

News Brief 7 min read
Make Side-Effecting Tool Calls Idempotent: Derived Keys, a Claim Ledger, and the Retry That Sends Two Emails AI Engineering Practice
AI Engineering Practice

Make Side-Effecting Tool Calls Idempotent: Derived Keys, a Claim Ledger, and the Retry That Sends Two Emails

A timeout doesn't tell you whether an agent's write happened. How to derive idempotency keys in the harness, enforce them with an atomic ledger, handle downstreams without key support, and test the lost-acknowledgement case.

News Brief 7 min read
Canary Tokens for LLM Prompts: Detecting System Prompt and Cross-Tenant Context Leaks in Production AI Engineering Practice
AI Engineering Practice

Canary Tokens for LLM Prompts: Detecting System Prompt and Cross-Tenant Context Leaks in Production

Plant a unique token in the text you want to protect, scan every output for it, and turn silent leakage into an alert you can test. Includes a streaming-safe scanner and what canaries cannot catch.

News Brief 7 min read
Prompt Ablation: Deleting Instructions One at a Time to Find Which Ones Actually Work AI Engineering Practice
AI Engineering Practice

Prompt Ablation: Deleting Instructions One at a Time to Find Which Ones Actually Work

Production prompts accumulate rules nobody can justify. A paired, noise-aware ablation loop shows which clauses are load-bearing, which are dead, and which are quietly hurting.

News Brief 7 min read
Permission-Aware Retrieval: Enforce Document Access Before the Model Ever Sees It AI Engineering Practice
AI Engineering Practice

Permission-Aware Retrieval: Enforce Document Access Before the Model Ever Sees It

A prompt instruction can't keep a RAG assistant from leaking restricted documents. Here is how to filter on the retrieval path, fail closed, and test it with a cross-user matrix.

News Brief 7 min read
Model Output Is Untrusted Markup: Rendering LLM Markdown Without XSS or Image-and-Link Exfiltration AI Engineering Practice
AI Engineering Practice

Model Output Is Untrusted Markup: Rendering LLM Markdown Without XSS or Image-and-Link Exfiltration

A rendering pipeline, URL allowlist hook, CSP backstop and CI fixture table for showing model-generated Markdown safely, including the exfiltration path that sanitizers keep by design.

News Brief 7 min read
Break the Tools on Purpose: Fault-Injection Tests That Catch Agents Claiming Work They Didn't Do AI Engineering Practice
AI Engineering Practice

Break the Tools on Purpose: Fault-Injection Tests That Catch Agents Claiming Work They Didn't Do

Happy-path agent tests miss the costly failure: a confident report of an action that failed or ran twice. Inject tool faults on a fixed schedule, record real side effects in a ledger, and check the agent's claims against it.

News Brief 7 min read
Anthropic Goes Public: ANT Jumps 17% in a Record Nasdaq Debut AI News
AI News

Anthropic Goes Public: ANT Jumps 17% in a Record Nasdaq Debut

Anthropic priced its IPO at $83, opened at $111.50 and closed its first day at $97.17, worth about $1.8 trillion. Here are the numbers, the owners, the criticism and what it means for developers.

News Brief 5 min read
Load Testing an LLM Endpoint: Real Token Mixes, Open-Loop Arrivals, and Streaming Metrics AI Engineering Practice
AI Engineering Practice

Load Testing an LLM Endpoint: Real Token Mixes, Open-Loop Arrivals, and Streaming Metrics

A fixed prompt hammered by a worker pool hides queuing and flatters your capacity. Build the workload from logs, schedule arrivals in advance, and measure time to first token, truncated streams, and the knee in tokens per second.

News Brief 8 min read
Hedged Requests for LLM Calls: Cutting Tail Latency Without Doubling the Bill AI Engineering Practice
AI Engineering Practice

Hedged Requests for LLM Calls: Cutting Tail Latency Without Doubling the Bill

When a few calls take far longer than the rest, a second copy sent at the p95 mark can rescue the tail. Here is how to pick the delay, cancel the loser, cap the spend, and spot when hedging can't help.

News Brief 8 min read
Pick an Abstain Threshold From a Risk–Coverage Curve: Error Budgets for LLM Features That Can Say "Not Sure" AI Engineering Practice
AI Engineering Practice

Pick an Abstain Threshold From a Risk–Coverage Curve: Error Budgets for LLM Features That Can Say "Not Sure"

Stop hardcoding confidence < 0.8. Measure coverage against selective risk on labeled data, choose the threshold on an upper confidence bound, confirm it on a held-out split, and re-fit it whenever the model or prompt changes.

News Brief 8 min read
Is That Eval Gain Real? Paired Tests and Confidence Intervals for Prompt and Model Changes AI Engineering Practice
AI Engineering Practice

Is That Eval Gain Real? Paired Tests and Confidence Intervals for Prompt and Model Changes

A 3-point jump on 200 cases can be pure noise. Use paired comparisons, an exact McNemar test, clustered bootstrap intervals and A/A runs to tell real improvements from run-to-run variance.

News Brief 8 min read
Cluster Production Queries Before You Write Evals: Finding the Intents Your Test Set Is Missing Developer Tools & AI Engineering
Developer Tools & AI Engineering

Cluster Production Queries Before You Write Evals: Finding the Intents Your Test Set Is Missing

Embed a redacted sample of real queries, cluster them with HDBSCAN, and map your eval cases onto the same clusters to see which user intents your test set never checks.

News Brief 8 min read
Five Copies of the Same Paragraph: Deduplicating and Diversifying Retrieved Context for RAG AI Engineering Practice
AI Engineering Practice

Five Copies of the Same Paragraph: Deduplicating and Diversifying Retrieved Context for RAG

Top-k similarity can fill your context with near-identical chunks and push out the one that holds the exception. Hashing, maximal marginal relevance and per-source caps fix it, if you measure fact coverage rather than relevance alone.

News Brief 8 min read
Metamorphic Tests for LLM Features: Checking How Outputs Should Change When There's No Answer Key Tutorials
Tutorials

Metamorphic Tests for LLM Features: Checking How Outputs Should Change When There's No Answer Key

You can't assert an exact answer for a summary or a classifier's judgment, but you can assert how outputs should relate when you change the input in controlled ways.

News Brief 3 min read
An agent checkpoint needs a workspace–transcript pair, not two latest files

An agent checkpoint needs a workspace–transcript pair, not two latest files

A reproducible local Python model of mismatched recovery state, with explicit limits on what it proves.

News Brief 6 min read

From our articles

Frequently asked questions

Is TechInsights free to read?

Yes — every article is free to read, and so are bookmarks, reading history, and submitting your own articles, jobs and courses.

How often is new content published?

New tutorials, prompt-engineering write-ups, and industry notes are published continuously — check the feed or subscribe to the newsletter to stay current.

How is TechInsights funded?

By advertising, plus optional paid featured placements for job and directory listings. Nothing you read is behind a paywall.

Can I contribute or pitch an article?

Yes — any signed-in reader can submit a guest article, a job, or a course. An editor reviews every submission before it goes live.