
Twiceshy
app.twiceshy由 twiceshy.app 發布官方發布者v0.1.0更新於 Oct 24, 2026
Experience memory for coding agents: validated traps, fixes and dead-ends at decision time.
概覽
Twiceshy 是託管的經驗記憶服務,在編碼代理做決策時提供已驗證的陷阱、修正方式與死路記錄。
- 可以做什麼
- 依編碼任務檢索相關經驗記錄,並以技術棧指紋與相關性下限過濾,匹配太弱時回傳空結果。
- 透過 streamable HTTP 端點上的 MCP 工具拉取記錄,也可經 Claude Code 掛鉤推送陷阱卡片。
- 以帶來源資訊的 git 託管 Markdown 記錄為基礎,使用 BM25 加稠密向量建立索引。
- 可提交新記錄,記錄會先被隔離,須通過沙箱驗證與人工審核後才會正式收錄。
- 適用情境
- 適合編碼代理反覆犯已知錯誤、希望它在選擇做法前先看到既有問題、根因與已驗證修正的情境。也適合願意維護一份共享且經審核的工程經驗庫的團隊。
- 執行需求
- 需要存取 api.twiceshy.app 上的遠端 MCP 端點(streamable HTTP)。須在 Authorization 標頭提供 bearer 權杖,可從自助 alpha 註冊取得;未宣告本機執行環境或環境變數。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Twiceshy,將其新增到工作區。
- 連接 Authorization token 憑證。它們會被私密儲存,絕不會在公開頁面上展示。
- 為需要使用其工具的對話啟用該服務。
Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。
交給代理程式安裝
把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。
閱讀 https://sourceweft.com/mcp/app.twiceshy%2Ftwiceshy/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。其他 MCP 客戶端
把它新增到你客戶端的 mcpServers 設定中。
{
"mcpServers": {
"twiceshy": {
"type": "http",
"url": "https://api.twiceshy.app/",
"headers": {
"Authorization": "Bearer <YOUR_TOKEN>"
}
}
}
}README
twiceshy
Once bitten, twice shy.
A self-hosted service that feeds hard-won engineering experience — issues, dead-ends, root causes, validated fixes — to LLM coding agents at decision time, so they stop repeating known mistakes on autopilot. Records are git-backed and provenance-aware; automatic retrieval applies a relevance floor so a weak match can return nothing.
Hosted alpha
The hosted instance runs at twiceshy.app — self-serve
tokens, remote MCP endpoint https://api.twiceshy.app/. External
contributions require a signed CLA before merge
(ADR-0002).
How it works (the locked architecture)
- Source of truth: git-backed markdown experience records (YAML frontmatter
- narrative) — format in docs/SCHEMA.md. The corpus is a
separate versioned data product (
twiceshy-corpus, ADR-0021); the engine ships a small frozen fixture (internal/testcorpus/) for tests.
- narrative) — format in docs/SCHEMA.md. The corpus is a
separate versioned data product (
- Index: one derived, always-rebuildable SQLite file (FTS5 plus cached, pure-Go dense vectors for pull retrieval).
- Retrieval: fingerprint-exact → BM25 → dense (RRF), stack-fingerprint filtered, hard cap k≤3 with a relevance floor — below it, nothing is injected.
- Channels: push (Claude Code hooks → trap cards), pull (MCP tools over streamable HTTP), index (generated one-liners).
- Trust: agent-proposed records are quarantined; promotion = sandbox fail-to-pass validation + human PR review. A new record IS a pull request.
- Doctors: background jobs that dedup, staleness-check, re-execute repros (CI for memories), decay, and abstract.
Full rationale: docs/research/EXPERIENCE_SERVICE_RESEARCH.md and docs/adr/ADR-0001-architecture.md.
Status
The core service is available as a hosted alpha. For the canonical snapshot of what ships now and the current roadmap, see docs/NEXT_FEATURES.md; deployment and operating details live in docs/DEPLOY-public-alpha.md.
Development
See docs/CONVENTIONS.md and docs/CONTEXT.md first.
License
AGPL-3.0-only. Contribution and corpus licensing: docs/adr/ADR-0002-licensing-strategy.md.
來源:README.md,提交 aa8f1d8
工具
0版本歷史
1- v0.1.0最新Sep 16, 2026
評分
已滿足適用檢查項的 60%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通必需25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式必需10 分
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分