ความรู้ AI agent อยู่ 3 ชั้น: chat / memory / repo — อะไรรอด /clear

เคลียร์ session แล้ว AI ลืมอะไร ไม่ลืมอะไร? ความรู้ agent อยู่ได้ 3 ชั้น — chat context, agent memory, repo files — ต่างกันที่ 'รอด /clear ไหม' และ 'ใครเห็น'. วางผิดชั้น = หายหรือหลุด — vendor-neutral

#ai-agent#memory#context-window#knowledge-management
ความรู้ AI agent อยู่ 3 ชั้น: chat / memory / repo — อะไรรอด /clear

context window ทำงานยังไง — และทำไม prompt cache ถูกลง ~10 เท่า

AI 'จำ' บทสนทนาได้ยังไง ทั้งที่ LLM ลืมทุก turn? เข้าใจ context window (payload ต่อ turn ≠ ไฟล์ประวัติแชท), อะไรกิน window, และ prompt caching ที่ทำให้คุยรัว ๆ ถูกกว่าทิ้งไว้นาน — vendor-neutral

#ai-agent#context-window#prompt-caching#llm
context window ทำงานยังไง — และทำไม prompt cache ถูกลง ~10 เท่า

AI agent ลืมทุกอย่าง? เพราะ memory ผูกกับ path (worktree มีของตัวเอง)

เปิด session ใหม่โฟลเดอร์เดิมแต่ agent จำอะไรไม่ได้ — เพราะ memory ผูกกับ path ของ cwd. git worktree/symlink/subfolder = memory กองใหม่ (ว่าง). อธิบาย + วิธีกัน แบบ vendor-neutral

#ai-agent#git#worktree#claude-code
AI agent ลืมทุกอย่าง? เพราะ memory ผูกกับ path (worktree มีของตัวเอง)

เลิกสั่งซ้ำ: codify workflow ที่ทำบ่อย ให้เป็น command เดียวของ AI agent

งานหลายขั้นที่สั่ง agent เหมือนเดิมทุกครั้ง = ควร codify เป็น reusable command/skill ครั้งเดียว. เล่าจากของจริง: skill ที่ลงบทความบล็อกให้อัตโนมัติ + วิธีทำในเครื่องมืออื่น

#ai-agent#claude-code#skills#automation
เลิกสั่งซ้ำ: codify workflow ที่ทำบ่อย ให้เป็น command เดียวของ AI agent

รัน AI agent หลายตัวขนานกันด้วย git worktree (vs สลับ branch)

อยากให้ session นึงทำ feature อีก session ทำ docs พร้อมกัน แต่มันตีกัน — เพราะ 1 โฟลเดอร์ = 1 branch. git worktree แก้ได้: เทียบ parallel worktree กับ switch branch + วิธีใช้ + gotchas

#git#worktree#ai-agent#parallel
รัน AI agent หลายตัวขนานกันด้วย git worktree (vs สลับ branch)

ทำงานกับ AI coding agent ยาวๆ โดยไม่หลงทาง: ระบบ handoff ที่ resume ได้

context เต็ม/เปลี่ยน session แล้ว agent ลืมหมด — วิธีทำ state machine จากไฟล์ (PLAN/PROGRESS/HANDOFF + memory + git) ให้ resume โปรเจกต์หลายเฟสต่อได้ทุกครั้ง แบบ vendor-neutral

#ai-agent#workflow#claude-code#productivity
ทำงานกับ AI coding agent ยาวๆ โดยไม่หลงทาง: ระบบ handoff ที่ resume ได้

ตรวจงาน AI agent ให้เป็น: เทียบ plan–git–tracker ใน 1 นาที

AI บอกว่า 'เสร็จแล้ว' เชื่อได้แค่ไหน? วิธี audit งาน AI agent ด้วย 3 บันทึกอิสระ — PLAN (สัญญา) · git (ทำจริง) · tracker (สรุปฉบับคน) พร้อม checklist 1 นาที + red flags

#ai-agent#workflow#git#audit
ตรวจงาน AI agent ให้เป็น: เทียบ plan–git–tracker ใน 1 นาที

ความรู้ของ AI agent ควรอยู่ที่ไหน? — source of truth เดียว ไม่ให้ drift

rule/workflow เดียวไปเขียนไว้ทั้ง memory + skill + doc → แก้ที่นึงลืมอีกที่ = ขัดกัน. แผนที่ว่าความรู้แต่ละแบบควรอยู่ที่ไหน + กติกา source of truth เดียว + pointer แบบ vendor-neutral

#ai-agent#workflow#claude-code#memory
ความรู้ของ AI agent ควรอยู่ที่ไหน? — source of truth เดียว ไม่ให้ drift

DataResponse: ออกแบบ HTTP Response Contract ที่ทุก Client ใช้ได้

DataResponse<T> คือ HTTP Response Contract กลางของระบบ — แก้ปัญหา response format ต่างกันและ HTTP client field ต่างกัน ด้วย two-step unwrap พร้อม code จริงที่ใช้ได้ทั้ง backend และ frontend

#typescript#http-client#clean-architecture#api-design
DataResponse: ออกแบบ HTTP Response Contract ที่ทุก Client ใช้ได้

Prerequisite 3: Clean Architecture + Hexagonal Architecture — แปลง Tactical Design เป็น Code Architecture

เข้าใจ Clean Architecture และ Hexagonal Architecture ตั้งแต่ที่มา รู้ความต่าง รู้ว่าเลือกใช้เมื่อไร และเข้าใจว่า Tactical Design Building Blocks วางในโครงสร้าง Layer จริงยังไง

#clean-architecture#hexagonal-architecture#ports-and-adapters#domain-driven-design
Prerequisite 3: Clean Architecture + Hexagonal Architecture — แปลง Tactical Design เป็น Code Architecture

AI Agent คืออะไร? พื้นฐาน LLM และ Tool Calling

เรียนรู้พื้นฐาน AI Agent ตั้งแต่ศูนย์ — LLM คืออะไร, Chatbot(Generative AI) ต่างจาก AI Agent ยังไง และ Tool Calling ทำงานอย่างไร อ่านแล้วเข้าใจได้เลยโดยไม่ต้องมีครู

#ai-agent#llm#chatbot#function-calling
AI Agent คืออะไร? พื้นฐาน LLM และ Tool Calling

GitHub Copilot ตอบไม่ตรงงาน? ตั้งค่า 5 จุดก่อนใช้กับ Monorepo

ก่อนโทษว่า Copilot ยังไม่เก่ง ลองเช็ก 5 จุดสำคัญในการตั้งค่า Custom Instructions, Prompts, Skills, MCP, Agents รวมถึง monorepo structure และการ delegate งานให้ subagent

#github-copilot#copilot-customization#custom-instructions#custom-prompts
GitHub Copilot ตอบไม่ตรงงาน? ตั้งค่า 5 จุดก่อนใช้กับ Monorepo

`record` ใน C# ไม่ได้ Immutable จริงๆ — กับดัก Shallow Immutability ที่โปรแกรมเมอร์ส่วนใหญ่ยังไม่รู้

เจาะลึก sealed record, IReadOnlyList vs IImmutableList, Structural Sharing และ Value Object ใน DDD พร้อม Code ที่ใช้งานจริงใน Production ครบในที่เดียว

#csharp#dotnet#immutability#record
`record` ใน C# ไม่ได้ Immutable จริงๆ — กับดัก Shallow Immutability ที่โปรแกรมเมอร์ส่วนใหญ่ยังไม่รู้