Repository navigation
Feature/competitive roadmap - #9
Conversation
Phase 1 of the competitive roadmap: - New `impact` MCP tool: analyzes blast radius of changing any node — direct dependents, transitive dependents, affected files/communities - New `call_chain` MCP tool: finds all execution paths between two nodes filtered by edge type (calls, imports_from) - New `pr_impact` MCP tool: parses git diff, maps changed files to graph nodes, computes aggregate blast radius across all changes - 13 new tests covering impact analysis and call chain tracing
…to-generated docs Phase 2 of the competitive roadmap: - New `community_details` MCP tool with micro/mid/macro zoom levels for token-efficient codebase exploration - New `community_overview` MCP tool for quick overview of all communities - Related nodes panel in HTML community pages — selecting a node shows its neighbors with edge types - New `--docs` flag generates per-community markdown documentation in graphify-out/docs/ with key components, entry/exit points, bridges, and code snippets - 10 new tests for community details
Phase 3 of the competitive roadmap: - New `graphify-ts federate <g1.json> <g2.json>` command merges graphs from multiple repos into a single queryable super-graph - Cross-repo edges inferred from shared type/function names across repos - Each node tagged with `source_repo` for origin tracking - Federated graph gets full clustering, report, and JSON output - All existing MCP tools (retrieve, impact, call_chain) work on the federated graph - 3 new tests for federation
|
Warning Rate limit exceeded
Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 53 minutes and 30 seconds. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThis pull request introduces comprehensive knowledge graph analysis and documentation features, including a new Changes
Sequence Diagram(s)sequenceDiagram
participant User as User/CLI
participant Main as src/cli/main.ts
participant Generate as src/infrastructure/generate.ts
participant Export as src/pipeline/export.*
participant Docs as src/pipeline/docs.ts
User->>Main: generate --docs
Main->>Generate: generateGraph(options{docs:true})
activate Generate
Generate->>Export: Export to HTML/Wiki/SVG/etc
activate Export
Export-->>Generate: Export complete
deactivate Export
Generate->>Docs: generateDocs(graph, communities)
activate Docs
Docs->>Docs: Create docs dir, generate index.md
Docs->>Docs: Per community: extract snippets, write pages
Docs-->>Generate: {docsPath, fileCount}
deactivate Docs
Generate->>Generate: Append doc generation note
Generate-->>Main: {graphPath, docsPath, ...}
deactivate Generate
Main-->>User: Output with docs location
sequenceDiagram
participant User as User/CLI
participant Main as src/cli/main.ts
participant Federate as src/pipeline/federate.ts
participant Graph as KnowledgeGraph
participant Analysis as Community/Report
User->>Main: federate graph1.json graph2.json
Main->>Federate: federate([paths], options)
activate Federate
Federate->>Federate: Load & validate source graphs
Federate->>Federate: Infer repo names from paths
Federate->>Graph: Merge nodes/edges (repo-prefixed)
activate Graph
Graph-->>Federate: Merged graph
deactivate Graph
Federate->>Federate: Infer cross-repo relationships
Federate->>Federate: Add shared_across_repos edges
Federate->>Analysis: Cluster & compute communities
Federate->>Analysis: Generate markdown report
Federate->>Federate: Export graph.json
Federate-->>Main: {graphPath, reportPath, repos, totalNodes, totalEdges, crossRepoEdges}
deactivate Federate
Main-->>User: Federation summary
sequenceDiagram
participant MCP as MCP Client
participant Server as src/runtime/stdio-server.ts
participant Impact as src/runtime/impact.ts
participant Graph as KnowledgeGraph
MCP->>Server: call_tool(impact, {label, depth})
activate Server
Server->>Server: Validate label parameter
Server->>Impact: analyzeImpact(graph, communityLabels, {label, depth})
activate Impact
Impact->>Graph: findNode(label)
activate Graph
Graph-->>Impact: targetNode
deactivate Graph
Impact->>Impact: BFS neighbors up to depth
Impact->>Impact: Deduplicate files & aggregate communities
Impact-->>Server: {target_label, total_affected, affected_files, affected_communities, dependents[]}
deactivate Impact
Server->>Server: Serialize to JSON text
Server-->>MCP: tool_result(text)
deactivate Server
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 3❌ Failed checks (2 warnings, 1 inconclusive)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
Testing
npm run test:runnpm run typechecknpm run buildnpm pack --dry-run(if packaging or install behavior changed)Checklist
Related issues
Summary by CodeRabbit
federateCLI subcommand to merge multiple knowledge graphs--docsflag for automatic community documentation generation