Python-native code intelligence graph. Replaces GitNexus with a lightweight, stable indexing engine built on the
astmodule.
- Version: v0.6.1
- Maturity: Beta
- Language: Python
- Tests: 96 tests passing (18 test files)
- CI: ❌ Missing (placeholder — wire up GitHub Actions)
git clone https://github.com/OpenSIN-Code/SIN-Code-SCKG-Tool.git
cd SIN-Code-SCKG-Tool
pip install -e .sckg --help
sckg index ./my-project --output graph.json
sckg query ./my-project "helper function"
sckg graph ./my-project --output graph.html
sckg dashboard- MCP/HTTP Server:
src/sckg/api/server.py(FastAPI + Strawberry GraphQL) - Tools: 4 CLI tools (index, query, graph, dashboard) plus GraphQL queries
- Register: Exposed via the
sin codehub assin code sckg <command>. Start the HTTP server withpython -m sckg.api.server <graph.json>or use the GraphQL endpoint at/graphql.
parser.py— AST visitor extracting symbols and edgesgraph.py— adjacency-list graph with community detectionhtml_generator.py— D3.js force-directed single-file HTMLcli.py— Typer CLI (index,query,graph,dashboard, …)server.py— FastAPI + Strawberry GraphQL endpoint
See AGENTS.md for the full key-files map (14 subcommands + 96 tests).
This tool is exposed in the unified sin code hub:
sin code sckg index . # alias of: sckg index .
sin code sckg query . "main" # alias of: sckg query . "main"
sin code sckg dashboard # alias of: sckg dashboard- CoDocs: 30
.doc.mdcompanions - AGENTS.md: ✅ Present
- Tests:
pytest tests/ -q - Lint:
ruff check . - Compliance: This repository follows the OpenSIN-Code CoDocs/AGENTS.md standard.
MIT — see LICENSE. (LICENSE file is currently missing from the repo.)