What is CKB?
CKB (Code Knowledge Backend) transforms your codebase into a queryable knowledge base, enabling developers, AI assistants, and CI/CD pipelines to understand, analyze, protect, and improve code. It provides semantic search, impact analysis, ownership lookup, dead code detection, and secret scanning through a CLI, HTTP API, or MCP (Model Context Protocol) server.
How to use CKB?
Install via npm (npm install -g @tastehub/ckb) or Homebrew (brew install ckb). Initialize in a project with ckb init, optionally generate a SCIP index with ckb index, and connect to AI assistants like Claude Code using ckb setup. Use CLI commands (ckb search, ckb hotspots), start the HTTP API with ckb serve, or run the MCP server with ckb mcp for integration with AI tools.
Key features of CKB
- Semantic search, call graphs, usage tracing, and architecture maps
- Impact analysis, risk scoring, hotspot detection, and coupling analysis
- Affected test detection, breaking change warnings, and PR risk assessment
- Secret detection, credential scanning, and security-sensitive code identification
- Ownership lookup, reviewer suggestions, and architectural decision records
- Dead code detection, tech debt tracking, and documentation coverage
Use cases of CKB
- Assess what breaks when changing a function, with precise blast radius and risk scores
- Suggest reviewers for a PR using data-driven ownership and drift detection
- Detect dead code with confidence scores and find legacy code that can be removed
- Automatically identify which tests to run after a change, reducing CI time from 30 to 2 minutes
- Scan codebase for exposed secrets using 26 patterns and automated scanning
コメント