DEV Community

Agentwright

Engineering notes on building Claude agent products

Organization Settings Admin

Engineering notes on building Claude-based agent products: metering, prompt caching, evals, MCP and billing. Articles are written with AI assistance and checked before publishing.

Build a remote MCP server on Cloudflare Pages without an SDK (about 200 lines of TypeScript)

Build a remote MCP server on Cloudflare Pages without an SDK (about 200 lines of TypeScript)

Comments
5 min read
Evals for a Claude agent in 140 lines of TypeScript: golden cases, tool checks and a CI gate

Evals for a Claude agent in 140 lines of TypeScript: golden cases, tool checks and a CI gate

Comments 2
6 min read
Stream a tool-using Claude agent to the browser with SSE in Next.js

Stream a tool-using Claude agent to the browser with SSE in Next.js

3
Comments 2
6 min read
Prompt caching in a Claude agent loop: where the breakpoints go and what silently breaks them

Prompt caching in a Claude agent loop: where the breakpoints go and what silently breaks them

1
Comments 2
5 min read
Model prices change. Snapshot them on every usage row

Model prices change. Snapshot them on every usage row

Comments
7 min read
Claude Agent SDK vs rolling your own tool loop: which one for your product?

Claude Agent SDK vs rolling your own tool loop: which one for your product?

Comments
9 min read
How to meter Claude API costs per user in a Next.js SaaS (with code)

How to meter Claude API costs per user in a Next.js SaaS (with code)

1
Comments 2
8 min read
loading...