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:
| Agent | Schema file | หน้าที่ |
|---|---|---|
| Claude Code | CLAUDE.md | Operating rules สำหรับ wiki |
| OpenClaw | AGENTS.md / SOUL.md | Identity และ behavior ของ agent |
| Codex | AGENTS.md | เหมือน OpenClaw |
ทั้งสามใช้ persistent text file บอก LLM ว่าควร behave อย่างไรข้าม sessions — pattern เดียวกันทุกประการ
เทียบ Requirements
| สิ่งที่ต้องการ | Claude Code | OpenClaw |
|---|---|---|
| Schema file persistent | ✅ CLAUDE.md | ✅ AGENTS.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 ที่เลือก |
| Interface | CLI / IDE | WhatsApp, 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 จากทุกที่
Related
- LLM Wiki Pattern — pattern ต้นฉบับโดย Andrej Karpathy
- OpenClaw — personal AI assistant ที่รัน local Gateway
- Personal AI Assistant — category ของ OpenClaw
- RAG vs Wiki — เปรียบเทียบแนวทาง retrieval
🇬🇧 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:
| Agent | Schema file | Purpose |
|---|---|---|
| Claude Code | CLAUDE.md | Wiki operating rules |
| OpenClaw | AGENTS.md / SOUL.md | Agent identity and behavior |
| Codex | AGENTS.md | Same as OpenClaw |
All three use a persistent text file to tell the LLM how to behave across sessions — structurally identical.
Requirements Comparison
| Requirement | Claude Code | OpenClaw |
|---|---|---|
| Persistent schema file | ✅ CLAUDE.md | ✅ AGENTS.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 |
| Interface | CLI / IDE | WhatsApp, 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
Related
- LLM Wiki Pattern — original pattern by Andrej Karpathy
- OpenClaw — local-first personal AI assistant
- Personal AI Assistant — OpenClaw’s category
- RAG vs Wiki — retrieval approach comparison