Evaluate CKB for Your Codebase
10 real-world testing scenarios for large codebases, monorepos, and enterprise teams. Each scenario tells you exactly what to try, which tools to use, and what to expect.
Quick Start (5 Minutes)
npm install -g @tastehub/ckbcd your-repo && ckb initckb indexckb setupckb status && ckb doctorTesting Scenarios
Tame Large Pull Requests
PRs with 600+ files burn tokens and overwhelm reviewers. AI tools hit context limits before they even start.
What to Try
- 1.Pick a recent large PR (ideally 100+ files)
- 2.Run summarizePr to get an intelligent summary without loading the full diff
- 3.Use analyzeImpact on the changed modules to see downstream effects
- 4.Run getAffectedTests to identify which tests actually need to run
A concise, structured PR overview instead of scrolling through hundreds of files. Reviewers see what matters.
Tools Used
summarizePrsummarizeDiffanalyzeImpactgetAffectedTestsBlast Radius Analysis
Changing a core header, shared utility, or base class in a monorepo can silently break dozens of modules. You only find out after the merge.
What to Try
- 1.Pick a central, frequently-included file (e.g. a shared header or core utility)
- 2.Run analyzeImpact to see the full propagation chain
- 3.Use getCallGraph to trace the dependency depth
- 4.Run auditRisk for a multi-factor risk assessment
Precise visibility into how far a change propagates. Risk scores that confirm your gut feeling with data.
Tools Used
analyzeImpactgetCallGraphtraceUsageauditRiskHotspot & Tech Debt Tracking
Everyone knows "that one file" that causes problems. But how many are there really? And which ones are getting worse?
What to Try
- 1.Run getHotspots on your repository to see churn data with trend analysis
- 2.Use auditRisk on the top hotspots for a deeper multi-factor assessment
- 3.Run suggestRefactorings to get actionable recommendations sorted by severity and effort
A prioritized list of problem areas with trend data. Not gut feelings, but numbers.
Tools Used
getHotspotsauditRisksuggestRefactoringsOwnership & Review Intelligence
CODEOWNERS says Team A owns a module, but Team B has been doing all the commits for months. Reviews go to the wrong people.
What to Try
- 1.Run getOwnership on a few key directories
- 2.Use getOwnershipDrift to compare CODEOWNERS vs. actual commit activity
- 3.Run getModuleResponsibilities to see what each module is supposed to do
Accurate, data-driven ownership that reflects reality. The right reviewers for every PR.
Tools Used
getOwnershipgetOwnershipDriftgetModuleResponsibilitiesgetReviewersDead Code & Cleanup
Years of development leave behind dead code, unused functions, abandoned features. Nobody dares to delete anything.
What to Try
- 1.Run findDeadCode for static dead code detection across the codebase
- 2.Use justifySymbol on suspicious symbols to check if they have any remaining purpose
- 3.If OpenTelemetry is available: use getObservedUsage to cross-reference with runtime data
Confidence-scored dead code candidates. Safe cleanup based on evidence, not hope.
Tools Used
findDeadCodefindDeadCodeCandidatesjustifySymbolgetObservedUsageTrace Critical Paths
In safety-critical software, you need to know exactly how data flows through the system. How does a sensor input reach the UI? Where does a command pass through authorization?
What to Try
- 1.Use listEntrypoints to find all ingress points to a critical module
- 2.Run traceUsage to follow a symbol from definition to all consumers
- 3.Use explainPath to understand the call chain between two specific points
- 4.Run getCallGraph for a complete dependency visualization
Complete traceability from entry to exit. Essential for audit requirements and safety reviews.
Tools Used
traceUsageexplainPathgetCallGraphlistEntrypointsOnboarding & Knowledge Transfer
New developers take weeks to understand a large codebase. Documentation is outdated. Tribal knowledge is everywhere.
What to Try
- 1.Use explore on a module to get a structured overview
- 2.Run understand on key symbols for deep dives with context
- 3.Use explainOrigin to understand why code exists and how it evolved
- 4.Query getDecisions to find Architectural Decision Records
AI-powered onboarding that gives new team members instant access to the full code knowledge base.
Tools Used
exploreunderstandexplainSymbolexplainFileexplainOrigingetDecisionsAPI Change Management
Internal APIs change, external integrations break. Nobody has a clear view of what changed between versions.
What to Try
- 1.Run compareAPI between two versions to see all API changes
- 2.Use listContracts to see all defined API contracts
- 3.Run analyzeContractImpact to check what breaks when a contract changes
Clear API change visibility across the monorepo. No more surprise breakages from internal API changes.
Tools Used
compareAPIlistContractsanalyzeContractImpactgetContractDependenciesCI/CD Integration
Running the full test suite on every PR takes too long. Static analysis generates noise, not signal.
What to Try
- 1.Set up the CKB daemon for automatic index refresh
- 2.Integrate getAffectedTests into your CI pipeline to run only relevant tests
- 3.Use the webhook API to trigger re-indexing from CI
- 4.Add quality gates with configurable risk thresholds
Faster CI pipelines that run targeted tests. Quality gates that catch real issues, not noise.
Tools Used
getAffectedTestsgetStatusreindexLanguage Support
Enhanced Tier (SCIP Index)
Full symbol resolution, cross-references, call graphs, impact analysis. Supports Go, TypeScript, Python, Rust, Java, Kotlin, C++, Dart, Ruby, C#.
Basic Tier (LSP)
Any language with a language server. Navigation and references work, but no deep analysis.
Minimal Tier (Git)
Git-based features work for every file: ownership, hotspots, coupling, churn. No SCIP needed.
Custom or proprietary languages automatically get Minimal Tier coverage. All git-based analysis tools work regardless of language.
CKB Complements Your Existing Tools
CKB is not a linter or static analyzer. It makes your AI tools smarter by giving them structured code knowledge instead of raw source text.
Static Analyzers (SonarQube, etc.)
Find code smells, bugs, vulnerabilities. Rule-based analysis. Reports and dashboards.
CKB
Understands code structure, ownership, impact, and relationships. Answers questions. Feeds AI tools with intelligence instead of raw text.
Ready to try it?
Install CKB, index your codebase, and work through the scenarios that match your pain points. Most teams see value within the first hour.