Writing archive · Page 3 of 9
More tutorials.
Same standard.
More entries from a 110-piece collection of tested, source-checked engineering notes.
- Evidence
- Working code, observable results, and primary sources.
- Judgment
- Tradeoffs, failure modes, and when not to use the technique.
- Freshness
- Every tutorial shows when it was reviewed—and a tested date only when its example was run.
Page 3 of 9
More from the archive.
Showing 25–36 of 107 archive entries.
- Read the tutorial
Model Context Protocol · Web development · AI agents
Build an Interactive MCP App with a Sandboxed Tool UI
Design an MCP tool that serves an interactive UI resource, receives structured results, and stays safe across hosts with different extension support.
- Read the tutorial
Model Context Protocol · TypeScript · AI agents
Build an MCP Client in TypeScript: Discovery, Tool Calls, and Trust Boundaries
Connect to a local MCP server, verify capability discovery, call a typed tool, and handle remote transports without confusing discovery with authorization.
- Read the tutorial
AI agents · Security testing · OWASP
Build an OWASP Agent Security Test Harness
Turn the OWASP Top 10 for Agentic Applications into safe, repeatable abuse cases with simulated tools, hard invariants, evidence, and CI gates.
- Read the tutorial
AI agents · Observability · Security
Build Forensic Audit Logs for AI Agents
Capture actor chains, policy decisions, approvals, tool effects, and evidence so investigators can reconstruct an agent incident without logging hidden reasoning or secrets.
- Read the tutorial
Model Context Protocol · AI agents · Distributed systems
Build Long-Running MCP Tools with the Experimental Tasks Utility
Design a durable MCP tool call with polling, deferred results, input-required handling, cancellation, and tenant-safe retention.
- Read the tutorial
Next.js · AI agents · Streaming
Build Streaming Agent Interfaces in Next.js
Stream agent UI and typed run events with Suspense, Route Handlers, cancellation, backpressure, and accessible status updates.
- Read the tutorial
Agent2Agent · AI agents · Distributed systems
Build Two Agents That Collaborate over A2A 1.0
Connect a coordinator to an independently operated report agent using an Agent Card, SendMessage, task state, typed artifacts, and strict authorization.
- Read the tutorial
AI applications · Caching · Security
Caching AI Applications: Prompts, Prefixes, Retrieval, and Tools
A correctness-first guide to caching model prefixes, retrieval results, tool calls, and final AI outputs safely.
- Read the tutorial
AI agents · Authorization · Security
Capability-Based Security for AI Agent Tools
Replace broad ambient credentials with narrow, expiring, attenuable grants bound to one agent task, tenant, operation, and resource set.
- Read the tutorial
Open models · Evaluation · Model selection
Choose an Open Model with an Evaluation Suite
Select open weights with a reproducible, product-specific suite covering capability, tool use, safety, latency, memory, and operational fit.
- Read the tutorial
Computer-use agents · Browser automation · AI agents
Computer Use vs DOM Automation vs APIs: Choose the Most Reliable Agent Interface
Choose between APIs, structured browser automation, accessibility trees, and visual computer use using reliability, coverage, security, and cost.
- Read the tutorial
AI agents · Context engineering · Architecture
Context Engineering for AI Agents: Build a Context Assembler
Design a context pipeline that selects trusted instructions, relevant evidence, tool definitions, and recent state within an explicit token budget.