Claude Code คืออะไร อธิบายแบบภาษาคนWhat is Claude Code, explained in plain language
Claude Code คือเครื่องมือเขียนโค้ดแบบ agentic จาก Anthropic คำว่า agentic แปลง่าย ๆ ว่ามันไม่ได้แค่ตอบคำถาม แต่ลงมือทำงานหลายขั้นตอนให้เอง คุณบอกว่าอยากได้อะไร มันจะอ่านโค้ดในโปรเจกต์ วางแผน แก้ไฟล์ รันคำสั่งและเทสต์ แล้วรายงานผลกลับมาClaude Code is an agentic coding tool from Anthropic. Agentic simply means it does not only answer questions; it carries out multi-step work itself. You say what you want, and it reads the code in your project, makes a plan, edits files, runs commands and tests, and reports back.
ต่างจากการถาม AI ในแชท ที่คุณต้องคัดลอกโค้ดไปวางเองทีละท่อน Claude Code ทำงานอยู่ในโปรเจกต์ของคุณโดยตรง มันเห็นไฟล์ทั้งหมด จึงตอบและแก้ได้ตรงกับโค้ดจริงของทีม และก่อนแก้ไฟล์หรือรันคำสั่ง มันจะขออนุญาตก่อน วิธีเริ่มที่ง่ายที่สุดคือแอป Claude Desktop ซึ่งเราจะพาดูในหัวข้อถัดไปUnlike asking an AI in chat, where you copy code across piece by piece, Claude Code works directly inside your project. It sees all the files, so what it says and changes fits your team's real code, and before it edits files or runs commands it asks permission. The easiest way to start is the Claude desktop app, which the next section walks through.
Claude Code ทำอะไรได้บ้างWhat Claude Code can do
เข้าใจโค้ดทั้งโปรเจกต์Understands the whole codebase
ค้นและอธิบายโค้ดชุดใหญ่ได้ โดยไม่ต้องไล่อ่านเองทีละไฟล์Searches and explains large codebases without you reading file by file.
เขียนและแก้ไฟล์Writes and edits files
เสนอการเปลี่ยนแปลงให้คุณตรวจ และขออนุญาตก่อนแก้Proposes changes for you to check, and asks permission before editing.
รันคำสั่งและเทสต์Runs commands and tests
รันคำสั่งและเทสต์ แล้วแก้ต่อจากผลที่ได้Runs commands and tests, then keeps working from the results.
ทำงานกับ gitWorks with git
ทำงานร่วมกับ git ในโปรเจกต์ของคุณได้Works with git in your project.
อ่าน issue แล้วเปิด Pull RequestReads issues, opens pull requests
อ่าน issue จาก GitHub หรือ GitLab เขียนโค้ด แล้วเปิด Pull Request ให้Reads issues from GitHub or GitLab, writes the code and opens the pull request.
ต่อเครื่องมือผ่าน connectorsConnects tools through connectors
เชื่อมระบบภายนอกที่ทีมอนุญาตผ่าน connectors (หรือที่เรียกว่า MCP server)Connects to outside systems your team allows, through connectors (also called MCP servers).
งานยาวหลายชั่วโมงLong multi-hour jobs
รับงานใหญ่อย่าง refactor หรือการย้ายระบบได้ต่อเนื่องHandles big jobs such as refactors and migrations over many hours.
หลายงานพร้อมกันSeveral tasks in parallel
ทำหลายงานคู่ขนานได้ โดยแต่ละงานเป็นเซสชันแยกในแอปRuns several tasks side by side, each as its own session in the app.
ใช้ผ่านแอป Claude Desktop ได้เลย ไม่ต้องเก่งคอมมานด์ไลน์Use it in the Claude desktop app, no command-line skills needed
หลายคนคิดว่า Claude Code ต้องพิมพ์คำสั่งในหน้าจอเทอร์มินัล ความจริงคือมันมีแท็บ Code อยู่ในแอป Claude Desktop แต่ละบทสนทนาเป็นเซสชันของตัวเอง มีประวัติและโฟลเดอร์โปรเจกต์ของมันเอง คุณเปิดหลายเซสชันพร้อมกันจากแถบด้านข้าง หรือวางเคียงกันในมุมมองแบ่งหน้าจอ (split view) ได้Many people assume Claude Code means typing commands in a terminal. In fact it has a Code tab inside the Claude desktop app. Each conversation is its own session, with its own history and project folder, and you can run several at once from the sidebar or side by side in split view.
แอปรองรับ macOS (ทั้ง Intel และ Apple Silicon), Windows (x64 และ ARM64) และ Linux แบบเบต้า (Ubuntu/Debian) คุณเลือกที่ทำงาน เลือกโฟลเดอร์ และเลือกโมเดลจากตัวเลือกโมเดลในแอปได้เลยThe app runs on macOS (Intel and Apple Silicon), Windows (x64 and ARM64) and Linux in beta (Ubuntu/Debian). You choose where to work, pick a folder, and pick a model from the model picker, all inside the app.
เลือกที่ทำงานจากเมนูใต้ช่องพิมพ์Choose where it works from the menu under the prompt box
LocalLocal
ทำงานบนเครื่องและไฟล์ของคุณเอง เลือกโฟลเดอร์โปรเจกต์ได้เลยWorks on your own machine and files. Just pick the project folder.
CloudCloud
ทำงานบนโครงสร้างพื้นฐานที่ Anthropic ดูแล เลือก repo ที่ต้องการ และเซสชันทำงานต่อได้แม้คุณปิดแอปWorks on infrastructure managed by Anthropic. Pick the repositories you want, and the session keeps going even if you close the app.
SSHSSH
ต่อไปทำงานบนเครื่องระยะไกลConnects to work on a remote machine.
WSLWSL
สำหรับคนใช้ Windows ที่ทำงานใน WSLFor Windows users who work inside WSL.
- ไม่บังคับใช้เทอร์มินัล แอปมีเทอร์มินัลในตัวที่เปิดในโฟลเดอร์ของเซสชัน ถ้าอยากใช้ แต่งานหลักทำผ่านการคลิกและพิมพ์โจทย์ได้เลยNo terminal required. The app has an integrated terminal that opens in the session's folder if you want it, but the main work happens by clicking and typing the task.
- แก้ไฟล์เองได้ ในเซสชัน Local มีแผงไฟล์ (File pane) ให้เปิดและแก้ไฟล์โดยตรงEdit files yourself. In Local sessions a file pane lets you open and edit files directly.
- เห็นผลเป็นภาพ ทั้ง diff ของการแก้ไข และตัวอย่างแอปที่กำลังทำ ซึ่งเราจะพาดูในหัวข้อถัดไปSee the result visually, both the diff of the changes and a preview of the app being built, which the next sections cover.
ถ้าคุณไม่ใช่โปรแกรมเมอร์If you are not a programmer
แอป Desktop คือทางเริ่มที่เหมาะที่สุด เปิดแอป เลือกโฟลเดอร์ทดลอง เลือกโหมด Plan แล้วพิมพ์โจทย์เป็นภาษาไทย คุณจะเห็นแผนและการแก้ไขเป็นภาพ โดยไม่ต้องจำคำสั่งใด ๆ แต่ยังควรให้นักพัฒนาตรวจก่อนนำไปใช้กับข้อมูลหรือระบบจริงThe desktop app is the best place to start. Open it, pick a practice folder, choose Plan mode and type the task in Thai. You see the plan and the changes visually, with no commands to memorize, but a developer should still check the result before it touches real data or systems.
งานหนึ่งชิ้นใน Desktop ทำงานยังไง: 6 ขั้นตอนHow one task flows in the desktop app: six steps
ลำดับนี้คือจังหวะที่ทีมส่วนใหญ่ใช้ จุดสำคัญคือมีคนตัดสินใจอยู่ในหลายขั้นตอน ไม่ใช่ปล่อยให้ AI ทำจบเองThis is the rhythm most teams use. The key point is that a person makes decisions at several steps, instead of leaving the AI to run to the end alone.
- 1เปิดเซสชันและอธิบายงานให้ชัดStart a session and describe the task clearly. เปิดแท็บ Code เลือกที่ทำงานและโฟลเดอร์ แล้วบอกเป้าหมาย ส่วนที่เกี่ยวข้อง และสิ่งที่ห้ามแตะOpen the Code tab, choose where to work and the folder, then state the goal, the relevant parts, and what must not be touched.
- 2ดูแผนในโหมด PlanReview the plan in Plan mode. Claude Code สำรวจโค้ดและเสนอแผนโดยยังไม่แก้ไฟล์ซอร์ส คุณปรับแผนได้Claude Code explores the code and proposes a plan without editing source files, and you can adjust it.
- 3อนุมัติการแก้ไฟล์Approve the edits. ตามโหมดสิทธิ์ที่เลือก อาจถามทีละครั้งหรือแก้ให้เองเมื่ออนุญาตไว้Depending on the mode you chose, it asks each time or edits on its own where you have allowed it.
- 4ให้รันเทสต์Run the tests. ถ้าเทสต์ไม่ผ่าน Claude Code จะแก้ต่อจากผลที่ได้If tests fail, Claude Code keeps working from the results.
- 5รีวิว diffReview the diff. คนที่เข้าใจโค้ดอ่านทุกส่วนที่เปลี่ยนทีละไฟล์ ก่อนตัดสินใจว่าจะเก็บหรือไม่Someone who understands the code reads every change file by file before deciding whether to keep it.
- 6เปิด Pull RequestOpen a pull request. เปิดจากในแอป แล้วส่งให้เพื่อนร่วมทีมรีวิวตามกระบวนการเดิมของทีมOpen it from inside the app, then send it to teammates for review through your team's usual process.
โจทย์ที่ดีต่างจากโจทย์ที่คลุมเครือยังไงA good task versus a vague one
คลุมเครือVague
ปรับปรุงหน้ารายงานให้ดีขึ้นMake the reports page better.
ชัดเจนClear
เพิ่มปุ่มส่งออกรายงานยอดขายเป็น Excel ใช้ข้อมูลชุดเดียวกับตารางที่แสดง เขียนเทสต์ให้ครอบคลุมกรณีไม่มีข้อมูล และอย่าแก้ไฟล์ที่เกี่ยวกับการชำระเงินAdd a button that exports the sales report to Excel, using the same data as the table on screen. Write tests that cover the empty-data case, and do not edit anything related to payments.
ทำหลายงานพร้อมกันอย่างไม่ชนกันRunning several tasks without collisions
โหมด worktree ให้เซสชันทำงานใน Git worktree ของตัวเอง คือสำเนาแยกของโปรเจกต์ จึงไม่ไปแตะไฟล์ที่คุณกำลังทำอยู่ (ต้องเป็น Git repo) และถ้างานต้องใช้เซสชันบนคลาวด์หลายตัว Project ช่วยให้ Claude เริ่มและติดตามเซสชันเหล่านั้นจากบทสนทนาเดียวWorktree mode runs a session in its own Git worktree, an isolated copy of the project, so it does not touch the files you are working on (it needs a Git repo). And when the work needs many cloud sessions, a Project lets Claude start and track them from one conversation.
โหมดสิทธิ์ 5 แบบ เลือกจากเมนูใต้ช่องพิมพ์The five permission modes, chosen from the menu under the prompt box
โหมดสิทธิ์กำหนดว่า Claude Code ทำอะไรได้เองและอะไรต้องถามก่อน ในแอป Desktop คือตัวเลือกใต้ช่องพิมพ์ นี่คือการตั้งค่าที่ทีมควรตกลงกันเป็นเรื่องแรกThe permission mode decides what Claude Code may do by itself and what it must ask about first. In the desktop app it is a selector under the prompt box, and it is the first setting a team should agree on.
| โหมดMode | ทำอะไรWhat it does | เหมาะกับGood for |
|---|---|---|
| Plan | สำรวจโค้ดและเสนอแผน โดยยังไม่แก้ไฟล์ซอร์สExplores and proposes a plan without editing source files | งานที่ยังไม่แน่ใจ โค้ดที่ไม่คุ้น หรืองานที่อยากตรวจแผนก่อนUncertain tasks, unfamiliar code, or work where you want to check the plan first |
| Manual | ถามก่อนแก้ไฟล์หรือรันคำสั่งAsks before editing files or running commands | โค้ดอ่อนไหว หรือช่วงที่เพิ่งเริ่มใช้Sensitive code, or the first days of use |
| Accept edits | ยอมรับการแก้ไฟล์และคำสั่งไฟล์ทั่วไปให้เอง แต่ยังถามก่อนคำสั่งอื่นในเทอร์มินัลAuto-accepts edits and common file commands, but still asks before other terminal commands | งานแก้ไฟล์ที่มีเทสต์รองรับ และคุณจะรีวิว diff อยู่แล้วFile edits backed by tests, where you will review the diff anyway |
| Auto | มีตัวคัดกรองทำงานเบื้องหลัง ตรวจการกระทำก่อนรัน (ใช้ได้บนโมเดลที่รองรับ)A background classifier checks actions before they run (on supported models) | งานยาวที่ไม่อยากกดอนุญาตซ้ำ ๆ แต่ยังควรรีวิวผลลัพธ์Long tasks where you do not want to approve repeatedly, but still review the output |
| Bypass permissions | ทำงานโดยไม่ขออนุญาตWorks without asking permission | เฉพาะคอนเทนเนอร์หรือเครื่องเสมือนที่แยกออกมา ไม่ควรใช้บนเครื่องทั่วไปOnly sandboxed containers or virtual machines, never a normal machine |
ข้อสังเกตสำหรับทีมA note for teams
ควรตกลงกันว่าจะใช้โหมดไหนกับงานแบบไหน อย่าปล่อยให้แต่ละคนเลือกตามความเคยชินโดยไม่รู้ตัว และห้ามใช้ Bypass permissions บนเครื่องทั่วไป ส่วนบางโหมด เช่น dontAsk ยังมีเฉพาะในเทอร์มินัลA team should agree which mode to use for which work rather than letting everyone pick out of habit, and Bypass permissions must never be used on a normal machine. A few modes, such as dontAsk, are still terminal-only.
รีวิวการแก้ไข: diff คอมเมนต์ทีละบรรทัด และ /code-reviewReviewing changes: the diff, line comments and /code-review
ก่อนสร้าง Pull Request แอป Desktop ให้ดูการเปลี่ยนแปลงทีละไฟล์ในมุมมอง diff บรรทัดที่เพิ่มและลบมีสีแยกชัด คนที่ไม่ใช่โปรแกรมเมอร์ก็เห็นภาพว่าอะไรเปลี่ยนไปบ้างBefore you create a pull request, the desktop app shows the changes file by file in a diff view, with added and removed lines clearly colored, so even a non-programmer can see what changed.
ดู diff ทีละไฟล์Read the diff file by file
เปิดดูทีละไฟล์ก่อนตัดสินใจว่าจะเก็บการแก้ไขนั้นหรือไม่Open each file before deciding whether to keep its changes.
คอมเมนต์ที่บรรทัดไหนก็ได้Comment on any line
คลิกที่บรรทัดเพื่อเขียนคอมเมนต์ เขียนได้หลายจุด แล้วส่งทั้งหมดพร้อมกัน Claude จะแก้ตามและแสดงเป็น diff ชุดใหม่Click a line to comment, add comments in several places, then submit them all together. Claude makes the changes and shows them as a new diff.
/code-reviewให้ช่วยหาจุดที่ควรแก้Ask for a review pass
พิมพ์ /code-review แล้วจะได้ข้อค้นพบจัดกลุ่มตามไฟล์ เดินดูทีละข้อ หรือกดปุ่ม Apply fixes ให้ Claude แก้ให้Type /code-review to get findings grouped by file. Step through them one by one, or click Apply fixes to let Claude make the changes.
คนยังเป็นผู้ตัดสินA person still decides
diff ที่อ่านง่ายไม่ได้แปลว่าถูกต้อง คนที่เข้าใจโค้ดต้องอ่านและตัดสินใจก่อน merge เสมอA readable diff does not mean it is correct. Someone who understands the code must read it and decide before merging.
พรีวิวแอป: ให้ Claude เปิดแอปและตรวจเองก่อนส่งต่อApp preview: let Claude open the app and check it before handing it over
ถ้างานคือแอปหรือเว็บ Claude เริ่ม dev server แล้วเปิดแอปในแผง Browser ของตัวโปรแกรมได้ จากนั้นถ่ายภาพหน้าจอ คลิกองค์ประกอบต่าง ๆ และแก้ปัญหาที่เจอ ตัวเลือกตรวจอัตโนมัติ (auto-verify) เปิดไว้เป็นค่าเริ่มต้น คุณจึงได้เห็นผลก่อนที่จะมาถึงขั้นรีวิว diffWhen the work is an app or a website, Claude can start the dev server and open the app in the built-in Browser pane. It then takes screenshots, clicks elements and fixes the problems it finds. Auto-verify is on by default, so you see the result before you reach the diff review.
พรีวิวใช้เบราว์เซอร์ที่สะอาดThe preview browser starts clean
Browser ในแอปใช้โปรไฟล์ใหม่ที่ไม่มีบัญชีที่คุณล็อกอินไว้ จึงไม่เห็นข้อมูลในบัญชีส่วนตัวของคุณ ถ้าหน้านั้นต้องล็อกอิน ควรใช้บัญชีหรือข้อมูลทดสอบThe app's Browser uses a clean profile with none of your saved logins, so it cannot see your personal accounts. If a page needs a login, use a test account or test data.
Pull Request และการให้ Claude แก้ CI ที่ไม่ผ่านPull requests and letting Claude fix failing CI
เมื่อเปิด Pull Request จากในแอป ตัว PR จะโผล่ในการ์ด Changes พร้อมสถานะ CI ของมัน ถ้ามี check ที่ไม่ผ่าน เปิด Auto-fix ให้ Claude แก้ได้ (ในเซสชัน Local ยังตอบความเห็นรีวิวใหม่ได้ด้วย) และ "Merge when ready" จะเปิด auto-merge ของ GitHub ให้When you open a pull request from the app, it appears in the Changes card with its CI status. If a check fails, turn on Auto-fix and Claude will address it (in Local sessions it can also handle new review comments), and "Merge when ready" switches on GitHub auto-merge.
ข้อควรรู้ก่อนใช้Before you rely on it
ฟีเจอร์ PR ต้องติดตั้ง GitHub CLI (gh) และล็อกอินไว้ก่อน และแม้จะมี auto-merge ก็ควรให้คนรีวิวก่อน merge ทุกครั้ง เปิดใช้เมื่อทีมมีกติกาและเทสต์ที่เชื่อถือได้แล้วเท่านั้นPR features need the GitHub CLI (gh) installed and signed in. Even with auto-merge, a person should review before every merge, so switch it on only once the team has rules and tests it can trust.
Connectors, plugins, skills และไฟล์กติกาของทีมConnectors, plugins, skills and the team rules file
ส่วนเสริมทั้งหมดนี้ตั้งค่าจากหน้าจอได้ ไม่ต้องแก้ไฟล์ตั้งค่าเองYou can set up all of these extras from the screen, with no configuration files to edit by hand.
ConnectorsConnectors
ตัวต่อให้ Claude Code เข้าถึงเครื่องมือและข้อมูลภายนอก เช่น ระบบตั๋วงานหรือฐานข้อมูล ที่จริงแล้วคือ MCP server ที่ตั้งค่าผ่านหน้าจอ กด + ข้างช่องพิมพ์ แล้วเลือก Add connectors หรือไปที่ Settings > Connectors ควรเปิดเฉพาะตัวที่ตรวจแล้ว อ่านเพิ่มที่ MCP คืออะไรLinks that give Claude Code access to outside tools and data, such as a ticket system or a database. They are really MCP servers with a graphical setup: click + next to the prompt box and choose Add connectors, or go to Settings > Connectors. Enable only ones you have vetted. Read more in What is MCP.
PluginsPlugins
กด + ข้างช่องพิมพ์ แล้วเลือก Add plugins เพื่อเพิ่มความสามารถเสริม ใช้ได้กับเซสชัน Local และ SSHClick + next to the prompt box and choose Add plugins to add extra capabilities. Available in Local and SSH sessions.
/SkillsSkills
พิมพ์ / ในช่องพิมพ์เพื่อดูและเรียกใช้ skills ที่มีให้ใช้ในเซสชันนั้นType / in the prompt box to see and call the skills available in that session.
ไฟล์กติกาของทีม (CLAUDE.md)The team rules file (CLAUDE.md)
ไฟล์ข้อความในโปรเจกต์ที่บอก Claude Code ว่าทีมทำงานกันยังไง เก็บไว้ในโปรเจกต์ให้ทุกคนใช้ชุดเดียวกันA text file in the project that tells Claude Code how your team works. Keep it in the project so everyone uses the same one.
ไฟล์กติกาของทีมเขียนอะไรได้บ้างWhat a team rules file might say
เขียนเป็นประโยคธรรมดาเหมือนบอกเพื่อนร่วมทีมใหม่ ตัวอย่างเช่นWrite it in ordinary sentences, as if briefing a new teammate. For example:
- รันเทสต์ทั้งชุดก่อนเปิด Pull Request ทุกครั้งRun the whole test suite before opening any pull request.
- ห้ามแก้อะไรในส่วนการชำระเงินDo not edit anything in the payments area.
- ใช้ระบบบันทึก log กลางของทีม ไม่เขียนข้อความทิ้งไว้ในโค้ดUse the team's shared logger rather than leaving debug messages in the code.
- ตั้งชื่อ branch ตามเลขงานในระบบติดตามงานName branches after the ticket number in the tracker.
ที่อื่นที่ใช้ได้: VS Code, JetBrains, เว็บ และเทอร์มินัลOther places it runs: VS Code, JetBrains, the web and the terminal
แอป Desktop ไม่ใช่ทางเดียว ถ้าทีมของคุณถนัดอย่างอื่น Claude Code ใช้ได้อีกหลายที่ และใช้เครื่องมือหลักตัวเดียวกัน ไฟล์กติกาของทีมและการตั้งค่าของโปรเจกต์จึงใช้ร่วมกันได้ แต่แอป Desktop จะไม่เห็นเซสชันที่เริ่มในเทอร์มินัลหรือ VS CodeThe desktop app is not the only way. If your team prefers something else, Claude Code runs in several other places on the same engine, so the team rules file and project settings carry over, but the desktop app cannot see sessions that were started in the terminal or VS Code.
VS Code และ JetBrainsVS Code and JetBrains
ส่วนขยายใน IDE ให้เห็น diff ในหน้าโค้ดและรีวิวแผนก่อนลงมือ เหมาะกับคนที่ทำงานใน IDE อยู่แล้วIDE extensions show diffs inline and let you review the plan first. A good fit if you already live in an IDE.
เว็บ claude.ai/codeWeb at claude.ai/code
เซสชันบนคลาวด์ที่ทำงานต่อไปแม้คุณปิดหน้าจอหรือตัดการเชื่อมต่อCloud sessions that keep going after you disconnect.
เทอร์มินัล (CLI)Terminal (CLI)
ตัวเลือกสำหรับนักพัฒนาที่อยากไปต่อ เช่น เขียนสคริปต์หรือต่อกับงานอัตโนมัติ และบางอย่างยังมีเฉพาะที่นี่An option for developers who want to go further, such as scripting or automation, and a few things are still available only here.
ยังเริ่มงานจาก Slack และใช้ใน GitHub Actions ได้อีกด้วยYou can also start tasks from Slack and use it in GitHub Actions.
5 ตัวอย่างงานที่ใช้ Claude Code ได้จริงFive real tasks Claude Code can do
สามตัวอย่างแรกเป็นงานของทีมพัฒนา สองตัวอย่างหลังเป็นงานของคนที่ไม่ใช่โปรแกรมเมอร์ ซึ่งควรมีนักพัฒนาคอยรีวิวเสมอ ทั้งหมดเป็นสถานการณ์ทั่วไป ไม่ใช่ลูกค้ารายใดรายหนึ่งThe first three are development-team tasks; the last two are for people who are not programmers, and should always have a developer reviewing. All are typical situations, not any particular client.
ทำความเข้าใจโค้ดเก่าที่รับช่วงมาUnderstanding inherited legacy code
ให้ Claude Code อธิบายโครงสร้างโปรเจกต์ ไฟล์ไหนทำอะไร และงานนี้ต้องแก้ตรงไหน ช่วยลดเวลาไล่อ่านในสัปดาห์แรก ๆAsk Claude Code to explain the project structure, what each file does, and where this change belongs, cutting the time spent reading in the first weeks.
คุมด้วย: ให้คนที่รู้จักระบบอ่านคำอธิบายเทียบกับโค้ดจริงKeep it safe by: having someone who knows the system check the explanation against the real code.
แก้บั๊กจาก issueFixing a bug from an issue
ให้อ่าน issue หาสาเหตุ แก้โค้ด รันเทสต์ แล้วเปิด Pull Request ให้เพื่อนร่วมทีมรีวิวHave it read the issue, find the cause, fix the code, run the tests, and open a pull request for teammates to review.
คุมด้วย: ดูแผนในโหมด Plan ก่อน และรีวิว diff ทุกครั้งKeep it safe by: checking the plan in Plan mode first, and reviewing the diff every time.
เขียนเทสต์ให้โค้ดที่ยังไม่มีเทสต์Writing tests for untested code
ให้เสนอเทสต์ที่ครอบคลุมกรณีปกติและกรณีขอบ ช่วยให้ทีมกล้าแก้โค้ดส่วนนั้นมากขึ้นHave it propose tests covering normal and edge cases, so the team feels safer changing that code later.
คุมด้วย: ตรวจว่าเทสต์ตรวจสิ่งที่ควรตรวจจริง ไม่ใช่แค่ผ่านเฉย ๆKeep it safe by: checking that the tests verify what they should, not just pass.
สคริปต์จัดข้อมูลประจำสัปดาห์A weekly data-cleaning script
ทีมปฏิบัติการที่ต้องรวมไฟล์ Excel หลายไฟล์ทุกสัปดาห์ ให้ Claude Code เขียนสคริปต์รวมไฟล์และตรวจความผิดปกติของข้อมูลAn operations team that merges several Excel files every week asks Claude Code to write a script that combines them and flags odd data.
คุมด้วย: ทดลองกับข้อมูลสำเนา และให้นักพัฒนารีวิวสคริปต์ก่อนใช้กับข้อมูลจริงKeep it safe by: trying it on a copy of the data, and having a developer review the script before it touches real data.
เครื่องมือภายในเล็ก ๆ ของทีมA small internal team tool
เช่น หน้าเว็บภายในสำหรับค้นข้อมูลที่ทีมใช้บ่อย ทำเป็นต้นแบบได้เร็วโดยไม่ต้องรอคิวทีมพัฒนาFor example, an internal web page for searching data the team uses often, built as a quick prototype without waiting in the dev team's queue.
คุมด้วย: ให้นักพัฒนาตรวจเรื่องสิทธิ์การเข้าถึงและความปลอดภัยก่อนใช้กับข้อมูลจริงKeep it safe by: having a developer check access rights and security before it uses real data.
ถ้าคนในทีมไม่ใช่โปรแกรมเมอร์และอยากฝึกใช้ AI ช่วยเขียนโค้ดอย่างเป็นระบบ ดู หลักสูตร Vibe CodingIf people on your team are not programmers and want to learn AI-assisted coding properly, see the Vibe Coding course.
อยากให้ทีมใช้ Claude Code ได้จริงและปลอดภัยWant your team to use Claude Code effectively and safely?
เราจัดอบรม Claude Code ผ่านแอป Claude Desktop บนโปรเจกต์จริงของทีม พร้อมวางมาตรฐานก่อนเปิดใช้ทั้งทีม มีแทร็กแยกสำหรับทีมพัฒนา ทีมที่ไม่ใช่โปรแกรมเมอร์ และผู้บริหารเทคโนโลยี ปรึกษาฟรี และรับใบเสนอราคาภายใน 24 ชั่วโมงWe run Claude Code training through the Claude desktop app on your team's real projects, with team standards set before rollout. There are separate tracks for dev teams, teams that are not programmers, and tech leaders. Consultation is free, with a quote within 24 hours.
เริ่มใช้ Claude Code ผ่านแอป Desktop ยังไง: 8 ขั้นสำหรับมือใหม่How to get started in the desktop app: eight steps for beginners
ขั้นตอนนี้เป็นภาพรวม ไม่ใช่คู่มือติดตั้ง เพราะขั้นตอนติดตั้งเปลี่ยนไปตามเวอร์ชัน ปุ่มและชื่อเมนูในแอปก็อาจเปลี่ยนได้These steps are an overview, not an installation guide, because installation steps change with each version, and button and menu names in the app can change too.
- 1ติดตั้งแอป Claude DesktopInstall the Claude desktop app. ติดตั้งตามคู่มือทางการที่ code.claude.com บทความนี้ไม่ใส่ขั้นตอนติดตั้ง เพื่อไม่ให้ล้าสมัยFollow the official guide at code.claude.com. This article does not include install steps, so it does not go out of date.
- 2เปิดแท็บ Code และเตรียมบัญชีOpen the Code tab and prepare an account. ล็อกอินด้วยบัญชีที่ใช้ Claude Code ได้ ดูหัวข้อแพ็กเกจด้านล่างSign in with an account that can use Claude Code. See the plans section below.
- 3เลือก Local แล้วเลือกโฟลเดอร์ (หรือ Cloud แล้วเลือก repo)Choose Local and pick a folder (or Cloud and a repository). อย่าเริ่มกับระบบจริง ใช้โฟลเดอร์ทดลองหรือสำเนาของโปรเจกต์ก่อนDo not start on a live system; use a practice folder or a copy of the project.
- 4เลือกโหมดสิทธิ์Pick a permission mode. เริ่มที่ Plan หรือ Manual เพื่อให้ Claude ถามก่อนทุกครั้งStart with Plan or Manual so Claude asks before it acts.
- 5อธิบายงานที่ต้องการDescribe the task. จะให้อธิบายโค้ดก่อนก็ได้ แล้วค่อยให้แก้งานเล็ก ๆ พิมพ์เป็นภาษาไทยได้ ตรวจแผนก่อนอนุมัติYou can ask it to explain the code first, then give it a small task. Thai is fine. Check the plan before approving.
- 6รีวิว diffReview the diff. ดูทีละไฟล์ คลิกคอมเมนต์ในจุดที่อยากให้แก้ หรือลอง /code-reviewGo file by file, click to comment where you want changes, or try /code-review.
- 7ดูพรีวิวแอปCheck the app preview. ถ้าเป็นแอปหรือเว็บ ให้ Claude เปิดในหน้าพรีวิวแล้วตรวจว่าใช้งานได้จริงIf it is an app or a website, have Claude open it in the preview pane and confirm it really works.
- 8เปิด Pull RequestOpen a pull request. ติดตั้งและล็อกอิน GitHub CLI ไว้ก่อน แล้วเปิด PR ให้เพื่อนร่วมทีมรีวิว และเขียนกติกาที่ต้องบอกซ้ำ ๆ ลงไฟล์กติกาของทีมHave the GitHub CLI installed and signed in, open the PR for teammates to review, and put the rules you keep repeating into the team rules file.
แพ็กเกจที่ใช้ Claude Code ได้Plans that include Claude Code
Pro และ MaxPro and Max
แพ็กเกจรายบุคคลที่รวม Claude Code อยู่แล้วIndividual plans that already include Claude Code.
TeamTeam
ทุกที่นั่งในแพ็กเกจรวม Claude CodeEvery seat on the plan includes Claude Code.
EnterpriseEnterprise
เพิ่มด้านความปลอดภัย การวิเคราะห์การใช้งานและ ROI การคุมสิทธิ์ตามบทบาท วงเงินใช้จ่าย และการตั้งค่าข้อมูลเฉพาะองค์กรAdds security, usage and ROI analytics, role-based access, spend limits and custom data controls.
Claude ConsoleClaude Console
บัญชี Console ที่คิดค่าบริการตามการใช้งาน APIA Console account billed by API usage.
เราไม่ระบุราคาในบทความนี้ เพราะแพ็กเกจและเงื่อนไขเปลี่ยนได้ ควรดูรายละเอียดล่าสุดจากหน้าทางการของ AnthropicWe do not list prices here because plans and terms can change; check Anthropic's official pages for the latest details.
ใช้ให้ปลอดภัย: แนวปฏิบัติที่ควรทำUsing it safely: good practice
Claude Code แก้ไฟล์และรันคำสั่งได้จริง ความปลอดภัยจึงขึ้นกับการตั้งค่าและวินัยของทีม แปดข้อนี้เป็นจุดเริ่มต้นClaude Code really does edit files and run commands, so safety depends on the team's setup and discipline. These eight points are a starting place.
- เริ่มจากโหมดที่ถามก่อน คือ Manual หรือ Plan แล้วค่อยขยับไป Accept edits หรือ Auto เมื่อไว้ใจStart with a mode that asks first, Manual or Plan, and move to Accept edits or Auto only once you trust it.
- ทำงานบน branch แยก ไม่แก้ branch หลักโดยตรง และใช้โหมด worktree ให้แต่ละเซสชันทำงานในสำเนาแยกWork on a separate branch rather than editing the main branch directly, and use worktree mode so each session works in its own copy.
- ไม่ใส่ความลับ เช่น API key รหัสผ่าน หรือข้อมูลลูกค้า ลงในโปรเจกต์หรือคำสั่งKeep secrets such as API keys, passwords and customer data out of the project and out of prompts.
- อนุญาต connectors (MCP server) เฉพาะที่ตรวจแล้ว และไม่ให้ใครเพิ่มเองโดยไม่ผ่านผู้ดูแลAllow only vetted connectors (MCP servers), and do not let anyone add their own without the owner.
- มีเทสต์รองรับ เพราะเทสต์ช่วยจับความผิดพลาดที่ตาเปล่ามองไม่เห็นHave tests in place, since tests catch mistakes the eye misses.
- รีวิว diff และ Pull Request ทุกครั้งโดยคนที่เข้าใจโค้ดReview every diff and pull request with someone who understands the code.
- เขียนกติกาของทีมไว้ในไฟล์กติกา (CLAUDE.md) และกำหนดเจ้าของการตั้งค่าเป็นตำแหน่ง ไม่ใช่ตัวบุคคลWrite the team's rules in the team rules file (CLAUDE.md), and make the owner of the setup a role, not an individual.
- ไม่ใช้ Bypass permissions บนเครื่องทั่วไป ใช้ได้เฉพาะในคอนเทนเนอร์หรือเครื่องเสมือนที่แยกออกมาNever use Bypass permissions on a normal machine; it is only for sandboxed containers or virtual machines.
ถ้าอยากเจาะเรื่องสิทธิ์ ดู ให้ AI ลงมือทำงานในระบบบริษัท ให้สิทธิ์แค่ไหนถึงจะไม่พัง และถ้าพนักงานเริ่มใช้เครื่องมือ AI กันเองโดยไม่มีกติกา ดู พนักงานสร้างแอปใช้เองด้วย AI จะห้าม ปล่อย หรือคุมยังไงFor a deeper look at permissions, see letting AI act inside your company systems safely. And if staff are starting to use AI tools on their own with no rules, see staff building their own AI tools: ban, allow, or govern?
Claude Code ต่างจาก Claude Cowork และแชท Claude ปกติยังไงHow Claude Code differs from Claude Cowork and regular Claude chat
ทั้งสามอย่างใช้โมเดล Claude แต่ออกแบบมาสำหรับงานคนละแบบ ตารางนี้ช่วยเลือกให้ถูกที่ รายละเอียดของ Cowork ดูได้ที่ บทความ Claude Cowork และ หน้าอบรม Claude CoworkAll three use Claude models but are designed for different kinds of work. This table helps you pick the right one. For details on Cowork, see the Claude Cowork article and the Claude Cowork training page.
| ประเด็นFactor | Claude Code | Claude Cowork | แชท Claude ปกติRegular Claude chat |
|---|---|---|---|
| เหมาะกับBest for | ทีมพัฒนาและคนที่ทำงานกับโค้ดDev teams and people who work with code | คนทำงานทั่วไปที่ไม่ต้องเขียนโค้ดEveryday office staff who do not write code | ถามตอบ ร่างข้อความ สรุปเอกสารQ&A, drafting text, summarizing documents |
| ทำงานกับอะไรWorks on | โปรเจกต์โค้ด เทสต์ และ gitA code project, its tests and git | งานเอกสารและงานสำนักงานของผู้ใช้The user's documents and office work | ข้อความที่คุณพิมพ์หรืออัปโหลดText you type or upload |
| ได้อะไรกลับมาWhat you get back | โค้ดที่แก้ในโปรเจกต์ ผลเทสต์ และ Pull RequestEdited code in the project, test results and a pull request | งานที่ทำเสร็จตามที่สั่งWork completed as instructed | ข้อความหรือโค้ดที่คุณคัดลอกไปใช้เองText or code you copy and use yourself |
| ต้องมีความรู้โค้ดไหมCoding knowledge needed? | ควรมี หรือมีนักพัฒนาคอยรีวิวYes, or a developer to review | ไม่ต้องNo | ไม่ต้องNo |
| ใครต้องตรวจWho must check | นักพัฒนารีวิว diff และเทสต์A developer reviews the diff and tests | เจ้าของงานตรวจผลก่อนใช้The work owner checks the result before use | คนที่นำคำตอบไปใช้Whoever uses the answer |
ข้อจำกัดที่ควรรู้Limits worth knowing
- ยังต้องมีคนรีวิวโค้ด Claude Code พลาดได้ เช่น เข้าใจโจทย์ผิดหรือเขียนเทสต์ที่ผ่านแต่ไม่ได้ตรวจอะไร คนที่เข้าใจโค้ดต้องอ่านก่อนนำไปใช้จริงA person still has to review the code. Claude Code can get things wrong, such as misreading the task or writing tests that pass but check nothing. Someone who understands the code must read it before real use.
- มีขีดจำกัดการใช้งาน แต่ละแพ็กเกจมีโควตาการใช้ งานยาวและหลายเซสชันพร้อมกันใช้โควตามาก ควรวางแผนก่อนเปิดใช้ทั้งทีมThere are usage limits. Each plan has a usage allowance, and long tasks and many parallel sessions use a lot of it, so plan before rolling out to a whole team.
- แอป Desktop ยังไม่ครอบคลุมทุกอย่าง บางอย่างยังมีเฉพาะในเทอร์มินัล แอปมองไม่เห็นเซสชันที่เริ่มในเทอร์มินัลหรือ VS Code ฟีเจอร์ PR ต้องมี GitHub CLI และ Linux ยังเป็นเบต้าThe desktop app does not cover everything yet. A few things are still terminal-only, the app cannot see sessions started in the terminal or VS Code, PR features need the GitHub CLI, and Linux is still in beta.
- คุณภาพขึ้นกับความชัดของโจทย์และเทสต์ โจทย์คลุมเครือและโปรเจกต์ที่ไม่มีเทสต์ทำให้ผลลัพธ์ตรวจยากQuality depends on clear tasks and tests. Vague tasks and projects without tests make the output hard to verify.
- ข้อเท็จจริงมีวันหมดอายุ เนื้อหาตรวจกับหน้าผลิตภัณฑ์ของ Anthropic และเอกสารแอป Desktop ที่ code.claude.com เมื่อตุลาคม 2026 ฟีเจอร์และแพ็กเกจเปลี่ยนเร็วFacts expire. The content was checked against Anthropic's product page and the desktop app documentation at code.claude.com in October 2026. Features and plans change quickly.
- ไม่ใช่การประเมินความปลอดภัย ส่วนความปลอดภัยเป็นหลักการทั่วไป ก่อนใช้กับโค้ดสำคัญ ควรให้ฝ่ายความปลอดภัยของคุณตรวจการตั้งค่าจริงThis is not a security assessment. The safety section gives general principles; before using it on critical code, have your security team review the actual setup.
- เรามีส่วนได้เสีย เราจัดอบรม Claude Code และรับวางระบบ จึงพยายามอ้างเอกสารทางการและบอกกรณีที่ยังไม่ควรใช้ไว้ให้ชัดWe have an interest. We run Claude Code training and build systems, so we have tried to rely on official documentation and to state clearly when it is not yet the right time to use it.
คำถามที่พบบ่อย (FAQ)Frequently Asked Questions
Claude Code คืออะไร ต่างจาก Claude ในแชทยังไง?What is Claude Code, and how is it different from Claude in chat?
Claude Code คือเครื่องมือเขียนโค้ดแบบ agentic จาก Anthropic ที่ทำงานอยู่ในโปรเจกต์ของคุณโดยตรง มันอ่านโค้ดทั้งโปรเจกต์ แก้ไฟล์ รันคำสั่งและเทสต์ ทำงานกับ git และเปิด Pull Request ได้ โดยขออนุญาตก่อนแก้ไฟล์หรือรันคำสั่ง ส่วน Claude ในแชทตอบเป็นข้อความหรือโค้ดที่คุณต้องคัดลอกไปใช้เอง คุณใช้ Claude Code ผ่านแท็บ Code ในแอป Claude Desktop ได้เลยClaude Code is an agentic coding tool from Anthropic that works directly inside your project. It reads the whole codebase, edits files, runs commands and tests, works with git and can open pull requests, asking permission before it edits files or runs commands. Claude in chat answers with text or code that you have to copy and use yourself. You can use Claude Code right away through the Code tab of the Claude desktop app.
ต้องใช้คอมมานด์ไลน์หรือเทอร์มินัลไหม?Do I need the command line or a terminal?
ไม่ต้อง แอป Claude Desktop มีแท็บ Code ที่ให้เลือกโฟลเดอร์ เลือกโหมดสิทธิ์ ดู diff พรีวิวแอป และเปิด Pull Request ได้ในแอปเดียว แอปรองรับ macOS, Windows และ Linux แบบเบต้า มีเทอร์มินัลในตัวให้ใช้ถ้าอยากใช้ แต่ไม่บังคับ บางอย่างยังมีเฉพาะในเทอร์มินัล และแอป Desktop มองไม่เห็นเซสชันที่เริ่มในเทอร์มินัลหรือ VS CodeNo. The Claude desktop app has a Code tab where you pick a folder, choose a permission mode, review diffs, preview the app and open a pull request, all in one app. It runs on macOS, Windows and Linux in beta, and has an integrated terminal if you want it, but that is optional. A few things are still terminal-only, and the desktop app cannot see sessions started in the terminal or VS Code.
คนไม่เขียนโค้ดใช้ Claude Code ได้ไหม?Can someone who does not write code use Claude Code?
ใช้ได้ในงานเล็ก ๆ เช่น สคริปต์จัดข้อมูลหรือเครื่องมือภายในง่าย ๆ โดยเฉพาะถ้ามีนักพัฒนาคอยรีวิว แอป Claude Desktop ช่วยให้เริ่มได้โดยไม่ต้องพิมพ์คำสั่งในเทอร์มินัล เลือกโฟลเดอร์ เลือกโหมด Plan แล้วดูแผนและ diff เป็นภาพ แต่ไม่ควรนำโค้ดที่ไม่มีใครเข้าใจไปใช้กับข้อมูลหรือระบบจริง เพราะ Claude Code ยังพลาดได้ ให้เริ่มจากงานเล็กที่ทดลองกับข้อมูลสำเนา แล้วให้นักพัฒนาตรวจก่อนใช้งานจริงYes, for small jobs such as a data-cleaning script or a simple internal tool, especially when a developer reviews the result. The Claude desktop app lets you start without typing terminal commands: pick a folder, choose Plan mode and read the plan and diff visually. But code nobody understands should not be used on real data or systems, because Claude Code can still make mistakes. Start with a small task on a copy of the data, and have a developer check it before real use.
Claude Code ต้องใช้แพ็กเกจไหน?Which plan do you need for Claude Code?
Claude Code มีให้ใช้ในแพ็กเกจ Pro และ Max แพ็กเกจ Team ที่ทุกที่นั่งรวม Claude Code อยู่แล้ว และแพ็กเกจ Enterprise ที่เพิ่มด้านความปลอดภัย การวิเคราะห์การใช้งานและ ROI การคุมสิทธิ์ตามบทบาท วงเงินใช้จ่าย และการตั้งค่าข้อมูลเฉพาะองค์กร หรือจะใช้บัญชี Claude Console ที่คิดค่าบริการตามการใช้งาน API ก็ได้ แพ็กเกจและเงื่อนไขเปลี่ยนได้ ควรเช็กรายละเอียดล่าสุดจากหน้าทางการของ AnthropicClaude Code is included in the Pro and Max plans, in Team (where every seat includes it), and in Enterprise, which adds security, usage and ROI analytics, role-based access, spend limits and custom data controls. You can also use a Claude Console account billed by API usage. Plans and terms can change, so check Anthropic's official pages for the latest details.
Claude Code ปลอดภัยไหม ใช้กับโค้ดของบริษัทได้หรือเปล่า?Is Claude Code safe, and can it be used on company code?
ใช้กับโค้ดของบริษัทได้ แต่ความปลอดภัยขึ้นกับการตั้งค่า ควรเลือกโหมดสิทธิ์ให้เหมาะกับงาน ทำงานบน branch แยกหรือใช้โหมด worktree ไม่ใส่ความลับลงในโปรเจกต์ อนุญาต connectors (MCP server) เฉพาะที่ตรวจแล้ว และดู diff กับรีวิวทุก Pull Request ข้อมูลที่ Claude อ่านจะถูกส่งไปประมวลผลตามเงื่อนไขของแพ็กเกจที่ใช้ ควรให้ฝ่ายความปลอดภัยหรือฝ่ายกฎหมายตรวจก่อนใช้กับโค้ดสำคัญIt can be used on company code, but safety depends on the setup. Choose permission modes to match the work, work on a separate branch or use worktree mode, keep secrets out of the project, allow only vetted connectors (MCP servers), and check the diff and review every pull request. Data Claude reads is processed under the terms of the plan you use, so have your security or legal team check before using it on critical code.
สั่ง Claude Code เป็นภาษาไทยได้ไหม?Can you give Claude Code instructions in Thai?
ได้ คุณพิมพ์โจทย์เป็นภาษาไทยได้ ส่วนโค้ด ชื่อไฟล์ และคำสั่งยังเป็นภาษาอังกฤษตามปกติ ควรเขียนโจทย์ให้ชัดว่าอยากได้อะไร ห้ามแตะส่วนไหน และให้เขียนเทสต์ด้วย แล้วตรวจผลลัพธ์ทุกครั้งYes. You can write your instructions in Thai, while code, file names and commands remain in English as usual. State clearly what you want, which parts must not be touched, and ask for tests, then always check the result.
สรุปSummary
Claude Code คือผู้ช่วยที่ลงมือทำงานในโปรเจกต์ของคุณจริง ไม่ใช่แค่ตอบคำถาม จึงช่วยได้มากเมื่อโจทย์ชัด มีเทสต์ และมีคนรีวิว เริ่มจากแอป Claude Desktop กับโฟลเดอร์ทดลอง ดูแผนในโหมด Plan ก่อนแก้ รีวิว diff ทุกครั้ง และเขียนกติกาของทีมลงไฟล์กติกา (CLAUDE.md) แล้วค่อยขยายไปงานที่ใหญ่ขึ้นClaude Code is an assistant that actually works inside your project, not one that only answers questions, so it helps a lot when the task is clear, there are tests, and someone reviews. Start in the Claude desktop app with a practice folder, check the plan in Plan mode before edits, review the diff every time, write your team's rules into the team rules file (CLAUDE.md), and then grow into bigger jobs.
ให้ทีมของคุณเรียน Claude Code บนโค้ดจริงLet your team learn Claude Code on real code
ถ้าอยากให้ทีมเริ่มได้เร็วและตั้งค่าได้ถูกตั้งแต่แรก เราช่วยอบรมและวางมาตรฐานให้ AI Trainer Thailand จัดอบรม AI ให้แล้วกว่า 100 องค์กร รวมถึงผู้เข้าอบรมจาก 9 หน่วยงานภาครัฐ ด้วยหลักสูตรทั้งหมด 64 หลักสูตร ปรึกษาฟรี และรับใบเสนอราคาภายใน 24 ชั่วโมงIf you want your team to start quickly and set things up correctly from day one, we help with training and standards. AI Trainer Thailand has delivered AI training to over 100 organizations, including participants from 9 government agencies, across 64 courses. Consultation is free, with a quote within 24 hours.
อ่านต่อRead next
Guide
MCP คืออะไร ต่างจาก API ยังไง องค์กรควรสนใจตอนไหนWhat is MCP, how it differs from an API, and when to care
Guide
Claude Cowork คืออะไร สำหรับคนทำงานที่ไม่เขียนโค้ดWhat is Claude Cowork, for people who do not write code
Course
อบรม Vibe Coding เขียนโค้ดด้วย AIVibe Coding: AI-assisted coding training
Solution