Zum Hauptinhalt springen
LIVE
CVSS 6.9CVE-2026-137684 | A security flaw has been discovered in eosphoros-ai DB-GPT up to 0.8.3. This affects the function editor_sql_run of the file packages/dbgpt-app/src/dbgpt_app/openapi/api_v1/editor/api_editor_v1.py of the component Editor SQL Run API. Performing a manipulation of the argument db_name results in authorization bypass. It is possible to initiate the attack remotely. The exploit has been released to the public and may be used for attacks. The pull request to fixCVSS 8.7CVE-2026-137992 | libexpat through 2.11.0 contains a denial of service vulnerability in defineAttribute() of lib/xmlparse.c that fails to detect duplicate non-ID #IMPLIED or #REQUIRED attribute declarations. Attackers can supply a crafted XML document with repeated ATTLIST declarations in an internal DTD subset to cause quadratic CPU consumption in storeAtts() during parsing.CVSS 8.5CVE-2026-137994 | Leo through 6.8.10 contains an insecure deserialization vulnerability that allows attackers to execute code by embedding pickled data in unknown XML attributes of .leo outlines. Attackers can place a pickle __reduce__ gadget in a or element attribute that resolveUa passes to pickle.loads, executing code with user privileges when the outline is opened.CVSS 7.0CVE-2026-137995 | FOG Project before 1.6.0.119 contains an information disclosure vulnerability that allows unauthenticated attackers to obtain host tokens from status/hostgetkey.php by supplying a host MAC address. Attackers can present the token to service/hostinfo.php to retrieve decrypted Active Directory join credentials and Windows product keys during deployment windows.CVSS 6.8CVE-2026-137996 | Zettlr before 4.11.0 fails to validate URI schemes in Markdown link targets, allowing attackers to launch arbitrary registered protocol handlers via Electron shell.openExternal without confirmation. Attackers can craft documents whose Ctrl/Cmd-clicked links use smb:// to leak NTLM credential hashes on Windows or invoke custom protocol handlers with attacker-controlled parameters.CVSS 8.5CVE-2026-137997 | HCIPy through 0.7.1 contains an insecure deserialization vulnerability that allows attackers to execute code by supplying crafted .pkl files to read_field, read_grid or read_mode_basis. Because hcipy/util/io.py selects pickle by file extension and calls pickle.load, a __reduce__ gadget in a pupil, apodizer, PSF or mode-basis file runs code with the user's privileges.CVSS 8.5CVE-2026-137998 | Detoxify 0.5.3 through 0.5.4 contains an insecure deserialization vulnerability in load_checkpoint that allows attackers to execute code by supplying a crafted checkpoint file. Attackers can embed a pickle __reduce__ gadget in a .ckpt file loaded via torch.load with weights_only=False to run code with the user's privileges.CVSS 8.5CVE-2026-137999 | JSONSchema2PoPo2 through 3.0.3 contains a code injection vulnerability that allows attackers to inject Python code by supplying JSON Schema default or format values that are written unescaped. Attackers can place a single quote in a string property default to break out of the literal in the generated __init__ signature, executing injected code when the generated module is imported.
Alle im Drawer
Intelligence View
⚡ tsecurity.de Intelligence

Loop Engineering — เมื่อการ Prompt Agent ด้วยมือไม่พออีกต่อไป แล้ว Programmer ต้องออกแบบ Loop แทน

Loop Engineering — เมื่อการ Prompt Agent ด้วยมือไม่พออีกต่อไป แล้ว Programmer ต้องออกแบบ Loop แทน โดย Nokka (นก-กา) | 1 กรกฎาคม 2026 TL;DR — สำหรับคนที่รีบ กลาง…

Beitrag
0
Seite
0
↗ Quelle (dev.to)
Quelle & Fakten · 3 Min. Lesezeit
Quelle: dev.to
Rubrik: Sichere Programmierung




Loop Engineering — เมื่อการ Prompt Agent ด้วยมือไม่พออีกต่อไป แล้ว Programmer ต้องออกแบบ Loop แทน



โดย Nokka (นก-กา) | 1 กรกฎาคม 2026









TL;DR — สำหรับคนที่รีบ



กลางเดือนมิถุนายน 2026 ที่ผ่านมา วงการ AI developer สั่นสะเทือนด้วยประโยค 6 คำจาก Peter Steinberger ผู้สร้าง OpenClaw:



"You shouldn't be prompting coding agents anymore. You should be designing loops that prompt your agents."



ประโยคนี้มียอดวิว 8 ล้านครั้งในวันเดียว และจุดกระแส "Loop Engineering" ที่กลายเป็น buzzword ร้อนที่สุดของเดือน



Loop Engineering คือการเปลี่ยนจากการนั่ง Prompt Agent ทีละคำสั่ง มาเป็นการเขียน Loop (โปรแกรม) ที่ทำหน้าที่ Prompt Agent แทนคุณ โดย Loop จะเป็นคนเลือกงานต่อไป, ส่งให้ Agent, ตรวจสอบผล, ตัดสินใจว่าจะทำต่อหรือหยุด คุณไม่ได้เป็นคนขับ Agent อีกต่อไป — คุณเป็นคนออกแบบระบบที่ขับ Agent









1. Loop Engineering คืออะไร? เกิดมาจากไหน?



เรื่องนี้เริ่มต้นจาก Boris Cherny ผู้สร้าง Claude Code พูดบนเวที Acquired Unplugged ต้นเดือนมิถุนายน 2026 ว่า:



"I don't prompt Claude anymore. I have loops that are running. They're the ones that are prompting Claude and figuring out what to do. My job is to write loops."



สองวันต่อมา Peter Steinberger โพสต์บน X ว่า "You shouldn't be prompting coding agents anymore. You should be designing loops that prompt your agents." โพสต์นี้มียอดวิว 8 ล้านครั้ง [1]



หลังจากนั้น Addy Osmani (Google Engineer, O'Reilly author) เขียนบทความ "Loop Engineering" บน O'Reilly Radar ให้คำจำกัดความว่า: "Loop engineering is replacing yourself as the person who prompts the agent." [2]



และ @0xCodez ก็รวบรวมเป็น 14-step roadmap จาก "prompter" สู่ "loop designer" [3]



ในมุมมองของผม Loop Engineering ไม่ใช่ buzzword ธรรมดา แต่มันคือการเปลี่ยน abstraction layer ของการทำงานกับ AI เหมือนกับที่เราเปลี่ยนจาก Assembly → High-level language หรือจาก Bare metal → Cloud แต่ก็ต้องยอมรับว่า Loop Engineering ยังเป็นแนวคิดใหม่ และยังไม่มี standard practice ที่ชัดเจน สิ่งที่ใช้ได้วันนี้อาจเปลี่ยนไปใน 3 เดือน









2. ทำไมต้อง Loop Engineering?



ลองนึกภาพการทำงานกับ AI coding agent แบบเดิม:




  • คุณพิมพ์ prompt → รอ → อ่าน diff → แก้ prompt → รอ → อ่าน diff → แก้ prompt... คุณคือ engine ที่ขับเคลื่อน Agent

  • ถ้าคุณลุกไปเข้าห้องน้ำ Agent ก็หยุดทำงาน

  • ถ้าคุณมีงาน 10 อย่าง คุณต้องนั่งทำทีละอย่าง



Loop Engineering เปลี่ยนตรงนี้: คุณเขียน Loop ที่เป็น engine แทน




  • Loop เลือกงานต่อไปเอง

  • Loop ส่งให้ Agent

  • Loop ตรวจสอบผล

  • Loop ตัดสินใจว่าจะทำต่อหรือหยุด

  • Loop ทำงานตอนคุณนอนหลับ



Peter Steinberger บอกว่า "more than 40% of my code is already written by loops" และ "90% of companies we work with don't use verification loops — that's their biggest mistake" [4]









3. หลักการทำงานของ Loop



ทุก Loop มีวงจร 4 ขั้นตอนเหมือนกัน:



Act → Observe → Reason → Repeat





  • Act: Agent ทำงานตามคำสั่ง (เขียนโค้ด, รันคำสั่ง, แก้ปัญหา)


  • Observe: ระบบอ่านผลลัพธ์ที่ได้ (ดู diff, ดู test result, ดู error log)


  • Reason: ระบบประเมินว่าผลลัพธ์ตรงตามเป้าหมายหรือไม่


  • Repeat: ถ้ายังไม่ผ่าน — ส่งกลับไปให้ Agent แก้ใหม่ ถ้าผ่านแล้ว — ไปงานต่อไป



ตัวอย่าง Loop ง่ายๆ ใน shell:




while ! verify; do
agent "fix the issue"
done






โค้ด 3 บรรทัดนี้คือหัวใจของ Loop Engineering แทนที่คุณจะนั่ง prompt Agent ซ้ำๆ จนกว่าจะถูก คุณให้ Loop ทำหน้าที่นั้นแทน






เปรียบเทียบการทำงานแบบเดิม vs Loop Engineering











































มิติ Prompt ด้วยมือ Loop Engineering
Engine คุณคือคนขับ Loop คือคนขับ
การทำงาน ทีละคำสั่ง อัตโนมัติ
เวลา ต้องนั่งหน้าจอ ทำงานตอนคุณหลับ
ตรวจสอบ คุณอ่าน diff ทุกรอบ Verifier ตรวจสอบอัตโนมัติ
ต้นทุน ต่ำต่อรอบ สูงต่อรอบ แต่รวมแล้วถูกกว่า
ความเสี่ยง คุณควบคุมได้ ต้องออกแบบ safety








4. 14-Step Roadmap จาก Prompter สู่ Loop Designer



@0xCodez แบ่งเส้นทางการเรียนรู้เป็น 3 ระดับ [3]:






ระดับ 1 — ตัดสินใจว่าควรใช้ Loop หรือไม่





  1. รู้ว่าเมื่อไหร่ควรใช้ Loop — งานซ้ำๆ, งานที่ต้องลองผิดลองถูก, งานที่ต้องตรวจสอบหลายรอบ


  2. รู้ว่าเมื่อไหร่ไม่ควรใช้ Loop — งานครั้งเดียว, งานที่ต้อง human judgment ทุกขั้นตอน


  3. รู้ต้นทุนของ Loop — Loop ใช้ tokens มากกว่า prompt เดียว เพราะมีการวนซ้ำ






ระดับ 2 — เรียนรู้ 5 Building Blocks





  1. Verifier — ตัวตรวจสอบว่างานสำเร็จหรือไม่ (test pass? diff ถูกต้อง?) Verifier คือหัวใจของ Loop — ถ้า verifier แย่ Loop ก็แย่


  2. State Management — การเก็บสถานะระหว่างรอบ (งานไหนทำแล้ว? งานไหนรออยู่?)


  3. Error Handling — เมื่อ Agent ทำผิดจะจัดการยังไง? (retry? rollback? แจ้งมนุษย์?)


  4. Context Management — จะส่ง context เท่าไหร่ให้ Agent แต่ละรอบ? (ไม่มากเกินไป ไม่น้อยเกินไป)


  5. Cost Control — จำกัดจำนวนรอบ, จำกัด tokens ต่อรอบ, ตั้ง budget






ระดับ 3 — สร้าง Loop ที่ใช้งานได้จริง





  1. เริ่มจาก Loop ที่เล็กที่สุด — 1 งาน, 1 verifier, ไม่มี error handling


  2. เพิ่ม safety — จำกัดรอบสูงสุด, rollback เมื่อ fail, log ทุกอย่าง


  3. เพิ่ม state — ให้ Loop จำได้ว่าทำอะไรไปแล้วบ้าง


  4. เพิ่ม sub-agent — ให้ Loop สร้าง Agent ย่อยสำหรับงานเฉพาะ


  5. เพิ่ม scheduling — ให้ Loop ทำงานตามเวลา หรือเมื่อมี event


  6. เพิ่ม monitoring — ดูว่า Loop ทำงานยังไง, ใช้เงินเท่าไหร่, มีปัญหาตรงไหน









5. Loop Engineering ใน Claude Code และ Codex



เครื่องมือหลักที่รองรับ Loop Engineering ในตอนนี้:






Claude Code





  • /loop — สร้าง recurring scheduled prompts


  • /goal — รันจนกว่าเงื่อนไขที่กำหนดจะเป็นจริง


  • hooks — กำหนด action เมื่อ event ต่างๆ เกิดขึ้น


  • subagents — สร้าง Agent ย่อยสำหรับงานเฉพาะ


  • worktree isolation — แยก environment แต่ละรอบ






OpenAI Codex CLI





  • Automations — งานที่ทำงานซ้ำโดยไม่ต้องมีคนสั่ง


  • /goal — รันจนกว่าเงื่อนไขจะเป็นจริง (เพิ่มใน CLI 0.128.0)


  • worktrees — แยก environment


  • skills — reusable components


  • TOML-defined subagents — กำหนด subagent ในไฟล์ TOML



ทั้งสองเครื่องมือใช้ MCP (Model Context Protocol) ในการเชื่อมต่อกับ tools ภายนอก [5]









6. ความเสี่ยงของ Loop Engineering



Loop Engineering ไม่ใช่ทางลัดสู่สวรรค์ มีความเสี่ยงที่ programmer ต้องรู้:






6.1 Weak Verification



ปัญหาที่พบบ่อยที่สุด — Agent อ้างว่างานเสร็จแล้ว แต่ความจริงยังไม่เสร็จ หรือทำผิด "The agent claims done without proof"



ตัวอย่าง: Agent บอกว่า "test passed" แต่จริงๆ test ไม่ได้รัน หรือ Agent แก้บั๊กหนึ่งแต่สร้างบั๊กใหม่สามตัว



วิธีแก้: ใช้ verifier ที่แข็งแรง — รัน test จริง, ตรวจสอบ diff, ใช้ linter อย่าให้ Agent เป็นคนตรวจสอบงานตัวเอง






6.2 Comprehension Debt



เมื่อ Loop ทำงานตอนคุณนอนหลับ มันเขียนโค้ดที่คุณยังไม่ได้อ่าน "Code ships faster than you can understand it"



พอตื่นมาคุณเจอโค้ด 1,000 บรรทัดที่ Loop เขียนไว้ คุณไม่รู้ว่ามันทำอะไรบ้าง ต้องใช้เวลาอ่านอีกครึ่งวัน ความเร็วที่ได้จาก Loop หายไปกับเวลาที่ใช้ทำความเข้าใจ



วิธีแก้: จำกัดขนาดของงานต่อรอบ, ให้ Loop เขียน summary ทุกครั้ง, มี code review ก่อน merge






6.3 Cognitive Surrender



ความเสี่ยงที่อันตรายที่สุด — คุณเริ่มเชื่อ Loop มากเกินไป "Accepting whatever the loop returns without judgment"



พอ Loop ทำงานได้ดี 10 ครั้งติด คุณเริ่มกด approve โดยไม่อ่าน จนกระทั่งครั้งที่ 11 Loop ทำอะไรผิดมหันต์



วิธีแก้: มี human-in-the-loop สำหรับงานสำคัญ, สุ่มตรวจงานของ Loop, ไม่ไว้ใจ Loop 100%









7. ตัวอย่าง Loop จริง



Shann Holmberg อธิบาย Loop 2 ระดับ [6]:






Small Loop — งานเดียว วนซ้ำ



Agent 1 ตัว เดินผ่าน:





  1. Research — ค้นหาข้อมูล


  2. Draft — เขียนร่าง


  3. Self-review — ตรวจสอบงานตัวเอง


  4. Revise — แก้ไข
    วนจนกว่าผลลัพธ์ผ่านเกณฑ์






Large Loop — Orchestrator + Specialists



Orchestrator 1 ตัว:




  1. แบ่งเป้าหมายใหญ่ออกเป็น chunks

  2. ส่งแต่ละ chunk ให้ specialist agent

  3. Specialist แต่ละตัวอาจมี Loop เล็กของตัวเอง

  4. Orchestrator รวบรวมผลและตรวจสอบความสอดคล้อง









8. มุมมองของ Nokka — Programmer ควรเริ่มยังไง?



ในมุมมองของผม Loop Engineering เป็นทักษะที่ programmer ทุกคนควรเริ่มเรียนรู้ตอนนี้ เพราะมันจะกลายเป็น standard practice ในอีก 6-12 เดือนข้างหน้า



วิธีเริ่มต้น:





  1. เริ่มจาก Loop ที่เล็กที่สุด — อย่าพยายามออกแบบ Loop ที่สมบูรณ์แบบตั้งแต่แรก เริ่มจาก while loop ง่ายๆ ที่ prompt Agent ซ้ำจนกว่า test จะผ่าน


  2. ลงทุนกับ Verifier — Verifier ที่ดีคือความต่างระหว่าง Loop ที่มีประโยชน์กับ Loop ที่อันตราย ใช้ test suite, linter, type checker เป็น verifier


  3. จำกัดความเสียหาย — ตั้ง max_retries, ตั้ง budget tokens, ใช้ git branch แยก ให้ Loop ทำงานใน sandbox ก่อน merge


  4. เริ่มจากงานที่ไม่สำคัญ — อย่าให้ Loop เขียน production code ตั้งแต่แรก เริ่มจาก refactor งานที่ไม่สำคัญ, เขียน test, หรือ documentation


  5. สร้าง habit การตรวจสอบ — อย่าเชื่อ Loop จนกว่าจะตรวจสอบเอง สุ่มตรวจงานของ Loop เป็นระยะ



ในมุมมองของผม คำพูดของ Boris Cherny ที่ว่า "I don't prompt Claude anymore. I have loops that are running" ไม่ใช่แค่คำพูดเท่ๆ — แต่มันคือทิศทางของ AI coding ในอีก 1-2 ปีข้างหน้า Programmer ที่เรียนรู้ Loop Engineering วันนี้ จะเป็นคนที่ได้เปรียบในตลาดงานพรุ่งนี้









เอกสารอ้างอิง



[1] Peter Steinberger (@0xCodez) — Loop engineering: the 14-step roadmap (June 7, 2026)

[2] Addy Osmani — Loop Engineering (O'Reilly Radar, June 22, 2026)

[3] @0xCodez — 14-step roadmap from prompter to loop designer

[4] Boris Cherny — Claude Code & the Future of Engineering (Acquired Unplugged, June 2026)

[5] Lushbinary — Loop Engineering: The Guide for AI Agents

[6] Shann Holmberg (@shannholmberg) — What is agent looping (June 8, 2026)

[7] Firecrawl — Loop Engineering: Should You Stop Prompting Agents and Start Designing Loops (June 11, 2026)

[8] AI Builder Club — Loop Engineering Guide (2026)







บทความนี้เขียนโดย AI (DeepSeek V4 Flash) ผ่าน Hermes Agent ภายใต้การควบคุมและตรวจสอบคุณภาพโดยมนุษย์ — Nokka (นก-กา)


Information ergänzen Fachhinweis, Update, Korrektur oder Quelle zur Meldung beitragen
Gäste-Hinweise werden kurz redaktionell geprüft und danach hier angezeigt.

Community-Hinweise zur Meldung

0 freigegeben
Social ReaktionenReagiere als Erste:r — dein Feedback zählt!
Informations-Bewertung:

💬 Community-Diskussion & Kommentare

🌐 Zum Hauptchat

Starte die Diskussion im Social-Chat Broadcast Stream oder reiche oben über „Information ergänzen“ einen Fachbeitrag ein.

Cyber Threat Intelligence & Forensik

ATT&CK-Navigator · IoC-Radar & Graph

CTI Threat Relationship Graph
Akteure · Techniken · Beziehungen
2 Knoten · 1 Relationen
CVE / Incident Threat Actor Software MITRE ATT&CK CWE Weakness IoC
Community Rating & Social Proof
⭐ Leser-Wertung
–
Ø / 5.0
Noch keine Leser-Bewertungen
War dieser Artikel hilfreich?
0
Jetzt Bewertung abgeben
Detail-Bewertung (optional)
Inhalt & Qualität
Quelle & Glaubwürdigkeit
Aktualität
Security Briefing Kostenlos · 1-Klick-Abmeldung

Intelligence Digest — kostenlos

Täglich die wichtigsten Security-News · jederzeit abbestellbar

Verwandte Story-Cluster & Quellen (Vektor-KI)

2 Cluster
2 Quellen
Barclays’ US banking arm confirms data breach
IT Security News vor 6 Std.
1 weitere Quelle
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Loop Engineering — เมื่อการ Prompt Agent ด้วยมือไม่พออีกต่อไป แล้ว Programmer ต้องออกแบบ Loop แทน

Thematisch verwandte Begriffe: Loop, Engineering, เมอการ, Prompt · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

💬 Kommentare werden geladen…
Zum Aktualisieren ziehen
Widgets & Themen
Widgets werden geladen…
Nächster Beitrag