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
Query your architecture, not your files.
The dev intelligence layer that turns any codebase into a self-learning knowledge graph. 2,000+ tests. 396 modules compiled. 201 skills. Zero cloud required.
Website · PyPI · GitHub · Changelog
3 commands. That's it.
pip install graqle[api]
graq init
graq reason "what breaks if I change auth?"3 nodes activated. 500 tokens. 5 seconds. $0.0003.
Not 60 files. Not 50,000 tokens. Not $0.15. Not guessing.
What Graqle does
Your AI assistant reads files one at a time. It doesn't understand your architecture — it reads text.
Graqle builds a knowledge graph of your entire codebase. Every module becomes a reasoning agent. When you ask a question, only the relevant nodes activate, reason about their domain, and synthesize one answer.
pip install graqle → graq init → Knowledge Graph
│
┌──────────┬──────────────┼──────────┐
▼ ▼ ▼ ▼
CLI Python SDK MCP Server Studio UI
(terminal) (scripts) (any IDE) (dashboard)The graph is the product. Your machine, your API keys, your data.
What's new in v0.26.0
Intelligence Compilation
Graqle now compiles your knowledge graph into actionable intelligence:
graq compile # Compile intelligence from your graphThis produces a .graqle/intelligence/ directory with:
396 module packets — risk scores, impact radius, consumers, dependencies
135 insights — warnings, suggestions, connections, superlatives
Risk heatmap data — LOW/MEDIUM/HIGH/CRITICAL per module
CLAUDE.md auto-injection — your AI assistant learns your architecture automatically
Governance Gate (DRACE)
Every reasoning session is scored on 5 axes: Data quality, Relevance, Accuracy, Completeness, Evidence strength.
graq verify # Pre-commit governance checkHash-chained audit trails (tamper-evident)
Evidence chains linking decisions to source
Scope gates preventing out-of-domain reasoning
Auto-recompile when intelligence goes stale
Multi-Signal Activation (Neo4j)
Gate + Rerank: semantic score gates everything, topology signals only amplify.
final = semantic × (1 + authority + memory + link + freshness)Max amplification: 1.45×. An irrelevant node can never sneak through.
Self-Learning Loop
graq learn → graph grows → git commit → auto-recompile → CLAUDE.md updates → AI gets smarterThe graph remembers which nodes produce useful answers. Gets better with every query.
Studio Dashboards
6 new visual dashboards: Intelligence, Governance, Health, Learning, Control, Share.
Works with everything
IDE / Tool | How | Setup |
Claude Code | MCP server + CLAUDE.md |
|
Cursor | MCP server + .cursorrules |
|
VS Code + Copilot | MCP server |
|
Windsurf | MCP server + .windsurfrules |
|
JetBrains / Codex / Replit | CLI + SDK |
|
CI/CD pipelines | Python SDK |
|
No cloud account. No infrastructure. No config files to write.
CLI
# Reasoning
graq reason "what depends on auth?" # Graph reasoning
graq context auth-lambda # 500-token focused context
graq inspect --stats # Graph statistics
graq "what is safe to refactor?" # Natural language (auto-routed)
# Build & compile
graq init # Scan repo, build graph, wire IDE
graq scan repo . # Rescan codebase
graq scan all . # Code + JSON + documents
graq compile # Compile intelligence layer
graq verify # Governance gate + staleness check
# Teach
graq learn node "auth-service" --type SERVICE
graq learn edge "Payments" "auth" -r DEPENDS_ON
graq learn discover --from "auth-service" # Auto-discover connections
graq learn doc architecture.pdf # Document ingestion
# Studio & server
graq studio # Launch visual dashboard
graq serve # Start REST API
graq doctor # Health checkPython SDK
from graqle.core.graph import Graqle
from graqle.backends.api import AnthropicBackend
graph = Graqle.from_json("graqle.json")
graph.set_default_backend(
AnthropicBackend(model="claude-sonnet-4-6")
)
result = graph.reason(
"What services depend on auth?",
max_rounds=3,
strategy="top_k"
)
print(result.answer)
print(f"Confidence: {result.confidence:.0%}")
print(f"Cost: ${result.cost_usd:.4f}")MCP Tools
Available automatically in Claude Code, Cursor, VS Code, and Windsurf after graq init:
Tool | What it does |
| 500-token focused context (replaces reading entire files) |
| Multi-agent graph reasoning |
| "What breaks if I change X?" |
| Pre-change safety check |
| Surface past mistakes before you repeat them |
| Teach the graph new knowledge |
| Graph structure inspection |
| Hot-reload graph without restarting |
Studio Dashboard
graq studio # Opens http://127.0.0.1:8888/studio/Page | What you see |
Intelligence | Risk heatmap, module packets, 135 insights, impact matrix |
Governance | DRACE radar chart, audit timeline, evidence chains, shareable badge |
Health | Streak calendar, improvement suggestions, graph health trends |
Learning | Skill activations, domain breakdown, recompile history |
Graph Explorer | Interactive force-directed graph with intelligence overlay |
Control | Multi-instance management, cross-repo insights |
14 backends, one config line
# graqle.yaml
model:
backend: groq # or: anthropic, openai, bedrock, gemini, ollama, deepseek, mistral, ...Backend | Cost | Setup |
Ollama | $0 (local) |
|
Anthropic | ~$0.001/query |
|
OpenAI | ~$0.001/query |
|
AWS Bedrock | AWS pricing |
|
Google Gemini | ~$0.0001/query |
|
Groq | ~$0.0005/query |
|
DeepSeek | ~$0.0001/query |
|
Mistral | ~$0.0002/query |
|
Together | ~$0.0005/query |
|
OpenRouter | Varies |
|
Fireworks | ~$0.0005/query |
|
Cohere | ~$0.0003/query |
|
vLLM | Your GPU |
|
llama.cpp | $0 (CPU) |
|
Task-based routing
Different models for different tasks. Fast models for lookups, smart models for reasoning:
routing:
default_provider: groq
rules:
- task: reason
provider: anthropic
model: claude-sonnet-4-6
- task: context
provider: groq
model: llama-3.1-8b-instantAuto-scaling backend
Graqle starts with JSON/NetworkX (zero deps). When your graph grows:
Graph size | Backend | What happens |
< 5,000 nodes | JSON/NetworkX | Default. Instant. Zero config. |
5,000+ nodes | Neo4j | Auto-recommended. Migration handled. |
Team/Enterprise | Neo4j + GDS | Vector search, PageRank, Adamic-Adar proximity. |
pip install graqle[neo4j] # Adds neo4j driver — same API, just fasterDocument-aware intelligence
Graqle connects code to documents to configs in one graph.
Source | Formats | What it extracts |
Code | Python, TypeScript, JavaScript, Go, Rust, Java | Functions, classes, modules, imports, call graphs |
Documents | PDF, DOCX, PPTX, XLSX, Markdown, TXT | Sections, decisions, requirements, stakeholders |
JSON | package.json, OpenAPI, tsconfig, CDK, SAM | Dependencies, endpoints, infrastructure resources |
Auto-linking: exact match, fuzzy match, semantic match, LLM-assisted. Cross-source deduplication. Contradiction detection.
The numbers
Metric | Graqle | Reading files |
Tokens per query | 500 | 50,000 |
Cost per query | $0.0003 | $0.15 |
Time to answer | <5 seconds | 20 minutes |
Tests passing | 2,000+ | — |
Modules compiled | 396 | — |
Skills available | 201 | — |
Installation
pip install graqle # Minimal (no API keys needed)
pip install graqle[api] # + Anthropic, OpenAI, Bedrock
pip install graqle[docs] # + PDF, DOCX, PPTX, XLSX
pip install graqle[neo4j] # + Neo4j graph database
pip install graqle[all] # EverythingExtra | What it adds |
| anthropic, openai, boto3 |
| pdfplumber, python-docx, python-pptx, openpyxl |
| neo4j driver |
| sentence-transformers |
| torch, transformers, peft, vllm |
| llama-cpp-python |
| fastapi, uvicorn, jinja2 |
| pytest, ruff, mypy, coverage |
15 Innovations (Patent EP26162901.8)
Every innovation is free under Apache 2.0.
# | Innovation | Why it matters |
1 | Chunk-level semantic scoring | Finds the exact function, not the file |
2 | Zero-cost transparency | See which agents activated and why |
3 | Convergent message passing | Agents discuss until they agree |
4 | Backend fallback chain | Auto-switches models on failure |
5 | Topology-aware synthesis | Answers reflect graph structure |
6 | 3-layer governance (DRACE) | Domain boundaries on every output |
7 | Formula-based compliance | Quantitative scores, not pass/fail |
8 | Auto-generate ontologies | OWL+SHACL from your codebase |
9 | Adaptive activation | 3 nodes for simple, 50 for complex |
10 | Cross-query learning | Remembers what works for which patterns |
11 | Per-entity model selection | Security nodes use capable models |
12 | Retrieval-to-reasoning pipeline | Documents → graph reasoning |
13 | Hybrid skill matching | Regex precision + semantic flexibility |
14 | Neo4j vector + graph search | Embedding similarity + graph traversal in one query |
15 | Activation memory | Persistent cross-session node effectiveness |
Quick start
# Python project
pip install graqle[api] && cd my-project && graq init
graq reason "what depends on the database module?"
# With documents
pip install graqle[api,docs]
graq scan all . && graq scan wait
graq reason "what does the architecture doc say about auth?"
# Claude Code (auto-wired)
graq init # Claude Code now has graq_context, graq_reason, graq_impact, etc.
# Cursor
graq init --ide cursorPricing
Free for individuals. Always.
Free ($0) | Pro ($19/mo) | Team ($29/dev/mo) | |
All 15 innovations | Yes | Yes | Yes |
CLI + SDK + MCP + API | Yes | Yes | Yes |
14 LLM backends | Yes | Yes | Yes |
Document scanning | Yes | Yes | Yes |
Intelligence compilation | Yes | Yes | Yes |
Studio dashboards | Basic | Full | Full + team |
Governance (DRACE) | Current session | 30-session history | Unlimited |
Audit trails | 3 sessions | 20 sessions | Unlimited |
Health streaks | 7 days | Full year | Team streaks |
Commercial use | Yes | Yes | Yes |
Citation
@article{kumar2026graqle,
title = {Graqle: Governed Intelligence through Graph-of-Agents Reasoning
over Knowledge Graph Topologies with Semantic SHACL Validation},
author = {Kumar, Harish},
year = {2026},
institution = {Quantamix Solutions B.V.},
note = {European Patent Application EP26162901.8},
url = {https://github.com/quantamixsol/graqle}
}Contributing
git clone https://github.com/quantamixsol/graqle
cd graqle
pip install -e ".[dev]"
pytest # 2,000+ testsSee CONTRIBUTING.md for development setup, testing, and PR guidelines.
License
Apache 2.0 — use it commercially, modify it freely, keep the attribution.