@tastehub/ckb-linux-arm64 7.5.0 → 8.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/bin/README.md +193 -325
  2. package/bin/ckb +0 -0
  3. package/package.json +1 -1
package/bin/README.md CHANGED
@@ -1,68 +1,103 @@
1
1
  # CKB — Code Knowledge Backend
2
2
 
3
+ **Know your code. Change it safely. Ship with confidence.**
4
+
3
5
  [![npm version](https://img.shields.io/npm/v/@tastehub/ckb.svg)](https://www.npmjs.com/package/@tastehub/ckb)
4
- [![codecov](https://codecov.io/gh/SimplyLiz/CodeMCP/graph/badge.svg)](https://codecov.io/gh/SimplyLiz/CodeMCP)
5
6
  [![Documentation](https://img.shields.io/badge/docs-wiki-blue.svg)](https://github.com/SimplyLiz/CodeMCP/wiki)
6
7
 
7
- **The missing link between your codebase and AI assistants.**
8
+ CKB transforms your codebase into a queryable knowledge base. Ask questions, understand impact, find owners, detect dead code—all through CLI, API, or AI assistants.
8
9
 
9
- CKB gives AI assistants deep understanding of your code. Instead of grepping through files, your AI can now *navigate* code like a senior engineerwith knowledge of who owns what, what's risky to change, and how everything connects.
10
+ > Think of it as a senior engineer who knows every line of code, every decision, and every owneravailable 24/7 to answer your questions.
10
11
 
11
- > CKB analyzes and explains your code but never modifies it. Think of it as a librarian who knows everything about the books but never rewrites them.
12
+ ---
12
13
 
13
- ## The Problem
14
+ ## Instant Answers to Hard Questions
14
15
 
15
- ### AI Assistants Are Blind to Code Structure
16
+ | Question | Without CKB | With CKB |
17
+ |----------|-------------|----------|
18
+ | "What breaks if I change this?" | Grep and hope | Precise blast radius with risk score |
19
+ | "Who should review this PR?" | Guess from git blame | Data-driven reviewer suggestions |
20
+ | "Is this code still used?" | Delete and see what breaks | Confidence-scored dead code detection |
21
+ | "What tests should I run?" | Run everything (30 min) | Run affected tests only (2 min) |
22
+ | "How does this system work?" | Read code for hours | Query architecture instantly |
23
+ | "Who owns this code?" | Search CODEOWNERS manually | Ownership with drift detection |
24
+ | "Are there exposed secrets?" | Manual grep for patterns | Automated scanning with 26 patterns |
16
25
 
17
- When you ask an AI "what calls this function?", it typically:
18
- 1. Searches for text patterns (error-prone)
19
- 2. Reads random files hoping to find context (inefficient)
20
- 3. Gives up and asks you to provide more context (frustrating)
26
+ ---
21
27
 
22
- ### Existing Tools Don't Talk to Each Other
28
+ ## What You Can Do
23
29
 
24
- Your codebase has valuable intelligence scattered across SCIP indexes, language servers, git history, and CODEOWNERS files. Each speaks a different language. None are optimized for AI consumption.
30
+ 🔍 **Understand** Semantic search, call graphs, usage tracing, architecture maps
25
31
 
26
- ### Context Windows Are Limited
32
+ **Analyze** Impact analysis, risk scoring, hotspot detection, coupling analysis
27
33
 
28
- Even with 100K+ token context, you can't dump your entire codebase into an LLM. You need relevant information only, properly compressed, with smart truncation.
34
+ 🛡️ **Protect** Affected test detection, breaking change warnings, PR risk assessment
29
35
 
30
- ## What CKB Gives You
36
+ 🔐 **Secure** Secret detection, credential scanning, security-sensitive code identification
31
37
 
32
- ```
33
- You: "What's the impact of changing UserService.authenticate()?"
34
-
35
- CKB provides:
36
- ├── Symbol details (signature, visibility, location)
37
- ├── 12 direct callers across 4 modules
38
- ├── Risk score: HIGH (public API, many dependents)
39
- ├── Affected modules: auth, api, admin, tests
40
- ├── Code owners: @security-team, @api-team
41
- └── Suggested drilldowns for deeper analysis
42
- ```
38
+ 👥 **Collaborate** — Ownership lookup, reviewer suggestions, architectural decisions (ADRs)
43
39
 
44
- ```
45
- You: "Show me the architecture of this codebase"
46
-
47
- CKB provides:
48
- ├── Module dependency graph
49
- ├── Key symbols per module
50
- ├── Module responsibilities and ownership
51
- ├── Import/export relationships
52
- └── Compressed to fit LLM context
53
- ```
40
+ 📊 **Improve** — Dead code detection, tech debt tracking, documentation coverage
54
41
 
42
+ 🚀 **Compound Operations** — Single-call tools (`explore`, `understand`, `prepareChange`) reduce AI tool calls by 60-70%
43
+
44
+ 🔗 **Integrate** — CLI, HTTP API, MCP for AI tools, CI/CD pipelines, custom scripts
45
+
46
+ ---
47
+
48
+ ## Try It Now
49
+
50
+ ```bash
51
+ # See what's risky in your codebase
52
+ ckb hotspots
53
+
54
+ # Check impact before changing code
55
+ ckb impact diff
56
+
57
+ # Find tests to run for your changes
58
+ ckb affected-tests --output=command
59
+
60
+ # Scan for exposed secrets
61
+ ckb scan-secrets
62
+
63
+ # Get reviewers for your PR
64
+ ckb reviewers
65
+
66
+ # Check architecture at a glance
67
+ ckb arch
55
68
  ```
56
- You: "Is it safe to rename this function?"
57
-
58
- CKB provides:
59
- ├── All references (not just text matches)
60
- ├── Cross-module dependencies
61
- ├── Test coverage of affected code
62
- ├── Hotspot risk assessment
63
- └── Breaking change warnings
69
+
70
+ ---
71
+
72
+ ## Works Everywhere
73
+
74
+ | AI Assistants | CI/CD | Your Tools |
75
+ |---------------|-------|------------|
76
+ | Claude Code, Cursor, Windsurf, VS Code | GitHub Actions, GitLab CI | CLI, HTTP API, Scripts |
77
+
78
+ **83% token reduction** with smart presets—load only the tools you need.
79
+
80
+ ```bash
81
+ # One command to connect to Claude Code
82
+ ckb setup
64
83
  ```
65
84
 
85
+ > **Building your own tools?** Use CKB as a backend via CLI, HTTP API, or MCP. See the **[Integration Guide](https://github.com/SimplyLiz/CodeMCP/wiki/Integration-Guide)** for examples in Node.js, Python, Go, and shell scripts.
86
+
87
+ ---
88
+
89
+ ## Learn More
90
+
91
+ | Resource | Description |
92
+ |----------|-------------|
93
+ | 📖 **[Features Guide](https://github.com/SimplyLiz/CodeMCP/wiki/Features)** | Complete feature list with examples |
94
+ | 💬 **[Prompt Cookbook](https://github.com/SimplyLiz/CodeMCP/wiki/Prompt-Cookbook)** | Real prompts for real problems |
95
+ | 🔌 **[Integration Guide](https://github.com/SimplyLiz/CodeMCP/wiki/Integration-Guide)** | Use CKB in your own tools and scripts |
96
+ | ⚡ **[Impact Analysis](https://github.com/SimplyLiz/CodeMCP/wiki/Impact-Analysis)** | Blast radius, affected tests, PR risk |
97
+ | 🔧 **[CI/CD Integration](https://github.com/SimplyLiz/CodeMCP/wiki/CI-CD-Integration)** | GitHub Actions, GitLab CI templates |
98
+
99
+ ---
100
+
66
101
  ## Quick Start
67
102
 
68
103
  ### Option 1: npm (Recommended)
@@ -100,6 +135,14 @@ ckb setup # creates .mcp.json automatically
100
135
  claude mcp add --transport stdio ckb -- npx @tastehub/ckb mcp
101
136
  ```
102
137
 
138
+ **Token efficiency shown at startup:**
139
+ ```
140
+ CKB MCP Server v8.0.0
141
+ Active tools: 14 / 76 (18%)
142
+ Estimated context: ~1k tokens
143
+ Preset: core
144
+ ```
145
+
103
146
  Now Claude can answer questions like:
104
147
  - *"What calls the HandleRequest function?"*
105
148
  - *"How is ProcessPayment reached from the API?"*
@@ -126,315 +169,117 @@ Now Claude can answer questions like:
126
169
  | **[CLI](https://github.com/SimplyLiz/CodeMCP/wiki/User-Guide)** | Quick lookups from terminal, scripting |
127
170
  | **[HTTP API](https://github.com/SimplyLiz/CodeMCP/wiki/API-Reference)** | IDE plugins, CI integration, custom tooling |
128
171
 
129
- ## Features
130
-
131
- ### Core Intelligence
132
- - **Symbol Navigation** — Find any function, class, or variable in milliseconds
133
- - **Call Flow & Tracing** — Trace how code is reached from API endpoints, CLI commands, or jobs
134
- - **Impact Analysis** — Know exactly what breaks before refactoring, with risk scores
135
- - **Architecture Maps** — Module dependency graphs, responsibilities, domain concepts
136
- - **Dead Code Detection** — Keep/investigate/remove verdicts based on usage analysis
137
-
138
- ### Ownership & Risk
139
- - **Ownership Intelligence** — CODEOWNERS + git blame with time-weighted analysis
140
- - **Hotspot Detection** — Track churn trends, get 30-day risk projections
141
- - **Architectural Decisions** — Record and query ADRs with full-text search
142
-
143
- ### Advanced Capabilities
144
- - **Federation** — Query across multiple repos organization-wide
145
- - **Multi-Repo Management** — Named repo registry with quick MCP context switching
146
- - **Daemon Mode** — Always-on service with HTTP API, scheduled tasks, webhooks
147
- - **Contract Analysis** — Protobuf and OpenAPI discovery with cross-repo impact
148
- - **Runtime Observability** — OpenTelemetry integration for dead code detection
149
- - **Developer Intelligence** — Symbol origins, co-change coupling, risk audit
150
-
151
- ### Fast Indexing
152
- - **Zero-Index Operation** — Tree-sitter fallback works without SCIP index
153
- - **Incremental Updates** — O(changed files) instead of full reindex (Go, TypeScript, Python, Dart, Rust)
154
- - **Smart Caching** — Skip-if-fresh, watch mode, transitive invalidation
155
- - **Auto Index Updates** — Watch mode, daemon file watcher, webhook API for CI/CD
156
-
157
- ### Remote Index Server
158
- - **Index Serving** — Serve symbol indexes over HTTP for federation
159
- - **Index Upload** — Push SCIP indexes with compression (gzip/zstd)
160
- - **Delta Updates** — Upload only changed files
161
- - **API Key Auth** — Scoped keys with rate limiting
162
- - **Remote Federation** — Connect to remote CKB servers and query alongside local repos
163
-
164
- 📋 **[Full Changelog](https://github.com/SimplyLiz/CodeMCP/blob/main/CHANGELOG.md)** — Detailed version history from v5.1 to current
165
-
166
- ### Zero-Friction UX (v7.0+)
167
- - **npm Distribution** — `npm install -g @tastehub/ckb` or `npx @tastehub/ckb`
168
- - **Auto-Setup** — `ckb setup` configures Claude Code integration automatically
169
- - **Update Notifications** — Automatic update check for npm installs (disable with `CKB_NO_UPDATE_CHECK=1`)
170
-
171
- ### Zero-Index Operation (v7.1)
172
- - **Tree-sitter Fallback** — Symbol search works without SCIP index (8 languages)
173
- - **Auto-Index** — `ckb index` detects language and runs the right SCIP indexer
174
- - **Install Guidance** — Shows indexer install commands when missing
175
- - **Universal MCP Docs** — Setup for Claude Code, Cursor, Windsurf, VS Code, OpenCode, Claude Desktop
176
-
177
- ### Smart Indexing & Explicit Tiers (v7.2)
178
- - **Skip-if-Fresh** — `ckb index` automatically skips if index is current with HEAD
179
- - **Freshness Tracking** — Tracks commits behind HEAD + uncommitted changes
180
- - **Index Status** — `ckb status` shows index freshness with commit hash
181
- - **Watch Mode** — `ckb mcp --watch` polls every 30s and auto-reindexes when stale
182
- - **Lock File** — Prevents concurrent indexing with flock-based locking
183
- - **Explicit Tiers** — Control analysis mode: `--tier=fast|standard|full` or `CKB_TIER` env var
184
- - **Tier Diagnostics** — `ckb doctor --tier enhanced` shows exactly what's missing and how to fix it
185
-
186
- ### Doc-Symbol Linking (v7.3)
187
- - **Backtick Detection** — Automatically detect `Symbol.Name` references in markdown
188
- - **Directive Support** — Explicit `<!-- ckb:symbol -->` and `<!-- ckb:module -->` directives
189
- - **Fence Scanning** — Extract symbols from fenced code blocks via tree-sitter (8 languages)
190
- - **Staleness Detection** — Find broken references when symbols are renamed or deleted
191
- - **Rename Awareness** — Suggest new names when documented symbols are renamed
192
- - **CI Enforcement** — `--fail-under` flag for documentation coverage thresholds
193
-
194
- ### Standardized Response Envelope (v7.4)
195
- - **Unified Metadata** — All 76 MCP tool responses now include structured metadata
196
- - **Confidence Tiers** — High/Medium/Low/Speculative tiers based on data freshness and source
197
- - **Provenance Tracking** — Know which backends (SCIP, Git, LSP) contributed to results
198
- - **Truncation Awareness** — Metadata shows when results are truncated and total counts
199
- - **Suggested Next Calls** — Structured drilldown suggestions for follow-up queries
200
-
201
- ### Production Hardening (v7.3)
202
- - **Delta Artifacts** — CI-generated diffs for O(delta) ingestion instead of O(N)
203
- - **FTS5 Search** — SQLite FTS5 for instant search (replaces LIKE scans)
204
- - **Compaction Scheduler** — Automatic snapshot cleanup and database maintenance
205
- - **Prometheus Metrics** — `/metrics` endpoint for monitoring and alerting
206
- - **Load Shedding** — Graceful degradation under load with priority endpoints
207
- - **Health Details** — `/health/detailed` endpoint with per-repo and storage metrics
208
-
209
- ### Language Quality (v7.3)
210
- - **Quality Tiers** — 4-tier classification (Tier 1: Go, Tier 2: TS/Python, Tier 3: Rust/Java, Tier 4: Experimental)
211
- - **Quality Assessment** — Per-language metrics (ref accuracy, callgraph quality)
212
- - **Python Venv Detection** — Auto-detect virtual environments with activation recommendations
213
- - **TypeScript Monorepo** — Detect pnpm, lerna, nx, yarn workspaces with per-package tsconfig status
214
-
215
- ### Auto Index Updates (v7.5)
216
- - **Watch Mode** — `ckb index --watch` and `ckb mcp --watch --watch-interval 15s`
217
- - **Daemon File Watcher** — Automatic incremental refresh on git changes
218
- - **Webhook API** — `POST /api/v1/refresh` for CI/CD integration
219
- - **Index Staleness** — `ckb status` and `getStatus` show commits behind, index age, staleness reasons
220
- - **Token Efficiency Visibility** — Startup banner shows active tools, estimated tokens, preset savings (83% with core)
221
-
222
- ### Multi-Language Incremental (v7.5)
223
- - **Expanded Support** — Go, TypeScript, Python, Dart, Rust (automatic indexer detection)
224
- - **Graceful Degradation** — Install hints when indexer is missing
225
- - **Unified API** — `IndexIncrementalWithLang(ctx, since, lang)` for all languages
226
-
227
- ### Performance Improvements (v7.5)
228
- - **SCIP Backend** — Up to 2,500x faster: FindReferences (136x), SearchSymbols (7x), FindSymbolLocation (2,500x)
229
- - **Git Backend** — 53x faster getHotspots (single git command vs 4 per file)
230
- - **Pre-computed Indexes** — RefIndex, ConvertedSymbols cache, ContainerIndex for O(1) lookups
231
-
232
- ## MCP Tools (76 Available)
233
-
234
- CKB exposes code intelligence through the Model Context Protocol:
235
-
236
- <details>
237
- <summary><strong>v5.1 — Core Navigation</strong></summary>
238
-
239
- | Tool | Purpose |
240
- |------|---------|
241
- | `searchSymbols` | Find symbols by name with filtering |
242
- | `getSymbol` | Get symbol details |
243
- | `findReferences` | Find all usages |
244
- | `explainSymbol` | AI-friendly symbol explanation |
245
- | `justifySymbol` | Keep/investigate/remove verdict |
246
- | `getCallGraph` | Caller/callee relationships |
247
- | `getModuleOverview` | Module statistics |
248
- | `analyzeImpact` | Change risk analysis |
249
- | `getStatus` | System health |
250
- | `doctor` | Diagnostics |
251
-
252
- </details>
253
-
254
- <details>
255
- <summary><strong>v5.2 — Discovery & Flow</strong></summary>
256
-
257
- | Tool | Purpose |
258
- |------|---------|
259
- | `traceUsage` | How is this symbol reached? |
260
- | `listEntrypoints` | System entrypoints (API, CLI, jobs) |
261
- | `explainFile` | File-level orientation |
262
- | `explainPath` | Why does this path exist? |
263
- | `summarizeDiff` | What changed, what might break? |
264
- | `getArchitecture` | Module dependency overview |
265
- | `getHotspots` | Volatile areas with trends |
266
- | `listKeyConcepts` | Domain concepts in codebase |
267
- | `recentlyRelevant` | What matters now? |
172
+ ## How Indexing Works
268
173
 
269
- </details>
174
+ CKB uses **SCIP indexes** to understand your code. Think of it like a database that knows where every function is defined, who calls it, and how everything connects.
270
175
 
271
- <details>
272
- <summary><strong>v6.0 — Architectural Memory</strong></summary>
176
+ ### The Basics
273
177
 
274
- | Tool | Purpose |
275
- |------|---------|
276
- | `getOwnership` | Who owns this code? |
277
- | `getModuleResponsibilities` | What does this module do? |
278
- | `recordDecision` | Create an ADR |
279
- | `getDecisions` | Query architectural decisions |
280
- | `annotateModule` | Add module metadata |
281
- | `refreshArchitecture` | Rebuild architectural model |
178
+ ```bash
179
+ # 1. Generate an index (auto-detects language)
180
+ ckb index
282
181
 
283
- </details>
182
+ # 2. Check if your index is fresh
183
+ ckb status
184
+ ```
284
185
 
285
- <details>
286
- <summary><strong>v6.1 Production Ready</strong></summary>
186
+ Without an index, CKB still works using tree-sitter parsing (basic mode), but with an index you get:
187
+ - Cross-file references ("who calls this function?")
188
+ - Precise impact analysis
189
+ - Call graph navigation
287
190
 
288
- | Tool | Purpose |
289
- |------|---------|
290
- | `getJobStatus` | Query background job status |
291
- | `listJobs` | List jobs with filters |
292
- | `cancelJob` | Cancel queued/running job |
293
- | `summarizePr` | PR risk analysis & reviewers |
294
- | `getOwnershipDrift` | CODEOWNERS vs actual ownership |
191
+ ### Language Support
295
192
 
296
- </details>
193
+ Not all languages are equal. CKB classifies languages into **quality tiers** based on indexer maturity:
297
194
 
298
- <details>
299
- <summary><strong>v6.2+ — Federation, Daemon, Contracts, Telemetry, Intelligence</strong></summary>
300
-
301
- | Tool | Purpose |
302
- |------|---------|
303
- | `listFederations` | List all federations |
304
- | `federationStatus` | Get federation status |
305
- | `federationSearchModules` | Cross-repo module search |
306
- | `federationSearchOwnership` | Cross-repo ownership search |
307
- | `federationGetHotspots` | Merged hotspots across repos |
308
- | `daemonStatus` | Daemon health and stats |
309
- | `listSchedules` | List scheduled tasks |
310
- | `listWebhooks` | List configured webhooks |
311
- | `getFileComplexity` | Cyclomatic/cognitive complexity |
312
- | `listContracts` | List contracts in federation |
313
- | `analyzeContractImpact` | Contract change impact |
314
- | `getTelemetryStatus` | Coverage metrics and sync status |
315
- | `getObservedUsage` | Observed usage for a symbol |
316
- | `findDeadCodeCandidates` | Zero runtime call detection |
317
- | `explainOrigin` | Why does this code exist? |
318
- | `analyzeCoupling` | Co-change analysis |
319
- | `exportForLLM` | LLM-friendly export |
320
- | `auditRisk` | Multi-signal risk audit |
195
+ | Tier | Quality | Languages |
196
+ |------|---------|-----------|
197
+ | **Tier 1** | Full support, all features | Go |
198
+ | **Tier 2** | Full support, minor edge cases | TypeScript, JavaScript, Python |
199
+ | **Tier 3** | Basic support, call graph may be incomplete | Rust, Java, Kotlin, C++, Ruby, Dart |
200
+ | **Tier 4** | Experimental | C#, PHP |
321
201
 
322
- </details>
202
+ **Key limitations:**
203
+ - **Incremental indexing** is Go-only. Other languages require full reindex.
204
+ - **TypeScript monorepos** may need `--infer-tsconfig` flag
205
+ - **C/C++** requires `compile_commands.json`
206
+ - **Python** works best with activated virtual environment
323
207
 
324
- <details>
325
- <summary><strong>v7.3 — Doc-Symbol Linking</strong></summary>
208
+ Run `ckb doctor --tier standard` to check if your language tools are properly installed.
326
209
 
327
- | Tool | Purpose |
328
- |------|---------|
329
- | `indexDocs` | Scan and index documentation |
330
- | `getDocsForSymbol` | Find docs referencing a symbol |
331
- | `getSymbolsInDoc` | List symbols in a document |
332
- | `getDocsForModule` | Find docs linked to a module |
333
- | `checkDocStaleness` | Check for stale references |
334
- | `getDocCoverage` | Documentation coverage stats |
210
+ See **[Language Support](https://github.com/SimplyLiz/CodeMCP/wiki/Language-Support)** for indexer installation, known issues, and the full feature matrix.
335
211
 
336
- </details>
212
+ ### Keeping Your Index Fresh
337
213
 
338
- <details>
339
- <summary><strong>v7.3 — Multi-Repo Management</strong></summary>
214
+ Your index becomes stale when you make commits. CKB offers several ways to stay current:
340
215
 
341
- | Tool | Purpose |
342
- |------|---------|
343
- | `listRepos` | List registered repos with state |
344
- | `switchRepo` | Switch active repo context |
345
- | `getActiveRepo` | Get current repo info |
216
+ | Method | Command | When to Use |
217
+ |--------|---------|-------------|
218
+ | Manual | `ckb index` | One-off updates, scripts |
219
+ | Watch mode | `ckb index --watch` | Auto-refresh during development |
220
+ | MCP watch | `ckb mcp --watch` | Auto-refresh in AI sessions |
221
+ | CI webhook | `POST /api/v1/refresh` | Trigger from CI/CD |
346
222
 
347
- </details>
348
-
349
- <details>
350
- <summary><strong>v7.3 — Remote Federation</strong></summary>
351
-
352
- | Tool | Purpose |
353
- |------|---------|
354
- | `federationAddRemote` | Add a remote CKB index server |
355
- | `federationRemoveRemote` | Remove a remote server |
356
- | `federationListRemote` | List remote servers in federation |
357
- | `federationSyncRemote` | Sync metadata from remote servers |
358
- | `federationStatusRemote` | Check remote server connectivity |
359
- | `federationSearchSymbolsHybrid` | Search across local + remote |
360
- | `federationListAllRepos` | List repos from local and remote |
361
-
362
- </details>
363
-
364
- ## CLI Usage
223
+ **Quick start for AI sessions:**
224
+ ```bash
225
+ ckb mcp --watch # Auto-reindexes every 30s when stale
226
+ ```
365
227
 
228
+ **Check staleness:**
366
229
  ```bash
367
- # System status
368
230
  ckb status
231
+ # Shows: "5 commits behind HEAD" or "Up to date"
232
+ ```
369
233
 
370
- # Search for symbols
371
- ckb search NewServer
234
+ For Go projects, CKB uses **incremental indexing**—only changed files are processed, making updates fast.
372
235
 
373
- # Find references
374
- ckb refs NewServer
236
+ See the **[Index Management Guide](https://github.com/SimplyLiz/CodeMCP/wiki/Index-Management)** for complete documentation.
375
237
 
376
- # Get architecture overview
377
- ckb arch
378
-
379
- # Analyze change impact
380
- ckb impact <symbol-id>
238
+ ## Features
381
239
 
382
- # Query ownership
383
- ckb ownership internal/api/handler.go
240
+ | Feature | Description |
241
+ |---------|-------------|
242
+ | [**Compound Operations**](https://github.com/SimplyLiz/CodeMCP/wiki/Features#compound-operations) | `explore`, `understand`, `prepareChange` — single-call tools that reduce AI overhead by 60-70% |
243
+ | [**Code Navigation**](https://github.com/SimplyLiz/CodeMCP/wiki/Features#code-navigation--discovery) | Semantic search, call graphs, trace usage, find entrypoints |
244
+ | [**Impact Analysis**](https://github.com/SimplyLiz/CodeMCP/wiki/Features#impact-analysis--safety) | Blast radius, risk scoring, affected tests, breaking changes (`compareAPI`) |
245
+ | [**Architecture**](https://github.com/SimplyLiz/CodeMCP/wiki/Features#architectural-understanding) | Module overview, ADRs, dependency graphs, explain origin |
246
+ | [**Ownership**](https://github.com/SimplyLiz/CodeMCP/wiki/Features#ownership--review) | CODEOWNERS + git blame, reviewer suggestions, drift detection |
247
+ | [**Code Quality**](https://github.com/SimplyLiz/CodeMCP/wiki/Features#code-quality--risk) | Dead code detection (`findDeadCode`), coupling analysis, complexity |
248
+ | [**Security**](https://github.com/SimplyLiz/CodeMCP/wiki/Security) | Secret detection, credential scanning, allowlists |
249
+ | [**Documentation**](https://github.com/SimplyLiz/CodeMCP/wiki/Features#documentation-intelligence) | Doc-symbol linking, staleness detection, coverage metrics |
250
+ | [**Multi-Repo**](https://github.com/SimplyLiz/CodeMCP/wiki/Features#multi-repo--federation) | Federation, API contracts, remote index serving |
251
+ | [**Runtime**](https://github.com/SimplyLiz/CodeMCP/wiki/Features#runtime-intelligence) | OpenTelemetry integration, observed usage, production dead code |
252
+ | [**Streaming**](https://github.com/SimplyLiz/CodeMCP/wiki/Features#streaming) | SSE streaming for `findReferences`, `searchSymbols` with real-time progress |
253
+ | [**Automation**](https://github.com/SimplyLiz/CodeMCP/wiki/Features#automation--cicd) | Daemon mode, watch mode, webhooks, incremental indexing |
384
254
 
385
- # List architectural decisions
386
- ckb decisions
255
+ 📖 **[Full Features Guide](https://github.com/SimplyLiz/CodeMCP/wiki/Features)** — Detailed documentation with examples
387
256
 
388
- # Run diagnostics
389
- ckb doctor
257
+ 📋 **[Changelog](https://github.com/SimplyLiz/CodeMCP/blob/main/CHANGELOG.md)** — Version history
390
258
 
391
- # Check tier-specific requirements
392
- ckb doctor --tier enhanced
259
+ ## CLI
393
260
 
394
- # Start MCP server for AI assistants
395
- ckb mcp
261
+ ```bash
262
+ ckb status # System health (with remediation suggestions)
263
+ ckb search Handler # Find symbols
264
+ ckb impact diff # Analyze changes
265
+ ckb affected-tests # Tests to run
266
+ ckb hotspots # Risky areas
267
+ ckb arch # Architecture overview
268
+ ckb reviewers # PR reviewers
269
+ ckb mcp # Start MCP server
396
270
  ```
397
271
 
398
- <details>
399
- <summary><strong>More CLI commands</strong></summary>
400
-
272
+ **v8.0 Compound Operations (via MCP):**
401
273
  ```bash
402
- # Federation (v6.2)
403
- ckb federation create platform --description "Our microservices"
404
- ckb federation add platform --repo-id=api --path=/code/api
405
- ckb federation status platform
406
- ckb federation sync platform
407
-
408
- # Remote Federation (v7.3)
409
- ckb federation add-remote platform prod --url=https://ckb.company.com --token=$CKB_TOKEN
410
- ckb federation list-remote platform
411
- ckb federation sync-remote platform
412
- ckb federation status-remote platform prod
413
-
414
- # Daemon (v6.2.1)
415
- ckb daemon start [--port=9120]
416
- ckb daemon status
417
- ckb daemon logs --follow
418
- ckb daemon stop
419
-
420
- # Contracts (v6.3)
421
- ckb contracts list platform
422
- ckb contracts impact platform --repo=api --path=proto/api/v1/user.proto
423
- ckb contracts deps platform --repo=api
424
-
425
- # Telemetry (v6.4)
426
- ckb telemetry status
427
- ckb telemetry usage --symbol="internal/api/handler.go:HandleRequest"
428
- ckb dead-code --min-confidence=0.7
429
-
430
- # Developer Intelligence (v6.5)
431
- ckb explain internal/api/handler.go:42
432
- ckb coupling internal/query/engine.go --min-correlation=0.5
433
- ckb export --min-complexity=10 --max-symbols=200
434
- ckb audit --min-score=60 --quick-wins
274
+ # These tools combine multiple queries into single calls
275
+ explore # Area exploration: symbols, dependencies, hotspots
276
+ understand # Symbol deep-dive: refs, callers, explanation
277
+ prepareChange # Pre-change analysis: impact, tests, risk
278
+ batchGet # Fetch up to 50 symbols at once
279
+ batchSearch # Run up to 10 searches at once
435
280
  ```
436
281
 
437
- </details>
282
+ 📖 **[User Guide](https://github.com/SimplyLiz/CodeMCP/wiki/User-Guide)** — All CLI commands and options
438
283
 
439
284
  ## HTTP API
440
285
 
@@ -628,9 +473,12 @@ Use `cmd /c` wrapper in any config above:
628
473
  <details>
629
474
  <summary><strong>Presets (Token Optimization)</strong></summary>
630
475
 
631
- CKB exposes 76 tools, but most sessions only need a subset. Use presets to reduce token overhead by up to 83%:
476
+ CKB exposes 80+ tools, but most sessions only need a subset. Use presets to reduce token overhead by up to 83%:
632
477
 
633
478
  ```bash
479
+ # List all available presets with tool counts and token estimates
480
+ ckb mcp --list-presets
481
+
634
482
  # Default: core preset (14 essential tools)
635
483
  ckb mcp
636
484
 
@@ -641,7 +489,7 @@ ckb mcp --preset=refactor # 19 tools - core + coupling, dead code
641
489
  ckb mcp --preset=federation # 28 tools - core + cross-repo
642
490
  ckb mcp --preset=docs # 20 tools - core + doc-symbol linking
643
491
  ckb mcp --preset=ops # 25 tools - core + jobs, webhooks, metrics
644
- ckb mcp --preset=full # 76 tools - all tools (legacy)
492
+ ckb mcp --preset=full # 80+ tools - all tools (legacy)
645
493
  ```
646
494
 
647
495
  In MCP config:
@@ -684,6 +532,24 @@ Persistent knowledge survives across sessions:
684
532
  - **Code reviewers** — See the full picture of changes
685
533
  - **Tech leads** — Track architectural health over time
686
534
 
535
+ ## Limitations (Honest Take)
536
+
537
+ **CKB excels at:**
538
+ - Static code navigation—finding definitions, references, call graphs
539
+ - Impact analysis for safe refactoring
540
+ - Ownership lookup (CODEOWNERS + git blame)
541
+ - Architecture and module understanding
542
+
543
+ **CKB won't help with:**
544
+ - Dynamic dispatch / runtime behavior (use debugger)
545
+ - Generated code that isn't indexed
546
+ - Code generation, linting, or formatting
547
+ - Cross-repo calls (use [federation](https://github.com/SimplyLiz/CodeMCP/wiki/Federation) for this)
548
+
549
+ > CKB is static analysis, not magic. Always verify critical decisions by reading the actual code.
550
+
551
+ 📖 **[Practical Limits](https://github.com/SimplyLiz/CodeMCP/wiki/Practical-Limits)** — Full guide on accuracy, blind spots, and when to trust results
552
+
687
553
  ## Documentation
688
554
 
689
555
  See the **[Full Documentation Wiki](https://github.com/SimplyLiz/CodeMCP/wiki)** for:
@@ -693,14 +559,16 @@ See the **[Full Documentation Wiki](https://github.com/SimplyLiz/CodeMCP/wiki)**
693
559
  - [Language Support](https://github.com/SimplyLiz/CodeMCP/wiki/Language-Support) — SCIP indexers and support tiers
694
560
  - [Practical Limits](https://github.com/SimplyLiz/CodeMCP/wiki/Practical-Limits) — Accuracy notes, blind spots
695
561
  - [User Guide](https://github.com/SimplyLiz/CodeMCP/wiki/User-Guide) — CLI commands and best practices
562
+ - [Index Management](https://github.com/SimplyLiz/CodeMCP/wiki/Index-Management) — How indexing works, auto-refresh methods
696
563
  - [Incremental Indexing](https://github.com/SimplyLiz/CodeMCP/wiki/Incremental-Indexing) — Fast index updates for Go projects
697
564
  - [Doc-Symbol Linking](https://github.com/SimplyLiz/CodeMCP/wiki/Doc-Symbol-Linking) — Symbol detection in docs, staleness checking
698
565
  - [Authentication](https://github.com/SimplyLiz/CodeMCP/wiki/Authentication) — API tokens, scopes, rate limiting
699
- - [MCP Integration](https://github.com/SimplyLiz/CodeMCP/wiki/MCP-Integration) — Claude Code setup, 76 tools
566
+ - [MCP Integration](https://github.com/SimplyLiz/CodeMCP/wiki/MCP-Integration) — Claude Code setup, 80+ tools
700
567
  - [API Reference](https://github.com/SimplyLiz/CodeMCP/wiki/API-Reference) — HTTP API documentation
701
568
  - [Daemon Mode](https://github.com/SimplyLiz/CodeMCP/wiki/Daemon-Mode) — Always-on service with scheduler, webhooks
702
569
  - [Configuration](https://github.com/SimplyLiz/CodeMCP/wiki/Configuration) — All options including MODULES.toml
703
570
  - [Architecture](https://github.com/SimplyLiz/CodeMCP/wiki/Architecture) — System design and components
571
+ - [Security](https://github.com/SimplyLiz/CodeMCP/wiki/Security) — Secret detection, credential scanning
704
572
  - [Telemetry](https://github.com/SimplyLiz/CodeMCP/wiki/Telemetry) — Runtime observability, dead code detection
705
573
  - [Federation](https://github.com/SimplyLiz/CodeMCP/wiki/Federation) — Cross-repository queries
706
574
  - [CI/CD Integration](https://github.com/SimplyLiz/CodeMCP/wiki/CI-CD-Integration) — GitHub Actions, PR analysis
package/bin/ckb CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tastehub/ckb-linux-arm64",
3
- "version": "7.5.0",
3
+ "version": "8.0.0",
4
4
  "description": "CKB binary for linux-arm64",
5
5
  "os": ["linux"],
6
6
  "cpu": ["arm64"],