Kira

io.github.aibenyclaude-coder由 GitHub 账号 aibenyclaude-coder 发布v0.11.0更新于 Oct 24, 2026

Skills and Scars for AI agents - your agent records its failures and never repeats them.

已验证STDIO仅桌面知识与记忆开发者工具

概览

AI 生成的概览

Kira 让 AI 助手把自己的失败记录为本地“伤疤”,并在做类似任务前提醒,从而避免重复犯错。

可以做什么
Kira 是一个以失败记忆为核心的 MCP 服务器。kira_record_failure 等工具把重试或异常记录为本地个人伤疤,kira_personal_brief 和 kira_premortem 会在会话或任务开始时把这些伤疤呈现出来。目录层提供 kira_lookup、kira_get 和 kira_route,用于按关键词或目标检索社区技能与失败警告;kira_share_scar、kira_report 以及 kira_consent/kira_status 负责分享、反馈和遥测控制。
适用场景
当助手在不同会话中反复遇到相同的构建、部署、认证或配置问题时适用,可让这些经验自动被回忆,而不必手写进项目规则文件。它比通用记忆服务器更窄,两者可以同时使用。
运行要求
通过 npx 以 stdio 在本地运行(npm 包 kira-mcp),需要 Node.js 以及下载包的网络访问。可选环境变量:KIRA_HOME 指定本地状态目录,KIRA_PRO_KEY 用于 Pro 版本,KIRA_TELEMETRY 和 KIRA_TELEMETRY_URL 控制遥测。免费版无需账号。
安装前请注意
遥测默认处于 basic 级别,会向远程端点发送匿名使用数据(技能 ID、状态、匿名 UUID、版本、操作系统系列、Node 主版本、版本层级);full 模式还会加入经脱敏的 note 和 context。个人伤疤与未命中日志据称仅保存在本地。kira_share_scar 会准备社区提交内容,只有点击后才上传;KIRA_PRO_KEY 是机密凭据。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Kira,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

Kira

[CI] [npm] [npm downloads] [scars absorbed] [License: MIT]

Your agent stops repeating its own mistakes.

Every failed retry, every exception, every "wait — we hit this exact wall last week" is knowledge your agent throws away when the session ends. Kira keeps it. One MCP install and your agent records what burned it (a scar), sees its scars before it works again, and stops paying for the same mistake twice.

Privacy by design. Personal scars and the lookup-miss log are local-only — never uploaded, on any tier. Community telemetry is opt-in and redacts secrets, paths, and identifiers locally before write AND server-side before storage. Run npm run demo:privacy to see exactly what leaves your machine. Full wire format and opt-out in PRIVACY.md.


Install (10 seconds)

Add this snippet to your MCP host config:

json
{  "mcpServers": {    "kira": {      "command": "npx",      "args": ["-y", "kira-mcp@latest"]    }  }}

That's it. Your agent now has Kira.

Per-client paths (click)
ClientConfig file
Claude Code~/.claude/settings.json (global) or .claude/settings.json (per-project)
Claude DesktopmacOS: ~/Library/Application Support/Claude/claude_desktop_config.json · Windows: %APPDATA%\Claude\claude_desktop_config.json
Cursor~/.cursor/mcp.json (global) or .cursor/mcp.json (per-project)
Cline / Continueextension settings → MCP servers
Windsurf~/.codeium/windsurf/mcp_config.json
VS Code (MCP preview).vscode/mcp.json
Goose~/.config/goose/profiles.yaml (under extensions:)
Zed~/.config/zed/settings.json (context_servers)

The snippet above works as-is in every one of them — just paste it under mcpServers (or the equivalent key for your client).


The loop, in 30 seconds

text
Monday    agent gates a merge on:  npm run build 2>&1 | tail -1          exit code comes from tail, not the compiler → broken code reaches main          └─ kira_record_failure(               title:   "build gate bypassed: exit code swallowed by pipe to tail",               instead: "never gate on a piped command without pipefail")
Tuesday   new session, same machine          └─ session brief: "⚠ You have been burned by this before:             never gate on a piped command without set -o pipefail"          agent writes the gate correctly. Zero repeats. Zero wasted tokens.

Not a hypothetical — this is the actual first scar in the database, recorded by the agent that built this feature, about a mistake it made while building it. The next three scars came the same day. The loop works on day one, for a single user, with zero network effects required. FLYWHEEL.md documents the full improvement loop.


Tools (10)

ToolWhat it does
Personal memorykira_record_failureCapture a retry/exception as a personal scar (local-only)
kira_personal_briefSession-start brief of your latest scars — start work already knowing where you got burned
kira_premortemFailure heat-map for a goal before starting — "here's where this kind of task has burned you"
Catalogkira_lookupKeyword → proven instructions + failure warnings. On a miss, returns scored near_skills / near_scars instead of a shrug
kira_getFetch full step-by-step instructions by ID
kira_routeGoal → ordered plan with a skill per step
Communitykira_share_scarPromote a personal scar into a community submission (sanitized; nothing uploads without your click) — earns contributor status
Feedbackkira_reportReport success/retry/failure → feeds the quality loop
kira_consent / kira_statusTelemetry consent + one-call introspection

Auto-firing: you don't call Kira — Kira's MCP instructions tell your agent when to. Japanese queries are first-class (CJK bigram matching).

When nothing matches

A lookup miss is not a dead end — it's demand data. Kira returns the closest scored matches, records the miss locally (with what almost matched), and the weekly flywheel digest turns repeated misses into alias fixes and new-skill candidates. The catalog learns what people actually ask for.


The catalog layer (community skills & scars)

[Kira Demo]

38 community skills across deploy / database / auth / payments / UI / testing / CI / infra / mobile / CMS, and 45 community scars — real failure patterns like "Vercel deploy succeeds but the app crashes: missing env vars" or "Auth.js v5 signIn imported from the wrong side". kira_route turns a goal ("build a web app") into an ordered plan with the right skill and scars per step.

Community scars are where personal scars graduate to — and the flow is live. Ask your agent to run kira_share_scar(scar_id): it re-sanitizes your personal scar, generalizes it, and hands you a prefilled submission link (nothing uploads until you click). An intake bot validates the JSON; a human reviews the content; on merge it ships to every Kira user. Prefer forms? Submit a scar directly.

Every accepted scar earns contributor status — sharing is how you get the fresh feed for free (see Contributing below).


How it works

Your agent hits a wall            Your agent gets a task    ↓                                 ↓kira_record_failure()             kira_premortem(goal) / kira_lookup(keyword)    ↓                                 ↓~/.kira/personal-scars/           scars first, then instructions    ↓                                 ↓next session: brief surfaces      agent announces → executes → kira_report()your scars before work starts         ↓    ↓                             misses + failure notes feed the flywheelnever the same mistake twice      → digest → catalog improvements

Skills are natural language Markdown — no executable code, no injection risk.


Why not just CLAUDE.md?

CLAUDE.md / .cursorrulesKira
SetupCopy per projectInstall once
Failure memoryYou write it by hand, if you rememberkira_record_failure — captured at the moment it happens
RecallYou re-read it, if you rememberSurfaced automatically at session start / task start
SelectionYou chooseAgent chooses, scored
UpdatesManualAutomatic (flywheel)
Works across AI toolsTool-specificAny MCP client

Not another "memory MCP"?

There are excellent memory servers (knowledge graphs, session recall, context handoff). Kira is deliberately narrower:

  • Failure-first, not everything-first. General memory stores what happened; Kira stores what must never happen again, in a shape built for avoidance: mistake → instead, severity, recurrence count. A pre-task heat-map (kira_premortem) exists only because the data is failures.
  • Recurrence is measured, not assumed. Re-recording a similar failure folds into the same scar and bumps hit_count — the corpus learns which walls actually get hit, and honest counts are enforced by review.
  • The commons compounds. Your scar, sanitized and human-reviewed, ships to every install — and earns you the fresh feed (RECIPROCITY.md). Memory servers make one agent smarter; a scar corpus makes every agent immune.
  • Trust is engineered, not implied. Corpus text is injected into agents' contexts, so every entry passes a sanitizer-stability gate in CI, natural-language-only rules, and human review (SECURITY.md).

If you need general episodic memory, run one of those servers alongside Kira — they don't compete for the same job.


Telemetry

Personal scars (~/.kira/personal-scars/) and the miss log (~/.kira/misses.log) are local-only and never uploaded. Community telemetry is separate and consent-gated:

Mode (KIRA_TELEMETRY env, or kira_consent MCP tool)What leaves your machine
offNothing. Local log only.
basic (default)Anonymous core: skill ID, status, anonymous UUID, kira version, OS family, Node major version, free/pro tier. No free text.
fullSame as basic plus sanitized note / context (secrets, paths, identifiers redacted).

Full schema, redaction rules, retention, and opt-out instructions: PRIVACY.md.

Env varDefaultPurpose
KIRA_TELEMETRY(unset → basic)Override consent level for this process: off, basic, full.
KIRA_TELEMETRY_URLhttps://kira-telemetry.workers.dev/v1/reportsEndpoint for batch upload.
KIRA_HOME~/.kiraWhere consent state, personal scars, miss log, and flywheel output live.
KIRA_KEY(unset → free tier)Contributor / supporter key — unlocks the fresh community feed.
KIRA_REMOTE_URL(unset → no network)Opt-in corpus feed URL for the free tier (90-day-delayed commons).

Share a scar, or subscribe, or wait

The corpus is MIT and everything in it eventually becomes free. Freshness is the only premium — failure knowledge decays as models retrain, so the newest scars carry the value:

Fresh community feedHow
Contributor✅ freeOne accepted scar = 12 months (kira_share_scar → merge → key). First 1,000 contributors: permanent.
Supporter✅ paidSponsor the project → supporter key. Funds human review of every submission.
Free90 days laterBase corpus ships with npm; delayed commons feed available opt-in. Local features + privacy guarantees are free forever, on every tier.

Currently in grace mode: the fresh feed is open to everyone until the corpus reaches 100 community scars. Full policy: RECIPROCITY.md.


Contributing

The first 1,000 contributors get permanent free access to all Kira features (fresh feed included) — see the reciprocity table above.

See CONTRIBUTING.md for how to add Skills and Scars.


Links


Where agents shine — by remembering where they got burned.

A B Button Corporation project.

来源:README.md,提交 822fb1d

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.11.0最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分