Graqle

io.github.quantamixsol由 GitHub 帳號 quantamixsol 發布v0.87.1更新於 Oct 26, 2026

Graph-powered codebase reasoning, impact analysis, and governance tools over MCP.

概覽

AI 產生的概覽

Graqle 將程式碼、文件與政策建成本地知識圖譜,讓助理查詢圖譜,並在執行動作前做決策保障檢查。

可以做什麼
  • 掃描程式碼儲存庫、文件、政策與架構決策記錄,彙整進同一張知識圖譜
  • 依據圖譜回答問題,並附上信心程度與實際引用的來源
  • 記錄並重複使用可跨工作階段保留的知識與決策
  • 評估代理擬執行的動作,回傳 EXECUTE、REPLAN、HOLD、REJECT 或 ESCALATE 及理由
  • 為每次決策產生附簽章、雜湊鏈的溯源紀錄,可供稽核匯出
  • 透過本機伺服器與輕量中繼,讓多個代理工作階段共用同一張圖譜
適用情境
適合助理需要跨工作階段、有來源依據地理解某個程式碼庫或政策集的場合,也適合在代理執行動作前必須依政策與證據核驗的流程。團隊在同一專案上執行多個代理、希望共用一張圖譜時同樣適用。
執行需求
以 PyPI 套件 graqle 在本機安裝(Python、pip);處理 PDF、DOCX、PPTX、XLSX 需安裝選用相依套件。決策閘門預設關閉,啟用需設定 GRAQLE_DAG_ENABLED 及多項 GRAQLE_DAG_* 設定、ed25519 簽章金鑰與覆蓋策略檔案。共用伺服器模式需設定檔與允許的根目錄;遠端成員需 SSH 通道或帶權杖的 HTTPS。
安裝前請注意
啟用決策閘門需自行提供簽章金鑰、鹽值、門檻與角色設定,缺少必要值會直接報設定錯誤,不會默默回退。決策會寫成附簽章的溯源事件,若無法寫入則不執行該呼叫。此閘門被說明為基線層級的策略範圍授權,並非安全驗證。雲端同步與多專案共用屬於付費版本。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Graqle,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

[GraQle — persistent organisational intelligence for AI agents.]

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]

bash
pip install graqle

Website · Quickstart · Decision Assurance · Shared memory · Changelog


What GraQle does

  1. Remembers. Turns your code, documents, policies and decisions into one connected knowledge graph that lasts beyond a chat session.
  2. 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.
  3. 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

bash
pip install graqle
graq scan docs ./policies          # documents, policies, ADRs -> graphgraq scan repo .                   # code -> the same graphgraq learn knowledge "vendor DPA must be signed before any data access"graq run "what approval is needed for a large refund?"# -> answer + confidence + the exact sources it used

Connect it to your AI tool (Claude Code, Cursor, Windsurf, VS Code):

bash
graq init        # detects your IDE and wires GraQle in

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.
AnswerMeaning
EXECUTEEverything checks out. Impossible after any failed check or error.
REPLANMake a better plan and try again.
HOLDSomething important is missing; wait for it.
REJECTNot allowed, or contradicted by the evidence.
ESCALATEA human decides.
python
from graqle.assurance.gate import DecisionAssuranceGate
verdict = gate.evaluate(candidate, ctx)verdict.outcome         # EXECUTE | REPLAN | HOLD | REJECT | ESCALATEverdict.decisive_rule   # which rule decidedverdict.reason_codes    # why

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:

  1. Set GRAQLE_DAG_ENABLED=true in the environment where GraQle runs (or in your .env).
  2. Provide the required settings. GraQle ships no thresholds, salts or keys: you choose them. Start from the GRAQLE_DAG_* section of .env.example and 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 at GRAQLE_DAG_SECRETS_PATH (default .graqle/graqle_secrets.yaml); the environment wins.
  3. 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:

bash
# where the graph livesgraq mcp serve --transport http --port 8765 --config graqle.yaml --allowed-roots /path/to/projects
# in each agent session (.mcp.json){ "mcpServers": { "graqle": { "command": "graq", "args": ["mcp", "relay", "--url", "http://127.0.0.1:8765"] } } }
  • 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:

  1. 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.
  2. Set GRAQLE_DAG_ENABLED=1 and the required GRAQLE_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.
  3. 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.
  4. 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 with graqle.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

What you get
FreeKnowledge graph, all core tools, governance gates, Decision Assurance Gate, shared server for one project
Pro — $19/moCloud sync, priority models, hosted transparency-log relay
Team — $29/dev/moShared graphs across projects (multi-project server), team lessons, audit-log retention
EnterpriseOn-premise, custom backends, support SLAs - contact us

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.

Full changelog


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
SourceWeft 曾在隔離沙箱中以無憑證方式啟動該軟體包一次,以列出其工具,但未能完成:該軟體包類型無法在沙箱中執行。

版本歷史

7
  1. v0.87.1最新Oct 25, 2026
  2. v0.87.0Oct 23, 2026
  3. v0.86.0Oct 21, 2026
  4. v0.85.1Oct 10, 2026
  5. v0.85.0Sep 27, 2026
  6. v0.84.1Sep 23, 2026
  7. v0.83.0Sep 16, 2026

評分

已滿足適用檢查項的 40%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

    請在儲存庫或註冊中心條目中宣告授權條款。