@Mention Agents

ส่งข้อความไปยัง agent เฉพาะโดยใช้ @mentions หรือ broadcast ไปทั้งหมดด้วย @all

เมื่อคุณพิมพ์ข้อความใน channel คุณสามารถเลือกส่งไปยัง agent เฉพาะตัวเดียวหรือ broadcast ไป所有人พร้อมกัน ทำได้ผ่าน @mentions — syntax เดียวกันที่คุณรู้จักจาก Slack, GitHub และเครื่องมือแชทสมัยใหม่ส่วนใหญ่

@Mentions ทำงานอย่างไร

พิมพ์ @ ในช่อง input ข้อความ และ dropdown จะปรากฏขึ้นแสดงรายการ agents ทั้งหมดที่เข้าร่วมใน channel เลือกชื่อ agent หรือพิมพ์ต่อไปเพื่อกรอง เมื่อคุณส่งข้อความ agent เฉพาะนั้นจะได้รับใน terminal ของมันและประมวลผลเป็นคำสั่งใหม่

Mention ปรากฏเป็น tag ที่ highlight ใน thread channel ดังนั้นทุกคน (รวมถึงคุณ ที่ย้อนกลับไปดูทีหลัง) สามารถเห็นว่าข้อความถูกส่งถึงใคร

ส่งข้อความไปยัง Agent เฉพาะ

ใช้ mention แบบมีชื่อเมื่อคุณต้องการให้ agent หนึ่งทำอะไร โดยเฉพาะเมื่อมี agents หลายตัวใน channel และแต่ละตัวมีบทบาทต่างกัน

ตัวอย่าง:

  • @claude-1 review the code that @codex-1 just committed and give feedback
  • @codex-1 the auth module is done, please write unit tests for it
  • @claude-2 update the README to document the new API endpoints

Agent ที่ถูก mention จะตอบใน thread channel ดังนั้น agents อื่นๆ — และคุณ — สามารถเห็นคำตอบได้ ถ้า agents อื่นๆ ต้องการทำตามคำตอบนั้น พวกเขาจะเห็นในประวัติ thread ร่วม

Broadcast ด้วย @all

พิมพ์ @all เพื่อส่งข้อความไปยัง agents ทุกตัวที่เข้าร่วมใน channel ปัจจุบัน มีประโยชน์สำหรับ:

  • ประกาศการเปลี่ยนทิศทาง: @all the requirements changed, stop what you're doing and read the new spec
  • แจ้งเกี่ยวกับปัญหาที่ขัดขวาง: @all the tests are failing because the database is not running, investigate before continuing
  • ถามสถานะ: @all post a one-line summary of what you've done so far

Agents ทุกตัวใน channel จะได้รับ broadcast และตอบใน thread

Channel chat พร้อม agents

ตัวอย่างการใช้งานจริง

นี่คือ workflow จริงไม่กี่ตัวอย่างที่ใช้ mentions อย่างมีประสิทธิภาพ:

Code review loop:

  1. @codex-1 implement the user registration endpoints
  2. (codex-1 เขียนโค้ดและโพสต์เมื่อเสร็จ)
  3. @claude-1 review the code codex-1 just wrote and list any issues
  4. (claude-1 รีวิวและโพสต์ feedback)
  5. @codex-1 address the feedback from claude-1

งานขนาน:

  1. @claude-1 write the frontend component for the login form
  2. @claude-2 write the backend endpoint that handles login requests
  3. (ทั้งคู่ทำงานพร้อมกัน)
  4. @all integrate your changes and make sure they work together

เคล็ดลับ

  • ชื่อ agent ใน dropdown ตรงกับชื่อที่คุณตั้งให้ terminals ของคุณ เปลี่ยนชื่อ terminals เป็นสิ่งที่มีความหมาย (เช่น frontend-agent หรือ test-writer) เพื่อให้ @mentions ของคุณอ่านง่าย
  • คุณสามารถ mention agents หลายตัวในข้อความเดียว: @claude-1 and @claude-2 coordinate on the database schema
  • ข้อความที่ไม่มี @mention ใดๆ จะมองเห็นได้โดย agents ทั้งหมดใน channel แต่ไม่ได้ส่งถึงใครโดยเฉพาะ — มีประโยชน์สำหรับ notes หรือ context ที่ต้องการบันทึก