Skip to main content

Multi-language structural code graph builder — 13 tree-sitter parsers + Neo4j writer

Project description

codesteward-graph

Multi-language structural code graph builder — parses source repositories into LexicalNode + edge data and writes to Neo4j.

Part of the Codesteward MCP project. For full documentation, setup guides, and the MCP server, see the main repository.

What it does

  • Parses 13 languages via tree-sitter AST (TypeScript, JavaScript, Python, Java, Go, Rust, PHP, C#, Kotlin, Scala, C, C++); COBOL via regex
  • Extracts functions, classes, imports, call graphs, inheritance chains, and auth guard annotations (GUARDED_BY / PROTECTED_BY edges)
  • Resolves cross-file call relationships in a single post-parse pass
  • Writes to Neo4j with tenant + repo namespacing; operates in stub mode without Neo4j

Install

# Core languages (TypeScript, JavaScript, Python, Java)
uv add "codesteward-graph[graph]"

# All 14 languages
uv add "codesteward-graph[graph-all]"

# Without tree-sitter (COBOL only; all other parsers will raise ImportError)
uv add codesteward-graph

Quick usage

import asyncio
from codesteward.engine.graph_builder import GraphBuilder

async def main():
    builder = GraphBuilder()          # stub mode — no Neo4j
    summary = await builder.build_graph(
        repo_path="/path/to/repo",
        tenant_id="local",
        repo_id="my-repo",
    )
    print(summary)

asyncio.run(main())

License

BSD 3-Clause — Copyright (c) 2026, bitkaio LLC

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

codesteward_graph-0.2.0.tar.gz (43.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

codesteward_graph-0.2.0-py3-none-any.whl (61.9 kB view details)

Uploaded Python 3

File details

Details for the file codesteward_graph-0.2.0.tar.gz.

File metadata

  • Download URL: codesteward_graph-0.2.0.tar.gz
  • Upload date:
  • Size: 43.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for codesteward_graph-0.2.0.tar.gz
Algorithm Hash digest
SHA256 f0d032bde28b517735676d8f6f5fe51ec242fc58a72bb5d0178ae91b33b018a5
MD5 0ed0c62ff644a9fe8937af4621e9db82
BLAKE2b-256 90711b6dfca67ae7d966a9ca54b58c1df0ac0c46531c91832f6b9657da7cdb0b

See more details on using hashes here.

Provenance

The following attestation bundles were made for codesteward_graph-0.2.0.tar.gz:

Publisher: release.yml on bitkaio/codesteward

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file codesteward_graph-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for codesteward_graph-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 34f4fcdc6e1b30cbc9e54ce17c8a37947ef9038b71e9d22401bb3e5893fcafbb
MD5 cc3c523560c0f31c47ed5a4d5550265e
BLAKE2b-256 73307c2f971c71f69ad6564fd748f2b9f7af74cd67d50089271e97d0e1ce0882

See more details on using hashes here.

Provenance

The following attestation bundles were made for codesteward_graph-0.2.0-py3-none-any.whl:

Publisher: release.yml on bitkaio/codesteward

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page