● 45 posts

Blog

Essays and field notes on agentic engineering, RAG, and running AI in production.

I Built a Load Balancer for My Claude Code Subscriptions

I hit my Claude Code rate limit three times last Tuesday. Each time, I had to stop what I was doing, log out, log into a different subscription, and pick up where I left off. The context was gone. The

  • claude-code
  • open-source
  • developer-tools

Git Worktrees Ate My Edits — Why We Switched to Dedicated Machines for Agent Isolation

I was in the middle of a refactor — removing dead code from a shared SDK module — when my edits vanished. No error. No warning. Just gone.

  • ai
  • agents
  • git

Building on Giants: How Daniel Miessler's PAI Became My Foundation

I'd been building my AI infrastructure for months before I found a name for it. I had a CLAUDE.md with operating modes, a folder of skills, a deploy script that pushed everything to multiple machines.

  • claude-code
  • ai
  • pai

Skills Are Just the Beginning: The 4-Layer Agent Stack

I kept writing skills. New skill for code review. New skill for deployment. New skill for browser automation. Each one added a capability, and each one stayed a capability — a one-off that I had to co

  • claude-code
  • ai
  • skills

Version-Controlling Your AI's Brain

I had four machines. My AI assistant behaved differently on each one.

  • ai
  • developer-tools
  • claude-code

PAI: The Operating System I Built Around My AI Assistant

The first real sign I had a system rather than a workflow was when I noticed the assistant failing gracefully.

  • ai
  • developer-tools
  • claude-code

Your CLAUDE.md Is Probably Making Your Agent Worse

I had a 2,000-word CLAUDE.md in one of my repos. It covered architecture, directory structure, coding conventions, style rules — the works. Every time I ran Claude Code or Codex against the codebase,

  • ai
  • developer-tools
  • context-engineering

Agentic Engineering, Part 1: Building Skills That Ship Code for You

Three months ago, I was letting my AI agent write code directly on the production server. No branches, no CI, no tests between "idea" and "live in production." If the agent broke something at 2 AM, th

  • agentic-engineering
  • claude-code
  • ci-cd

Agentic Engineering, Part 2: Adversarial Code Review That Loops Until Clean

Unit tests tell you if the code you wrote works. They don't tell you about the code you forgot to write. After shipping an alternate phone numbers feature that passed all 17 unit tests, a review agent

  • agentic-engineering
  • claude-code
  • code-review

Agentic Engineering, Part 3: Tracing Every Code Path Before It Becomes a Bug

BugBot finds bugs in code that's already written. But what about the bugs that exist because the architecture is wrong — where the code does exactly what it says, but "what it says" is inconsistent ac

  • agentic-engineering
  • claude-code
  • architecture

Agentic Engineering, Part 4: Nine Skills That Replaced My Dev Process

Over the past three posts, I've covered the individual pieces: DevFlow for CI/CD enforcement, BugBot for adversarial review, and ArchReview for architectural tracing. But skills don't live in isolatio

  • agentic-engineering
  • claude-code
  • devops

I Built a Bug-Hunting Loop That Doesn't Quit: The BugBot Methodology

Every code review I've ever done was a single pass. You open the diff, read through it, maybe catch a few things, leave some comments, approve. The problem is bugs don't care about your review flow. T

  • ai-agents
  • code-review
  • debugging

Why the Same Code Looks Different From Every Angle: BugBot Lessons Learned

After running BugBot across several real codebases, the result that surprised me most wasn't the bugs it found. It was which iteration found them. The same files, reviewed from a different angle in a

  • ai-agents
  • code-review
  • debugging

Implementing the GCC Paper: Giving AI Agents Persistent, Structured Memory

I run AI coding agents across multiple machines, multiple sessions, sometimes for days at a time. The biggest frustration isn't capability — it's amnesia. Every new session starts from zero. The agent

  • ai-agents
  • memory
  • claude-code

Two Healthcare Sites, 400 Lighthouse Points, and the Lessons That Got Us There

When I checked our mobile Lighthouse scores last month, both of our clinic websites — arcs.health and covenant.clinic — were in rough shape. Not broken, but mediocre. The kind of scores that quietly c

  • web-performance
  • healthcare
  • lighthouse

Debugging a Ghost in the Machine: Session Isolation for Claude Code Plugins

I run multiple Claude Code sessions in the same project all the time. One session handles a long-running task via a Ralph Wiggum loop (a self-referential iteration technique), while I open another ses

  • claude-code
  • ai-tooling
  • hooks

Field-Level Ensemble OCR: Getting 74.8% Accuracy from Two Mediocre Vision Models

I've been running OCR on insurance cards at our urgent care clinics for a few months now. Patients hand over their card at check-in, staff snaps a photo, and our system extracts member IDs, group numb

  • ai
  • healthcare
  • ocr

Patching Synology Active Backup for Linux to Run on Kernel 6.17

Synology Active Backup for Business is one of the best self-hosted backup solutions out there — agent-based, centralized, bare-metal restore capable. There's just one problem: the Linux agent only off

  • linux
  • kernel
  • synology

From 5.6% to 62.3% Accuracy: Building a Self-Hosted Insurance Card OCR Service

Insurance card data entry is one of the most tedious bottlenecks in patient onboarding. Commercial OCR services charge per page and require sending patient data to third-party servers. I wanted to see

  • ai
  • healthcare
  • python

Two AI Trends Transforming Urgent Care in 2026

Urgent care operates in a constant state of tension. Providers spend more time documenting visits than examining patients. Front desk staff juggle phone calls, check-ins, and insurance verification wh

  • healthcare
  • ai
  • urgent-care

The Burden of Being: Why Responsibility Might Be the Antidote to Modern Nihilism

When someone asks you what makes life meaningful, the reflexive answer is usually something about happiness, fulfillment, or pleasure. But Jordan Peterson argues we're asking the wrong question. The b

  • Philosophy
  • Jordan Peterson
  • Existentialism

The 4-Line Architecture That Beat Complex AI Frameworks

Claude Code's entire architecture is fundamentally just one while loop. Not as a simplification—literally. While competitors build orchestration frameworks with task queues, agent hierarchies, and com

  • AI
  • Software Engineering
  • Architecture

Building an AI Patient Chatbot for Urgent Care with n8n, GPT-4, and Langfuse

When patients call or message an urgent care clinic, they're usually asking the same questions: "What are your hours?" "Do you take my insurance?" "How long is the wait right now?" These repetitive in

  • ai
  • healthcare
  • n8n

The Delayed Prescription Strategy: How to Reduce Antibiotic Use 62% While Maintaining Patient Satisfaction

Every urgent care provider knows the pressure. A parent brings in a child with an ear infection. The exam is ambiguous — it could be viral, could be bacterial. You know antibiotics probably won't help

  • healthcare
  • urgent-care
  • clinical-operations

Why Urgent Care Centers Are Ditching Walk-In-Only: The Hybrid Scheduling Revolution

The urgent care industry is undergoing a quiet revolution in how patients are seen. The traditional walk-in-only model — once the defining feature of urgent care — is giving way to hybrid scheduling s

  • healthcare
  • operations
  • urgent-care

Machiavelli Was Right: 8 Strategic Principles Every Leader Should Understand

Niccolo Machiavelli has been misunderstood for 500 years. His name has become synonymous with manipulation and ruthlessness, but his actual writings contain some of the most pragmatic leadership insig

  • philosophy
  • leadership
  • operations

How I Built a $2,300/Year RAG System That Rivals $40K OpenAI Solutions

In October 2025, I deployed a production RAG system that would have cost $39,600 annually using OpenAI's APIs. My actual cost? $2,300 per year. That's 94% cost savings while maintaining comparable per

  • ai
  • llm
  • rag

What Peterson's Genesis Lectures Teach About Sacrifice: Why Abraham Waited 100 Years

The story of Abraham waiting 100 years for a son, only to be asked to sacrifice him, seems absurd on its face. Why would ancient cultures preserve such a psychologically brutal narrative? Dr. Jordan P

  • philosophy
  • psychology
  • meaning

The 6-Task System: How I Manage Knowledge Work with PARA + Ivy Lee Method

The best productivity system is the one you'll actually use. After years of experimenting with todo apps, kanban boards, and elaborate task managers, I found something that works: a hybrid of Tiago Fo

  • productivity
  • knowledge-management
  • personal-systems

Why Terminal Multiplexers Are an Anti-Pattern: Lessons from Kitty's Creator

If you're a developer, you probably use tmux or screen. You might even consider it essential infrastructure. But according to Kovid Goyal, creator of the Kitty terminal emulator, terminal multiplexers

  • developer-tools
  • architecture
  • performance-optimization

The Three Levels of Why: Why Surface Motivation Fails and How to Find Your Primal Drive

Every January, millions of people set ambitious goals. By February, 80% have abandoned them. The conventional wisdom blames willpower, discipline, or commitment. But the real problem runs deeper: most

  • psychology
  • motivation
  • entrepreneurship

The Universal Algorithm: How One Framework Scales from Bug Fixes to Building Companies

What if one algorithm could handle everything—from fixing a typo to architecting a distributed system to building an entire company? Not a vague philosophy, but a precise, verifiable framework with me

  • ai
  • architecture
  • algorithms

Building Tools to Fix Real Problems: A Patient Insurance Education App

I got a 4-star Google review last week that bothered me more than it should have.

  • healthcare
  • operations
  • tools

Building an Enterprise RAG System with Local SLMs: My Journey with Phi-4 and LightRAG

After spending months helping enterprises build AI systems, I noticed a pattern: everyone wanted powerful RAG capabilities, but few were comfortable shipping their proprietary data to external APIs. T

  • ai
  • llm
  • rag

Building an AI Analysis Agent in Hours - A No-Code Approach with Lovable and N8N

I used to spend 6+ hours writing Analysis of Alternatives reports. Last week, I built an AI agent that does it in minutes - and you can too, without writing complex code.

  • ai
  • no-code
  • lovable

Supporting SSE for Model Context Protocol (MCP) in Python - Introducing fastapi-mcp-client

I've been working on a project to support SSE for MCP. Couldn't find any good example on the client in Python for supporting SSE with FastAPI MCP. So I wrote it up myself and thought I will share ever

  • python
  • sse
  • fastapi

Architecting Extensible AI Agents - A Modular Core with Pluggable Skills and SSE Communication

Learn how to architect AI agent systems with a modular, skill-based approach and implement real-time communication using Server-Sent Events (SSE).

  • ai-agents
  • microservices
  • sse

Building Reliable AI Agents - Implementing Advanced Evaluation with Azure AI SDK and Custom APIM Integration

Learn how to implement robust evaluation for AI agents using Azure AI Evaluation SDK when working with Azure API Management (APIM), overcoming authentication and integration challenges.

  • azure
  • openai
  • evaluation

Porting GPTResearcher to Semantic Kernel - Building an Enterprise-Ready Research Agent

Learn how to transform an open-source AI research agent into an enterprise-ready solution using Microsoft's Semantic Kernel framework with Azure OpenAI.

  • semantic-kernel
  • azure-openai
  • ai-agents

Accelerating Document Intelligence - A Deep Dive into GPU-Powered RAG Processing

Learn how to leverage GPU acceleration to significantly improve document processing speed in Retrieval-Augmented Generation (RAG) systems.

  • rag
  • gpu-acceleration
  • document-processing

Building an Enterprise-Grade RAG System - A Deep Dive into Advanced Document Intelligence

This blog post details the technical architecture and innovations that make this system particularly effective for enterprise use cases.

  • rag
  • ai
  • document-intelligence

Defining PII Masking Policies with AWS Bedrock Guardrails

- Amazon Bedrock Guardrails are a robust feature within the Amazon Bedrock service designed to enhance the safety, compliance, and overall quality of interactions with AI models. Guardrails provide a

  • aws
  • bedrock
  • guardrails

Fine-Tuning Microsoft Phi-2 for Sentiment Analysis - A Step-by-Step Guide

Microsoft Phi-2 Fine Tuning - Learn how to adapt this powerful small language model for sentiment analysis of employee performance data using LoRA and quantization.

  • llm
  • fine-tuning
  • sentiment-analysis

Optimizing Apache Spark Performance for Skewed Data - Advanced Techniques and Case Study

Learn advanced techniques to tackle the performance challenges of processing skewed data distributions in Apache Spark, backed by a real-world case study with 5x performance improvement.

  • apache-spark
  • big-data
  • performance-optimization

Sentiment Analysis - Comparing Azure, AWS, and Custom Fine-Tuned Models

A comprehensive comparison of sentiment analysis capabilities across Azure Cognitive Text Analytics, AWS Comprehend, and custom fine-tuned models like RoBERTa and Phi2.

  • sentiment-analysis
  • azure
  • aws