Skip to main content

NeuG-codescope

Code property graph (CPG) construction and LLM-based vulnerability audit tool for C / Java / Python / Rust, backed by the neug graph store. The importable package name is codegraph.

Installation

Requires Python >= 3.10.

# Full install (all language frontends + LLM loop dependencies)
pip install "neug-codescope[all]"

# Minimal install (neug + networkx + requests)
pip install neug-codescope

# Optional extras: c (libclang), java (tree-sitter + tree-sitter-java),
#                  rust (tree-sitter-rust), llm (openai)
pip install "neug-codescope[c,rust]"

If libclang cannot be located automatically, set the LIBCLANG_PATH environment variable (only needed by the C frontend). The Python frontend uses the standard library ast and needs no extra dependencies.

Usage

Every entry point is available both as a console script and via python -m:

console script module purpose
codescope-audit codegraph.llmxcpg_neug.file_audit Two-stage audit (tier1 summary graph + on-demand tier2 detailed CPG)
codescope-repo-audit codegraph.llmxcpg_neug.repo_audit Whole-repo CPG + multi-round LLM/Cypher audit
codescope-pipeline codegraph.llmxcpg_neug.pipeline LLMxCPG three-stage pipeline
codescope-detect codegraph.llmxcpg_neug.detect LLM vulnerability detection on slices
codescope-depgraph-bridge codegraph.integration.depgraph_bridge dashscope-depgraph x file_audit integration

Example (file_audit tool mode):

# Build the tier1 function-level summary graph
codescope-audit audit -i <project-dir> --out <output-dir> --build-only --skip-cpg

# Then drive step by step from the audited project's root directory
cd <project-dir>
codescope-audit overview --db-path <output-dir>/audit.neug
codescope-audit build "func:<relpath>:<name>" --db-path <output-dir>/audit.neug
codescope-audit query "MATCH (s:Symbol) RETURN s.node_id LIMIT 10" --db-path <output-dir>/audit.neug

For the full workflow (tier1/tier2 design, dataflow bug taxonomy, report formats), see SKILL.md in the source repository.

Development

pip install -e ".[all]"          # Editable install
python -m tests.smoke_test       # Smoke test (run from the project root)

Metadata

Release files for NeuG-codescope 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for NeuG-codescope 0.1.0
File Size Uploaded
neug_codescope-0.1.0.tar.gz 181.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for NeuG-codescope 0.1.0
File Interpreter ABI Platform
neug_codescope-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 395.0 kB

Release files / neug_codescope-0.1.0.tar.gz

Download URL neug_codescope-0.1.0.tar.gz
Size 181.0 kB
Tags Source
SHA-256 checksum
How to use checksums
2f51d6879e117d12d21e6710d41e69fa053684f5c04ebde3655ced1f25594c0e
BLAKE2b-256 checksum
How to use checksums
35de6c6640ce54c9ca4b23b9f95e1334e23cdb60206d1599d7245d4d50e4ae47
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Release files / neug_codescope-0.1.0-py3-none-any.whl

Download URL neug_codescope-0.1.0-py3-none-any.whl
Size 214.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
aecad31c8d83373e7e1188d76c8b95eede50a4ab970f95fec22c224d873c9ada
BLAKE2b-256 checksum
How to use checksums
1044ace224074291b04e0a54afc60a89fc9d0800d3a4a7239dd34b66904db9a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page