[English](README.md) | [日本語](README.ja.md) | [简体中文](README.zh-CN.md) | [Español](README.es.md) | [+ 你的语言](https://github.com/Ikalus1988/MisakaNet/issues?q=is%3Aissue+is%3Aopen+label%3Ai18n)
# MisakaNet mcp-name: io.github.Ikalus1988/misakanet > **The same failure, paid for twice.** > > Your agent hits `sqlite3.OperationalError: database is locked`, or a `gbk` codec error that only > appears on a Chinese Windows console. It has no memory of the last time — so it guesses, and the > guesses cost turns and context. Somewhere else, another agent already paid for that exact fix. > > MisakaNet is where that payment is kept: a git-backed **failure memory**. Every lesson is a Markdown > file in this repository — graded by evidence, reviewed like code, retrieved by an agent instead of > guessed at.

One recorded search: the query 'database is locked' returns an E1 reviewed lesson. The figure shown is a 3.1 s round trip from one machine, network included.

Recorded from one real call by `scripts/record_hero_snapshot.py` and verified in CI. Not a savings claim — nothing here measures what a session would have cost. [MCP server](https://misakanet.org/mcp) (8 tools) · WebMCP · `llms.txt`; the local stdio server ships 11 — [docs/mcp.md](docs/mcp.md) has both rows.

Core    CI Lessons MCP Tools Retrieval backend (today) Stars

Install    PyPI npm GitHub Marketplace

Ecosystem    MisakaNet MCP connector on Glama MCP Toplist DSH plugin downloads on dshfind Listed on dsh-plugin.org dsh.so risk

--- ## What is MisakaNet? **Git-backed failure memory for AI coding agents.** An error shows up → the agent searches → it applies a fix somebody already verified → if nothing matches, the miss becomes an intake, and the intake becomes a lesson for the next agent. Every lesson is a Markdown file: reviewed like code, graded by evidence, retrieved with BM25 over the Python standard library. The hosted MCP endpoint adds an **optional semantic fallback** (bge-m3 + Vectorize) only when BM25 returns no match; `MISAKANET_SEMANTIC=0` disables it. No vector database is required locally, and no server unless you want one. | | | |---|---| | **Lessons** | failure-recovery knowledge base, open and auditable under `lessons/` | | **Domains** | rag · devops · fanuc · docker · feishu · mcp · network · ci · wsl · windows … | | **Evidence** | E0 intake → E1 reviewed → E2 reproduced → E3 CI verified → **E4 observed reuse by two or more distinct clients** | | It is not | It is | |---|---| | ❌ a general memory system | ✅ a failure-recovery knowledge layer | | ❌ an agent runtime | ✅ a searchable lesson database | | ❌ a mandatory vector database / RAG stack | ✅ BM25 first; optional, disable-able semantic fallback on the hosted endpoint | | ❌ a skill marketplace | ✅ debugging knowledge from real sessions | | ❌ a general-purpose benchmark platform | ✅ a corpus graded by evidence; a 267-query retrieval run is published, and the older recitation benchmark is paused | ## Install (30 seconds) The point of an install is a first **successful search**, not the install. None of these needs an account or a token. **One command covers every installer-managed host:** `npx @misaka-net/misakanet-setup`. | Your host | Command | |---|---| | **DeepSeek Harness** | `dsh plugin --profile web add misakanet` — or type `misakanet` in **Add plugin** | | **Claude Code** | `/plugin marketplace add Ikalus1988/MisakaNet` then `/plugin install misakanet@misakanet` | | **Cindy** | install the **MisakaNet** plugin (id `misakanet`) from Cindy's plugin list | | Installer-managed | Claude Code · Codex · Hermes · OpenClaw · codewhale · Cursor · Gemini CLI · Copilot CLI · OpenCode · Kiro · MiniMax Code · DeepSeek Harness · Cindy | | **Any other MCP client** | point it at `https://misakanet.org/mcp` — public endpoint, anonymous reads | | **Your own code** | `pip install misakanet-core` (library) · `pip install misakanet` (stdio server) | For DeepSeek Harness the installer writes the **rules half only** (`$DSH_HOME/AGENTS.md`): its tools come from the plugin in the row above, which the installer prints as the one manual step. Updates: `dsh plugin --profile web update misakanet@latest`. Installer updates: `npx @misaka-net/misakanet-setup@latest`. Full prerequisites and the two-package trap: [How to use it](#how-to-use-it). ## Your first five minutes **1. Ask it something you have actually broken.** No client installed? This `curl` is the whole interface: ```bash curl -sS https://misakanet.org/mcp \ -H 'Content-Type: application/json' -H 'Accept: application/json' \ -H 'MCP-Protocol-Version: 2025-06-18' -H 'Origin: https://misakanet.org' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call", "params":{"name":"misakanet_search","arguments":{"query":"database is locked","top":3}}}' ``` **2. Read what came back.** A hit returns the lesson, its `evidence_level`, and its path — open the file and read the fix before running any command in it. A miss returns `no_match` plus a ready-to-call intake: the corpus saying it does not know this one yet. **3. Check the trust signal, not the tone.** `E0`–`E3` say how far a lesson was verified; `E4` is the one nobody can write or vote into. ### What it answers — and what it does not ![Four-panel comic: an agent asks about a failure, gets an indexed lesson back, or gets "no_match" and a ready-to-call intake form](promotional/misakanet-scope-comic.webp) MisakaNet answers for the failures it has indexed, and only those. When nothing matches the reply is `no_match` plus a ready-to-call `intake` — the corpus saying "not this one yet", not a dead end. ### Lesson vs Skill A **skill** teaches an agent how to do something; a **lesson** records what went wrong before and how not to fail again. MisakaNet is only the second thing. → [FAQ](FAQ.md) ## Where it is today - **The numbers that move are badges**, on purpose: the Lessons badge renders `data/badges/lessons.json`, regenerated by `update-badges.yml`, so it can lag a run but is never a hand-typed total. - **The top of the evidence ladder is observed, not declared.** `E4` needs two distinct clients actually retrieving a lesson, so no lesson file can carry it: the corpus declares none ([declared distribution](docs/trust-semantics.md), regenerated and checked by CI), and the number that exists is the worker's daily reading of `search_signals`, published in the [heartbeat](https://github.com/Ikalus1988/MisakaNet/issues/3471). - **Reported gaps arrive faster than they are triaged.** The intake queue is the honest bottleneck. - **The corpus is downloadable and citable.** `data.misakanet.org` publishes a versioned bundle — the full corpus, the benchmark query set, and every run artifact — with a per-file SHA-256 and an explicit license per file ([DATASET.md](DATASET.md)). The counts live in each version's `manifest.json`, not in prose. ## Benchmarks (details, not headline) Measurements, each published with its artifact rather than as prose here: - **Retrieval** — 267 queries over the hosted endpoint, BM25 vs the semantic fallback, run 2026-10-27. The R@1 half of the target was **missed** (`0.446 < 0.46`); `no_match` was within it. → [benchmarks/retrieval-2026-10-27.md](docs/benchmarks/retrieval-l1-267-2026-10-27.md) - **Retrieval, replayed 2026-12-02** — the same 267 queries against today's deployment: **R@1 0.667, `no_match` 0.041** (target met). **Not comparable to the 0.446 above**: that run had two arms over a 300-lesson eval corpus, this is one arm over 1200 rows, and the ranking changed three times in between. The BM25-only arm measured locally scores R@1 0.356 / `no_match` 0.506 — the gap is the vector paths. → [benchmarks/retrieval-2026-12-02.md](docs/benchmarks/retrieval-l1-267-2026-12-02.md) - **Recitation** — `lesson_hit_rate` is the share of the injected lesson's commands reproduced in the answer. It measures the **recitation** half of RAG: necessary for MisakaNet to help, and it is **not evidence that search finds anything** (no retrieval runs; correctness is not checked). The run is **paused**; the last snapshot is [`docs/benchmarks/latest.json`](docs/benchmarks/latest.json). → [recitation-trend.md](docs/benchmarks/recitation-trend.md) ## Take part **1. Report a failure the corpus does not have.** Search first, then call `misakanet_submit_intake` — no account, no email, no token, five lines is enough. It becomes a tracked issue. **2. Reuse a lesson and leave the trace.** A "this helped" vote is an `E3` hint, not proof. The proof is quieter: your retrieval is counted, anonymously, as one more distinct client. **3. Translate this page.** The README ships in four languages (English, 日本語, 简体中文, Español); a fifth is one merged PR away — the open [i18n tasks](https://github.com/Ikalus1988/MisakaNet/issues?q=is%3Aissue+is%3Aopen+label%3Ai18n) carry the acceptance criteria. **4. Tell us where the latest build hurt.** [The pinned trial issue](https://github.com/Ikalus1988/MisakaNet/issues/6077) is zero-bounty and always current: one run through any of the three entry points above, the step where it got slow or wrong, and the raw output. The acceptance bar is one sentence — *a maintainer can reproduce it* — and every eligible report gets a receipt naming what happened to it. **What you get back: attribution.** A lesson cites the intake that produced it (`source:`, `provenance.issue:`), and the pipeline can emit a receipt naming the lesson and its evidence level. ## How to use it `npx @misaka-net/misakanet-setup` installs MisakaNet into your assistant's own config — the same command for every client. The supported clients, and what each one gets, are in [the install page](https://misakanet.org/install/). Verify an install with `npx @misaka-net/misakanet-setup --verify`; undo it with `--uninstall`. Reads are anonymous and unlimited; registration is for writing ([why](AGENTS.md#33-注册与配额)). Node ≥ 18 for the installer, Python ≥ 3.11 for the library and stdio server. ### Other channels - **Claude Code, as a plugin** — `/plugin marketplace add Ikalus1988/MisakaNet`, then `/plugin install misakanet@misakanet`: the hosted MCP tools, no installer, no local process. - **DeepSeek Harness** — `dsh plugin --profile web add misakanet`: `mcp__misakanet__*` tools plus the session panel. The rules half (the "search before you act" block) is written by the installer into `$DSH_HOME/AGENTS.md`; dsh has no plugin extension point for it, so the two halves stay separate. - **The library in your own code** — `pip install misakanet-core`. The endpoint needs no client at all: the `curl` in [Your first five minutes](#your-first-five-minutes) is the whole interface. ### The two-package trap (it cost a real install failure, #1849) Five packages, and two of them are both called `misakanet` — that reuse is the trap. Read the right-hand column, not the name: | Name | What it actually is | |---|---| | `@misaka-net/misakanet-setup` (npm) | the **installer** — a `bin`, no plugin entry; use it to teach an assistant to search | | `misakanet` (npm) | the **DSH / Codex plugin** — `dsh plugin --profile web add misakanet` | | this repository (git) | a **Claude Code plugin marketplace** — `/plugin marketplace add Ikalus1988/MisakaNet` | | `misakanet` (PyPI) | the stdio **MCP server** — `python3 -m misakanet.server` | | `misakanet-core` (PyPI) | the **library** (stdlib BM25) — `from misakanet.search import search_lessons` | ### Use it as a GitHub Action When a workflow fails, the action searches the lessons and comments the closest match on the pull request (optionally reporting the new error). Published on [GitHub Marketplace](https://github.com/marketplace/actions/misakanet-intake-bot). ```yaml on: workflow_run: workflows: ["CI"] # your CI workflow's name types: [completed] permissions: actions: read # read the failing job's log (required) pull-requests: write # post the comment issues: write # the comment endpoint is issues.createComment jobs: intake: if: ${{ github.event.workflow_run.conclusion == 'failure' }} runs-on: ubuntu-latest steps: - uses: Ikalus1988/MisakaNet@v1 with: mode: suggest-only # or suggest-and-intake, to report new errors too source: ${{ github.repository }} ``` → [inputs and outputs](docs/agents/external-usage.md) ## Documentation | Topic | Where | |---|---| | Install, verify, uninstall | [docs/quickstart.md](docs/quickstart.md) · | | MCP: protocol, tools, transports | [docs/mcp.md](docs/mcp.md) · [API.md](API.md) | | CLI | [docs/cli-reference.md](docs/cli-reference.md) · `python3 search_knowledge.py "…"` | | Architecture | [ARCHITECTURE.md](ARCHITECTURE.md) · [docs/CONCEPTS.md](docs/CONCEPTS.md) | | Contributing a fix | [CONTRIBUTING.md](CONTRIBUTING.md) · [label system](docs/label-system.md) | | Submitting an intake | [docs/mcp-intake-guide.md](docs/mcp-intake-guide.md) · [mcp-remote](docs/integrations/mcp-remote.md) | | Troubleshooting | [docs/troubleshooting.md](docs/troubleshooting.md) | | Known limitations | [docs/LIMITATIONS.md](docs/LIMITATIONS.md) | | Benchmarks | [docs/benchmarks/](docs/benchmarks/) | | Dataset (corpus + query sets, downloadable) | [DATASET.md](DATASET.md) · | | Roadmap / changelog | [ROADMAP.md](ROADMAP.md) · [CHANGELOG.md](CHANGELOG.md) | | Competitors, domains, crawler policy | [competitive](docs/competitive-analysis.md) · [domains](docs/domains/) · [robots](docs/cloudflare-robots-txt.md) | ## Contributing > **Zero bounty. Maximum rigor. Merge earns credit.** > > MisakaNet pays nothing and promises nothing. That is a statement about *this repository*, not about > the issue you are looking at: some issues carry third-party **Opire** reward banners, added > automatically by our own [`scripts/question_autopilot.py`](scripts/question_autopilot.py). We do > **not administer** those payouts, and Opire is not part of this project. **Verify any reward offer > independently** before planning work around it; the only thing this repository has ever honoured is > a merged PR. → [the story](CONTRIBUTING.md#rewards) · > [#2903](https://github.com/Ikalus1988/MisakaNet/issues/2903) 1. Check the checkout: `python3 scripts/misakanet_cli.py smoke` 2. Search before writing: `python3 search_knowledge.py "your error here"` 3. Found nothing? [Share your failure lesson](https://github.com/Ikalus1988/MisakaNet/issues/new?template=lesson-feedback.yml) — five lines is enough **A good first issue:** [the open list right now](https://github.com/Ikalus1988/MisakaNet/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22) — it changes weekly, so take whatever is open when you arrive; no code needed, the MCP intake takes no account and we help with the format. → [CONTRIBUTING.md](CONTRIBUTING.md) · [good first issues](https://github.com/Ikalus1988/MisakaNet/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22) · [work on this repo](https://github.com/Ikalus1988/MisakaNet/issues?q=is%3Aissue+is%3Aopen+label%3A%22scope%3Arepo%22) · [code of conduct](CODE_OF_CONDUCT.md) > **Reading the issue list.** Most open issues are not to-do items: `intake` and `question` are > anonymously reported failures waiting to become lessons, and `bounty` is generated from them. The > ones that are work on this repository carry **`scope:repo`** — that filter is the complete list, > by contract (`docs/maintainer/intake-triage.md` §2). ## Security ⚠️ **Sandbox your agent before executing retrieved commands.** Lessons are community-contributed — review before running. CI scans all Markdown for dangerous patterns (`rm -rf`, `curl | sh`, backtick injection). See [SECURITY.md](SECURITY.md) and [LIMITATIONS.md](docs/LIMITATIONS.md). ## Troubleshooting | Symptom | Where | |---|---| | DCO · leaked token · pip timeout · `database locked` · Windows/GBK · WSL permission · FANUC codes | [docs/troubleshooting.md](docs/troubleshooting.md) | | MCP returns 403/405, or a client shows no tools | [docs/mcp.md](docs/mcp.md) · [FAQ.md](FAQ.md) | | Behind a corporate proxy | [docs/troubleshooting.md](docs/troubleshooting.md#behind-a-corporate-proxy) | ## For Agents & Crawlers **Prefer MCP intake for missing or stale lessons; PRs are optional.** Search first; if nothing matches, call `misakanet_submit_intake` at `https://misakanet.org/mcp` — no account, no token. Never send secrets or raw private logs. Protocol: [docs/mcp-intake-guide.md](docs/mcp-intake-guide.md). ## Contributors MisakaNet contributors *Built by the network, for the network. Zero bounties paid — only merge approval and eternal network gratitude.* ⚡ ## License [Apache-2.0](LICENSE) — Copyright 2026 Ikalus1988. Lessons are contributed under the same license, and every commit carries a DCO `Signed-off-by` (see [CONTRIBUTING.md](CONTRIBUTING.md)).