PM · Claude Code + Agent SDK basics
Terminal-first. Every engineer in the room ships a working agent on their laptop today. This is the hands-on follow-up to the AM session.
What we’ll do
| Block | Duration | Activity |
|---|---|---|
| Setup check | 15 min | Verify Claude Code + GCP Vertex on every laptop |
| Building block 1 | 30 min | Hello world agent — single-agent setup, tool use, multi-turn |
| Building block 2 | 30 min | The agent loop — how Claude Code actually thinks-acts-thinks |
| Break | 15 min | — |
| Building block 3 | 30 min | Multi-agent setup — sub-agent spawning, coordination |
| Building block 4 | 30 min | Tools that matter — file I/O · web search · running scripts |
| Building block 5 | 45 min | The failure modes story — what breaks when you scale 2 agents to 20 (bridges to Day 2) |
Total: ~3.5 hours including setup + breaks. Audience: engineers, in person only.
What we’re NOT doing PM
Installing LIFEOSAI on every laptop. The LIFEOSAI reveal happens Day 2. Day 1 PM is a simpler on-ramp — terminal agents, no GUI install, lower failure surface.
Prerequisites
Before the session starts:
- Node 22+ installed
-
claudecommand installed (npm install -g @anthropic-ai/claude-code) - GCP Vertex authentication working (see Setup)
- A working directory:
mkdir agent-workshop && cd agent-workshop
If any of these aren’t ready, raise it before lunch.
Building block 1 — your first agent in 5 minutes
The Quickstart is the 5-minute path. Step-by-step:
# Create the agent's homemkdir -p .claude/agents
# Write its SOULcat > .claude/agents/file-reader.md <<'EOF'---agent_id: file-readermodel: claude-sonnet-4-6---
# IdentityI am a file-reader. I read files in the working directory and summarise them.
# WorkflowWhen invoked:1. List files in the current directory2. Read the most recent .md or .txt file3. Print a 3-line summary4. ExitEOF
# Drop a file to readecho "# Hello World\n\nThis is my first file." > sample.md
# Invokeclaude --agent file-readerYou should see the agent list files, read sample.md, and produce a 3-line summary.
That’s a working agent. The same pattern scales to the 9-agent Guardrail Lab tomorrow.
Building block 2 — the agent loop
What happens when you type claude and Enter:
- Claude Code loads the agent’s SOUL (the
.mdfile) - The SOUL becomes the system prompt
- Claude (the LLM) thinks → produces a tool call (e.g., “list files”)
- Claude Code executes the tool call
- The result goes back into the conversation
- Claude thinks again → next tool call → next result
- Loop continues until Claude decides it’s done
That’s the agent loop. It’s the same loop in every coding agent (Claude Code, Pi Coding Agent, Codex, etc.). Different runtimes implement it differently but the shape is the same.
Building block 3 — multi-agent
Single agents are useful. Two or more agents coordinating is more useful. Claude Code’s sub-agent feature lets one agent spawn another.
Example: an analyst agent that spawns 5 specialist analyzers in parallel, each reading the same input through a different lens, then synthesises. This is the multi-perspective pattern we’ll see in production tomorrow.
# This pattern works today in Claude Code. We'll walk through it live.Building block 4 — tools that matter
The agent’s hands. Three tools cover 80% of real work:
| Tool | What it does | How to enable |
|---|---|---|
| file I/O | Read · write · search files in the working directory | Built-in to Claude Code |
| web search | Fetch URLs, search the web | Built-in via the WebSearch tool |
| bash | Run shell commands, scripts, tests | Built-in via the Bash tool |
For more tools: MCP servers (the Model Context Protocol — see System · Connectors) or Skills (instructions + scripts the agent can call). Both add capabilities without changing the agent itself.
Building block 5 — failure modes (bridge to Day 2)
The 30-minute close. What breaks when you go from 2 agents to 20?
| Failure | What goes wrong | What you need |
|---|---|---|
| Context blows up | 20 sessions, no shared memory | An office library |
| Agents step on each other | Two writers on the same file | Issue-level locking |
| No audit trail | ”Did the agent really email that?” | A runs / wakeups log |
| Cost explodes | Opus on every task | Per-agent model picker + budgets |
| Approval gaps | Send-money agent goes rogue | Action policies + approval queue |
Each of these maps to a piece of LIFEOSAI we’ll walk Day 2. The failure modes are the architecture spec.
Materials
- Quickstart guide — the 5-minute first agent
- Claude Code docs
- Claude Agent SDK docs
- Pi Coding Agent — the lighter alternative
Take it home. Everything we cover this afternoon is in your terminal. The Claude Code installation + your .claude/agents/* files survive after the workshop. Keep building. We’ll be here all week if you get stuck.
Read next
- Day 1 hub — Back to the Day 1 overview.
- Quickstart — The minimum-viable first agent — reference for after the workshop.
Next: Day 2 — the reveal →