Context7
ส่งคู่มือการใช้ไลบรารีและเฟรมเวิร์กรุ่นล่าสุดให้ AI อ่านก่อนตอบ ช่วยให้โค้ดที่ AI เขียนไม่ใช้คำสั่งเก่าที่เลิกใช้แล้ว
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
Provable, declarative multi-agent workflows for Claude Code (typed .slang, non-LLM executor).
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
ต้องเตรียมก่อน
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"slang-workflows": {
"command": "npx",
"args": [
"-y",
"slang-workflows"
]
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add slang-workflows -- npx -y slang-workflowsวางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"slang-workflows": {
"command": "npx",
"args": [
"-y",
"slang-workflows"
]
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"slang-workflows": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"slang-workflows"
]
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 6 พ.ย. 2569
ชื่อใน registry ยืนยันด้วยบัญชี GitHub shofer-dev ซึ่งเป็นเจ้าของ repo
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
registry ไม่ได้ระบุว่าต้องใช้กุญแจ แต่บางตัวจะขอให้ล็อกอินตอนใช้ครั้งแรก
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.1.2) เข้า registry 4 เดือนที่ผ่านมา
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Node.js ในเครื่องด้วย
ในหมวดเดียวกันมี Context7, Codebase Memory, Exa
server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว
อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi
ส่งคู่มือการใช้ไลบรารีและเฟรมเวิร์กรุ่นล่าสุดให้ AI อ่านก่อนตอบ ช่วยให้โค้ดที่ AI เขียนไม่ใช้คำสั่งเก่าที่เลิกใช้แล้ว
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
███████╗██╗ █████╗ ███╗ ██╗ ██████╗
██╔════╝██║ ██╔══██╗████╗ ██║██╔════╝ ███████╗██║ ███████║██╔██╗ ██║██║ ███╗ ╚════██║██║ ██╔══██║██║╚██╗██║██║ ██║ ███████║███████╗██║ ██║██║ ╚████║╚██████╔╝ ╚══════╝╚══════╝╚═╝ ╚═╝╚═╝ ╚═══╝ ╚═════╝ provable, declarative multi-agent workflows for Claude Code a non-LLM executor runs your typed .slang files
Run provable, .slang-driven multi-agent workflows inside Claude Code.
A non-LLM state machine (the *slang executor*) runs inside an MCP server and coordinates agents; each agent is a Claude Agent SDK session. You declare the collaboration in a typed .slang file and the executor *enforces* it — typed output contracts, static analysis, tool-scoping, and provable termination — instead of leaving coordination to the model. The top-level Claude Code session only *triggers* and *observes*; it never makes a coordination decision.
Claude Code's native dynamic workflows also codify orchestration (Claude writes a JS script); slang's difference is that the structure is enforced and statically analyzable, and runs render as Mermaid topology + trace diagrams. See the benchmark for the A/B/C head-to-head.
Origin. The
.slangWorkflow engine was born in Shofer — the
AI-agent VS Code extension — where the deterministic, non-LLM executor was first built. This
plugin brings it to Claude Code.
Design and rationale:
DESIGN.md. Language reference:slang_specs.md. Privacy:PRIVACY.md.
flowchart TB
You(["You"]) CC["Claude Code top-level session"]
subgraph server["slang-workflows · MCP server"] direction TB SL["your .slang workflow agents · stakes · contracts · converge"] EX["slang executor deterministic · non-LLM state machine"] MB[("FlowState + mailbox")] SL -->|"parsed once"| EX EX <--> MB end
subgraph Agents["Agent SDK sessions — the agents your .slang declares"] direction LR A1["Agent A"] A2["Agent B"] A3["Agent …"] end
You <-->|"ask · approve escalations"| CC CC -->|"run_workflow"| EX EX -->|"topology + trace diagrams"| CC EX ==>|"dispatch stake — one session per agent, resumed"| Agents Agents ==>|"typed result → output-contract check + retry"| EX EX -.->|"escalate @Human"| CC
classDef brain fill:#eaeaff,stroke:#5b5bd6,stroke-width:2px; class EX brain;
The top-level Claude Code session only triggers and observes — it never makes a coordination decision. The non-LLM executor reads your .slang file, dispatches each *stake* to an Agent SDK session (one long-lived session per agent, resumed across rounds), checks every result against its output contract (retrying on failure), routes it through the mailbox, and repeats each round until the workflow's converge condition or round budget is met. Runs render as Mermaid topology and trace diagrams; escalate @Human surfaces back to you in the normal chat.
Concrete workflows (each is a .slang file you run with run_workflow):
implement-feature.slang) — an *Architect* decomposes your request and writes the design doc, but is scoped so it physically cannot write code (write_paths: ["**/*.md"], deny: [Bash]) and must delegate. You approve the design (escalate @Human), then a *Developer* implements it slice-by-slice while a *Reviewer* signs off each round, with a final review gate before it commits.implement-feature-complex.slang) — a linear Design → Implement → Test → Review → Document pipeline where five specialists each produce one artifact (the implementation, a *passing* vitest spec, usage docs) and can't do another's job — so code, tests, and docs actually match the design. Converges only when every stage has committed.debug.slang) — paste the symptom/repro; two developers root-cause it in parallel, strictly read-only (no accidental edits), an *Orchestrator* consolidates their independent findings into one fix plan, one developer implements it, and the other peer-reviews the fix in a loop until satisfied.read/execute and no write scope, so a "check my work" run can run tests and read code but cannot alter it — enforced, not just prompted..slang file and driven by a deterministic (non-LLM) executor, so a run unfolds the same way every time — no improvised, unrepeatable subagent coordination.write_paths restricts each agent's Write/Edit to path globs and deny removes tools (e.g. Bash), enforced via the SDK's canUseTool — not merely requested in a prompt.validate_workflow detects deadlocks, unknown references, and orphaned outputs at parse time, before any tokens are spent.output: {…} where ); invalid results retry instead of silently propagating downstream.budget: rounds(N)) + per-stake timeouts guarantee every run finishes.get_topology) and a sequence-diagram trace (get_trace), for live or post-mortem inspection.Claude Code already has a built-in dynamic workflows feature: when a task needs orchestration, Claude writes a JavaScript script (via the Agent SDK / Workflow tool) that spawns and coordinates subagents. That's a real step up from improvised, one-off subagent calls — the script codifies the orchestration and, once written, runs deterministically and coordinates for ~0 extra LLM cost. slang shares those goals; our benchmark shows both approaches reach real, working implementations with near-zero coordination-LLM cost. **The difference is what the orchestration *is*, and what's *guaranteed* about it:**
| Native dynamic workflows | slang-workflows | |
|---|---|---|
| The orchestration is… | an LLM-authored JavaScript script | a typed, declarative `.slang` file run by a fixed non-LLM executor |
| Who wrote the coordination logic | Claude, per task, in a general-purpose language | you (or an LLM, once) in a domain-specific language the runtime understands |
| Output contracts between stages | whatever the script happens to check | enforced by the runtime — structural + semantic (output: {…} where ); invalid → retry |
| Per-agent tool scoping | up to the script | enforced — write_paths / deny via the SDK's canUseTool |
| Correctness of the structure | nothing checks the JS | static analysis before running — deadlock / unknown-ref / orphan-output |
| Termination | up to the script | provable — budget: rounds(N) + per-stake timeouts |
| Observability | instrument it yourself | auto-generated Mermaid topology + sequence-diagram trace |
| The reusable artifact | a script the model regenerates each time | a versioned `.slang` file + a fixed interpreter |
In short: native dynamic workflows put the orchestration in LLM-written code you have to trust; slang puts it in a typed declaration the runtime validates and enforces — analyzable *before* it runs, scoped and contract-checked *while* it runs, and rendered as diagrams *after*. Reach for slang when you want guarantees and auditability (safety-scoped agents, provable termination, contract-valid hand-offs, a reusable versioned workflow), not just "the model coordinated some subagents this time." Both are far better than unstructured subagents — slang trades a bit of up-front declaration for enforcement and repeatability.
.slang workflows — authored or LLM-generated inline (MCP tools below).escalate @Human.output: {...}, via SDK outputFormat) + semantic (where ).write_paths (Write/Edit restricted to path globs, via a PreToolUse command hook) and deny (remove native or MCP tools).validate_workflow): deadlock / unknown-ref / orphan-output detection before running.budget: rounds(N) + per-stake timeouts — the run always finishes.get_topology (Mermaid flowchart) + get_trace (Mermaid sequence + event log).background:true) with live polling of state/topology/trace.See DESIGN.md § Implementation Status for the full matrix.
claude CLI on your PATH) — the Agent SDK spawns it to run agents.cd server
pnpm install
Agent SDK note.
@anthropic-ai/claude-agent-sdkis declared as an *optional* dependency
because some internal registries don't mirror it. If
pnpm installskips it, add it from the
public registry:
`bash
pnpm add @anthropic-ai/claude-agent-sdk --registry=https://registry.npmjs.org/
`
The server *parses/validates* workflows without it; *running* agents requires it.
Verify the install:
pnpm typecheck # type-checks the whole server
pnpm test # runs the unit suite (mock-based, no model calls)
At runtime the server discovers .slang files in your project's .claude/workflows/ (and ~/.claude/workflows/) — that's the user's space for their own workflows. The plugin ships showcase workflows in server/test/fixtures/; copy them in to try them:
mkdir -p .claude/workflows
cp /PATH/TO/slang-orchestrator/server/test/fixtures/*.slang .claude/workflows/
From the project whose .claude/workflows/ you want to run:
claude mcp add slang-workflows -- npx tsx /ABSOLUTE/PATH/TO/slang-orchestrator/server/src/main.ts
Then in Claude Code, ask it to use the tools — e.g. *"list the slang workflows"*, *"run the where-clause workflow"*.
This directory is a self-contained plugin: .claude-plugin/plugin.json
.mcp.json (a stdio server launched as npx tsx ${CLAUDE_PLUGIN_ROOT}/server/src/main.ts).Install it through Claude Code's plugin mechanism to expose the tools automatically.
Once the plugin is loaded, these commands drive it directly (Claude Code namespaces them by the plugin, so your / menu shows slang-workflows:…):
| Command | Does |
|---|---|
/slang-workflows:slang-run [k=v …] | Run a workflow to completion — synchronous, so @Human gates prompt you. |
| /slang-workflows:slang-list | List the `
ตัดมาแค่ช่วงต้น อ่านต่อใน repo