Context7
ส่งคู่มือการใช้ไลบรารีและเฟรมเวิร์กรุ่นล่าสุดให้ AI อ่านก่อนตอบ ช่วยให้โค้ดที่ AI เขียนไม่ใช้คำสั่งเก่าที่เลิกใช้แล้ว
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
Persistent decision memory for AI agents: rationale, rejected approaches, and entity history.
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
SELVEDGE_DBต้องเตรียมก่อน
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"selvedge": {
"command": "uvx",
"args": [
"selvedge"
],
"env": {
"SELVEDGE_DB": "ใส่ค่าของคุณ"
}
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add selvedge --env SELVEDGE_DB='ใส่ค่าของคุณ' -- uvx selvedgeเติมค่าที่เว้นว่างไว้ก่อนรัน
วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"selvedge": {
"command": "uvx",
"args": [
"selvedge"
],
"env": {
"SELVEDGE_DB": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"selvedge": {
"type": "stdio",
"command": "uvx",
"args": [
"selvedge"
],
"env": {
"SELVEDGE_DB": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
SELVEDGE_DB envค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 7 พ.ย. 2569
ชื่อใน registry ยืนยันด้วยบัญชี GitHub masondelan ซึ่งเป็นเจ้าของ repo
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
registry ไม่ได้ระบุว่าต้องใช้กุญแจ แต่บางตัวจะขอให้ล็อกอินตอนใช้ครั้งแรก
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.3.18) เข้า registry 7 วันที่ผ่านมา
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Python (uv) ในเครื่องด้วย
ในหมวดเดียวกันมี 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 รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
selvedge.sh · DevHunt · PyPI · GitHub
Persistent decision memory for AI agents.
Save why you chose an approach, what you rejected, and what would change your mind. Retrieve that context in the next coding session, using a function, database column, API route or dependency as the lookup key.
Selvedge is for anyone using a compatible agent. Connect through local MCP over stdio, or use the CLI from an agent with shell access. Decisions stay in the same SQLite store in .selvedge/ when you switch tools. No hosted account is required; core storage and retrieval make no LLM calls.
Get started · Documentation · Agent compatibility
uv tool install --upgrade selvedge
selvedge demo
Requires uv and Python. Python 3.11–3.14 is recommended; Python 3.10 remains compatible but is end of life. The demo uses a temporary database. Follow the quickstart to connect your agent to a real project.
Use selvedge demo --mcp to save through a local stdio MCP server, restart it and retrieve the same record. Add --json for the checked IDs and versions. This tests the Python installation running Selvedge with disposable data; your agent's configuration, activation and hooks still need a separate check.
Code shows the chosen approach. It may leave out the constraint that shaped it or the alternative you ruled out. Selvedge gives those explanations a place in the project and tools to retrieve them before the next edit.
Only explicitly saved decisions can be recalled. A saved explanation is an account supplied by a person or agent; Selvedge does not verify that it is true or guarantee that an agent will consult it. Verify one decision across two sessions to test your setup.
Read the recorded reasons before routine review metadata. The optional GitHub review Action puts rejected and reverted approaches, revisions and constraints first. Its comment defaults to a 6,000-character budget, counts omitted events and links to the trusted base store and longer job summary. Unchanged reruns leave the comment untouched.
Healthy runs with no matching history keep the job summary without creating a new comment; an existing comment is refreshed and broken chains remain visible. Missing history is unknown, not approval. The Action still uses only publication-approved base history and never executes PR-head code.
A regression check also protects the library's local save/reopen/retrieve path with site packages unavailable and socket access blocked. No new runtime dependencies, migrations, MCP tools or model calls. Python 3.10 compatibility is retained; use supported Python 3.11–3.14 for new installations. Native Action execution and review usefulness remain unverified.
Check recorded decisions before a review. Generate a Markdown digest, then run selvedge export --format markdown -o DECISIONS.md --check to catch drift. An identical digest exits 0 silently; a stale or missing digest exits 1 with a unified diff and regeneration guidance. Check mode preserves the digest and stored records. Review exported reasoning before publishing it.
selvedge demo --mcp saves a synthetic rejection through a real local MCP server, restarts it and retrieves the same record. It uses disposable state; it does not verify your agent's configuration or hook activation.
CLI output now preserves literal brackets in user data, and blame and Markdown exports distinguish rejected approaches from changes that were tried and reverted. Python 3.10 compatibility remains for this patch, but that runtime is now upstream end of life; use tested, supported Python 3.11–3.14 for new installations. No new runtime dependencies, migrations or MCP tools.
Git keeps the code history; review tools check changes; observability shows runtime behavior. Selvedge adds the recorded reasons behind decisions. How it works · Agent Trace interchange
Choose the simplest memory mechanism that fits your workflow:
| Need | Useful starting point | What Selvedge adds |
|---|---|---|
| Standing project rules | Maintained agent instruction files | Queryable decisions attached to particular entities |
| Reviewed architecture choices | Architecture decision records (ADRs) | Structured outcomes, rejected approaches and revisit signals |
| Who changed a line and when | Git history and attribution tools | The stated reason and earlier approaches for an entity |
| Carry recorded decisions into another session or client | Shared project documentation | MCP and CLI retrieval from the same local database |
These approaches can be used together. Read the source-linked comparison and instructions versus ADRs versus decision memory for specific selection criteria and limitations.
Why entity history matters. users.email, env/STRIPE_SECRET_KEY, api/v1/checkout and deps/stripe remain useful query targets when their code moves. Explicit rejection and superseding records let a later session inspect what was tried and whether the original constraint still applies.
Why capture time matters. Recording a reason while the context is available can preserve information a diff does not contain. It does not make the reason infallible. Retrieval uses stored records; the coding agent remains responsible for checking applicability and testing its change.
Why changesets matter. Tag events with a shared changeset such as add-stripe-billing to retrieve a task's decisions across tables, environment variables, routes and functions.
Agent Trace interchange. selvedge export --format agent-trace and selvedge import --format agent-trace exchange Agent Trace v0.1.0 records. Reasoning and entity history travel in the dev.selvedge metadata. The mapping and limits document the format; Selvedge vendors the schema and has no runtime dependency on the upstream project.
With uv installed:
uv tool install --upgrade selvedge
selvedge demo cd your-project selvedge setup
Setup detects supported clients. To select a preset explicitly, use --agent with claude-code, codex, copilot, cursor, gemini or windsurf; repeat the flag for multiple clients. These presets are conveniences, not a compatibility limit. For another agent with local stdio MCP support, follow manual setup. Agents with shell access can use the CLI. Prefer pip? Use python -m pip install --upgrade selvedge in a virtual environment. The selvedge-server executable must be on your editor's PATH; launch the editor from that environment or use the executable's absolute path in its MCP config.
Setup asks before changing files, backs up existing content, installs MCP and agent instructions, initializes the project, and offers a Git post-commit hook. Configuration files and lifecycle hooks vary by client. See the compatibility guide for preset paths, activation requirements and limitations.
Restart your agent in the project and approve Selvedge's tools if prompted. Follow your client's project-trust requirements. Ask the agent:
Use Selvedge to record one real approach we considered and rejected in this project.
Include the entity, why, and what would change our mind. Do not invent a decision.
Show the saved entity path and record ID.
Start a new session and look up the same entity to verify that the decision carries forward. Follow the first-decision verification guide and cross-agent handoff guide for observable checks. MCP access does not automatically capture every decision: the installed instructions guide the agent to use it. Native lifecycle adapters cover supported client events; startup delivery, watched-edit checks and compaction notifications vary by harness. See the agent hook guide before enabling them.
For CI bootstrap or devcontainer.json postCreateCommand:
selvedge setup --non-interactive --yes
Verify the wiring — open a second terminal in the same project:
selvedge watch
Make any change in your AI tool — add a column, rename a function, add an env var. selvedge watch should print the new event within a second of the agent calling log_change. If nothing arrives, run selvedge doctor for a single-command health check that tells you which step is silently broken.
Query your history:
selvedge status # recent activity + missing-commit count
selvedge diff users # all changes to the users table selvedge diff users.email # changes to a specific column selvedge blame payments.amount # what changed last and why selvedge history --since 30d # last 30 days of changes selvedge history --since 15m # last 15 minutes ('m' = minutes) selvedge changeset add-stripe-billing # all events for a feature/task selvedge search "stripe" # full-text search selvedge stats # observed tool calls and explanation quality selvedge import migrations/ # backfill from migration files selvedge export --format csv # dump history to CSV
Manual install — if you'd rather wire it up yourself
If you don't want to run the wizard,
ตัดมาแค่ช่วงต้น อ่านต่อใน repo