Lab 01 · Who runs the tool?Time: 1 minute

I teach people what AI can actually do.

Then I build the labs and demos that let them do it without me in the room.

InstructorAndrew Yu. Lead Technical Writer at Salesforce, and Director of AI Enablement at Claude Dojo, a nonprofit.

Objective

Find out who runs the tool when an agent uses one: the model or your code.

You will need

This page. Nothing to install.

Step 1

You send a model one question and one tool it may use, search_portfolio. Who runs the search?

Tick one to reach the checkpoint.

Expected output. The model only replies with a request to call the tool. Your code runs it and sends the result back. That holds for tools you define, like this one. Anthropic's server tools, such as web search, run on Anthropic's side, and the model still runs nothing itself. Lab 02 shows every message.

If it fails. That is the common first guess. The model never runs anything on its own. Try the other box, or step through Lab 02 and watch who does what.

Checkpoint

Work

Teach

With other instructors, I taught 103 people to build with Claude Code, about 70 of them in one two-day hands-on intensive.

Read about Claude Dojo
One dot per person. Filled dots came through the two-day intensive in July 2026.

Speak

I have given my workshop, Mental Models for Decision Making, to more than 200 conference attendees.

I gave a lightning talk at Splunk in 2022 and give lightning talks at Salesforce now.

Talks and workshops
  • 2022Lightning talk at Splunk, “The Limitations of Language”
  • Jul 2026Claude Dojo intensive, two sessions on video
  • 2026Lightning talks at Salesforce

Build

I build the labs I teach from. They run on this site, which is also an MCP server an agent can connect to. I co-authored the Claude Dojo curriculum: 49 lessons and 46 lesson videos.

I have built on Claude through Amazon Bedrock.

Measure

At Pinecone I first built a score that rated how agent-ready a doc looked. When my manager asked why I trusted it, I scrapped it and built an eval that runs real developer tasks.

Read The score that lied

At Splunk I founded a council that moved 60+ technical writers onto approved AI tools, with a data policy and a person reviewing every AI draft.

Read about the IX AI Council
Same 15 tasks, three runs each. Only the docs changed.
Lab 02 · How an agent actually works, one runTime: 3 of 8 minutes

Objective

Step through one agent run and see who runs the tool, and what gets sent on every trip.

The hype, struck out

Struck out: Agentic AI is an autonomous digital workforce that thinks for itself and acts across your entire enterprise, around the clock.

What I teach

An agent is a model in a loop that can ask for tools.

One agent run: one tool call

Recorded from the Claude API on November 26, 2026 (UTC), model claude-opus-5-5.

A diagram of four parts: the person who asks, your code, the model, and a tool you define, which hangs off your code. Beside it is the list of messages your code keeps, with a numbered place for every message the run will produce. The question: Has Andrew taught Claude Code to a live room? Step 1. A person asks a question. Your code starts a list with it as messages[0], role "user". On a plain Messages API request like this one, that list is the only memory the conversation has. Step 2. Your code sends the model the list. In these requests the system prompt and the tool definitions go in their own fields, system and tools, beside the list. Neither one is a message. Step 3. The model replies with a request, not a result. It has run nothing: the reply asks for search_portfolio and ends with stop_reason "tool_use", and your code adds it to the list as messages[1]. Step 4. Your code runs search_portfolio. It adds the result as messages[2], a message with role "user" that carries a tool_result block matched to the request by id. Step 5. Your code sends the whole list again. The model kept nothing from trip 1, so trip 2 carries all 3 messages. It costs 1,794 input tokens, against 894 on trip 1. Prompt caching can make the repeated part cheaper. Step 6. The reply ends with stop_reason "end_turn", so the loop stops. Your code hands the answer to the person. That is the whole agent: a model in a loop that can ask for tools, and code that keeps the list and runs them.

Step 1 of 6

A person asks a question.

Your code starts a list with it as messages[0], role "user". On a plain Messages API request like this one, that list is the only memory the conversation has.

Or use ← →

Trips to the modelTrips to the model: 0
Message in the listMessage in the list: 1

Sent beside the list on every trip

systemsearch_portfolioget_case_studylist_work

The list your code keeps

  1. messages[0]role "user"

    Asks the question.

    content "Has Andrew taught Claude Code to a live room?"

More work

All work
  • Who owns an agent skill after it ships

    Salesforce · Jul 2026 to present

    I proposed an ownership model for agent skills: the docs are the source, and evals run with and without the docs are the proof.

  • Pinecone Search docs

    Pinecone · Feb 2026 to Jul 2026

    I was the sole author of the Search SDK and API reference, written for developers and for the AI assistants that retrieve from it.

  • DocOps Governance Workbench

    Splunk · Repository created December 2025

    A workbench that checks developer docs against the live API spec and the style guide before they ship.

  • SAGE

    Splunk · Between 2020 and 2026

    Draw a box around any part of a product screen and get an answer from the docs. It won the People's Choice Award and placed second overall at an AI hackathon.

    2ndoverall at an AI hackathon

Personal projectsQuickRampFoldYouTube content pipeline

Path

I studied English at UC Berkeley and have worked in software since 2015, most of that time writing documentation. Teaching people to build with AI grew out of that work.

  1. UC Berkeley2012 to 2014B.A. English

  2. WorkdayApr 2015 to Sep 2020

  3. SplunkSep 2020 to Jan 2026Senior Staff Technical Writer, then Manager, Content Strategy and Knowledge Management

  4. PineconeFeb 2026 to Jul 2026Technical Writer (contract)

  5. SalesforceJul 2026 to presentLead Technical Writer

To scale, 2012 to today, by month.

Reach me on LinkedIn or GitHub.

linkedin.com/in/andrewyu47github.com/andrewyu47

This site is also an MCP server, so you can connect an AI client to it and ask about my work.Lab 03: Ask this site a question