Blog

Thoughts on development, algorithmic trading, and building products.

Agent Harness Architecture: The Primitives That Make AI Agents Reliable

Agent = Model + Harness. The model is raw intelligence; the harness is the runtime that turns an unpredictable, amnesic model into a production system. The failure modes of unguided agents and the core primitives — resilient tool execution, context assembly, sandboxing, and bounded error escalation — that engineer reliability in.

agent-harnessai-agentsagentic-ai
Read more

Kimi K3: The Open-Weight MoE Model That Caught Up to the Frontier

Moonshot AI's Kimi K3 is a 2.8-trillion-parameter open-weight Mixture-of-Experts model that trades blows with closed frontier labs on coding and reasoning — and you can download the weights. What it is, where it shines, and the tension between democratizing intelligence and shipping unfiltered power.

kimi-k3moonshot-aiopen-weights
Read more

Agentic Compute Graphs: Static vs Dynamic Agent Workflows

Should your agent follow a fixed script or decide its own path at runtime? The plasticity spectrum between static workflows and dynamic multi-agent systems, the token tax of over-provisioning, LangChain vs LangGraph, and a practical architect's playbook.

ai-agentsagentic-systemscompute-graph
Read more

The Karpathy Loop & AI Arbitrage: Capturing Agentic Value

AI arbitrage is the spread between what an agent can now do autonomously and what the market still pays humans to do. The Karpathy Loop is how you capture it: Software 3.0, a self-improving read-evaluate-commit ratchet, the capability gap, and a blueprint for value capture.

ai-arbitragekarpathyagentic-engineering
Read more

How Knowledge Graphs Help AI Actually Solve Algebra

LLMs write flawless-looking math and still get the answer wrong, because next-token prediction is probabilistic, not provable. How knowledge graphs fix that: the neurosymbolic pipeline, Paths-over-Graph and KG-RAR, and why traceable reasoning beats raw accuracy.

knowledge-graphsai-reasoningneurosymbolic-ai
Read more

The Life Harness: How AI Models Actually Touch the Real World

A model on its own can't perceive, act, or get feedback from the physical world. The Life Harness is the four-layer interface that makes it reliable — environment contract, trajectory regulation, action fixer, and procedural memory.

life-harnessai-agentsagent-architecture
Read more

Self-Evolving Agentic Memory: Compiling Knowledge Instead of Retrieving It

Most agents forget everything between sessions. This is the opposite: a self-evolving memory built with Claude Code and a Karpathy-style architecture — why standard RAG fails agents, how a compile-time knowledge graph beats query-time retrieval, and the loop that makes knowledge compound.

claude-codeagentic-memoryknowledge-compilation
Read more

Vibe Graphing: The Multi-Agent System Factory

Shrinking a 1,500-line multi-agent workflow to 45 lines and letting an AI compiler wire the graph for you. The cost of hand-wiring agents, intent-to-executable-graph, the shift from coding to reviewing, and the economics of a graph-centric future.

multi-agent-systemsvibe-graphingai-compiler
Read more
Teaching Kimi to Speak Claude Code: A Field Guide to Tool-Format Translation

Teaching Kimi to Speak Claude Code: A Field Guide to Tool-Format Translation

Every utility that translates tool-calling formats between LLM providers — LiteLLM, Bifrost, Portkey, claude-code-router, Vercel AI SDK, first-party /anthropic endpoints — what each one actually does, and the three failure classes none of them have solved. Plus the conclusion I arrived at: stop adapting context downward to each model, and build a harness that orchestrates harnesses instead.

llmclaude-codetool-calling
Read more
The Harness, Not the Model: Why the Same LLM Burns 4× the Tokens Without the Right Scaffolding

The Harness, Not the Model: Why the Same LLM Burns 4× the Tokens Without the Right Scaffolding

A token-efficiency reading of the 'harness > model' thesis: the same model solved 6.7% of tasks bare vs 68% with the right harness — at 4× fewer tokens. What a harness is, why it's where the token bill actually lives, and what the Life-Harness and Meta-Harness papers prove. Plus how your Claude Code stack (subagents, skills, hooks, graphs) already is a harness.

harnessclaude-codetokens
Read more
Email on your own domain without a mail server: receive via Cloudflare, send via Resend, and let an AI agent write the emails

Email on your own domain without a mail server: receive via Cloudflare, send via Resend, and let an AI agent write the emails

How to assemble a working [email protected] mailbox in one evening with no mail server at all: receive mail through free Cloudflare Email Routing forwarded to Gmail, send through the Resend API on top of Amazon SES, and as a bonus — Claude Code that emails you over the API. Inside: why receiving and sending don't conflict, real Cloudflare and Resend API calls, and the gotchas I hit.

cloudflareresendemail
Read more
How to Make YouTube Videos with NotebookLM: A Complete Guide

How to Make YouTube Videos with NotebookLM: A Complete Guide

Step-by-step tutorial: use NotebookLM to generate audio and slides, then assemble everything into a YouTube video with subtitles, chapter timestamps and metadata — and publish it automatically through a browser session. No video editors, no API keys, no manual upload.

notebooklmyoutubeautomation
Read more
How to Save Tokens in LLM: A Practical Guide for Claude Code

How to Save Tokens in LLM: A Practical Guide for Claude Code

Working approaches to saving tokens in Claude Code and Opus 4.7/4.8: subagents, skills, hooks, Chinese models, knowledge graphs, RAG, xhigh effort, session management, summarization on a cheap model, input compression (headroom, pxpipe, mcp-compressor), and server-side savings (Tool Search, context editing, prompt caching, Batches API). A checklist to cut costs by 10x.

llmclaude-codeoptimization
Read more