Skip to content

Releases: cognitx-leyton/codegraph

v0.2.0 — first public release

17 Apr 09:19
55866b1

Choose a tag to compare

First public release of cognitx-codegraph on PyPI.

pip install cognitx-codegraph

PyPI: https://pypi.org/project/cognitx-codegraph/0.2.0/

Highlights

  • TypeScript/TSX frontend — tree-sitter walker with framework detection for NestJS (controllers, injectables, modules, providers), React (components, hooks), TypeORM entities, and GraphQL operations.
  • Python frontend (Stage 1) — classes, functions, methods, imports, decorators indexed via tree-sitter-python.
  • Neo4j loader — batch writer with constraints and a language-agnostic node/edge schema.
  • Cross-file import resolution for both TS and Python.
  • CLI (codegraph): index, query, validate, wipe, repl, arch-check, init.
  • One-command onboardingcodegraph init wires any repo for indexing in a single pass.
  • MCP stdio server (codegraph-mcp) with 10 read-only tools. Optional via pip install "cognitx-codegraph[mcp]".
  • Architecture-conformance CIcodegraph arch-check ships three built-in policies (import cycles, cross-package imports, layer violations) with a ready-to-use GitHub Actions workflow.
  • Agent-native--json output on every command, REPL for interactive Cypher, slash commands (/graph, /blast-radius, /dead-code, /trace-endpoint, /who-owns, /arch-check) for Claude Code.

Install extras

pip install "cognitx-codegraph[python]"   # Python frontend
pip install "cognitx-codegraph[mcp]"      # MCP server
pip install "cognitx-codegraph[python,mcp]"