PragmaGraph
Deterministic observed-fact graphs for code, docs, artifacts, and Git history.
GitHub · PyPI · Website · Docs · X
PragmaGraph v0.0.12 is a standalone public alpha package for facts that can be
reproduced from source. It indexes local code, documents, artifacts, and Git
history into deterministic graph snapshots without asking an LLM to decide what
is true.
Read This First
- Read At a Glance to confirm the observed-fact boundary.
- Follow Install and Quick Start to index and query one local project.
- Read How It Fits before mixing observed facts with durable memory or a graph viewer.
- Use the Ten Minute Tour for the complete workspace, viewer, store, certification, and refresh path.
- Read Development before changing the package.
Trust and Brand Safety
- Official GitHub: https://github.com/OpenMinion/pragmagraph
- Official website: https://www.openminion.com
- Official X account: https://x.com/OpenMinion
PragmaGraph has no official token, coin, NFT, airdrop, staking program, treasury product, or investment offering. Any claim otherwise is unauthorized and should be treated as a scam.
At a Glance
| Package | pragmagraph |
| Current line | v0.0.12 public alpha |
| Python | 3.11+ |
| Best fit | Reproducible source, document, artifact, and Git facts |
| Primary artifact | Deterministic JSON graph snapshot |
| Main surfaces | Index, query, refresh, report, export, workspace, service, and viewer adapter |
| Not the claim | Semantic inference, durable agent memory, or hosted graph infrastructure |
Practical rule: if a parser, static analyzer, document walker, Git reader, or explicit command can reproduce a fact without an LLM, it belongs in PragmaGraph.
Common Commands
python3.11 -m pip install pragmagraph
pragmagraph-smoke --json
pragmagraph quickstart . --serve --open --json
pragmagraph investigate --config .pragmagraph/workspace.toml "RuntimeGraph" --json
pragmagraph freshness --config .pragmagraph/workspace.toml --json
Install
Install the base package:
python3.11 -m pip install pragmagraph
Optional precise parser and native SCIP support:
python3.11 -m pip install "pragmagraph[precise]"
python3.11 -m pip install "pragmagraph[scip]"
For a source checkout:
python3.11 -m pip install -e ".[dev]"
python3.11 -m pip install -e ".[precise]"
python3.11 -m pip install -e ".[scip]"
Quick Start
External Consumer Quickstart
Start with the one-command local loop:
pragmagraph quickstart . --serve --open --json
quickstart writes .pragmagraph/workspace.toml when it does not already
exist, refreshes the local snapshot, materializes the local store, and opens a
visual investigation panel through GraphFakos.
When you want the lower-level steps explicitly, run the same pieces yourself.
Index a local project:
pragmagraph index . \
--out .pragmagraph/snapshot.json \
--namespace demo \
--git-identity-mode name_email_hash \
--json
Query the snapshot:
pragmagraph query .pragmagraph/snapshot.json "RuntimeGraph" --json
pragmagraph investigate .pragmagraph/snapshot.json "RuntimeGraph" --json
pragmagraph investigate --config .pragmagraph/workspace.toml "RuntimeGraph" --json
Refresh it explicitly:
pragmagraph refresh . \
--out .pragmagraph/snapshot.json \
--manifest-out .pragmagraph/manifest.json \
--namespace demo \
--json
Run the self-contained package example:
python3.11 examples/quickstart_flow.py
For a reusable workspace and local visual graph, continue with
docs/ten-minute-tour.md.
Command Map
The quickstart above is the shortest useful path. The grouped commands below are the advanced surfaces behind the same observed-fact workflow.
| Need | Recommended command | Notes |
|---|---|---|
| First local run | pragmagraph quickstart . --json |
Creates config, workspace, store, and first visual artifact |
| Search facts | pragmagraph investigate --config .pragmagraph/workspace.toml RuntimeGraph --json |
Compact structural bundle for one question |
| Open the visual view again | pragmagraph demo-ui --config .pragmagraph/workspace.toml --serve --open --json |
Reuses the workspace config |
| Check freshness | pragmagraph freshness --config .pragmagraph/workspace.toml --json |
Explicit status, no background watcher |
| Package or receive a graph | graph-pack-export, graph-pack-verify, graph-pack-review |
Advanced portability surface |
| Serve repeated local queries | serve, mcp-smoke, pragmagraph-server |
Advanced service/MCP surface |
Inspect, export, and benchmark a snapshot when you need lower-level artifacts:
pragmagraph report .pragmagraph/snapshot.json --json
pragmagraph export .pragmagraph/snapshot.json --format mermaid
pragmagraph graphify-export .pragmagraph/snapshot.json > graphify.json
pragmagraph graph-pack-verify .pragmagraph/graph-pack --json
pragmagraph graph-pack-review .pragmagraph/graph-pack \
--snapshot-out .pragmagraph/imported-snapshot.json \
--store-out .pragmagraph/imported.sqlite \
--json
pragmagraph ui-preview \
--screen graph_pack_review \
--graph-pack .pragmagraph/graph-pack \
--snapshot-out .pragmagraph/imported-snapshot.json \
--store-out .pragmagraph/imported.sqlite \
--json
pragmagraph benchmark .
graph-pack-verify is the receiver-side trust check for a portable pack: it
validates manifest counts, file checksums, optional store parity, and optional
evidence JSON before import.
graph-pack-review adds a receive-side summary and copyable import command
without mutating files.
Use investigate when you want a compact navigation bundle for one static
question. It returns matched nodes, structural match reasons, direct
neighborhood facts, path facts when two matches exist, freshness facts, and
copyable next commands. Presets include file_map, symbol_map, doc_links,
changed_recently, orphans, and high_degree; all remain lexical or
structural, with no LLM ranking or intent inference.
Open the same investigation as a local visual panel:
pragmagraph ui-preview \
--screen investigation \
--snapshot .pragmagraph/snapshot.json \
--query RuntimeGraph \
--preset symbol_map \
--serve \
--open
Follow observed Git provenance:
pragmagraph git-commits-for-path .pragmagraph/snapshot.json src/app.py --json
pragmagraph git-files-for-commit .pragmagraph/snapshot.json abc123def456 --json
pragmagraph git-commits-for-symbol \
.pragmagraph/snapshot.json RuntimeGraph --json
Import precise SCIP facts explicitly:
pragmagraph precise-import index.scip \
--root . --namespace demo --out precise-snapshot.json --json
Operate a workspace or materialized store:
pragmagraph workspace-init . \
--workspace .pragmagraph/workspace --json
pragmagraph workspace-query .pragmagraph/workspace RuntimeGraph --json
pragmagraph store-search-explain \
.pragmagraph/graph.sqlite RuntimeGraph --json
pragmagraph store-backends --probe-optional --json
pragmagraph certify .pragmagraph/snapshot.json --json
pragmagraph serve --snapshot .pragmagraph/snapshot.json
pragmagraph mcp-smoke --snapshot .pragmagraph/snapshot.json --json
What PragmaGraph Provides
- immutable graph DTOs for nodes, edges, source references, queries, and snapshots
- deterministic indexing for code, Markdown, selected configuration, schemas, manifests, CI workflows, and Git history
- explicit refresh manifests, structural deltas, and CI comparisons
- neighborhood, path, reverse-edge, impact, explanation, and query-plan helpers
- JSON and SQLite-backed storage interchange
- reports plus JSON, Markdown, DOT, Mermaid, Graphify, and SCIP-oriented interchange
- multi-root composition and exact cross-repository symbol resolution
- workspace, local service, read-only MCP, benchmark, certification, and privacy surfaces
- a provider adapter for GraphFakos and package-owned visual preview commands
What PragmaGraph Does Not Provide
- LLM-based fact extraction or semantic judgment
- durable agent memory, memory promotion, or preference storage
- implicit background watchers, Git hooks, cron jobs, or daemons
- hosted HTTP, WebSocket, indexing, or collaboration infrastructure
- OpenMinion orchestration or prompt-context merging
- ownership of GraphFakos viewer behavior
- automatic execution of external indexers
Refresh, ingestion, and precise-fact import are explicit. The package does not silently install tools, start background workers, or perform network discovery.
How It Fits
| Package | Responsibility |
|---|---|
| OpenMinion | Agent runtime, turns, tools, sessions, and orchestration |
| SophiaGraph | Durable memory, provenance, lifecycle, and workspace knowledge |
| PragmaGraph | Deterministic observed facts from source and artifacts |
| GraphFakos | Provider-neutral graph viewing and interaction contracts |
SophiaGraph may cite a PragmaGraph fact as evidence. PragmaGraph does not store SophiaGraph’s summaries, preferences, judgments, or memory decisions. GraphFakos may render a PragmaGraph projection but does not become the owner of the source facts.
Workspaces, Interchange, and Viewing
Create a reusable workspace configuration:
pragmagraph workspace-config-init . \
--out .pragmagraph/workspace.toml \
--workspace .pragmagraph/workspace \
--label demo \
--namespace demo \
--ui-screen project_health \
--json
Open the visual graph:
pragmagraph demo-ui \
--config .pragmagraph/workspace.toml \
--serve --open --json
PragmaGraph owns observed-fact semantics and the adapter payload. GraphFakos
owns the reusable viewer shell. See
docs/viewer-contract.md and
docs/storage-interchange.md before integrating
either boundary.
Stable consumer owners are exposed under pragmagraph.workspace and
pragmagraph.ui; use those package surfaces rather than reaching into CLI
implementation modules.
Development
make dev-install
make hooks-install
make check
Use make release-check before publishing or changing the documented public
surface.
Docs and Release
docs/README.md: package documentation mapdocs/ten-minute-tour.md: shortest complete tourdocs/standalone-product-cycle.md: end-to-end local product cycledocs/refresh-operations.md: refresh and status contractsdocs/service-mode.md: local service boundarydocs/workspace-mode.md: persistent workspace contractdocs/source-tree-owner-map.md: code owners and package layoutAPI_COMPATIBILITY.md: supported import rootsRELEASING.md: release and publish flow
License and Brand-use Boundary
- Source code license: Apache-2.0
- Brand/trademark grant: none
The license grants rights to use, modify, and redistribute the code. It does not grant rights to present a fork, clone, token, website, or social account as the official PragmaGraph or OpenMinion project or imply affiliation or endorsement.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pragmagraph-0.0.12.tar.gz.
File metadata
- Download URL: pragmagraph-0.0.12.tar.gz
- Upload date:
- Size: 300.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
20529a9d97a718ec3cb7f81594f580bf6b305deec2b2781d45aff0bcebe88237
|
|
| MD5 |
823aac7c43645d3ae9386895180fd28f
|
|
| BLAKE2b-256 |
74f99663c9ce41cf3a47984691cfeca0596b39f62c7c7e3b6b5a6f0e04213363
|
Provenance
The following attestation bundles were made for pragmagraph-0.0.12.tar.gz:
Publisher:
release.yml on openminion/pragmagraph
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pragmagraph-0.0.12.tar.gz -
Subject digest:
20529a9d97a718ec3cb7f81594f580bf6b305deec2b2781d45aff0bcebe88237 - Sigstore transparency entry: 2568246896
- Sigstore integration time:
-
Permalink:
openminion/pragmagraph@fc37799cdc3c67d39fee695f6360a6dc3be2a914 -
Branch / Tag:
refs/tags/v0.0.12 - Owner: https://github.com/openminion
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@fc37799cdc3c67d39fee695f6360a6dc3be2a914 -
Trigger Event:
push
-
Statement type:
File details
Details for the file pragmagraph-0.0.12-py3-none-any.whl.
File metadata
- Download URL: pragmagraph-0.0.12-py3-none-any.whl
- Upload date:
- Size: 230.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ca75b1b571614bf2341283d02e2678244b74752b4baea014b9e88bf0f654c2c7
|
|
| MD5 |
df835098d79c801a9a24bfad129462a5
|
|
| BLAKE2b-256 |
64357f6c67ccd5efc114fa70973b350d2ba10d2f3f09ad3cc05b39b6901e7eb7
|
Provenance
The following attestation bundles were made for pragmagraph-0.0.12-py3-none-any.whl:
Publisher:
release.yml on openminion/pragmagraph
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pragmagraph-0.0.12-py3-none-any.whl -
Subject digest:
ca75b1b571614bf2341283d02e2678244b74752b4baea014b9e88bf0f654c2c7 - Sigstore transparency entry: 2568246921
- Sigstore integration time:
-
Permalink:
openminion/pragmagraph@fc37799cdc3c67d39fee695f6360a6dc3be2a914 -
Branch / Tag:
refs/tags/v0.0.12 - Owner: https://github.com/openminion
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@fc37799cdc3c67d39fee695f6360a6dc3be2a914 -
Trigger Event:
push
-
Statement type: