G

graphflow

github.com/Roarpeng/GraphFlow

v2.3.0 会话与记忆 可执行外部程序以 shell 执行命令发起网络请求

GraphFlow 把 **记忆 + hooks + skills** 做成可移植的 MCP 表面(Cursor、Claude Code、DeepSeek Harness、15+ Agent),让无状态模型变成可长期工作的编码助手。它**不是编排执行器**:先压缩上下文、再规划,执行交给宿主 Agent。纯 TypeScript/Node,CLI + MCP + VS Code 扩展,本地优先,无需 API Key——索引/压缩/召回不

作者原文(英文)

Local-first memory & context harness for coding agents

中文简介由 DeepSeek 模型翻译,仅供参考。

memory-harnesscontext-harnesslocal-firstmcpknowledge-graphcoding-agentscursorclaude-code
分类
session
发布
2026-10-12
版本
v2.3.0

检测报告

关注度高。命中了不少能力模式,其中可能有需要留意的。逐条看下面的清单。
2高关注5需留意4一般13未命中
高关注需留意一般

能力清单

  • 可执行外部程序spawns-processes高关注18 处命中
    • scripts/safe-postinstall.cjs:5const { spawnSync } = require("node:child_process");
    • …egrations/agent-mcp-installer.js:36const node_child_process_1 = require("node:child_process");
    • dist/audit/baseline.js:13const node_child_process_1 = require("node:child_process");
    • …rations/dsh-harness-installer.js:42const node_child_process_1 = require("node:child_process");
    • 看它调用哪些程序。调用本机已有的工具是常见做法。
  • 以 shell 执行命令shell-exec高关注2 处命中
    • …t/learning/outcome-reconciler.js:73const result = (0, node_child_process_1.spawnSync)(command, { shell: true, cwd: workspaceRoot, timeout: timeoutMs });
    • …grations/agent-profiles/utils.js:46const wslHome = require("child_process").execSync(cmd, { encoding: "utf8" }).trim();
    • 看命令字符串是拼出来的还是写死的。拼接用户输入才是真正的风险。
  • 发起网络请求network需留意16 处命中
    • …g/provider-adapters/anthropic.js:21const response = await fetch(`${baseUrl}/v1/messages`, {
    • …ing/provider-adapters/bailian.js:21const response = await fetch(`${baseUrl}/chat/completions`, {
    • …ng/provider-adapters/deepseek.js:57const response = await fetch(`${baseUrl}/chat/completions`, {
    • …ting/provider-adapters/doubao.js:21const response = await fetch(`${baseUrl}/chat/completions`, {
    • 看请求发往哪些域名。发往作者自己的后端是常见做法。
  • 写入文件writes-files需留意13 处命中
    • scripts/safe-postinstall.cjs:35writeFileSync(VERSION_FILE, version, "utf8");
    • scripts/safe-postinstall.cjs:131mkdirSync(skillDestDir, { recursive: true });
    • scripts/safe-postinstall.cjs:132copyFileSync(skillSourceFile, skillDestFile);
    • scripts/safe-postinstall.cjs:328mkdirSync(destDir, { recursive: true });
    • 看写入位置。写自己的配置目录是正常的,写系统目录不是。
  • R013 清单可疑manifest-obfuscation需留意2 处命中
    • 安装脚本: postinstall, prepare
    • 清单被刻意写乱时,加载行为会难以预测。看原文而不是看渲染结果。
  • 可终止进程kills-processes需留意1 处命中
    • dist/utils/file-lock.js:83process.kill(pid, 0);
    • 看它终止的是自己启动的进程,还是按名字匹配到的任意进程。
  • 动态执行代码dynamic-code需留意1 处命中
    • README.md:322- **SWE-bench-style**: [SWE-BENCH-RESULTS.md](benchmarks/SWE-BENCH-RESULTS.md) — self-built 12-instance context-readines…
    • 看 eval / new Function 的入参来自哪里。常量字符串和用户输入是两回事。
  • 接触凭据或密钥credentials一般645 处命中
    • …egrations/agent-mcp-installer.js:2360"- API Key:填环境变量名(如 `DEEPSEEK_API_KEY`)、`${DEEPSEEK_API_KEY}`、或直接 `sk-...`",
    • …g/provider-adapters/anthropic.js:9const apiKey = process.env.ANTHROPIC_API_KEY;
    • …g/provider-adapters/anthropic.js:13if (!apiKey) {
    • …g/provider-adapters/anthropic.js:15throw new Error("ANTHROPIC_API_KEY is required");
    • 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
  • 读取环境变量reads-env一般225 处命中
    • scripts/safe-postinstall.cjs:56const appData = process.env.APPDATA || (isWindows ? join(home, "AppData", "Roaming") : "");
    • scripts/safe-postinstall.cjs:57const localAppData = process.env.LOCALAPPDATA || (isWindows ? join(home, "AppData", "Local") : "");
    • scripts/safe-postinstall.cjs:209if (process.env.npm_config_global === "true") {
    • scripts/safe-postinstall.cjs:214const globalPrefix = process.env.npm_config_prefix || "";
    • 环境变量里常混有密钥。看它是否把整个 env 都读走。
  • 动态加载模块dynamic-import一般115 处命中
    • scripts/safe-postinstall.cjs:189const { installMcpToDetectedAgents } = require(${JSON.stringify(installerPath)});
    • dist/audit/audit.js:42load: async () => (await import("./checkers/dependency-checker.js")).createDependencyChecker(),
    • dist/audit/audit.js:46load: async () => (await import("./checkers/doc-consistency-checker.js")).createDocConsistencyChecker(),
    • dist/audit/audit.js:50load: async () => (await import("./checkers/orphan-checker.js")).createOrphanChecker(),
    • 动态导入本身无害,但会让依赖关系难以静态审阅。
  • 读取文件reads-files一般58 处命中
    • scripts/safe-postinstall.cjs:20if (existsSync(VERSION_FILE)) {
    • scripts/safe-postinstall.cjs:21return readFileSync(VERSION_FILE, "utf8").trim();
    • scripts/safe-postinstall.cjs:69return markers.some((m) => existsSync(m));
    • scripts/safe-postinstall.cjs:77if (existsSync(join(appData, "Trae"))) {
    • 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
逐条扫描明细
能力标识关注度命中次数
可执行外部程序spawns-processes高关注18
以 shell 执行命令shell-exec高关注2
发起网络请求network需留意16
写入文件writes-files需留意13
R013 清单可疑manifest-obfuscation需留意2
可终止进程kills-processes需留意1
动态执行代码dynamic-code需留意1
接触凭据或密钥credentials一般645
读取环境变量reads-env一般225
动态加载模块dynamic-import一般115
读取文件reads-files一般58

这份报告的口径

扫描读的是包里的源码,全程不执行第三方代码。 本次读了 648 个文件,扫描于 2026-10-14。 命中次数只说明源码里出现过这类调用,不说明行为好坏——一个插件读写文件 500 次和 1 次 都会被记为「读取文件」。这是能力清单,不是信任评分,也不是安全结论: 没扫出来的能力可能只是写法没被规则覆盖。

依赖安全公告

这个插件声明的依赖中,有 5 条已公开的安全公告 (最高等级:中):

等级依赖包编号摘要
中@modelcontextprotocol/sdkCVE-2026-25536@modelcontextprotocol/sdk has cross-client data leak via shared server/transport instance reuse
修复版本:1.26.0 详情 →
中@modelcontextprotocol/sdkCVE-2026-104850MCP TypeScript SDK: OAuth client could send credentials to an authorization server chosen by the MCP server
修复版本:1.31.0, 2.2.0 详情 →
未分级@modelcontextprotocol/sdkCVE-2026-0621Anthropic's MCP TypeScript SDK has a ReDoS vulnerability
修复版本:1.25.2 详情 →
未分级@modelcontextprotocol/sdkCVE-2025-66414Model Context Protocol (MCP) TypeScript SDK does not enable DNS rebinding protection by default
修复版本:1.24.0 详情 →
未分级ajvCVE-2025-69873ajv has ReDoS when using `$data` option
修复版本:6.14.0, 8.18.0 详情 →

查询的是依赖声明范围的下界(如 ^4.2.0 查 4.2.0), 不是实际安装到的版本。真正装的时候如果解析到了修复版本,就不受影响—— 所以这是「可能受影响」,不是「这个插件有漏洞」。数据来自 OSV.dev。

← 返回全部插件