LLM Wiki Pattern กับ OpenClaw — ใช้ร่วมกันได้ไหม?

🇹🇭 ภาษาไทย

คำตอบสั้น

ได้ — แต่มีเงื่อนไข

LLM Wiki Pattern ออกแบบมาให้ portable ตั้งแต่แรก Karpathy ระบุไว้ชัดใน Gist ต้นฉบับ:

“This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.)”

Pattern นี้ไม่ lock-in กับ Claude Code — ใช้ได้กับ agent ใดก็ได้ที่มี tools พร้อม


Schema File Pattern ตรงกันพอดี

OpenClaw ใช้ schema file แบบเดียวกับ LLM Wiki Pattern:

AgentSchema fileหน้าที่
Claude CodeCLAUDE.mdOperating rules สำหรับ wiki
OpenClawAGENTS.md / SOUL.mdIdentity และ behavior ของ agent
CodexAGENTS.mdเหมือน OpenClaw

ทั้งสามใช้ persistent text file บอก LLM ว่าควร behave อย่างไรข้าม sessions — pattern เดียวกันทุกประการ


เทียบ Requirements

สิ่งที่ต้องการClaude CodeOpenClaw
Schema file persistentCLAUDE.mdAGENTS.md / SOUL.md
อ่านไฟล์ใน raw/✅ built-in Read tool⚠️ ต้อง configure file tool
เขียน/แก้ไฟล์ใน wiki/✅ built-in Edit/Write⚠️ ต้อง configure file tool
รัน bash (git, find)✅ built-in Bash tool⚠️ ต้อง configure
Long context หลายไฟล์✅ ขึ้นกับ LLM ที่เลือก
InterfaceCLI / IDEWhatsApp, Telegram, LINE…

OpenClaw ใช้ได้จริง ถ้า configure Skills/Tools ให้มี file read/write — ระบบ Tools ของ OpenClaw รองรับอยู่แล้ว แต่ต้องตั้งค่าเพิ่ม


บทบาทที่เหมาะกับแต่ละตัว

Claude Code → Wiki Maintainer

  • File tools (Read/Edit/Write/Bash) built-in พร้อมใช้ทันที
  • เหมาะกับงาน ingest, อัปเดต pages, lint, git commit
  • ทำงานใน terminal / IDE

OpenClaw → Interaction Layer

  • เหมาะกับการ query wiki ผ่าน WhatsApp/Telegram/LINE บนมือถือ
  • ถาม-ตอบได้ทุกที่โดยไม่ต้องเปิด terminal
  • ถ้ามี file read tools → อ่าน wiki pages แล้ว synthesize ตอบได้เลย

ภาพรวมการใช้ร่วมกัน

ถาม wiki ผ่านมือถือ
        ↓
  [ OpenClaw ]  ← Telegram / WhatsApp / LINE
  AGENTS.md บอก: "คุณเป็น wiki assistant, อ่านไฟล์ใน wiki/ แล้วตอบ"
        ↓  query
   wiki/index.md + relevant pages
        ↑  maintain
  [ Claude Code ]
  CLAUDE.md บอก: ingest / query / lint workflow ครบ
        ↑  source
      raw/  ←  Obsidian Web Clipper / PDF / notes

สองตัว complement กัน ไม่ต้องเลือก:

  • Claude Code = คนดูแล wiki
  • OpenClaw = หน้าต่างเข้าถึง wiki จากทุกที่


🇬🇧 English

Short Answer

Yes — with conditions.

LLM Wiki Pattern is explicitly designed to be portable. Karpathy states in the original Gist:

“This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.)”

It is not locked to Claude Code.


Schema File Pattern Aligns Perfectly

OpenClaw uses the same schema file pattern as LLM Wiki Pattern:

AgentSchema filePurpose
Claude CodeCLAUDE.mdWiki operating rules
OpenClawAGENTS.md / SOUL.mdAgent identity and behavior
CodexAGENTS.mdSame as OpenClaw

All three use a persistent text file to tell the LLM how to behave across sessions — structurally identical.


Requirements Comparison

RequirementClaude CodeOpenClaw
Persistent schema fileCLAUDE.mdAGENTS.md / SOUL.md
Read files from raw/✅ built-in Read tool⚠️ requires file tool config
Write/edit files in wiki/✅ built-in Edit/Write⚠️ requires file tool config
Run bash (git, find)✅ built-in Bash⚠️ requires config
Long context across files✅ depends on chosen LLM
InterfaceCLI / IDEWhatsApp, Telegram, LINE…

OpenClaw can work if Skills/Tools are configured with file read/write access — its Tools system supports this, but requires setup.


Natural Role Split

Claude Code → Wiki Maintainer

  • File tools built-in, no setup needed
  • Best for ingest, page updates, lint passes, git commits
  • Works in terminal / IDE

OpenClaw → Interaction Layer

  • Best for querying the wiki from mobile via WhatsApp/Telegram/LINE
  • No terminal needed — ask from anywhere
  • With file read tools configured → reads wiki pages and synthesizes answers directly

Combined Architecture

Query wiki from mobile
        ↓
  [ OpenClaw ]  ← Telegram / WhatsApp / LINE
  AGENTS.md: "You are a wiki assistant. Read wiki/ and answer."
        ↓  reads
   wiki/index.md + relevant pages
        ↑  maintains
  [ Claude Code ]
  CLAUDE.md: full ingest / query / lint workflow
        ↑  ingests
      raw/  ←  Obsidian Web Clipper / PDF / notes

The two tools complement each other — no need to choose:

  • Claude Code = wiki maintainer
  • OpenClaw = access window to the wiki from anywhere