From 7417ef0639d521ba0cf44a58c21fc8e4256f5e75 Mon Sep 17 00:00:00 2001 From: Shayan Rais Date: Wed, 22 Apr 2026 21:57:08 +0500 Subject: [PATCH] Update index.html --- .../index.html | 126 +++++++----------- 1 file changed, 48 insertions(+), 78 deletions(-) diff --git a/presentation/2026-04-25-gdg-kolachi-cli-claude-code-gemini/index.html b/presentation/2026-04-25-gdg-kolachi-cli-claude-code-gemini/index.html index 880a928..2aea131 100644 --- a/presentation/2026-04-25-gdg-kolachi-cli-claude-code-gemini/index.html +++ b/presentation/2026-04-25-gdg-kolachi-cli-claude-code-gemini/index.html @@ -444,39 +444,9 @@ - +
-

What is Claude Code?

-

Claude Code isn't just Claude. It's Claude (the model) wrapped in a harness with a set of tools — and that wrapper is what turns a chatbot into an agent.

-
-
-
🧠
-

Model

-

The brain. Knows everything up to its training cutoff. Doesn’t know today’s date, can’t read your files, can’t search the web.

-
-
-
💪
-

Harness

-

The body around the brain. Manages memory, permissions, how long conversations run, and how the brain talks to tools.

-
-
-
🤜
-

Tools

-

The hands. Read files, edit code, search the web, run commands, spawn helper agents.

-
-
-

Claude Code = Model + Harness + Tools

-
-

Why This Matters

-

Ask a bare model “what’s the capital of Pakistan?” — it answers from training data. Ask it “what time is it in Karachi right now?” — it can’t know. That second question needs a tool, exposed through a harness. That’s the difference Claude Code makes — and the rest of this session teaches you how to configure it.

-
-
- - - - -

What is Claude Code?

Model (Brain 🧠 — e.g. Opus, GPT) + Harness (Body 💪 — e.g. tools, MCP, memory)

@@ -486,7 +456,7 @@ -
+

🧠 Models — e.g. Opus, GPT

@@ -508,7 +478,7 @@ -
+

🧠 Limitations

The raw model has no real-time access — no internet, no files, no clock.

@@ -519,7 +489,7 @@ -
+

💪 Harness — the body around the brain

@@ -571,7 +541,7 @@ -
+

💪 Harness — the body around the brain

@@ -601,7 +571,7 @@ -
+

🎉 Yayyyyy! Problem solved with harness

The harness reaches out via WebSearch and fetches a real answer from live sources.

@@ -612,19 +582,19 @@ -
+
?
-

But does the harness always work this cleanly?

+

Really?

-
+

💪 Non-determinism — Doesn’t always use its tools

-

Same question, different prompt — sometimes the harness asks first instead of acting.

+

Similar prompt — but this time the model decided not to use the tool.

Claude Code refusing to check live weather and asking permission to use WebFetch
@@ -633,9 +603,9 @@ -
+

💪 Non-determinism — Tools can fail

-

External tools can time out, return errors, or fetch stale data.

+

The model first tried one source — it failed (403) — so it fell back to another.

Claude Code showing a 403 error from timeanddate.com and falling back to wttr.in
@@ -644,7 +614,7 @@ -
+

💪 Same question. Different path each time.

A harness gives the brain hands — but not a fixed routine.

@@ -654,7 +624,7 @@ -
+

Vibe Coding vs Agentic Engineering

@@ -723,7 +693,7 @@ todoapp/ -
+

What is Vibe Coding?

@@ -752,7 +722,7 @@ todoapp/ -
+

Good vs Bad Prompts

Even before you set up any structure, how you prompt matters. Specific beats vague. Context beats assumption.

@@ -788,7 +758,7 @@ todoapp/ -
+

Meet the Person

We're going to learn five concepts using one running example: a weather reporter agent that fetches Dubai's temperature and renders a weather card. Same person — five different angles.

@@ -835,14 +805,14 @@ todoapp/ -
+
Topic 1

👤 Agents — The Weather Reporter

An agent is Claude playing a specific role. Meet the weather reporter — a specialist hired to fetch and report weather data for Dubai. Same Claude, different hat.

-
+

The Restaurant Kitchen

Think of it like this

@@ -865,7 +835,7 @@ todoapp/
-
+

Prompting vs. Agent — Side by Side

The difference in one picture: prompting is asking a stranger on the street; using an agent is asking your dedicated specialist.

@@ -906,7 +876,7 @@ todoapp/ -
+

Agents Get Their Own Brain

Tip from Thariq (Anthropic) — Apr 16, 2026

@@ -939,7 +909,7 @@ todoapp/
-
+

How to Create Your Own Agent

You don't write an agent from scratch — Claude helps you build one. Type /agents inside Claude Code and a guided menu opens.

@@ -982,7 +952,7 @@ todoapp/
-
+

Agent Config Fields

The config block at the top of an agent file controls its identity and capabilities. Here's what the real weather-agent.md uses:

@@ -1030,14 +1000,14 @@ todoapp/ -
+
Topic 2

🎓 Skills — What the Weather Reporter Knows

Skills are the specific things the reporter has been trained to do. Our reporter has two: fetch the data, and render it as a card.

-
+

The Training Manual

Think of it like this

@@ -1064,7 +1034,7 @@ todoapp/
-
+

When to Turn Something Into a Skill

Tip from Boris Cherny (creator of Claude Code) — Feb 1, 2026

@@ -1101,7 +1071,7 @@ todoapp/
-
+

Why Separate Agents and Skills?

@@ -1127,7 +1097,7 @@ todoapp/
-
+

How to Create Your Own Skill

Skills are plain markdown files. If you can write a recipe, you can write a skill.

@@ -1180,7 +1150,7 @@ Fetch the current temperature for Dubai, UAE.
-
+

Skill Config Fields

The small config block at the top of a SKILL.md (the "frontmatter") controls how the skill behaves:

@@ -1220,14 +1190,14 @@ Fetch the current temperature for Dubai, UAE. -
+
Topic 3

🧠 Context — The Reporter's Brain

Now that you've met the reporter and know their skills, let's understand what they can actually hold in mind at once. Every agent — including the weather reporter — gets its own fresh brain.

-
+

Claude's Brain

Think of it like this

@@ -1265,7 +1235,7 @@ Fetch the current temperature for Dubai, UAE.
-
+

What Loads at Session Start

The moment you open Claude Code, certain things land in Claude's brain before you've typed a word. The rest waits in the wings — only loaded when you actually need it. This is called progressive disclosure.

Diagram showing what loads into Claude's context window at session start @@ -1299,7 +1269,7 @@ Fetch the current temperature for Dubai, UAE.
-
+

Keep the Brain Clear

The more stuff crammed into Claude's brain, the harder it is to focus on what matters. This is called context rot — performance drops as the brain gets crowded.

@@ -1343,7 +1313,7 @@ Fetch the current temperature for Dubai, UAE.
-
+

How to Manage Your Context

You can't create the context — it's just there, the moment you open a chat. But you can see how full it is, trim it down, or wipe it clean. Three commands give you full control.

@@ -1388,14 +1358,14 @@ Fetch the current temperature for Dubai, UAE. -
+
Topic 4

📋 CLAUDE.md — The Reporter's Pocket Rulebook

The weather reporter consults this at the start of every shift — even though their brain resets overnight. It's the standing instructions pinned in that brain before you've said a word.

-
+

The Employee Handbook

Think of it like this

@@ -1423,7 +1393,7 @@ This is the Q2 marketing campaign brief — targeting small business owners.
-
+

How to Create Your CLAUDE.md

You don't need to write CLAUDE.md by hand. Claude can look at your project and draft one for you.

@@ -1468,7 +1438,7 @@ open, edit, save # Tweak it like any doc<
-
+

Grow CLAUDE.md With Every Mistake

Tip from Boris Cherny (creator of Claude Code) — Feb 1, 2026

@@ -1505,7 +1475,7 @@ open, edit, save # Tweak it like any doc<
-
+

What Goes in CLAUDE.md

# CLAUDE.md @@ -1533,7 +1503,7 @@ This is a TodoApp with a FastAPI backend and React frontend.
-
+

How CLAUDE.md Loads

Claude Code uses two mechanisms to find CLAUDE.md files:

@@ -1566,14 +1536,14 @@ This is a TodoApp with a FastAPI backend and React frontend. -
+
Topic 5

⚡ Commands — The Trigger

One word kicks off the whole chain. /weather-orchestrator → agent → skill → SVG card. Commands are the entry point into any workflow.

-
+

Commands — The Entry Point

Think of it like this

@@ -1617,7 +1587,7 @@ This is a TodoApp with a FastAPI backend and React frontend.
-
+

How to Create Your Own Command

Commands are markdown files too. If you can write a recipe, you can write a command.

@@ -1672,14 +1642,14 @@ This is a TodoApp with a FastAPI backend and React frontend. -
+
Putting It All Together

🎼 Workflow — All Five Pieces Together

Watch the weather reporter example run from one keystroke to SVG card output. Five concepts, one orchestrated flow.

-
+

Command → Agent → Skill

This is the core architecture pattern of Claude Code workflows — demonstrated in this very repo by the weather example:

The Orchestration Flow @@ -1706,7 +1676,7 @@ This is a TodoApp with a FastAPI backend and React frontend.
-
+

Two Ways Skills Are Used

The weather workflow demonstrates both skill patterns in a single flow:

@@ -1729,7 +1699,7 @@ This is a TodoApp with a FastAPI backend and React frontend.
-
+

How to Wire Your Own Workflow

A workflow isn't a separate file type. It emerges when one command calls agents and skills in sequence.

@@ -1780,7 +1750,7 @@ This is a TodoApp with a FastAPI backend and React frontend. -
+

Journey So Far

Five concepts, one running example

From meeting the weather reporter to wiring the full Command → Agent → Skill chain. The same five pieces compose every workflow you'll ever build.