Local Java code intelligence indexer backed by a graph database
Project description
CodeSpine
CodeSpine is an intelligence layer for Java teams and AI coding agents. It maps your codebase into a live graph so you can find anything fast, predict change impact, and ship safer refactors.
Installation
pip install codespine
Quick Start
codespine analyse .
codespine search "payment retry bug" --json
codespine context "processPayment" --json
codespine impact "com.example.Service#processPayment(java.lang.String)" --json
Example analyze output:
$ codespine analyse .
Walking files... 142 files found
Parsing code... 142/142
Tracing calls... 847 calls resolved
Analyzing types... 234 type relationships
Detecting communities... 8 clusters found
Detecting execution flows... 34 processes found
Finding dead code... 12 unreachable symbols
Analyzing git history... 18 coupled file pairs
Generating embeddings... 623 vectors stored
Done in 4.2s - 623 symbols, 1847 edges, 8 clusters, 34 flows
What You Get
- Hybrid search: BM25 + semantic vectors + fuzzy + RRF
- Impact analysis: depth groups with confidence scoring
- Java-aware dead code detection with exemption passes
- Execution flow tracing from entry points
- Community detection (Leiden + fallback)
- Git change coupling analysis
- Watch mode incremental reindexing
- Symbol-level branch diff
Key Commands
codespine analyse <path> [--full|--incremental]codespine search <query> [--k 20] [--json]codespine context <query> [--max-depth 3] [--json]codespine impact <symbol> [--max-depth 4] [--json]codespine deadcode [--limit 200] [--json]codespine flow [--entry <symbol>] [--max-depth 6] [--json]codespine community [--symbol <symbol>] [--json]codespine coupling [--months 6] [--min-strength 0.3] [--min-cochanges 3] [--json]codespine diff <base>..<head> [--json]codespine watch [--path .] [--global-interval 30]
MCP Setup (mcp.json)
{
"mcpServers": {
"codespine": {
"command": "codespine",
"args": ["mcp"]
}
}
}
Runtime Paths
~/.codespine_db~/.codespine.pid~/.codespine.log~/.codespine_embedding_cache.sqlite3
Project Docs
Project details
Release history Release notifications | RSS feed
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 codespine-0.1.3.tar.gz.
File metadata
- Download URL: codespine-0.1.3.tar.gz
- Upload date:
- Size: 33.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f757cf8b91118f1b2b7430d1ebe28a40760df7df3337aa60ea4b303ca59852e7
|
|
| MD5 |
14b36135d564214522250afeb536a9c6
|
|
| BLAKE2b-256 |
4249f6b28b88b990d413efb3ec578c1c0161b50885f8ff08dda53641650657ab
|
Provenance
The following attestation bundles were made for codespine-0.1.3.tar.gz:
Publisher:
publish-pypi.yml on vinayak3022/codeSpine
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
codespine-0.1.3.tar.gz -
Subject digest:
f757cf8b91118f1b2b7430d1ebe28a40760df7df3337aa60ea4b303ca59852e7 - Sigstore transparency entry: 1008379765
- Sigstore integration time:
-
Permalink:
vinayak3022/codeSpine@68210f1bbcdc374830b9b29930ef5512a991f28b -
Branch / Tag:
refs/heads/main - Owner: https://github.com/vinayak3022
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@68210f1bbcdc374830b9b29930ef5512a991f28b -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file codespine-0.1.3-py3-none-any.whl.
File metadata
- Download URL: codespine-0.1.3-py3-none-any.whl
- Upload date:
- Size: 39.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f5bb44f2d7755bfb06e71a917cc101600e9865ae9f04f841cd3b8a57c4f60998
|
|
| MD5 |
28dc3dee9dede3ebf2e6b328f85c4308
|
|
| BLAKE2b-256 |
2b4900976889307705491df8a2d132ca66726718e564af93f5841e8603aac565
|
Provenance
The following attestation bundles were made for codespine-0.1.3-py3-none-any.whl:
Publisher:
publish-pypi.yml on vinayak3022/codeSpine
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
codespine-0.1.3-py3-none-any.whl -
Subject digest:
f5bb44f2d7755bfb06e71a917cc101600e9865ae9f04f841cd3b8a57c4f60998 - Sigstore transparency entry: 1008379767
- Sigstore integration time:
-
Permalink:
vinayak3022/codeSpine@68210f1bbcdc374830b9b29930ef5512a991f28b -
Branch / Tag:
refs/heads/main - Owner: https://github.com/vinayak3022
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@68210f1bbcdc374830b9b29930ef5512a991f28b -
Trigger Event:
workflow_dispatch
-
Statement type: