0Pricing
Vibe Coding · บทเรียน

จากผู้ช่วยสู่เอเจนต์

เมื่อปัญญาประดิษฐ์ลงมือทำ ไม่ใช่เพียงตอบคำถาม

จากผู้ช่วยสู่เอเจนต์ เป็นบทเรียน Vibe Coding ฟรีบน CoddyKit นี่คือบทเรียนที่ 1 จากทั้งหมด 4 บทเรียน คุณสามารถอ่านบทเรียนทั้งหมดด้านล่างฟรี — จากนั้นลองปฏิบัติด้วยตัวคุณเองในเบราว์เซอร์พร้อมตัวแก้ไขโค้ดในตัวและติวเตอร์ AI ตลอด 24/7 บทเรียนนี้เป็นส่วนหนึ่งของเส้นทางการเรียน Vibe Coding และความก้าวหน้าของคุณจะซิงค์ข้ามเว็บและแอป CoddyKit คอร์ส Vibe Coding มีบทเรียนทั้งหมด 4 บทเรียน

บางส่วนของบทเรียนนี้ยังไม่ได้รับการแปล และแสดงเป็นภาษาอังกฤษ

When AI Stops Talking and Starts Doing

So far you've used AI like a chat partner: you ask, it answers, you copy the code. That's an assistant.

An agent is different. You give it a goal, and it acts on its own: it reads files, runs commands, checks results, and keeps going until the job is done. You're no longer the one pasting everything.

This lesson is about that leap: from AI that answers to AI that does the work.

Assistant vs Agent

The simplest way to feel the difference:

  • Assistant: "Here's the code for a login form" — you take it from there.
  • Agent: "I created login.html, wired up the form, ran the app, and it works." — it did the steps.

Tools like Claude Code and Cursor's agent mode are agentic: they touch your real project files, not just a chat box.

The Agent Loop

Under the hood, an agent runs a simple loop: think → act → observe → repeat.

It plans a step, takes an action (edit a file, run a command), looks at what happened, then decides the next step. It keeps looping until your goal is met or it gets stuck.

Here's that loop sketched as JavaScript pseudo-code so you can picture it:

function agentLoop(goal) {
  let done = false;
  while (!done) {
    const plan = think(goal);   // decide next step
    const result = act(plan);   // edit file / run command
    done = check(result, goal); // is the goal met?
  }
  return "Goal reached!";
}
console.log("An agent repeats: think, act, observe.");

What a Goal Looks Like

You don't micromanage an agent. You hand it an outcome and let it figure out the steps.

Compare a single instruction to an agent goal: the goal describes the finished result, not each keystroke.

Goal for an agent (paste into Claude Code or Cursor agent mode):

"Add a dark mode toggle to my website. Create a button in the top
right, switch the page between light and dark colors when clicked,
and remember the choice when the user comes back. Test it works
before you finish."

Agents Use Your Real Project

The big shift: an agent works inside your actual files. It can open index.html, find your CSS, add new code, and save — all without you copy-pasting.

That's powerful and a little scary. It means the agent can change a lot at once, so you'll learn to review what it did (and you'll cover safety in the last lesson of this course).

Agents Can Run Things

Beyond editing files, agents can run commands: start your app, install a package, or run tests. Then they read the output and react.

If a command fails, a good agent notices the error and fixes it — no need for you to copy the red text into chat. This is why agents feel like a teammate, not a tool.

Example agent goal that involves running things:

"Install the dependencies for this project, start the dev server,
open the homepage, and tell me if there are any errors in the
console. If there are, fix them and run it again."

Watching an Agent Work

When you run an agent in Claude Code or Cursor, you'll see it narrate its steps: "Reading file... editing... running... done."

This is your window into its thinking. Read it! If it heads in the wrong direction, you can stop it and steer. You stay the pilot; the agent just flies the plane for the boring parts.

Approve Before It Acts

Most agent tools ask for permission before doing something risky — like deleting files or running an unknown command. They show you the action and wait for a yes.

Treat every approval as a real decision. "Allow once" for normal edits is fine; pause and read carefully before approving anything that removes or overwrites a lot.

Good Tasks for an Agent

Agents shine on tasks with many small, mechanical steps:

  • Renaming something across many files
  • Adding a feature that touches several places
  • Fixing a bug, running the app, confirming it's gone
  • Setting up a new project from scratch

For a one-line question ("what does this function do?"), a plain assistant chat is faster. Match the mode to the job.

You Set the Goal, AI Walks the Path

Here's the mindset to carry forward: you own the goal and the judgment; the agent owns the legwork.

You decide what success looks like and check the result. The agent handles the how — the dozens of little steps in between. That partnership is the heart of vibe coding at the next level.

Try this framing for any agent request:

GOAL:    what the finished result should be
CONTEXT: which project / files it should work in
DONE WHEN: how the agent knows it succeeded

Fill those three in and you've written a great agent task.

Your First Agent Mindset

Before the quiz, picture it: instead of asking "how do I add a contact form?" and copying code, you say "Add a working contact form to my site and confirm it submits."

Same idea, totally different workflow. The agent reads your project, builds it, tests it, and reports back. You review and approve. That's agentic building.

Quick Check

Let's make sure the assistant-vs-agent difference clicked.

Recap: From Answering to Acting

You've made the leap in mindset:

  • An assistant answers; an agent acts on a goal.
  • Agents run a think → act → observe loop on your real files.
  • You hand over a goal (and a "done when"), not every step.
  • Watch and approve — you stay the pilot.
  • Tools like Claude Code and Cursor agent mode make this real.

Next up: giving your agent tools so it can reach the web, files, and code.

คำถามที่พบบ่อย

บทเรียน “จากผู้ช่วยสู่เอเจนต์” ฟรีหรือไม่

ใช่ — ข้อความเต็มของ “จากผู้ช่วยสู่เอเจนต์” ฟรีให้อ่านที่นี่บนเว็บ เพื่อปฏิบัติแบบโต้ตอบ (ตัวแก้ไขโค้ดในตัวและติวเตอร์ AI ตลอด 24/7) และปลดล็อคส่วนที่เหลือของคอร์ส Vibe Coding ให้อัปเกรดเป็น CoddyKit PRO คอร์ส Vibe Coding มีบทเรียนทั้งหมด 4 บทเรียน

คุณจะเรียนรู้อะไรในบทเรียน “จากผู้ช่วยสู่เอเจนต์”

เมื่อปัญญาประดิษฐ์ลงมือทำ ไม่ใช่เพียงตอบคำถาม คุณปฏิบัติ Vibe Coding ด้วยโค้ดที่ใช้งานได้จริงที่คุณเรียกใช้โดยตรงในเบราว์เซอร์ และติวเตอร์ AI ตลอด 24/7 ตอบคำถามของคุณขณะที่คุณไปผ่านบทเรียน

คุณต้องมีประสบการณ์ก่อนที่จะเริ่มเรียน Vibe Coding หรือไม่

ไม่จำเป็นต้องมีประสบการณ์มาก่อน Vibe Coding บน CoddyKit ออกแบบมาสำหรับผู้เริ่มต้นไปจนถึงผู้เรียนขั้นสูง คุณสามารถเริ่มต้นที่นี่หรือเริ่มจากตัวแรกและเรียนด้วยความเร็วของคุณเอง นี่คือบทเรียนที่ 1 จากทั้งหมด 4 บทเรียน

บทเรียน “จากผู้ช่วยสู่เอเจนต์” ใช้เวลานานแค่ไหน

บทเรียน CoddyKit ส่วนใหญ่ใช้เวลาประมาณ 5–10 นาที แต่ละบทเรียนจึงสั้นและเป็นแบบโต้ตอบ คุณสามารถก้าวหน้าอย่างต่อเนื่องและกลับมาเรียนต่อจากตรงที่เพิ่งหยุดบนเว็บและแอปได้เลย

ฉันเขียนและรันโค้ดในบทเรียน Vibe Coding นี้ได้ไหม

ได้ บทเรียน Vibe Coding ทุกบทมีตัวแก้ไขโค้ดในตัว คุณจึงเขียนและรันโค้ดจริงได้เลยในเบราว์เซอร์ และได้รับข้อเสนอแนะจาก AI ในทันที — ไม่ต้องติดตั้งในเครื่องของคุณ

บทเรียนทั้งหมดในหลักสูตรนี้

  1. จากผู้ช่วยสู่เอเจนต์
  2. การมอบเครื่องมือให้เอเจนต์
  3. การทำงานอัตโนมัติหลายขั้นตอน
  4. การรักษาความปลอดภัยของเอเจนต์
← กลับไปที่ Vibe Coding