Graph-first intermediate language for auditable LLM-generated graph queries and updates
Project description
CogLang
CogLang is a graph-first intermediate language for LLM-generated graph queries and updates, with auditable execution under explicit host contracts.
Status:
- stable language release
- reference implementation
- host bridge v0.x
Current public language release: v1.1.0. The current Python distribution version is 1.1.1.
LLM Discovery Snapshot
When to use CogLang:
- You want an LLM to generate graph operations that can be inspected before execution.
- You need errors to stay explicit values instead of becoming hidden control-flow failures.
- You need replayable traces for what an agent intended, submitted, and actually executed.
- You want host-side profile and capability checks before execution.
When not to use CogLang:
- You need a general-purpose programming language.
- You want a schema definition language.
- You simply need the native query language of a specific graph database in its native setting.
Short runnable examples:
coglang execute 'Query[n_, Equal[Get[n_, "category"], "Person"]]'
coglang execute 'IfFound[Traverse["einstein", "born_in"], x_, x_, "unknown"]'
coglang demo
Machine-readable project summaries:
Language Policy
CogLang's public documentation target is English-first.
New public-facing documentation should be written in English first. Chinese translations may be added as separate companion files, preferably with a .zh-CN.md suffix. If an English document and a translation disagree, the English document, executable conformance suite, and implementation tests take precedence.
First Reading Path
If this is your first time reading CogLang, start here:
- CogLang_Quickstart_v1_1_0.md Build the first mental model, learn the most common expression patterns, and avoid early footguns.
- CogLang_Specification_v1_1_0_Draft.md Read the language boundary, representation model, and core operator semantics.
- CogLang_Profiles_and_Capabilities_v1_1_0.md
Understand
Baseline,Enhanced, profile availability, and capability boundaries. - CogLang_Conformance_Suite_v1_1_0.md Check executable examples and regression boundaries.
- CogLang_Standalone_Install_and_Release_Guide_v0_1.md Use this when you need standalone install, local validation, or release-facing checks.
If you only have 10 minutes:
- Run
coglang demo. - Read the Quickstart.
- Skim the release notes to understand what is promised and what is not.
Install And Verify
From the stable release artifact:
pip install coglang
coglang info
coglang release-check
coglang execute 'Equal[1, 1]'
For packaged smoke and conformance checks, install the development extra so pytest is available:
pip install "coglang[dev]"
coglang smoke
coglang conformance smoke
From a checkout for development:
pip install -e ".[dev]"
coglang bundle
coglang smoke
coglang demo
coglang conformance --level smoke
The public CLI entry point is coglang.
The current minimal public command surface includes:
parsecanonicalizevalidateexecuteconformancereplinfomanifestbundledoctorvocabexamplessmokedemohost-demorelease-check
If help output includes additional reference commands, they do not automatically become part of the stable public surface.
What To Learn First
Start with four boundaries:
canonical textis the stable language form;readable renderis only a display layer.Create,Update, andDeleteexpress language-level write intent; durable submission is a host responsibility.Reserveddoes not mean production-ready by default.- Explicitly qualified extension operators are not yet the first teaching surface for everyday users.
Public Documentation Set
Core documents:
- CogLang_Quickstart_v1_1_0.md
- CogLang_Specification_v1_1_0_Draft.md
- CogLang_Conformance_Suite_v1_1_0.md
- CogLang_Profiles_and_Capabilities_v1_1_0.md
- CogLang_Operator_Catalog_v1_1_0.md
Integration and release-facing documents:
- CogLang_Host_Runtime_Contract_v0_1.md
- CogLang_Standalone_Install_and_Release_Guide_v0_1.md
- CogLang_Release_Notes_v1_1_1.md
- CogLang_Release_Notes_v1_1_0.md
- CogLang_Contribution_Guide_v0_1.md
- ROADMAP.md
- MAINTENANCE.md
Chinese companion translations:
- CogLang_Quickstart_v1_1_0.zh-CN.md
- CogLang_Specification_v1_1_0_Draft.zh-CN.md
- CogLang_Conformance_Suite_v1_1_0.zh-CN.md
- CogLang_Standalone_Install_and_Release_Guide_v0_1.zh-CN.md
- CogLang_Release_Notes_v1_1_1.zh-CN.md
- CogLang_Release_Notes_v1_1_0.zh-CN.md
- CogLang_Contribution_Guide_v0_1.zh-CN.md
- CogLang_Host_Runtime_Contract_v0_1.zh-CN.md
- CogLang_Profiles_and_Capabilities_v1_1_0.zh-CN.md
- CogLang_Operator_Catalog_v1_1_0.zh-CN.md
Machine-readable and release-supporting files:
- llms.txt
- llms-full.txt
- CogLang_Open_Source_Boundary_v0_1.json
- CogLang_Minimal_CI_Baseline_v0_1.json
- CogLang_Public_Repo_Extract_Manifest_v0_1.json
Contribution Direction
The highest-value contributions are currently:
- conformance examples that pin down existing semantics
- documentation fixes that improve the first-run experience
- host integration examples that keep language semantics separate from host policy
- small CLI or packaging improvements that improve repeatable validation
For local test development, install the development extras:
pip install -e ".[dev]"
python -m pytest
Lower-priority contributions:
- expanding the language surface before current contracts are fully tested
- adding host-specific policy into the core language specification
- turning the project positioning into competitive claims without reproducible public evidence
Current Direction
Use the project documents this way:
- CogLang_Release_Notes_v1_1_1.md: latest Python package patch notes.
- CogLang_Release_Notes_v1_1_0.md: stable language release commitments.
- ROADMAP.md: what is prioritized or being explored.
- MAINTENANCE.md: how the project may slow down, freeze, transfer, or archive.
The roadmap is intentionally not a release contract and does not promise dates.
Project details
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 coglang-1.1.1.tar.gz.
File metadata
- Download URL: coglang-1.1.1.tar.gz
- Upload date:
- Size: 258.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e5051ba0998c4a500dc88489e2864857828591f76eb537feec80ce88e7d1afd0
|
|
| MD5 |
241a2bbddce979b6835762da94385263
|
|
| BLAKE2b-256 |
18b804a9df55c6d5d64b6c1d9cca134823a898f55fbe84b65e6a6947b9219442
|
Provenance
The following attestation bundles were made for coglang-1.1.1.tar.gz:
Publisher:
publish.yml on jaysinailabs/coglang
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
coglang-1.1.1.tar.gz -
Subject digest:
e5051ba0998c4a500dc88489e2864857828591f76eb537feec80ce88e7d1afd0 - Sigstore transparency entry: 1397101927
- Sigstore integration time:
-
Permalink:
jaysinailabs/coglang@2782b6021b9dbef0580b87a5d82f8661df0f2995 -
Branch / Tag:
refs/tags/v1.1.1 - Owner: https://github.com/jaysinailabs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@2782b6021b9dbef0580b87a5d82f8661df0f2995 -
Trigger Event:
push
-
Statement type:
File details
Details for the file coglang-1.1.1-py3-none-any.whl.
File metadata
- Download URL: coglang-1.1.1-py3-none-any.whl
- Upload date:
- Size: 296.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
642995ff1dc55400c49a0e16502ba3f4678fd2fa965ad069c5d122afc1b5df8d
|
|
| MD5 |
13ea18b024d6d98a23f4afe57a5e8e44
|
|
| BLAKE2b-256 |
8ab596d0f8e833dc45f5d08773ecdb263937a13ce36228ded2a55c5ac56091d6
|
Provenance
The following attestation bundles were made for coglang-1.1.1-py3-none-any.whl:
Publisher:
publish.yml on jaysinailabs/coglang
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
coglang-1.1.1-py3-none-any.whl -
Subject digest:
642995ff1dc55400c49a0e16502ba3f4678fd2fa965ad069c5d122afc1b5df8d - Sigstore transparency entry: 1397101933
- Sigstore integration time:
-
Permalink:
jaysinailabs/coglang@2782b6021b9dbef0580b87a5d82f8661df0f2995 -
Branch / Tag:
refs/tags/v1.1.1 - Owner: https://github.com/jaysinailabs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@2782b6021b9dbef0580b87a5d82f8661df0f2995 -
Trigger Event:
push
-
Statement type: