Shinobi

io.github.numbererikson由 GitHub 账号 numbererikson 发布v0.3.1更新于 Oct 25, 2026

Task spine + searched dead ends + approvals for AI coding agents. One brain, every device.

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

概览

AI 生成的概览

Shinobi 是面向 AI 编码代理的本地任务主干 MCP 服务器,跨会话与设备保存项目、子任务、决策、死路和上下文。

可以做什么
管理项目与子任务:创建、列出、更新、认领、完成和删除,并为代理循环取出下一个任务。记录并查询决策、死路、笔记、计划与项目级上下文,支持全文检索或可选的语义召回。查看历史时间线,并把 git 提交关联到子任务。运行工作流辅助工具,如代理引导、会话收尾、文件上下文、决策提取和会话摘要。请求审批、发送通知,并注册自定义插件工具。
适用场景
当 AI 编码代理处理跨多个会话的项目,且你希望决策、已知不可行方案和任务状态在会话与机器之间持久保留,甚至能在手机上审批时使用。
运行要求
通过 npm 包 @shinobiapps/shinobi 作为本地进程运行,需要 Node.js 18+,better-sqlite3 原生构建可能还需要 C++ 构建工具链。运行 shinobi init 在 ~/.shinobi 下创建配置和数据库。语义召回需可选配置嵌入提供方(OpenAI、Voyage 或 Ollama)。远程 HTTP 模式使用 bearer 令牌认证。
安装前请注意
它会向本地 SQLite 数据库写入持久状态,并可删除项目和子任务。仪表盘绑定非回环地址时会启用令牌认证,令牌来自 SHINOBI_DASHBOARD_TOKEN。启用嵌入会把内容发送给 OpenAI、Voyage 或本地 Ollama。跨机器同步会把数据库推送到私有 git 仓库。插件是从插件目录加载的任意 JavaScript。

安装

在 SourceWeft 中

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

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

其他 MCP 客户端

参照 仓库 中的启动说明。

README

Shinobi

[Website] [test] [License: MIT] [Node]

The task spine for AI coding agents. Shinobi holds the decisions that survive across sessions, actively searches your past dead ends — semantically — before the agent writes code, and routes approvals to your phone. One brain, every device: laptop, cloud session, and mobile all wired to the same store.

Works with Claude Code, Cursor, Cline, Continue.dev, Zed — any MCP-compatible client.

Status: v0.3 — autonomous agents. Run it as a hosted HTTP /mcp brain (the default deploy) or self-host a local instance. Mobile push, a headless dispatch loop, parallel swarm over git worktrees, and audit→subtask ingestion on top of the remote MCP foundation. 39 MCP tools, web dashboard, mobile approvals, plugin system, optional semantic recall.

What it does

Most tools try to be a memory bolt-on. Shinobi is the task spine your agent works along — the durable backbone of work, decisions, and known-bad paths that outlives any single session and follows you across every device.

  • Task spine — projects + subtasks the agent claims, completes, or pivots; the persistent skeleton of multi-session work
  • Decisions that survive — record architectural choices with rationale so the next session (on any device) doesn't re-litigate them
  • Dead ends, searched before you build — every failed approach is logged and semantically matched the moment an agent plans a similar one, so it never burns a second session on the same wall. No other tool does this.
  • Approvals on your phone — request_approval pushes the decision to your pocket; the agent blocks until you tap yes/no, wherever you are
  • One brain, every device — laptop editor, Claude Code cloud session, and mobile chat all hit the same store over remote MCP; no sync step, no per-device drift
  • Plans — versioned plan snapshots, retrievable mid-task
  • Context — per-project conventions, "don't touch" rules, test patterns, deploy notes, file annotations
  • Recall — fulltext (FTS5) by default, semantic (embedding-backed) when an embedding provider is configured
  • Notes — free-form annotations and voice notes (audio_path field)
  • Activity timeline — every write path lands in the timeline so you can replay what happened
  • Git linking — link_commit ties commits to subtasks via [SHI-N] tags or via target_path attribution
  • Web dashboard — Hono-served Kanban + decisions + dead ends + notes + plans + context + timeline + analytics
  • Plugin system — drop a .js file in ~/.shinobi/plugins/ or install a @shinobi/plugin-* npm package and register custom plugin_* tools

Hosted or self-hosted, your call. The default deploy is one remote brain behind an HTTP /mcp endpoint (we run ours at shinobi.shinobi-apps.com); the same binary still runs as a fully local single-machine instance when you'd rather keep everything on your own box. BYO embedding provider only if you want semantic recall.

🚀 New here? Follow Getting started — zero to a working brain in ten minutes. Going multi-device? Remote mode

Install

Requirements:

  • Node.js 18+ on PATH
  • C++ build toolchain for better-sqlite3 native build (most systems have prebuilt binaries; Windows may need Visual Studio Build Tools as fallback)

From npm (recommended)

bash
npm install -g @shinobiapps/shinobi

The binary is shinobi (e.g. shinobi serve, shinobi dashboard).

From GitHub (latest, unreleased)

bash
npm install -g github:numbererikson/shinobi

Pulls from main. Useful for trying unreleased fixes. On Windows you may need to add your Node directory to system PATH before this works, because the prepare build script runs in a subshell that does not always inherit per-session PATH (Laragon, portable installs). If install fails with 'node' is not recognized, prefer the npm install above.

From a cloned source folder (for development / contributing)

bash
git clone https://github.com/numbererikson/shinobi.gitcd shinobinpm install            # triggers `prepare` → builds dist/npm install -g .

Then bootstrap

In any project root where you want Shinobi available to your MCP client:

bash
shinobi initshinobi dashboard

init will:

  1. Create ~/.shinobi/ with config.json, .env template, and shinobi.db (migrations applied)
  2. Drop a .mcp.json snippet for the current project
  3. Print next steps

shinobi init writes config for the two clients with a workspace-local MCP convention out of the box:

  • Claude Code — <workspace>/.mcp.json
  • Cursor — <workspace>/.cursor/mcp.json

Restart the client and the mcp__shinobi__* tools become available.

For other MCP clients (Cline, Continue.dev, Zed), see the MCP client setup section below.

Then open:

text
http://127.0.0.1:8765

On Windows PowerShell, if script execution blocks shinobi, use the .cmd shim:

powershell
shinobi.cmd dashboard

If you upgraded Node or copied an old node_modules, rebuild native dependencies:

bash
npm rebuild better-sqlite3

Important: the code lives in the Shinobi folder, but the local memory database lives in:

text
~/.shinobi/shinobi.db

To move the tool only, copy/clone the Shinobi folder and run the install commands above. To move the existing projects, tasks, decisions, notes, and context too, either copy ~/.shinobi/ or use shinobi sync.

MCP client setup

Every snippet below uses the same JSON shape — command is the path to the Node binary that's running Shinobi, args is [<absolute path to dist/cli.js>, "mcp"]. Print the exact values for your machine:

bash
shinobi init --print-config

(Or read .mcp.json from any project where you already ran shinobi init — the values are identical.)

Claude Code

Drops in automatically — shinobi init writes <workspace>/.mcp.json. Restart Claude Code to pick up the server.

Cursor

Drops in automatically — shinobi init writes <workspace>/.cursor/mcp.json. Works on Cursor 0.43+. Restart Cursor or reload the workspace.

For a global Cursor config (every project sees Shinobi), paste the same snippet into ~/.cursor/mcp.json (or use Cursor Settings → MCP).

Cline (VS Code extension)

Open Cline's settings file:

  • Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
  • macOS: ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
  • Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

Merge the contents of your project's .mcp.json into the file's mcpServers object. Restart VS Code.

Continue.dev

Edit ~/.continue/config.json. Add Shinobi to the mcpServers array (note: Continue uses an array, not an object like the others):

json
{  "mcpServers": [    {      "name": "shinobi",      "command": "/absolute/path/to/node",      "args": ["/absolute/path/to/dist/cli.js", "mcp"]    }  ]}

Use the values from your project's .mcp.json for command and args.

Zed

Edit ~/.config/zed/settings.json. Zed nests MCP servers under context_servers:

json
{  "context_servers": {    "shinobi": {      "command": {        "path": "/absolute/path/to/node",        "args": ["/absolute/path/to/dist/cli.js", "mcp"]      }    }  }}

Restart Zed.

Generic / other clients

Any MCP client that supports the standard { command, args } server spec should work. Use the same values your .mcp.json has:

  • command: absolute path to the Node binary running Shinobi
  • args: [<absolute path to dist/cli.js>, "mcp"]

Avoid the bare shinobi command in MCP config — many clients spawn servers with shell: false, which skips the OS PATH resolution that makes shinobi work in a terminal.

Remote mode (the default deploy)

Host one Shinobi brain on a server and connect every device to it — your desktop editor, Claude Code web/mobile sessions, any remote-MCP-capable client. shinobi serve exposes the MCP endpoint at /mcp (streamable HTTP, stateless, bearer-token auth) alongside the dashboard:

bash
claude mcp add --transport http shinobi https://your-host/mcp \  --header "Authorization: Bearer YOUR_TOKEN"

This is the recommended way to run Shinobi — one brain, reachable from every device. The same binary still runs as a local single-machine instance if you'd rather self-host everything on your own box. Full deployment guide (Docker, Cloudflare Tunnel, GCP Always Free, client config): docs/remote-mcp.md.

CLI

shinobi <command> [options]
Commands:  init                            Bootstrap ~/.shinobi/ and drop .mcp.json in the current directory  mcp                             Run the MCP server over stdio (invoked by the MCP client)  migrate                         Apply pending SQL migrations  dashboard                       Start the web dashboard on localhost (default port 8765)  serve [--host H] [--port P]     Dashboard + MCP HTTP endpoint (/mcp) in one process — see docs/remote-mcp.md  sync init <path> [branch]       Configure a local git repo as the cross-machine sync target  sync push                       Snapshot the DB and commit it to the sync repo  sync pull                       Restore the DB from the sync repo's snapshot  sync status                     Show last push/pull timestamps and git status  dispatch [--once|--drain]       Autonomous loop: pull next_task → run worker → complete/unblock → repeat           [--project N] [--interval S] [--max-failures N]   Worker via SHINOBI_WORKER_CMD (e.g. 'claude -p "$SHINOBI_TASK_PROMPT"'); unset → dry-run  swarm --agents N                N dispatch loops in parallel, each in its own git worktree/branch, one shared        [--project N] [--drain]   brain. Atomic claim → no two agents take the same task. --no-worktree / --keep-worktrees

MCP tools (39)

GroupTools
Projectslist_projects, get_project, create_project, update_project, archive_project, unarchive_project, delete_project
Subtaskslist_tasks, get_task, create_task, bulk_create_tasks, update_subtask, delete_subtask, claim_task, complete_task, next_task
Decisionslog_decision, decisions_for_file, update_decision_status
Dead endslog_dead_end, check_dead_ends
Notesadd_note, list_notes
Planssave_plan, get_plan
Contextget_context, update_context
Recallrecall (FTS5 or semantic)
Timelinehistory, link_commit
Workflowagent_bootstrap, session_closeout, file_context
Extractionextract_decisions, compress_session_summary
Approvalsrequest_approval
Notificationsnotify
Findingsingest_findings
Pluginsplugin_hello

Architecture

LayerTech
LanguageTypeScript (strict mode, ES2022, NodeNext)
RuntimeNode 18+
MCP@modelcontextprotocol/sdk 1.x
StorageSQLite via better-sqlite3 (WAL mode)
DashboardHono + @hono/node-server (same process, localhost:8765)
Embeddings (optional)OpenAI text-embedding-3-small / Voyage voyage-3-lite / Ollama nomic-embed-text
MigrationsForward-only, sha256 checksum, schema_migrations table

See docs/architecture.md for the request lifecycle and module layout.

Dashboard auth

The dashboard is open on loopback binds (127.0.0.1, localhost, ::1) and token-protected on any non-loopback bind. The token is read from SHINOBI_DASHBOARD_TOKEN, otherwise loaded from ~/.shinobi/dashboard-token, otherwise auto-generated and persisted there. /health is always open for probes.

Browser flow — open the dashboard with the token once and the cookie sticks:

text
http://192.168.1.10:8765/?token=YOUR_TOKEN

Curl / scripts — any of these works:

bash
curl -H "Authorization: Bearer $SHINOBI_DASHBOARD_TOKEN" http://192.168.1.10:8765/api/projects/1/snapshotcurl -H "X-Shinobi-Token: $SHINOBI_DASHBOARD_TOKEN"      http://192.168.1.10:8765/api/projects/1/snapshotcurl --cookie "shinobi_token=$SHINOBI_DASHBOARD_TOKEN"   http://192.168.1.10:8765/api/projects/1/snapshot

See docs/configuration.md for the full env-var reference.

Cross-machine sync

Shinobi syncs your local SQLite database via a private git repo. Setup once per machine:

bash
# Once: clone a private GitHub repo to act as the sync repogit clone [email protected]:USER/shinobi-sync.git ~/shinobi-sync
# Once per machine: tell shinobi about itshinobi sync init ~/shinobi-sync main
# Push from the writer machine:shinobi sync push
# Pull on the reader machine:shinobi sync pull

The DB file lands on the main branch as a binary; pre-existing local DB is backed up to <path>.bak-<timestamp> before restore.

Configuration

Edit ~/.shinobi/.env or set env vars before running shinobi mcp:

VariableDefaultPurpose
SHINOBI_DB_PATH~/.shinobi/shinobi.dbSQLite location
SHINOBI_CONFIG_DIR~/.shinobiConfig + plugins directory
SHINOBI_PLUGINS_DIR${configdir}/pluginsPlugin discovery directory
SHINOBI_DASHBOARD_PORT8765Dashboard port
SHINOBI_DASHBOARD_HOST127.0.0.1Dashboard bind host. Loopback skips auth; non-loopback auto-enables token auth.
SHINOBI_DASHBOARD_TOKEN(auto)Override the dashboard token; auto-generated to ~/.shinobi/dashboard-token when needed.
SHINOBI_EMBED_PROVIDERnoneopenai / voyage / ollama / none
SHINOBI_EMBED_API_KEY—Auth for OpenAI / Voyage (else falls back to OPENAI_API_KEY / VOYAGE_API_KEY)
SHINOBI_EMBED_MODELprovider defaultOverride model id
SHINOBI_EMBED_DIMSprovider defaultOverride dimensions
SHINOBI_OLLAMA_URLhttp://localhost:11434Ollama endpoint
SHINOBI_MIGRATIONS_DIR<package>/migrationsOverride migrations source

Full reference: docs/configuration.md.

Plugins

Write a single .js file in ~/.shinobi/plugins/:

js
// ~/.shinobi/plugins/my-plugin.jsexport default function register(registry, api) {  registry.registerTool({    name: 'plugin_count_open',    description: 'Count open decisions across all projects',    inputSchema: { type: 'object', properties: {}, additionalProperties: false },    handler: (_args, api) => {      const projects = api.listProjects();      let total = 0;      for (const p of projects) {        total += api.listDecisions({ projectId: p.id, status: 'open' }).length;      }      return { open_decisions: total };    },  });}

Restart the MCP client and mcp__shinobi__plugin_count_open is available. See docs/plugin-development.md.

Roadmap

  • v0.2 — remote MCP foundation: stateless HTTP /mcp endpoint, Docker + GCP Always Free deploy, Cloudflare Tunnel, env-driven .mcp.json for cloud sessions. One brain across laptop, cloud, and mobile.
  • v0.3 (current) — autonomous agents: push notifications (task-completed / agent-blocked) → dispatch loop (headless agent pulls next_task and works while you sleep) → Shinobi Swarm (N parallel agents, worktree isolation, shared dead ends), plus ingest_findings (audit → subtask graph → swarm) pulled forward from v0.4.
  • v0.4 — unit-test coverage pass on tools/*; richer remediation templates and finding-source adapters on top of ingest_findings.
  • v1.0 — stability, security audit, performance pass; optional team mode / hosted SaaS only on demand signal.

Changelog

See CHANGELOG.md for release notes.

Contributing

See CONTRIBUTING.md. Issues and PRs welcome.

By participating you agree to our Code of Conduct.

Security

For vulnerability reports, see SECURITY.md — please do not open public issues for security matters.

License

MIT — see LICENSE.

来源:README.md,提交 79dd187

工具

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

版本历史

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

评分

已满足适用检查项的 50%

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

  • 近 30 天内可连通25 分

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

  • 已声明认证方式10 分

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

  • 已列出工具15 分

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

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