Turn your legacy codebase into a project expert.
prjxp gives LLM coding assistants — opencode, GitHub Copilot and friends — precise, structurally-correct knowledge about your software. Two graphs, one Lucene index, and no LLM in the index path.
Legacy code sits between blind search and extraction cost.
Naive vector search sees a codebase as a bag of text and loses call chains, inheritance and interfaces. LLM-extracting Graph-RAG restores structure — at the price of hours of indexing and a flooded context window.
Syntactic blind flight
Plain embeddings split code into arbitrary windows. Tightly coupled classes with different names drift far apart in vector space, and call chains vanish.
loses structureProhibitive extraction cost
Entity extraction through an LLM means compute cost, days of runtime and re-synchronisation on every commit — for millions of lines of legacy code.
slow & non-deterministicContext-window stuffing
Dumping large subgraphs into the prompt increases latency, bloats the KV cache and triggers the lost-in-the-middle effect in local models.
unreliableTwo graphs. One deterministic index.
prjxp maps code and documentation onto two complementary graphs, both stored in a single embedded Apache Lucene index. Nothing in the code/index path calls an LLM.
▸ Structural AST graph
Classes and methods are nodes; typed fields are edges. The hard, directed dependencies of the code.
- CALL
- EXTENDS
- IMPLEMENTS
- IMPORT
- FIELD
- PARAM
- RETURN
- CONTAINS
- GENERIC_ARG
- ANNOTATION
▸ Semantic vector graph
Every chunk is an HNSW vector. The neighbourhood graph bridges domain documentation with the technical implementation.
- HNSW
- KNN
- c-TF-IDF
- Leiden
AST extraction
Chunk-Norris parses source into structured PxChunks and records typed edges between symbols.
Embed & store
Tibed embeds the chunks and writes vectors plus full metadata into the Lucene index.
HNSW · LuceneCommunity clustering
The Leiden algorithm splits both graphs into tightly coupled structural and thematic clusters.
LeidenStatistical signatures
TF-IDF and class-based c-TF-IDF sign every chunk and cluster — precise, local, zero LLM cost.
TF-IDF · c-TF-IDFRetrieval that understands structure
prjxp doesn't just search — it clusters, signs and navigates the codebase. These are the ideas that separate dual-graph RAG from a generic vector database.
The PxChunk model
Chunks of the same logical unit share an ID and carry hierarchical parent links plus a reference (FQN + signature) — so original source is reconstructed exactly.
Forest of Trees
When a query hits several parts of a system, golden-retriever groups the hits into distinct logical trees, enriches each, and merges them into coherent context.
reconstructionLeiden communities
Both the AST and the semantic graph are clustered with Leiden. Structural modules and thematic knowledge clusters emerge without any model call.
automatic clustersZero-LLM signatures
TF-IDF and c-TF-IDF produce precise term signatures per chunk and per cluster from the Lucene inverted index. Deterministic, cheap, reproducible.
deterministicProgressive disclosure
The LLM first receives compact pointers, then climbs to graph neighbours and finally to exact source — only the context it actually needs.
lean contextMulti-Project Hub
One long-running hub links many repositories and live workspaces, each stamped in a shared index. The AI always works on the real build state.
one engine, many projectsHighest quality per resource use in the benchmark
Four arms — prjxp (P), a naive file-system agent (N), a code graph (G) and naive vector search (V) — on a frozen corpus. Higher is better in the first three panels.
Four-arm run, frozen prjxp corpus. A stricter same-run counter-check on two corpora confirms the score advantage (0.639 vs. 0.620 and 0.459 vs. 0.430) — and honestly relativizes cost leadership once the tool schema grows. See the full benchmark →
Three levels, one precise answer
The agent climbs the ladder only as far as it must — from compact pointers, through graph navigation, down to the exact, complete source.
pointers · vectorSearch
Compact references: project, chunk ID, file, score. TF-IDF and c-TF-IDF keywords tell the LLM what a hit is about before it reads a single line.
graphSearch · graphCluster
Navigate the AST graph or a Leiden cluster on demand — callers, implementations, neighbours and the macro context of a whole topic community.
readFile · readBySignature
Escalate to the complete source of a file, class or method — reconstructed exactly from the structured index, javadoc and all.
One command. Full stack.
The recommended way to start prjxp is docker compose up -d. That
brings up the hub, the
web frontend and the Apache reverse proxy
together. Prebuilt multi-arch images are published to the GitHub Container
Registry. Embeddings run against any OpenAI-compatible endpoint — the
application never runs neural inference itself.
🎯 Single Project one container
One container per project. The control script runs the full pipeline — chunk → embed → hub.
- Index your own codebase in one command
- MCP server on
:7007 - Re-index after code changes
./prjxp /path/to/your-project mcp
🛰️ Multi-Project Hub many projects
A long-running hub serves any number of projects added at runtime from one shared, project-stamped Lucene index.
- Drop a tar archive into the import dir
- Or mount live projects + a
prjxp.yamlmarker - Watch lifecycle in the web UI: importing → chunking → embedding → ready
docker compose up -d
tar czf import/my-project.tar my-project/
Full stack: docker compose up -d → frontend and hub UI at
http://localhost, MCP endpoint at http://localhost:7007/mcp.
"Chunk Norris doesn't need documentation.
Chunk Norris is the source of it!"
Documentation is a generation task, not a manual one. prjxp uses its own retrieval pipeline to write its own technical docs — it doesn't just process code, it understands its own soul.
Give your AI assistant ground truth.
Point prjxp at a project, and let your coding assistant ask real questions about real code — answered from a structurally-correct dual-graph index, not guesswork.