Conversation
Design for multi-repo, multi-language codebase intelligence feature with progressive LLM enrichment, interactive graph visualization, and natural language querying.
Add existing code reuse section, scope v1 languages, add cost model, storage scalability, config schema, query execution model, testing fixtures, and clear v1/v2/v3 phasing boundaries.
Add framework/tool detection (dbt, Airflow, Spark, Express, Django, React, Kafka, CICS/DB2, etc.) with semantic pattern understanding. Add mermaid diagram export for all views (flow, deps, impact, framework).
Full implementation plan with all review issues fixed: - Correct tsc verification commands - Lazy import pattern for CLI commands - Config schema before scanner - Split large tasks (SQL/Docker/OpenAPI separate, CLI split) - Real git repos in test fixtures - chatWithTools fallback handling - File locking strategy - Barrel exports
…low, Spark detection
…eact, Django, Airflow, Prisma, Kafka, Spark
…act, framework, query results
…ore CLI commands Implements Tasks 20 and 21: registers the full jam intel subcommand group (scan, status, query, impact, diagram, explore) in the CLI and adds all handler functions in src/commands/intel.ts.
|
Caution Review failedPull request was closed or merged during review 📝 WalkthroughWalkthroughIntroduces a comprehensive Intel subsystem for codebase analysis, including static file analyzers for six languages (TypeScript, Python, COBOL, SQL, Docker, OpenAPI), a graph-based knowledge representation, LLM-powered semantic enrichment, natural language and keyword-based querying, and Mermaid diagram generation for visualization and browser-based exploration. Changes
Sequence DiagramsequenceDiagram
participant User
participant CLI as CLI (src/index.ts)
participant Scanner
participant Analyzers
participant Graph
participant Enrichment as Enrichment Engine
participant LLM as LLM Provider
participant Query
participant Mermaid as Mermaid/Viewer
User->>CLI: jam intel scan
CLI->>Scanner: scan(rootDir, options)
Scanner->>Scanner: collectFiles(excludePatterns)
Scanner->>Analyzers: analyzeFile(content, path)
Analyzers->>Graph: addNode/addEdge
Analyzers->>Graph: analyzeProject (if provided)
Scanner->>Graph: setFrameworks, setLanguages
CLI->>Graph: serialize → storage
User->>CLI: jam intel query "text"
alt AI Enabled
CLI->>Query: query(text, graph, provider)
Query->>LLM: chatWithTools(tools, prompt)
LLM->>Query: tool calls (findNode, getNeighbors, etc.)
Query->>Graph: executeToolCall
Graph->>Query: nodes, edges
Query->>Mermaid: formatQueryResultAsMermaid (if flag)
else Offline Mode
Query->>Graph: keyword search
Graph->>Query: matched nodes, edges
end
Query->>User: QueryResult
User->>CLI: jam intel scan --enrich deep
CLI->>Enrichment: enrichAll(graph, options)
Enrichment->>Enrichment: prioritize(graph)
Enrichment->>LLM: stream enrichment for node
LLM->>Enrichment: purpose, pattern, risk, semanticEdges
Enrichment->>Graph: attach SemanticMetadata
CLI->>Graph: serialize enrichment → storage
User->>CLI: jam intel diagram --type architecture
CLI->>Mermaid: generateArchitectureDiagram(graph)
Mermaid->>Graph: allNodes, allEdges
Mermaid->>User: Mermaid string
User->>CLI: jam intel explore
CLI->>Mermaid: generateArchitectureDiagram(graph)
CLI->>Viewer: generateViewerHtml(mermaid, path)
Viewer->>Viewer: auto-poll .mmd file
Viewer->>User: open in browser
Estimated code review effort🎯 5 (Critical) | ⏱️ ~120 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
📝 Coding Plan
Comment |
Summary
jam intel— a new codebase intelligence feature that scans repositories, builds a semantic knowledge graph, generates architecture diagrams, and supports natural language queriesscan,status,query,impact,diagram,exploreCommands
Architecture
jam intel *is invoked — no startup impactNumbers
Test plan
npm test)npm run build)jam intel scan --no-enrichscans this repo successfullyjam intel statusshows correct statsjam intel query "provider" --no-aireturns matching nodesjam intel impact src/providers/base.tstraces 65 dependent filesjam intel diagramoutputs valid Mermaidjam intel exploreopens browser viewer🤖 Generated with Claude Code
Summary by CodeRabbit
New Features
Configuration
.jam/intelstorage directory for graph and enrichment data