Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Turning Repos into the Product Second Brain wit...

Turning Repos into the Product Second Brain with an LLM Wiki

A session at LINE THAILAND DEVELOPER CONFERENCE 2026

Avatar for LINE Developers Thailand

LINE Developers Thailand

October 17, 2026

More Decks by LINE Developers Thailand

Other Decks in Technology

Transcript

  1. Turning Repos into Product Second Brain with LLM Wiki repo

    A agent repo B repo C Product Second Brain
  2. repo ของจริง ~ 13.3M tokens Go 7.5M 257 services ·

    14,802 ไฟล์ · 30.9 ล้านตัวอักษร context window สูงสุดที่ model รับไหว 1M ประมาณจากไฟล์ใน git ด้วย tokenizer ของ Claude Opus ใหญ่กว่า context window 13.3 เท่า JSON 1.9M YAML 1.3M อื่น ๆ 2.6M
  3. 4 repos ingestion phases Explore the Sources Map the Components

    Understand the Code Build the Wiki นับจานวน services โดยดูจาก จุดที่ stack ภาษานัน้ ๆเริม่ ทางาน หรือเรียกว่า entrypoint เพื่อดูว่าแต่ละ entrypoint คือ service อะไร เป็ น service ประเภทไหน แต่ละ service มีเชือ่ มต่อ กับอะไรบ้าง เจาะลึกไปแต่ละ service เรียบเรียง และเชื่อมโยงข้อมูล แต่ละส่วนเข้าด้วยกัน ในรูปแบบของ wiki NO LLM NEEDED เก็บ commit ของครัง้ ที่ ingest
  4. Query guidelines 1 · Run a lookup script 2 ·

    Read connected wiki pages 3 · Inspect source code หลักคิด service นี้ อยู่ repo ไหน? feature นี้ ผา่ นส่วนไหนบ้าง? ตรงไหนของ code ใน service ที่ทาหน้ าที่ช่วยแปลงข้อมูล งานไหนมีกฎชัด ก็ให้ script ทา งานไหนต้องเชื่อมความหมาย ก็ให้ LLM ช่วย
  5. Golden set golden set ชุ ด ค าถาม = +

    เฉลย หลั ก ฐาน + คาถามที่ ข้อมูลในหน้ า wiki ไม่พอจะตอบ
  6. Golden set ตัวอย่างจริง คาถาม (golden set · ข้อทีต่ งั้ ใจให้ตอบไม่ได้)

    client-X.function_x(id_x) เรียก service-B ด้วย HTTP method และ path อะไร? คาตอบจริง (agent ทีอ่ ่านแค่หน้า wiki) Product Second Brain is silent here. The Product Second Brain documents the server-side HTTP routes for service-B but contains no wiki page describing the client library (client-X), so the exact HTTP method and path cannot be determined from the provided excerpts.
  7. Golden set golden set ชุ ด ค าถาม = +

    เฉลย หลั ก ฐาน + คาถามที่ ข้อมูลในหน้ า wiki ไม่พอจะตอบ เฉลยต้องตรวจจากต้นทาง อย่าเอาคาตอบเก่าที่ LLM เคยตอบมาใช้เป็ นเฉลย
  8. Pure source code vs Product second brain ผลเปรียบเทียบจริง ระยะเวลา Sonnet

    5.5 Opus 5.5 อ่าน source code อย่างเดียว ใช้ product second brain ร่วมด้วย 160.1 s เร็วขึน้ 38.4% 98.7 s 189.6 s เร็วขึน้ 22.7% 146.7 s $1.400 ถูกลง 50.4% $0.695 $1.675 ถูกลง 32.0% $1.139 Cost ต่อคาถาม Sonnet 5.5 Opus 5.5