How gvsambhu/codeograph works
Codeograph acquires a Java/Spring corpus and produces a deterministic, metrics-bearing graph and run manifest. Its principal workflow continues with optional advisory LLM enrichment; a separate render command uses prior run artefacts to generate NestJS source and a project scaffold. The README also documents evaluation, cache management, and telemetry. Some pipeline links below are documented at product level rather than verified in sampled orchestration code; those links are dashed where their exact caller is unverified.
Main entry points: main.py CLI commands · llm_corpus_enricher.py Enrichment orchestrator · render_pipeline.py Render orchestration · assembler.py Run manifest
Components 26
Corpus acquisition
- Input acquisition
codeograph/input/input_acquirer.py - Source discovery
codeograph/input/source_discoverer.py
Deterministic analysis
- Parser dispatch
codeograph/parser/file_parser_dispatcher.py - Java AST parser
codeograph/parser/java_file_parser.py - Regex fallback
codeograph/parser/regex_fallback.py - Corpus analyzer
codeograph/analyzer/corpus_analyzer.py - Graph builder
codeograph/graph/graph_builder.py - Graph assembler
codeograph/graph/graph_assembler.py - Graph schema
codeograph/graph/models/graph_schema.py - Graph writer
codeograph/graph/graph_writer.py
LLM enrichment
- Enrichment orchestrator
codeograph/analyzer/llm_corpus_enricher.py - Node annotation
codeograph/passes/pass1/node_annotator.py - Corpus synthesis
codeograph/passes/pass2/corpus_synthesizer.py - Provider stack
codeograph/llm/resolver.py - SQLite response cache
codeograph/llm/cache/sqlite_backend.py
Rendering
- Render orchestration
codeograph/cli/render_pipeline.py - Class selection
codeograph/rendering/class_selector.py - Renderer registry
codeograph/renderers/renderer_registry.py - NestJS renderer
codeograph/renderers/typescript_nestjs/typescript_renderer.py - Project scaffold
codeograph/renderers/typescript_nestjs/scaffold_emitter.py
Run operations
- Run manifest
codeograph/manifest/assembler.py - LLM telemetry
codeograph/telemetry/session_manager.py - Evaluation framework
codeograph/evals/runner.py - Configuration
codeograph/config/settings.py
Other components
- Engineer
- CLI commands
codeograph/cli/main.py
Connections 30
- Engineer → CLI commands: runs commands
README.md - CLI commands → Input acquisition: acquires input
codeograph/cli/main.py - Input acquisition → Source discovery: discovers sources
- Source discovery → Parser dispatch: provides files
- Parser dispatch → Java AST parser: tries AST
codeograph/parser/file_parser_dispatcher.py - Parser dispatch → Regex fallback: falls back
codeograph/parser/file_parser_dispatcher.py - CLI commands → Corpus analyzer: runs analysis
codeograph/cli/main.py - Corpus analyzer → Graph builder: builds graph
- Graph builder → Graph assembler: assembles graph
- Graph assembler → Graph schema: validates against
codeograph/graph/graph_assembler.py - CLI commands → Graph writer: writes artefacts
codeograph/cli/main.py - Graph writer → Run manifest: records run
- CLI commands → Run manifest: assembles manifest
codeograph/cli/main.py - CLI commands → Enrichment orchestrator: starts enrichment
codeograph/cli/main.py - Enrichment orchestrator → LLM telemetry: starts session
codeograph/analyzer/llm_corpus_enricher.py - LLM telemetry → SQLite response cache: opens cache
codeograph/telemetry/session_manager.py - Enrichment orchestrator → Provider stack: resolves provider
codeograph/analyzer/llm_corpus_enricher.py - Enrichment orchestrator → Node annotation: runs annotations
codeograph/analyzer/llm_corpus_enricher.py - Enrichment orchestrator → Corpus synthesis: runs synthesis
codeograph/analyzer/llm_corpus_enricher.py - Node annotation → Provider stack: requests completions
codeograph/passes/pass1/node_annotator.py - Provider stack → SQLite response cache: caches responses
- Enrichment orchestrator → Run manifest: adds annotations
- CLI commands → Render orchestration: delegates rendering
codeograph/cli/render_pipeline.py - Render orchestration → Class selection: selects classes
- Render orchestration → Renderer registry: selects renderer
- Renderer registry → NestJS renderer: dispatches renderer
codeograph/renderers/renderer_registry.py - NestJS renderer → Project scaffold: emits scaffold
- Render orchestration → Run manifest: patches pointer
codeograph/cli/render_pipeline.py - CLI commands → Evaluation framework: runs evaluations
codeograph/cli/main.py - CLI commands → Configuration: loads settings
codeograph/cli/main.py