What it does
Local SQLite control plane for coding agents: persistent memory, Turn-0 grounding, and 2PC safety.
- Connects 在你的电脑上运行
- Account or key No key needed
- Category 开发者工具
可搭配使用
教 AI 做这类工作的 Skill,可与本项一起使用
andrej-karpathy-skills
A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.
graphify
Turn any codebase, with its docs, SQL schemas, configs, and PDFs, into a queryable knowledge graph. A /graphify skill for Claude Code, Cursor, Codex, and Gemini CLI: local deterministic AST parsing, every edge explained, no vector store.
为什么排在这里
列表按使用分(满分 100)排序,由以下部分组成
| 热度 | 7/80 | GitHub 星标或每周下载量:较大的计 60,较小的计 20 |
|---|---|---|
| 新鲜度 | 12/12 | 30 天内有发布或代码更新得满分 |
| 仍在响应 | 0/8 | 上次检查时云端端点有响应 |
| 使用分 | 19/100 |
质量: 基础检查通过 3/3 项(仅展示,不用于排序) · 上升势头: 暂无数据 (只用于“上升中”标签)
安装
选择你使用的 AI 应用,然后复制设置。
用一句话让 AI 帮你安装
请帮我安装 KruschStack。按照 https://mcp.popnx.com/i/krusch-stack.md 操作,先把命令给我看,等我同意后再运行。粘贴到能在你电脑上工作的 AI(如 Claude Code、Cursor)。它会读取我们的步骤,先给你看命令,等你同意。无需密钥,无需注册。 · 查看 AI 会读取的全文
通过 3/3 项检查 · 在你的电脑上运行 · ✓ 命令已检查 2026年11月19日
第一步:你用哪个 AI?
选择你用的应用,步骤会显示在下方。
可连接 Claude,但需要先准备
需要先在电脑上安装 Node.js(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
让 AI 帮你安装
把这段话复制到 Claude 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。
请在这台电脑上为 Claude 安装 MCP server KruschStack,按顺序:1) 用 node -v 检查是否有 Node.js。没有的话,请让我从 https://nodejs.org/en/download 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):{ "mcpServers": { "krusch-stack": { "command": "npx", "args": [ "-y", "krusch-stack", "mcp", "--profile", "coding-agent" ] } } } 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) 不需要密钥。5) 按约定执行,然后确认 KruschStack 的工具真的出现了。这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。
安装 Node.js(如果还没有)
已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter
node -v- 显示版本号(例如 v26.13.1)= 已安装,可跳过这一步
- 显示 "command not found"(Windows 显示 "is not recognized")= 还没安装,或刚装好但需要关掉终端再重新打开
怎么打开终端
Mac:按 ⌘ + Space,输入 Terminal 后按 Enter
Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”
还没安装: 打开官方下载页,选择 LTS 版本和点选式安装程序:Mac 用 .pkg · Windows 用 .msi。双击后一路下一步即可,不需要 curl 命令
装好后关掉终端再打开,重新运行同一条命令,应显示版本号:
node -v安装一次,所有需要 Node.js 的工具都能用
打开电脑版 Claude 应用的设置文件
SettingsDeveloperEdit Config
粘贴这些设置并保存文件
{ "mcpServers": { "krusch-stack": { "command": "npx", "args": [ "-y", "krusch-stack", "mcp", "--profile", "coding-agent" ] } } }退出 Claude 再重新打开
试一试
用 KruschStack 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude 说正在使用 KruschStack,或回答中出现 KruschStack 的工具名称,就表示连接成功
1 项可选设置(不填也能用)
上面的命令不填这些也能用。想调整时再按开发者的说明添加。
KRUSCH_WORKSPACE_ROOT目标项目工作区的根目录查看英文原文
Target project workspace root directory
说明为自动翻译,变量名保持原样;不确定时请查看原文。
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
ChatGPT 暂时无法连接 KruschStack
KruschStack 需要安装在你的电脑上,而 ChatGPT 只能连接在网上运行的服务器
你可以改用这些方式
A · 使用能连接 KruschStack 的应用
- 需要先在电脑上安装 Node.js(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
- 需要先在电脑上安装 Node.js(只需一次)
- 需要先在电脑上安装 Node.js(只需一次)
- 需要先在电脑上安装 Node.js(只需一次)
B · 开发者工具 类中能连接 ChatGPT 的其他服务器
从同类中使用较多的里挑选,仅限用地址即可连接、无需密钥的
- Sentry✓ ChatGPT
- Compiler Explorer✓ ChatGPT
- GitDiagram✓ ChatGPT
可连接 Claude Code,但需要先准备
需要先在电脑上安装 Node.js(只需一次)
让 AI 帮你安装
把这段话复制到 Claude Code 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。
请在这台电脑上为 Claude Code 安装 MCP server KruschStack,按顺序:1) 用 node -v 检查是否有 Node.js。没有的话,请让我从 https://nodejs.org/en/download 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):claude mcp add --scope user krusch-stack -- npx -y krusch-stack mcp --profile coding-agent 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) 不需要密钥。5) 按约定执行,然后确认 KruschStack 的工具真的出现了。这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。
安装 Node.js(如果还没有)
已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter
node -v- 显示版本号(例如 v26.13.1)= 已安装,可跳过这一步
- 显示 "command not found"(Windows 显示 "is not recognized")= 还没安装,或刚装好但需要关掉终端再重新打开
怎么打开终端
Mac:按 ⌘ + Space,输入 Terminal 后按 Enter
Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”
还没安装: 打开官方下载页,选择 LTS 版本和点选式安装程序:Mac 用 .pkg · Windows 用 .msi。双击后一路下一步即可,不需要 curl 命令
装好后关掉终端再打开,重新运行同一条命令,应显示版本号:
node -v安装一次,所有需要 Node.js 的工具都能用
打开终端
Mac:按 Command+空格,输入 Terminal · Windows:打开 PowerShell
粘贴这条命令并按 Enter
claude mcp add --scope user krusch-stack -- npx -y krusch-stack mcp --profile coding-agent在 Claude Code 中输入 /mcp
应能看到 KruschStack 在列表中并显示已连接
试一试
用 KruschStack 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude Code 说正在使用 KruschStack,或回答中出现 KruschStack 的工具名称,就表示连接成功
1 项可选设置(不填也能用)
上面的命令不填这些也能用。想调整时再按开发者的说明添加。
KRUSCH_WORKSPACE_ROOT目标项目工作区的根目录查看英文原文
Target project workspace root directory
说明为自动翻译,变量名保持原样;不确定时请查看原文。
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
可连接 Cursor,但需要先准备
需要先在电脑上安装 Node.js(只需一次)
让 AI 帮你安装
把这段话复制到 Cursor 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。
请在这台电脑上为 Cursor 安装 MCP server KruschStack,按顺序:1) 用 node -v 检查是否有 Node.js。没有的话,请让我从 https://nodejs.org/en/download 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):{ "mcpServers": { "krusch-stack": { "command": "npx", "args": [ "-y", "krusch-stack", "mcp", "--profile", "coding-agent" ] } } } 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) 不需要密钥。5) 按约定执行,然后确认 KruschStack 的工具真的出现了。这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。
安装 Node.js(如果还没有)
已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter
node -v- 显示版本号(例如 v26.13.1)= 已安装,可跳过这一步
- 显示 "command not found"(Windows 显示 "is not recognized")= 还没安装,或刚装好但需要关掉终端再重新打开
怎么打开终端
Mac:按 ⌘ + Space,输入 Terminal 后按 Enter
Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”
还没安装: 打开官方下载页,选择 LTS 版本和点选式安装程序:Mac 用 .pkg · Windows 用 .msi。双击后一路下一步即可,不需要 curl 命令
装好后关掉终端再打开,重新运行同一条命令,应显示版本号:
node -v安装一次,所有需要 Node.js 的工具都能用
在 Cursor 中以 Agent 模式打开 AI 聊天
试一试
用 KruschStack 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Cursor 说正在使用 KruschStack,或回答中出现 KruschStack 的工具名称,就表示连接成功
1 项可选设置(不填也能用)
上面的命令不填这些也能用。想调整时再按开发者的说明添加。
KRUSCH_WORKSPACE_ROOT目标项目工作区的根目录查看英文原文
Target project workspace root directory
说明为自动翻译,变量名保持原样;不确定时请查看原文。
菜单名称已于 2026年11月11日 对照 Cursor 帮助页面核实 · 你的界面可能因版本略有不同
可连接 VS Code,但需要先准备
需要先在电脑上安装 Node.js(只需一次)
让 AI 帮你安装
把这段话复制到 VS Code 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。
请在这台电脑上为 VS Code 安装 MCP server KruschStack,按顺序:1) 用 node -v 检查是否有 Node.js。没有的话,请让我从 https://nodejs.org/en/download 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):{ "servers": { "krusch-stack": { "type": "stdio", "command": "npx", "args": [ "-y", "krusch-stack", "mcp", "--profile", "coding-agent" ] } } } 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) 不需要密钥。5) 按约定执行,然后确认 KruschStack 的工具真的出现了。这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。
安装 Node.js(如果还没有)
已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter
node -v- 显示版本号(例如 v26.13.1)= 已安装,可跳过这一步
- 显示 "command not found"(Windows 显示 "is not recognized")= 还没安装,或刚装好但需要关掉终端再重新打开
怎么打开终端
Mac:按 ⌘ + Space,输入 Terminal 后按 Enter
Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”
还没安装: 打开官方下载页,选择 LTS 版本和点选式安装程序:Mac 用 .pkg · Windows 用 .msi。双击后一路下一步即可,不需要 curl 命令
装好后关掉终端再打开,重新运行同一条命令,应显示版本号:
node -v安装一次,所有需要 Node.js 的工具都能用
在 VS Code 中以 Agent 模式打开 AI 聊天
试一试
用 KruschStack 告诉我你能帮我做什么,然后做一件给我看✓ 如果 VS Code 说正在使用 KruschStack,或回答中出现 KruschStack 的工具名称,就表示连接成功
1 项可选设置(不填也能用)
上面的命令不填这些也能用。想调整时再按开发者的说明添加。
KRUSCH_WORKSPACE_ROOT目标项目工作区的根目录查看英文原文
Target project workspace root directory
说明为自动翻译,变量名保持原样;不确定时请查看原文。
菜单名称已于 2026年11月11日 对照 VS Code 帮助页面核实 · 你的界面可能因版本略有不同
开发者专用:终端命令和 JSON 设置
安装在电脑上
Claude Code
claude mcp add --scope user krusch-stack -- npx -y krusch-stack mcp --profile coding-agentClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"krusch-stack": {
"command": "npx",
"args": [
"-y",
"krusch-stack",
"mcp",
"--profile",
"coding-agent"
]
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"krusch-stack": {
"command": "npx",
"args": [
"-y",
"krusch-stack",
"mcp",
"--profile",
"coding-agent"
]
}
}
}VS Code (mcp.json)
{
"servers": {
"krusch-stack": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"krusch-stack",
"mcp",
"--profile",
"coding-agent"
]
}
}
}需要你填写的值
KRUSCH_WORKSPACE_ROOTenv目标项目工作区的根目录查看英文原文
Target project workspace root directory
说明为自动翻译,变量名保持原样;不确定时请查看原文。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
一览
哪些应用可以使用它
依据这个服务器的连接方式和各应用自己的文档,检查于 2026年11月10日。
在你的电脑上运行,适用于
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
它能做什么
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
基础检查i
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月19日
- ✓ 通过
作者与仓库一致
注册名称已通过域名 krusch.dev 验证(注册中心会核实域名所有权)
- ✓ 通过
仍在维护
代码最后更新于今天
- ✓ 通过
有许可证
使用 MIT
- – 不适用
端点有响应
它在你的电脑上运行,没有互联网端点
- – 不适用
使用 OAuth 登录
在你的电脑上运行,改用本地设置
- … 尚未检查
工具描述中没有隐藏指令
它在你的电脑上运行;我们只能读取互联网端点的工具列表
已公开的漏洞(OSV.dev)
OSV.dev 中没有 krusch-stack@1.3.1 的记录
只检查这个版本的包本身,不包括所有依赖 · 检查于 2026年11月19日
作者:申请重新检查或报告信息错误
给作者:在 README 中加徽章
如果你是作者,可把这段代码贴到 README。徽章会链接回本页。
[](https://mcp.popnx.com/en/servers/krusch-stack)讨论
提问、分享技巧或报告无法使用。按“有帮助”数量排序。
用户评价
还没有评价
与“开发者工具”中的其他服务器比较i
- 星标数多于此分类中其他 6116 个服务器的 81%
- 发布到注册中心的时间比此分类中其他 6116 个服务器的 99% 更新
- 基础检查结果等于或优于此分类中其他 6116 个服务器的 99%
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
常见问题
KruschStack 安全吗?
它在 3 项适用的基础检查中通过了 3 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
它需要哪些密钥或代码?
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在我的电脑上运行还是在云端?
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
它还在维护吗?
GitHub 仓库最后更新于今天,最新版本(1.3.1)于今天进入注册中心。
哪些应用可以使用它?
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
有什么可以替代它?
同一分类中有:GitDiagram, Appllama, Cloudflare MCP, Omnara, Repowise
功能相近的其他选择
同一分类、其他作者、命令已通过检查。官方的排在前面,再按星标排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
GitDiagram
Architecture diagrams, explanations and Mermaid source for public GitHub repositories.
Appllama
Study screens, flows and paywalls from top-earning iOS apps, then build from what wins.
Omnara
Deploy durable AI agents with Omnara, an open-source managed-agent platform.
Repowise
Codebase intelligence for AI coding agents: graph, git history, docs, decisions, code health.
| 本项 KruschStack | GitDiagram | Appllama | Cloudflare MCP | Omnara | Repowise | |
|---|---|---|---|---|---|---|
| 运行位置 | 需要安装在电脑上 | 在云端运行,无需安装 | 在云端运行,无需安装 | 在云端运行,无需安装 | 在云端运行,无需安装 | 云端或安装在电脑上都可以 |
| 需要密钥 | 否 | 否 | 否 | 否 | 否 | 否 |
| 可在 Claude 中按 + 添加 | 否 | 否 | 否 | 是 | 否 | 否 |
| 基础检查 | 3/3 | 4/4 | 4/4 | 4/4 | 4/4 | 5/5 |
| 许可证 | MIT | MIT | MIT | Apache-2.0 | Apache-2.0 | AGPL-3.0 |
| 价格 | 登记中未列出费用 | 登记中未列出费用 | 登记中未列出费用 | 登记中未列出费用 | 登记中未列出费用 | 登记中未列出费用 |
作者的 README
打开 README
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
KruschStack (krusch-stack)
krusch-stack (v1.3.0) is a local, zero-cloud control plane for AI coding agents (Claude Code, Cursor, Windsurf, Antigravity, Codex). It gives your agent persistent cross-session memory, Turn-0 workspace grounding, spin-loop protection, and two-phase commit (2PC) file safety backed by Node 22 native node:sqlite.
⚡ 30-Second Value Demo & Progressive Quickstart (Zero API Keys, Zero Docker)
Run the offline 3-act walkthrough in <1s inside an isolated temporary SQLite workspace before touching any project files:
npx krusch-stack demo
KruschStack v1.3.0 -- 3-Act Zero-Cloud Control Plane Walkthrough (<1s, node:sqlite WAL)
[Act 1] Cross-Session Memory Session 1 saved invariant #1 ("Never use eval() in payment modules" @ src/pay.js) Session 2 cold-restarted -> hydrated invariant #1 (SHA-256 drift_status: VALID) [Act 2] Unsafe Edit, Spin-Loop & Output Defect Refusal
- Proposed eval(payload) edit -> BLOCKED_INVARIANT (0 bytes written to disk)
- Repeated failing tool call -> BLOCK_SPIN_LOOP (0 duplicate executions)
- Emitted raw np.float64(0.015) -> REJECT_OUTPUT_DEFECT (caught before user reply) [Act 3] Verified 2PC Atomic Apply Staged unified diff -> write-ahead journal -> POSIX atomic rename -> APPLIED (src/pay.js)
Result: PASS (3/3 acts verified offline in 48ms)
Install Into Your Workspace
# 1. Configure Claude Code, Cursor, Windsurf & Antigravity (defaults to lean 19-tool coding-agent profile)
npx krusch-stack init
2. Verify Node >= 22, SQLite WAL health, and all 21 control-plane tables
npx krusch-stack doctor
3. Inspect any recent block, memoized read, or 2PC commit ("Why did the agent block that?")
npx krusch-stack explain
Prefer letting your coding agent set it up for you? Paste this prompt into Claude Code, Codex, Cursor, Windsurf, or Antigravity:
Read https://raw.githubusercontent.com/kruschdev/krusch-stack/main/INSTALL.md and set up krusch-stack on this machine.
Opinionated Profiles (Pick Only What You Need)
| Profile Flag | Tools Exposed | Approx. Schema Budget | Best For & Included Capabilities |
|---|---|---|---|
--profile memory-only | 5 tools | ~350 tokens | Persistent Memory Only: Decisions, invariants, pre-commit nudge, and SHA-256 line-span drift checks (krusch-context-mcp). |
--profile coding-agent | 19 tools *(Default for init)* | ~1,450 tokens | Daily Coding Agents: Persistent memory + AST symbol/call-graph search (krusch-git) + 2PC staged file harness (+ krusch-grounded-harness in --modular mode). |
--profile core | 27 tools | ~2,100 tokens | Backend & Systems Engineering: Adds bounded OS PageMemory (krusch-fs) and <25µs L1-L3 Cascade Router. |
--profile full | 39 tools *(Default for mcp/serve)* | ~3,100 tokens (~600 w/ --defer-tools) | Full Ecosystem: Adds Frontend Design templates and Workspace Docs RAG (--include-extended or --modular adds the 23 extension tools; --defer-tools compresses any profile by -80.67% schema tokens via BM25 deferral). |
Need custom composition or Docker? Use npx krusch-stack mcp --components context,git,harness, npx krusch-stack init --modular (dedicated per-pillar MCP entries), or docker compose up -d (http://127.0.0.1:3780/health + companion PostgreSQL 16 db/init.sql).
📘 Focused 3-Minute Guides & Community:
- [Adding Reliable Memory to Cursor and Claude Code in One Command](docs/guides/adding-memory-to-cursor-and-claude-code.md) (
--profile memory-only, 5 verbs, SHA-256 span drift vs. staleCLAUDE.md)
- [Why Two-Phase Commit (2PC) for Agent File Writes](docs/guides/why-2pc-for-agent-file-writes.md) (staging unified diffs, pre-commit invariants, and
<32msSIGKILL-safe journal recovery)
- [GitHub Discussions](https://github.com/kruschdev/krusch-stack/discussions) (questions, local GPU setups, and benchmark reproductions)
🎬 Optional Watch: 100-Second Narrated Product Tour (1080p)
▶️ [Stream 1080p HD Product Tour (`01:40`, with audio)](https://krusch.dev/assets/video/krusch-stack-tour.mp4) | [Interactive Player on `krusch.dev`](https://krusch.dev/#video-krusch-stack) | [Local MP4](docs/video/krusch-stack-tour.mp4) | [WebM](docs/video/krusch-stack-tour.webm) | [Closed Captions (`.srt`)](docs/video/krusch-stack-tour.srt)
🩹 Before vs. After: Three Agent Failure Modes Fixed
1. Agent Amnesia & Stale Rules
- Before (`CLAUDE.md` / Stateless Chat): Your agent forgets last week's architectural constraint in a new session, or blindly follows an outdated rule in
CLAUDE.mdlong after the underlying function moved or was refactored. - After (`krusch-context-mcp`):
krusch_context_retrievehydrates token-budgeted decisions and invariants at Turn 1, verifies anchored code spans via SHA-256 (VALID,HEALED_LINE_SHIFT, orSTALE_DRIFT), and tracks explicit supersession lineage viakrusch_context_revise.
2. Unsafe Direct File Writes & Torn Multi-File Edits
- Before (Unchecked `write_file`): Your agent overwrites 4 files directly on disk, introduces a banned pattern or breaks imports, and leaves a half-written repository if the process crashes or hits a timeout mid-edit.
- After (`krusch-harness` 2PC):
krusch_runaudits proposed edits against active invariants (krusch_context_nudge) before touching disk and stages a unified diff in SQLite.krusch_apply_diffcommits changes through a<32mswrite-ahead journal (harness_apply_journal) and POSIX atomic rename with automaticSIGKILLstartup rollback.
3. Tool Spam, Spin Loops & CSV "NA" Traps
- Before (Raw Tool Loop): A local or cloud model burns 15 turns re-reading the same file with identical arguments, misparses literal
"NA"(North America) in a CSV asNaN, or leaksnp.float64(0.015)/ unresolved placeholders into its final answer. - After (`grounded-harness`): Injects zero-LLM Turn-0 workspace schema hazards (
keep_default_na=False, JSONnull/[]wildcards, SQLite DDL), memoizes repeat reads (MEMOIZED_PRIOR_READ), blocks spin loops in0re-executions (BLOCK_SPIN_LOOP), and gates objective output defects (REJECT_OUTPUT_DEFECT) while costing0extra turns when clean.
🧩 Adopt One Piece Without the Rest (Zero Ecosystem Lock-In)
You do not have to buy into all 10 pillars to use krusch-stack. Every subsystem ships as an independent MIT repository and as an isolated ESM subpath export:
| Capability Needed | Standalone Repository | Single-Piece CLI or ESM Import via krusch-stack |
|---|---|---|
| Persistent Memory Only (`5` MCP verbs) | kruschdev/krusch-context-mcp | npx krusch-stack mcp --profile memory-only |
| Turn-0 Grounding & Spin-Loop Gate | kruschdev/grounded-harness | import { createGroundedHarnessEngine } from 'krusch-stack/grounded-harness' |
| 2PC File & Tool-Action Harness | kruschdev/krusch-coding-harness | import { createActionHarnessEngine } from 'krusch-stack/action-harness' |
| Reusable Runtime Bricks (Node/TS & Python) | kruschdev/toolkit | @krusch/toolkit (40 JS/TS bricks) & krusch_toolkit (Python 3.11+) |
🏗️ Architecture: Deterministic Control Plane vs. Interchangeable LLM
krusch-stack keeps state, safety invariants, schema hazards, and atomic file commits inside a deterministic local database (node:sqlite WAL by default, with 21-table PostgreSQL 16 + pgvector DDL parity in db/init.sql), so you can swap local open-weights models and frontier cloud APIs without losing memory or safety guarantees:
IDE / Agent Host (Claude Code, Cursor, Windsurf, Antigravity, Codex, HTTP Client)
│ ▼ ┌───────────────────────────────────────────────────────────────────────────────────┐ │ DETERMINISTIC LOCAL CONTROL PLANE (SQLite WAL / PostgreSQL 16 DDL) │ │ │ │ ┌─────────────────────────┐ ┌─────────────────────────┐ ┌───────────────────┐ │ │ │ 1. Working Memory │ │ 2. AST & Graph Context │ │ 3. Grounded Gate │ │ │ │ • Invariants & lineage │ │ • Symbol & call graphs │ │ • Turn-0 schemas │ │ │ │ • SHA-256 span drift │ │ • Bounded OS PageMemory │ │ • Spin-loop block │ │ │ │ • git blame co-change │ │ • Temporal ADR graph │ │ • Defect-only gate│ │ │ └─────────────────────────┘ └─────────────────────────┘ └───────────────────┘ │ │ ┌─────────────────────────────────────────┐ ┌────────────────────────────────┐ │ │ │ 4. Two-Phase Commit (2PC) Harness │ │ 5. Observability & Routing │ │ │ │ • Pre-disk invariant nudge │ │ • explain & GET /telemetry │ │ │ │ • <32ms write-ahead journal + rename │ │ • <25µs L1-L3 Cascade Router │ │ │ └─────────────────────────────────────────┘ └────────────────────────────────┘ │ └────────────────────────────────────────┬──────────────────────────────────────────┘ │ Bounded prompts + verified tool calls ▼ ┌───────────────────────────────────────────────────────────────────────────────────┐ │ INTERCHANGEABLE LLM WORKER │ │ Local 12-48 GB Ollama ($0.00: Gemma 4 31B, Qwen3-Coder 30B MoE, 7B/8B) │ │ or Frontier Cloud API (Gemini 4 Argon, Claude, GPT, DeepSeek, OpenRouter) │ └───────────────────────────────────────────────────────────────────────────────────┘
Complete 10-Pillar Reference Table
| Capability (Internal Module Name) | Standalone Repo | Key Tools & Subpath Surfaces | Default Storage |
|---|---|---|---|
| Persistent Working Memory & Git Alignment (`krusch-context-mcp`) | krusch-context-mcp | krusch_context_retrieve, remember, revise, nudge (git blame -w -M + co-change), health (krusch-stack/git-alignment) | node:sqlite (db/init.sql PG parity) |
| Codebase AST & Call-Graph Search (`krusch-git`) | krusch-git | krusch_git_search_symbols, file_symbols, dependency_graph, semantic_search (2-hop git_edges bridge), read_tree, read_blob, list_repos | node:sqlite (db/init.sql PG parity) |
| Bounded OS Page Memory (`krusch-fs`) | krusch-fs-mcp | krusch_fs_locate, search, page_tree, read_page, remember_on_page, sync (.env KEYS_ONLY redaction + secret shield) | node:sqlite (db/init.sql PG parity) |
| Temporal Graph Context (`hydrascope`) | [`Hyd