DEV Community

ai-agents-in-production Series' Articles

Back to Royal Simpson Pinto's Series
Enforce Permissions Inside the pgvector Query, Not After It

Enforce Permissions Inside the pgvector Query, Not After It

Comments
5 min read
Combining Vector and Full-Text Search with Reciprocal Rank Fusion

Combining Vector and Full-Text Search with Reciprocal Rank Fusion

Comments
5 min read
Merkle Trees and Inclusion Proofs in Python From Scratch

Merkle Trees and Inclusion Proofs in Python From Scratch

Comments
5 min read
Signing and Verifying Data with Ed25519 in Python

Signing and Verifying Data with Ed25519 in Python

2
Comments
4 min read
Why Your JSON Signatures Break: A Guide to Deterministic Canonical Serialization in Python

Why Your JSON Signatures Break: A Guide to Deterministic Canonical Serialization in Python

Comments
5 min read
Emit SARIF 2.1.0 From Your Linter So Findings Show Up in GitHub Code Scanning

Emit SARIF 2.1.0 From Your Linter So Findings Show Up in GitHub Code Scanning

Comments
4 min read
Connect to Any MCP Server in TypeScript Over stdio and HTTP, Then List Its Tools

Connect to Any MCP Server in TypeScript Over stdio and HTTP, Then List Its Tools

Comments 1
4 min read
Building a Minimal MCP Server with Scoped Tools and Per-Client Boundaries

Building a Minimal MCP Server with Scoped Tools and Per-Client Boundaries

Comments 1
5 min read
Pause a LangGraph Agent Mid-Run for Human Approval with interrupt and a Checkpointer

Pause a LangGraph Agent Mid-Run for Human Approval with interrupt and a Checkpointer

Comments
5 min read
Parsing Claude Code Session Transcripts in Python: Turns, Tool Calls, and Results

Parsing Claude Code Session Transcripts in Python: Turns, Tool Calls, and Results

Comments
5 min read
Counting LLM Tokens in Python: tiktoken vs a Dependency-Free Heuristic

Counting LLM Tokens in Python: tiktoken vs a Dependency-Free Heuristic

Comments
4 min read
Deploy a Next.js App Router App to Cloudflare Workers with OpenNext and a D1 Database

Deploy a Next.js App Router App to Cloudflare Workers with OpenNext and a D1 Database

Comments
5 min read
Migrating a Synchronous better-sqlite3 Layer to Async Cloudflare D1 (Without Losing Local Dev)

Migrating a Synchronous better-sqlite3 Layer to Async Cloudflare D1 (Without Losing Local Dev)

Comments
5 min read
Canary Tokens for LLM Systems: Detect Prompt Injection and Data Leaks by Watching Your Own Outputs

Canary Tokens for LLM Systems: Detect Prompt Injection and Data Leaks by Watching Your Own Outputs

Comments
4 min read
Build a Deterministic Mock LLM Provider So Your Eval Suite Runs With No API Keys and No Network

Build a Deterministic Mock LLM Provider So Your Eval Suite Runs With No API Keys and No Network

2
Comments 5
4 min read
Making LLM-as-Judge Scoring Reproducible and Trustworthy

Making LLM-as-Judge Scoring Reproducible and Trustworthy

1
Comments 6
4 min read
Scoring Text Similarity With Embeddings, With a Deterministic Offline Fallback for Tests

Scoring Text Similarity With Embeddings, With a Deterministic Offline Fallback for Tests

Comments 2
4 min read
Fixed-Window Rate Limiting for a TypeScript API Route

Fixed-Window Rate Limiting for a TypeScript API Route

Comments
5 min read
Signed-Cookie Sessions Without a Login (HMAC in About 40 Lines)

Signed-Cookie Sessions Without a Login (HMAC in About 40 Lines)

Comments
4 min read
Build a Durable Scheduled-Task Pipeline with n8n and a Cloudflare D1 Queue

Build a Durable Scheduled-Task Pipeline with n8n and a Cloudflare D1 Queue

Comments 1
5 min read
A Practical Taxonomy of Prompt Injection: 11 Techniques and What Stops Each One

A Practical Taxonomy of Prompt Injection: 11 Techniques and What Stops Each One

Comments
5 min read
Filtering After Retrieval Leaks Your Documents. Put the ACL Inside the Query.

Filtering After Retrieval Leaks Your Documents. Put the ACL Inside the Query.

Comments 2
5 min read
Stop Building Agents as While-Loops. Model Them as State Machines.

Stop Building Agents as While-Loops. Model Them as State Machines.

3
Comments 5
5 min read
Reading Agent Transcripts for Real Observability, Without Instrumentation

Reading Agent Transcripts for Real Observability, Without Instrumentation

1
Comments
5 min read
The Eval Scorers You Actually Need for LLM Apps (and When to Use Each)

The Eval Scorers You Actually Need for LLM Apps (and When to Use Each)

1
Comments
5 min read
When There Is No Internet: Delay-Tolerant Networking and Epidemic Routing Explained

When There Is No Internet: Delay-Tolerant Networking and Epidemic Routing Explained

Comments
5 min read
Context-Window Economics: What Actually Eats Your Agent's Tokens

Context-Window Economics: What Actually Eats Your Agent's Tokens

3
Comments 3
5 min read