agent/discoverLABSCO SUMMARY
The codebase becomes something an agent navigates instead of greps.
Function-level parsing with local embeddings means a question about where something is handled returns the right chunks, and bundles let you hand over a coherent slice of the repo rather than a pile of files.
What it is
A semantic code analysis server for a repository. Tree-sitter parses the code at function level, chunks are embedded locally with all-MiniLM-L6-v2 through Transformers.js, and files are grouped into named bundles; a watcher keeps analysis, bundles and embeddings current as the code changes.
What you get
- An architectural overview of the codebase, generated from the code rather than written by hand
- Semantic search over the code — a question like 'where is auth handled' answered from embeddings
- Integration points found for a feature you are about to add
- Named bundles listed and pulled whole as XML, and the bundle structure audited
- Every analysed code chunk, with purpose, complexity and relationships
- Normalised OpenAPI and Navigation artifacts, separately or as one cross-artifact summary
- File reads and writes that carry bundle context
Requirements
Node — npm install -g cntx-ui, then cntx-ui init to scaffold .cntx and generate .mcp.json, and cntx-ui mcp to serve over stdio. Embedding runs locally with no external API calls; cntx-ui watch also serves a dashboard on a local port.
Setup effort
One command — npm install -g cntx-ui
USE CASES
Onboarding an agent to an unfamiliar repo
Start with the architectural overview rather than pasting files in.
Finding where something lives
Ask in words and get the matching functions back, from embeddings computed on your machine.
Working out where a new feature plugs in
Find the integration points before writing anything.
Handing over one coherent slice of the code
List the bundles and pull the relevant one whole.
Keeping the bundles honest as the repo drifts
Audit and reorganise the bundle structure.
Getting the API surface without reading the routes
Pull the normalised OpenAPI and Navigation artifacts, or one summary across both.
13 tools
Listed in project docs. Your client may show a different list.
agent/queryagent/investigateagent/organizeartifacts/listartifacts/get_openapiartifacts/get_navigationartifacts/summarizelist_bundlesget_bundleget_semantic_chunksread_filewrite_fileBEFORE YOU INSTALL
What to know first
Tools you get
13 tools named in the project's documentation.
Requires
- npm on PATH
- Node.js, better-sqlite3
INSTALLATION
Connect your client
Server setup
npm install -g cntx-uiMCP Clients
Claude Desktop
cntx-ui setup-mcpClaude Code
cntx-ui init