
Graqle
io.github.quantamixsol由 GitHub 账号 quantamixsol 发布v0.87.1更新于 Oct 26, 2026
Graph-powered codebase reasoning, impact analysis, and governance tools over MCP.
概览
Graqle 把代码、文档与政策构建成本地知识图谱,让助手查询图谱,并在执行动作前做决策保障检查。
- 可以做什么
- 扫描代码仓库、文档、政策与架构决策记录,汇入同一张知识图谱
- 基于图谱回答问题,并给出置信度与实际引用的来源
- 记录并复用跨会话保留的知识与决策
- 评估代理拟执行的动作,返回 EXECUTE、REPLAN、HOLD、REJECT 或 ESCALATE 及理由
- 为每次决策生成带签名、哈希链的溯源记录,可供审计导出
- 通过本地服务器与轻量中继,让多个代理会话共享同一张图谱
- 适用场景
- 适合助手需要跨会话、有来源依据地理解某个代码库或政策集的场景,也适合在代理执行动作前必须按政策与证据进行核验的流程。团队在同一项目上运行多个代理、希望共用一张图谱时同样适用。
- 运行要求
- 以 PyPI 包 graqle 在本地安装(Python、pip);处理 PDF、DOCX、PPTX、XLSX 需安装可选依赖。决策门默认关闭,启用需设置 GRAQLE_DAG_ENABLED 及多项 GRAQLE_DAG_* 配置、ed25519 签名密钥与覆盖策略文件。共享服务器模式需配置文件与允许的根目录;远程成员需 SSH 隧道或带令牌的 HTTPS。
安装
在 SourceWeft 中
- 打开 控制台中的 Graqle,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
GraQle
Give your AI agents a memory of how your organisation works - and check every decision before they act.
[PyPI] [Python 3.10+] [Model Agnostic] [Local-first]
Website · Quickstart · Decision Assurance · Shared memory · Changelog
What GraQle does
- Remembers. Turns your code, documents, policies and decisions into one connected knowledge graph that lasts beyond a chat session.
- Checks. Before an agent acts, the Decision Assurance Gate checks the action and answers EXECUTE, REPLAN, HOLD, REJECT or ESCALATE - with the reason and a signed record.
- Shares. One graph serves a whole team of agents - Claude Code, Cursor, Codex, Copilot - each with its own permissions and its own files.
Works with any model: Anthropic, OpenAI, AWS Bedrock, Ollama, Gemini and more - or fully offline.
Quickstart
Connect it to your AI tool (Claude Code, Cursor, Windsurf, VS Code):
PDF, DOCX, PPTX and XLSX: pip install "graqle[docs]".
Check every decision
Most AI tools give you one confidence number. GraQle asks separate questions before an agent acts - and a good answer to one never hides a failed answer to another:
- Allowed? Policy valid, actor authorised, evidence current, arguments exactly the approved ones. Any "no" stops the action.
- Consistent? Contradicting facts are tracked in the graph, and a change updates every decision that depends on it.
- Sure enough? Confidence is measured per dimension, not blended into one score.
- On track? Unreliable step sequences are sent back to replan within a retry budget.
- Who approves? Authority is checked for the action's impact level.
Every decision leaves a sealed record: a signed, hash-chained provenance event, exportable to W3C PROV-O and checkable with SHACL, so an auditor can verify it with standard tools. The gate is off by default: installing or upgrading GraQle changes nothing until you switch it on.
Turn it on, per project:
- Set
GRAQLE_DAG_ENABLED=truein the environment where GraQle runs (or in your.env). - Provide the required settings. GraQle ships no thresholds, salts or keys: you choose them. Start from the
GRAQLE_DAG_*section of.env.exampleand fill in every placeholder (salt, thresholds, signing key id and version, calibrator version, and the others listed there). Put the values in the environment, or in a private file atGRAQLE_DAG_SECRETS_PATH(default.graqle/graqle_secrets.yaml); the environment wins. - Start as usual. If a required value is missing, GraQle raises a configuration error that names it the first time the gate settings load. There is no silent fallback.
Check it: python -c "from graqle.assurance.settings import is_dag_enabled; print(is_dag_enabled())" prints True.
To switch it off again, unset the flag or set it to false. Details: operating the gate.
One memory for a team of agents
Several agents on one codebase usually means several copies of the same graph in memory. GraQle can hold it once:
- Less memory. Each session runs a small relay instead of a full copy (measured on a 20,000-node graph: 3 separate servers 687 MB, shared server + 3 relays 493 MB).
- Learning is shared at once across all sessions.
- Each session keeps its own gates and its own files - file work happens on each user's own machine.
- Teammates connect over an SSH tunnel, or HTTPS with a token.
- Several projects, separate graphs on one server (Team and Enterprise).
Turn on the decision gate (opt-in, baseline tier)
The decision gate is off unless GRAQLE_DAG_ENABLED is set; with it off nothing changes. Turn it on:
- Create an ed25519 signing key (PEM, mode
0600) and a key manifest that lists its public key (graqle.assurance.key_manifest_store.save_manifest), plus a coverage policy file. - Set
GRAQLE_DAG_ENABLED=1and the requiredGRAQLE_DAG_*settings:SIGNING_KEY_ID,SIGNING_KEY_VERSION,SIGNING_KEY_PATH,COVERAGE_POLICY_PATH,CONFIG_SALT,CAP_VALUE,HG05_POISONING_THRESHOLD,HG07_MATERIALITY_THRESHOLD,CALIBRATOR_VERSION,TRAJECTORY_ESTIMATOR,MAX_RETRY_BUDGET,CIRCUIT_BREAKER_WINDOW,SCOPE_KEY_FIELDS_REF,MERGE_PRIORITY_REF. There are no built-in values for these; you choose them. - Register the actors that may take MEDIUM-risk calls (for example
GRAQLE_RBAC_ACTORS_JSON). An actor with no registered role is closed by hard gate HG-06. - Start your process. The packaged default runtime provider is registered at start-up. If it
cannot be built the process fails at start-up with an error naming
register_runtime; supply your own provider withgraqle.assurance.adapter.register_runtime(provider)if you need one.
Baseline-tier decisions are governed by rule DAG-RT-BASELINE-ADMIT. No projection score,
reliability or residual risk is computed or recorded for them. EXECUTE only when risk is LOW,
impact is zero and all hard gates pass; anything else is HOLD (DAG-RT-NO-EVIDENCE) or, when a
hard gate fails, REJECT. MEDIUM and above routing requires explicit configuration. Every decision
is written as a signed, hash-chained provenance event; if it cannot be written the call is not
executed.
This is a policy-scoped authorisation at evidence tier BASELINE. It is not informed by the graph
and is not a safety verification. Evidence-fed scoring arrives in 0.88 (CR-DAG-088-1).
python scripts/dag_wheel_e2e.py runs these steps against the built wheel in a clean virtualenv.
Trust
- Local-first, no telemetry. The graph is a file you control; nothing phones home.
- Secure by default. The server needs authentication unless you explicitly switch on local development mode; graph uploads can never silently overwrite each other.
- Signed releases. Sigstore-signed wheels, CycloneDX SBOM, reproducible builds.
- Regulated work. Audit trail and evidence exports for your own EU AI Act file - GraQle provides evidence, it does not claim to make you compliant. Details
Report vulnerabilities to [email protected] · SECURITY.md
Editions
Recent releases
- v0.87.0 — Decision Assurance Gate: five-answer decisions, contradiction tracking, confidence per dimension, replanning, signed provenance records.
- v0.86.0 — One memory for a team of agents: shared server, thin relay, per-session gates, file work on each user's machine; secure-by-default server.
Patent & license
Core methods are patent-pending: EP26167849.4, EP26162901.8 and EP26166054.2. Source is fully auditable under the GraQle License - see LICENSE.
来源:README.md,提交 623c693
工具
0版本历史
7- v0.87.1最新Oct 25, 2026
- v0.87.0Oct 23, 2026
- v0.86.0Oct 21, 2026
- v0.85.1Oct 10, 2026
- v0.85.0Sep 27, 2026
- v0.84.1Sep 23, 2026
- v0.83.0Sep 16, 2026
评分
已满足适用检查项的 40%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
请在仓库或注册中心条目中声明许可证。