graqle
Connects with Git workflows to trigger automatic intelligence recompilation and maintain audit trails of architectural changes.
Supports Google Gemini as a backend for performing low-cost semantic queries and architectural reasoning.
Extracts architectural metadata, including functions, classes, and call graphs, from JavaScript source files to build the knowledge graph.
Provides integration for JetBrains IDEs through a CLI and Python SDK for developer intelligence and architecture querying.
Parses Markdown documentation to extract decisions, requirements, and stakeholders for integration into the codebase knowledge graph.
Offers an optional Neo4j backend for high-performance graph storage, supporting large-scale codebases with vector search and proximity analysis.
Allows for local, zero-cost LLM reasoning by using Ollama as a backend provider for graph-based queries.
Leverages OpenAI models to provide sophisticated reasoning and context-aware insights about codebase architecture.
Integrates as a pre-commit governance gate using the DRACE framework to verify data quality and reasoning accuracy before code changes.
Deeply analyzes Python codebases to extract module structures and dependencies while offering a native SDK for programmatic graph interaction.
Compatible with the Replit environment via CLI and SDK for managing and querying architecture-level intelligence.
Analyzes Rust source code to identify module hierarchies and dependency patterns for inclusion in the architecture knowledge graph.
Parses TypeScript code to extract detailed architectural insights, including module imports and class relationships.
Uses YAML for flexible server configuration and task-based routing across multiple LLM backends.
GraQle — give your AI a memory of how your organisation actually works
Turn the context your organisation already has — codebases, documents, policies, decisions and workflows — into a persistent typed knowledge graph, so Claude Code, Cursor, Copilot and other agents reason over architecture, dependencies, prior lessons and evidence instead of re-reading disconnected files every session.
Models change. Tools change. Your architecture and institutional knowledge should not.
pip install graqleWebsite · Quickstart · How it works · Governed autonomy · Regulated deployments · Changelog · VS Code Extension
Why GraQle exists
Your AI coding tool is good at generating code. It is bad at remembering.
Every session it reconstructs your system from whatever files fit in the context window. It has never read the architecture decision you made last March, the incident that made you move validation into the service layer, or the policy that says refunds above a threshold need manager approval. That knowledge exists — in your repo, your docs, your decision records, your team's heads — but it isn't connected to anything, so it can't be reasoned over.
GraQle builds that connection once and keeps it.
Architecture, not files. AI assistants see files. GraQle sees relationships, dependencies and blast radius.
Memory that compounds. Lessons, decisions and documents become durable graph nodes instead of disappearing with a chat session.
Model independence. Swap models, providers or IDEs without rebuilding the intelligence layer.
Related MCP server: NOMIK
90-second proof
pip install graqle
# 1. Scan a codebase into a typed knowledge graph
graq scan repo .
# → functions, classes, modules, imports, calls — architecture mapped in seconds
# 2. Ask an architectural question, not a file question
graq run "what breaks if I change the payment module?"
# → activates the relevant subgraph, traces cross-file call + import chains
# → returns: answer + confidence + evidence trail + active nodes
# 3. Teach it something it cannot read from code
graq learn knowledge "payment module must never call user service directly"
# → persists as a graph node. Future reasoning activates this rule.That third command is the one that compounds. It is also the one no amount of prompt engineering replaces — it requires a persistent typed graph as the substrate.
Bring in the knowledge that isn't code
pip install "graqle[docs]" # PDF / DOCX / PPTX / XLSX parsers
# Ingest architecture docs, policies, ADRs, runbooks, specs
graq scan docs ./docs
graq learn doc ./policies/ ./decisions/architecture-review.docx
# → Document + Section nodes, auto-linked to the code they describeMarkdown, text, reStructuredText and AsciiDoc parse with the base install. PDF, DOCX, PPTX and XLSX need the [docs] extra — without it those files are skipped and reported, never silently dropped.
The compounding advantage
The first time you run GraQle, it knows your codebase. After a month, it knows your patterns. After a year, it holds the architectural lessons, decisions and document context your team accumulated — and activates them on the change that is about to repeat an old mistake.
This is the part that survives model churn. When you switch from one provider to another, or from one IDE to another, the graph is unchanged. You are not re-teaching a new model what your system is; you are pointing a different model at intelligence you already own.
Own the intelligence your models and agents create. Enterprises can own their data and still lose the reasoning state accumulated inside external AI tools. The graph is a local file you control.
How it works
Scan → AST + dependency analysis builds a typed graph (functions, classes, modules, imports, calls). Documents and policies enter the same graph as Document and Section nodes, auto-linked to the code they describe.
Connect → Relationships become first-class:
IMPORTS,CALLS,DEFINES,SECTION_OF. This is what makes cross-file reasoning possible.Activate → A pre-reasoning layer scores each node for relevance, confidence and risk before the LLM runs, so the model receives the relevant subgraph instead of the whole repository.
Reason → Multiple agents debate. Outputs carry
confidence,graph_health,active_nodesand evidence pointers.Validate → Answers below the confidence floor are refused rather than guessed.
Learn → Lessons, decisions and documents become durable graph knowledge that activates on future work.
Govern & commit → When agents move from reading to writing, gates intercept write-class operations, and decisions can be cryptographically committed.
The pipeline runs through five named phases — ANCHOR → ACTIVATE → GENERATE → VALIDATE → COMMIT. Each phase is governance-gated, evidence-attached and audit-logged.
API defaults: confidence_threshold=0.65 (refusal floor), gate_threshold=0.60 (gate-status floor). Both configurable per call.
Works with the AI tools you already use
You don't need another UI. GraQle runs inside the tools your team already has.
// .mcp/config.json
{ "graqle": { "command": "graq", "args": ["mcp", "serve"] } }85 MCP tools — every operation Claude Code, Cursor, VS Code Copilot or Windsurf needs, exposed as a governed tool with confidence scores, evidence pointers and audit-trail entries. No prompt engineering, no glue code. (Each tool is also aliased kogni_* for backward compatibility.)
graq init # detects your IDE, wires the tools, writes the project constitutiongraq init renders one rulebook for every client — Claude Code → CLAUDE.md, OpenAI Codex → AGENTS.md, Cursor → .cursorrules, Windsurf → .windsurfrules — so editing it once keeps them all in sync.
Model independence
Anthropic · OpenAI · AWS Bedrock · Ollama · Gemini · Groq · DeepSeek · Together · Mistral · OpenRouter · Fireworks · Cohere · llama.cpp — plus any custom HTTP endpoint.
# graqle.yaml — smart task routing
backends:
reasoning: anthropic/claude-sonnet-4-6 # quality work
embedding: bedrock/titan-v2 # cheap + fast
summaries: ollama/llama3 # local + freeRuns fully offline with Ollama or llama.cpp. Route different task types to different providers, or race two providers and take the first useful answer. The graph is the constant; the model is a swappable input.
What teams use it for
Use case | Command |
Blast radius before a change |
|
Cross-file security audit |
|
Architecture Q&A for onboarding |
|
Institutional memory |
|
Policy + document context |
|
Pre-change safety check |
|
Combined risk read |
|
CI/CD governance gate |
|
Trusted answers
Every reasoning result carries the signals that make it inspectable rather than magical:
confidence— an opaque score between 0.0 and 1.0; below the floor, GraQle refuses instead of guessing.graph_health— whether the graph had enough connected context to answer well.active_nodes— exactly which parts of your system informed the answer.Evidence pointers — the path back to the source the claim rests on.
These are not only governance features. They are what lets a human decide whether to act on an answer.
If no LLM backend is configured, GraQle labels its output as a placeholder and does not attach a confidence score — an unconfigured install never looks like a real answer.
Governed autonomy
Reading is low-stakes. Writing and acting are not. As soon as an agent can edit files, run commands or take production actions, you need something stronger than a good prompt.
graq gate-install # one-time, project-localThis routes native write/edit/bash operations through GraQle's governance gates and adds a permissions backstop to .claude/settings.json. Plans required for risky changes. Trade-secret scanning on commits. Path-traversal hardening on subprocess capture. CG-01 through CG-20 — all on, all auditable.
Governance here is what lets you give agents more autonomy, not less. The gate is the reason a write-capable agent is a reasonable thing to run.
When your AI makes production decisions
For deployed systems, the same substrate records what your AI decided:
from graqle.governance.runtime import GovernedRuntime
gov = GovernedRuntime(salt="your-deploy-salt")
def score_application(app):
decision = model.predict(app) # your deployed AI, untouched
gov.attest( # <-- the one added line
domain="loan", model_id="credit-risk-v4",
inputs={"applicant_ref": gov.pseudonymize_ref(app.id)}, # PII-safe
output={"decision": decision.label, "reason_code": decision.reason},
)
return decisionCapture is out-of-band — 0 ms added to your write path. Records are canonicalised (RFC 8785), Merkle-rooted (RFC 6962), ed25519-signed and anchored to the public Sigstore Rekor transparency log, so any third party can verify a record without access to your infrastructure, or ours.
graqle govern serve --config graqle.yaml # continuous anchoring worker
graqle govern health # JSON snapshot for any monitor→ examples/runtime_attest_production_decisions.py
One substrate, two operating modes
Build-time (dev intelligence) | Run-time (decision attestation) | |
Governs | how your AI writes code | what your deployed AI decides |
Trigger | a code change | a production decision |
Emits | reviewed, impact-analysed, audit-logged changes | a tamper-evident, third-party-verifiable record |
Status | GA | GA |
Same graph, same evidence model, same audit substrate. Most teams start with build-time and never need the second mode — that's fine, and it's why it lives here rather than in the hero.
Enterprise trust
Local-first | The graph is a file in your project. Default operation is entirely on your machine. |
No telemetry | GraQle does not phone home, collect usage data, or send analytics. |
No code upload | Source never leaves your machine unless you explicitly log in and opt in to cloud sync — which syncs graph artefacts, never your source. |
Secret scanning | 200+ regex patterns + entropy detection + AST scan on every output candidate. |
PyPI Trusted Publishing | OIDC-only — no long-lived API tokens in our pipeline. |
Sigstore signatures | Every wheel signed by our GitHub Actions identity. Verify with |
CycloneDX SBOM | Attached to every GitHub Release. |
Reproducible builds |
|
Survive-disappearance | Production audit records anchor to public Sigstore Rekor — verifiable even if Quantamix disappears. |
→ SECURITY.md · Report vulnerabilities to security@quantamixsolutions.com
Regulated deployments
If you operate in a regulated environment, the same substrate produces compliance evidence. If you don't, you can skip this section entirely — nothing above depends on it.
GraQle is EU AI Act–aligned by design. We give your high-risk AI system the signals, audit trail, and disclosure primitives you need to satisfy your own Article 9 risk-management file — without GraQle itself being subject to the high-risk obligations. Articles 6, 9, 12, 13, 14, 15, 25, 50 became applicable on 2026-08-02.
graq compliance switch on # flips every EU-AI-Act-aware subsystem
graq compliance status # what's actually armed
graq compliance export --since 2026-08-01 --sha256-sidecar # Article 12 evidenceThree non-claims, kept legally clean:
GraQle is NOT itself a high-risk AI system (no Annex III category applies).
GraQle is NOT a GPAI provider under Article 51 (we use third-party LLMs; we don't place one on the EU market).
We provide signals, audit primitives and conformity-assessment evidence inputs. We never say compliant or certified — a CI invariant blocks any release that introduces such a field.
Beyond the EU. The evidence substrate is framework-neutral, and compliance packs are data, not code — a framework is two files (pack.yaml + schema.json), no Python and no engine change:
SOX / COSO — ships today as the
x-soxpack: internal control IDs, financial-statement assertions, reporting periods, management review.ISO/IEC 42001 — Cl. 6.2 and Cl. 9.1 mapped through the baseline-document and periodic-assessment artefacts.
GDPR —
gdpr_processor_onlyis a canonical claim limit on every record.NIST AI RMF, SOC 2, HIPAA and sector frameworks — authorable as packs today; first-party packs and cross-framework mappings are open for contribution.
The claim-limits taxonomy makes the scope of every decision explicit, so a downstream auditor can answer "what does this record not claim?" without guesswork.
→ Full Article-by-Article mapping · How to contribute a mapping
Pricing
Tier | What you get |
Free | Local graphs · core SDK · 85 MCP tools · governance gates · |
Pro — $19/mo | Cloud sync · priority models · hosted Rekor relay |
Team — $29/dev/mo | Shared graphs · team-wide lessons · audit-log retention · SOC 2 evidence pack |
Enterprise | On-prem · custom backends · dedicated support · regulated-deployment SLAs · contact us |
The free tier is real: the verifier, the runtime attestation path and the continuous anchoring worker are all in the open-source SDK.
Token economics
Activating a relevant subgraph costs fewer tokens than repeatedly feeding a model whole files. On a 50,000-node enterprise codebase, a sourced case study puts a 4-developer team at −53% against a flat-file baseline in year one, and −88% once local models carry the routine work.
Treat this as supporting evidence rather than the reason to adopt: inference prices keep falling, while context fragmentation and lost institutional knowledge do not.
→ Read the full case study — math, sources, and a snippet to re-run it on your own numbers.
Recent releases
v0.83.0 — Scheduler contract for
graq rebuild(--headless/--json, exit codes) + reasoning-quota metering.v0.75.0 — Optional EU AI Act layer, off by default, behind a tamper-evident irreversible latch.
v0.73.0 — Cost is observability, never a quality gate: reasoning never truncates to save money.
v0.72.0 — One constitution, every AI client (Claude Code, Codex, Cursor, Windsurf).
v0.62.0 —
graqle govern servecontinuous anchoring worker + health snapshot.
Patent & license
Core methods are patent-pending: EP26167849.4 (filed 2026-03-25), EP26162901.8 (CIP), and EP26166054.2 (CogniGraph divisional). The SDK source is fully auditable under the GraQle License — see LICENSE. Reimplementation of the patented methods outside this SDK requires a separate patent license.
→ github.com/quantamixsol/graqle — issues, discussions and contributions welcome.
GraQle is built by Quantamix Solutions. The intelligence that survives when the model, the agent and the interface change.
This server cannot be deployed
Maintenance
Related MCP Connectors
Code intelligence platform for AI agents. 20 tools for architecture, security & impact analysis.
Hosted code graph over MCP: exact callers, dependencies, and cross-repo blast radius for AI agents.
Deterministic context layer for your codebase: change impact, blast radius, answers with receipts.
AI-native git hosting — repos, PRs, issues, CI gates, and AI code review over MCP (60 tools).
Related MCP Servers
- AlicenseAqualityAmaintenanceFramework-aware code intelligence MCP server that builds a cross-language dependency graph from source code. 53 integrations (Laravel, Django, Rails, Spring, NestJS, Next.js, and more) across 68 languages. 100+ tools for navigation, impact analysis, refactoring, security scanning, session memory, and CI/PR reports — up to 97% token reduction.292,317 npm174MIT
- FlicenseNot gradedqualityDmaintenanceAI-native code intelligence graph that builds a persistent knowledge graph of your codebase in Neo4j and exposes it to AI assistants via MCP, enabling contextual code analysis, impact analysis, and dependency tracking.23-
- AlicenseNot gradedqualityAmaintenanceProvides code intelligence for AI coding agents by indexing repositories into a hybrid knowledge graph, enabling agents to query dependencies, impact, and context through 28 MCP tools.3Apache 2.0

NEAT MCP Serverofficial
AlicenseNot gradedqualityAmaintenanceProvides AI agents with a live architecture model of a codebase, enabling queries for root cause analysis, blast radius, and dependency traversal through MCP tools.156 npm18Apache 2.0