Tutorials you can follow at your desk
Step-by-step lessons with code that runs; filter by level or by the time you have.
All tutorials
52 tutorials
CLAUDE.md and AGENTS.md: instruction files for coding agents
CLAUDE.md vs AGENTS.md: what to put in each, where Claude Code, Codex, Cursor and Copilot look for them, and how to keep one source of truth without drift.
Getting started with AI test case design
Use a language model to draft test cases for a feature, prompt it for coverage rather than happy paths, and review its ideas like a tester before you automate.
MCP explained: hosts, clients, servers and transports
What MCP is and how the Model Context Protocol connects AI apps to tools and data: hosts, clients, servers, transports and what the 2026-07-28 spec changed.
AI at work: a practical start for non-developers
Pick the tasks an assistant does well, write instructions you can reuse, work with your own files and check every answer before you use it.
Connect MCP servers to Claude Code, Codex and Cursor
Add local and remote MCP servers to Claude Code, Codex and Cursor, choose the right scope, sign in with OAuth and check which tools actually loaded.
Prompting fundamentals: clear tasks, examples and formats
How to write a good prompt: frame the task, say who the output is for, show an example and specify the format, so a model's answers are useful and repeatable.
Prompting reasoning models
What changes when a model thinks before it answers: write goals instead of steps, choose an effort level, use fewer examples and check the answer properly.
Get reliable JSON from an LLM with structured outputs
Describe the output as a schema, let the provider enforce it, validate it with Pydantic AI or the AI SDK, and handle failures.
Prompt injection basics for builders
How direct and indirect prompt injection work, why agents with tools raise the stakes, and the design choices that limit the damage when no complete fix exists.
RAG fundamentals: retrieval before generation
What RAG is and how retrieval-augmented generation works, when it beats long context or fine-tuning, and a minimal working pipeline in about 80 lines of Python.
Run local models with Ollama
Install Ollama, run an open-weight model on your own machine, call it from scripts over the local API and choose a model size your hardware can handle, offline.
Your first session with Claude Code
Install it, run it in a real repository, approve its first changes, commit a reviewed edit and learn the commands you will use daily.
Your first session with the Codex CLI
Install it, choose a sandbox and approval mode, give it a well-scoped task in a repository and review its changes before you accept.
Cursor agent basics: tasks, rules and skills
Use Cursor's agent on a real task: scope it, plan first, use checkpoints, add project rules, AGENTS.md and skills, and review every change before you keep it.
Make and edit images with AI for work
AI image generation for work, without code: write a brief, generate drafts, edit one region, keep a set consistent, then check rights, disclosure and alt text.
Write your first LLM eval
Turn real outputs into a small test set, add code-based checks in promptfoo and run them in CI to catch regressions on every change.
Context engineering techniques: what the model should see
What to put in a model's context at each step, what to leave out, and how instruction files, retrieval and tools fit.
Agent memory and compaction in practice
Keep long Claude Code sessions accurate with compaction, CLAUDE.md, auto memory, subagents and a summarise-and-restart routine, and know what survives each.
Claude Code hooks: run checks around every tool call
Write Claude Code PreToolUse and PostToolUse hooks that block destructive shell commands, format every file Claude edits and log each command for later audit.
Subagents in Claude Code: delegate without losing control
Define Claude Code subagents with their own tools, model and permissions, keep noisy work out of your main context, and avoid conflicts in parallel runs.
Cut LLM costs with prompt caching and token budgets
Lay out prompts so the provider can cache them, measure tokens before you send, and use batch processing and model routing to cut what each request costs.
Embeddings and vector search, hands on
Embed documents, store them in Postgres with pgvector, index them and run similarity and hybrid search.
LLM-as-a-judge: grading outputs you can trust
Write narrow grading criteria, check the judge's verdicts against your own labels and decide when its agreement is good enough.
Permissions and sandboxing for coding agents
Set up Claude Code permission modes and rules, the Codex sandbox and approvals, and a dev container, so an agent can work without free rein.
Playwright test agents: planner, generator and healer
How Playwright's planner, generator and healer test agents work, how to set them up with Claude Code or VS Code, and how to review the tests they write for you.
Stream LLM responses to a web page with server-sent events
A Node server relays tokens as server-sent events, the page renders them as they arrive, and a Stop button cancels.
Add input and output guardrails to an LLM app
Length, topic and PII checks on input, schema and policy checks on output, then measure false positives and latency on a test set.
Build an agent with the Claude Agent SDK
Built-in tools, a custom tool, a permission callback, a subagent and a project skill, tested before you spend tokens.
Connect two agents with the A2A protocol
Publish an agent card, send a task from one local agent to another with the official Python SDK, and see where MCP fits.
Exploratory testing with Playwright MCP
Give a coding agent a browser through Playwright MCP, run a time-boxed exploratory charter, record findings, and turn the confirmed ones into Playwright specs.
Run LLM evals in CI with promptfoo
Write a promptfoo config with deterministic and model-graded assertions, run it in GitHub Actions, fail the build on regressions and keep the bill small.
Trace an agent with OpenTelemetry
Instrument an agent loop with OpenTelemetry GenAI spans, one per model call and tool call, and send the traces to Langfuse or Arize Phoenix.
Transcribe and summarise audio locally with faster-whisper
Transcribe audio locally with faster-whisper in Python, fix misheard names, then summarise the transcript with a local model through Ollama, all offline.
Add human approval to agent actions
Pause risky tool calls, show the exact arguments, resume on approve or reject, then log and test it.
Build an MCP App: an interactive UI inside the chat
Add an interactive UI to a TypeScript MCP server with the MCP Apps SDK: a ui:// resource, a view that calls tools, a test in MCP Inspector and a text fallback.
Build an MCP server in Python with FastMCP
Build a small MCP server in Python with FastMCP, test its tools in MCP Inspector without a model, then connect it to Claude Code, Cursor or another MCP host.
Build an MCP server in TypeScript
Build a small MCP server with the official TypeScript SDK v2, test it from the command line and in MCP Inspector, then connect it to Claude Code or Cursor.
Build your first agent in Python
Three tools, a hard turn limit, a clear stop condition and a log of every tool call it makes.
Build your first agent in TypeScript
Tools that search and read notes, a step limit, a clear stop condition and logged steps.
Chunking strategies for RAG, tested
Compare fixed-size, heading-based and semantic chunking on the same documents and questions, measure retrieval hit rate, and pick a strategy with evidence.
Design tools an AI agent can use well
Take one badly designed agent tool, fix its names, descriptions, arguments, errors and output size, and measure the difference with a small eval you can rerun.
How to test LLM applications as a QA engineer
Contract tests on a scripted model, a golden set with pass-rate floors, a calibrated LLM judge and a regression gate.
Make an agent survive crashes and restarts with durable execution
Build a durable AI agent with Temporal in Python: tool calls as activities, a worker you kill mid-run that resumes, retries and human approval as a signal.
Run AI-generated code in a sandbox
Run model-written Python in a throwaway Docker container, then in an E2B sandbox, with time, memory, network and file limits, and a test suite of hostile code.
Build a voice agent you can talk to
Stream your microphone to a realtime speech model, call a tool mid-conversation, measure latency and let the user interrupt it.
Optimise a prompt automatically with DSPy
Write a signature and a metric, run three optimisers on 30 labelled examples, score 20 held-out ones, and see when hand-tuning wins.
Run coding agents headless in CI
Run claude -p and codex exec in GitHub Actions with pinned versions, narrow permissions, scoped secrets and separate jobs for writing back to the pull request.
Hybrid search and reranking in Postgres
Combine Postgres full-text search and pgvector with reciprocal rank fusion in one SQL query, rerank the top results with a cross-encoder, and measure the gain.
Secure a remote MCP server with OAuth
Protect a Streamable HTTP MCP server with OAuth 2.1 as the 2026-07-28 spec requires: resource metadata, audience checks, per-tool scopes and Inspector tests.
Evaluate AI agents: outcomes, trajectories and tool use
Build an agent eval harness that checks the final state, the tool-call trajectory and a judged transcript, run each task several times and read the traces.
Evaluate coding agents on your own repository
Run Claude Code and Codex headless against 10 closed issues from your repo, then score them with the real fix's tests and a blind review rubric.
Fine-tune a small model with LoRA
Fine-tune a small open model with LoRA using TRL and PEFT, measure it on a held-out set before and after, and decide whether the gain is worth keeping.
More ways to learn
Learning paths
Tutorials in a sensible order for one goal, with a quiz at the end.
Workflow recipes
Shorter, outcome-first recipes for a single job, once you know the basics.
Articles
Explainers for the concepts behind the tutorials.