Skip to content
CAI
Software that uses CAICheck a score

andrewyng/context-hub

48.6

Weak · 1 October 2026

3.5k

lines of production code

JavaScript

primary language

2

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

This system is a command-line interface and documentation registry tool named Chub, designed to manage and search technical documentation and skills. It provides local search capabilities using BM25 indexing, allows users to attach personal annotations to entries, and facilitates feedback submission. Additionally, it exposes these registry functions to AI coding assistants via a Model Context Protocol (MCP) server for native agent integration.

How it got here

2025 — CLI feature expansion and telemetry

4 changes.

The CLI underwent significant feature expansion with the introduction of BM25 search, local annotations, and enhanced command capabilities for building and fetching entries. Concurrently, the project integrated anonymous telemetry via PostHog and renamed the package to @aisuite/chub to support new dependencies and MCP integration.

2026 — MCP server integration and test expansion

8 changes.

This period focused on integrating the Model Context Protocol (MCP) into the CLI to enable native AI agent support, including the development of server tools and lifecycle management. Concurrently, the team significantly expanded test coverage for CLI commands, library modules, and the new MCP implementation using Vitest. Documentation updates and automated CDN build scripts were also added to support these new capabilities.

Features

Add MCP server entry point for native agent integration

A new executable script \cli/bin/chub-mcp\ has been added to the CLI, serving as the entry point for the Model Context Protocol (MCP) server. This script initializes the Node.js environment and imports the MCP server implementation from \src/mcp/server.js\, enabling native agent integration via the CLI.

cli/bin · high confidence

Automated CDN build script with versioned help generation

A new build script (scripts/prepare-cdn-build.mjs) has been added to automate the preparation of CDN assets. This script builds the content bundle and generates a versioned help file (help/{cliVersion}.json) by combining the CLI version with a detected help revision (from environment variables, Git SHA, or current date). The output is written to a configurable CDN output directory, enabling consistent, versioned help delivery for the Chub CLI.

scripts · high confidence

New CLI commands and enhanced search and feedback capabilities

The CLI now includes new commands: \chub annotate\ for attaching local agent notes to docs or skills, and \chub feedback\ for rating entries with specific labels and telemetry. The \chub search\ command now displays entry types (doc vs. skill) and provides detailed version and file information for skills, while also tracking search analytics. The \chub get\ command has been expanded to support fetching specific files via \--file\, retrieving full entry directories with \--full\, and handling multiple IDs at once, with improved error reporting for missing languages or versions. Additionally, the \chub cache clear\ command no longer accepts the \--force\ flag, and the \chub build\ command now validates the output path upfront to provide clearer errors.

cli/src/commands · high confidence

New CLI commands and integrated telemetry

The CLI now includes three new subcommands: \build\ for local registry operations, \feedback\ for submitting user feedback, and \annotate\ for adding local notes to documentation. Additionally, the tool now collects anonymous telemetry via PostHog for command usage and errors, which can be disabled by setting the \CHUB\_TELEMETRY=0\ environment variable. The root help output has been moved to an external file for better maintainability, and the \--version\ flag now uses \-V\ as an alias.

cli/src · high confidence

New MCP server for agent integration

A new Model Context Protocol (MCP) server has been added to the CLI, exposing Context Hub capabilities to AI coding assistants like Claude Code and Cursor. This server registers tools for searching and retrieving documentation and skills (\chub\_search\, \chub\_get\), listing entries (\chub\_list\), managing local annotations (\chub\_annotate\), and submitting feedback (\chub\_feedback\). It also exposes the full registry as a resource. The implementation includes specific behavioral changes for robustness: it redirects console output to stderr to prevent protocol corruption, validates file paths early to prevent traversal attacks, gates annotation inclusion behind an explicit flag to mitigate prompt injection, and ensures clean process exit when the host disconnects stdio.

cli/src/mcp · high confidence

New Python and JavaScript package documentation for accelerate, aiofiles, aiohttp, aiomysql, aiosignal, aiosqlite, and Airtable

Added comprehensive documentation for several Python and JavaScript libraries, including Hugging Face Accelerate (v1.13.0), aiofiles (v25.1.0), aiohttp (v3.13.3), aiomysql (v0.3.2), aiosignal (v1.4.0), aiosqlite (v0.22.1), and the Airtable SDKs for Python (v3.1.1) and JavaScript (v0.12.2). These new guides cover installation, core usage patterns, configuration, and common pitfalls for each package.

content · high confidence

Behavioural changes

Context Hub CLI introduces BM25 search, local annotations, and telemetry controls

The CLI now features a built-in BM25 search engine with a pre-built inverted index for faster, more accurate document and skill lookups, replacing the previous search mechanism. Users can now save local notes on documentation entries using the new \chub annotate\ command, with notes persisted in the local \\~/.chub/annotations\ directory. Additionally, the CLI now includes a first-run welcome notice and configurable telemetry and feedback opt-outs (via config or environment variables), with usage data sent to PostHog and feedback sent to a dedicated API. The \chub list\ command has been deprecated in favor of \chub search\ (no query lists all), with a transparent alias providing a deprecation notice. The registry fetch timeout has been extracted into named constants, and the default refresh interval has been reduced to 6 hours.

cli/src/lib · high confidence

Test coverage

Added Vitest test suite for CLI e2e and library unit tests; Added tests for MCP stdio lifecycle and tool handlers; Added unit tests for CLI commands; Added unit tests for CLI library modules.

Dependencies

CLI renamed to @aisuite/chub with new dependencies and MCP support

The CLI package has been renamed from @context-hub/cli to @aisuite/chub (version 0.1.4) and now includes a new 'chub-mcp' binary alongside the existing 'chub' command. This update introduces several new dependencies: @modelcontextprotocol/sdk for native agent integration, posthog-node for telemetry, and zod for validation, while upgrading tar to version 7.5.8 to address security vulnerabilities. The package also adds vitest for testing and includes documentation files in the published bundle for a zero-setup first-run experience.

(dependencies) · high confidence

Written by watchdog.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

How this codebase got here

Score

  • CAI 55 → 49 (-6.4)
  • Rubric changed (rubric-2026.09.12 → rubric-2026.09.18) — scores are not directly comparable.

Lenses

  • Code Health 55 → 55 (+0.1)
  • Architecture 92 → 93 (+0.8)
  • Maturity 77 → 77 (-0.1)
  • Readiness 46 → 35 (-11.5)
  • Security 61 → 61 (+0.0)
  • Performance 60 (new)

Resolved (6)

  • Dependency hygiene PARTLY measured — npm pinning read, dependency currency not (no pnpm-resolved versions to grade)
  • Documentation: no installation or build instructions (README.md)
  • Documentation: no installation or build instructions (docs/features/agent-annotations.md)
  • Documentation: no usage examples (README.md)
  • Documentation: no usage examples (docs/features/agent-annotations.md)
  • Off-boarding risk: anonymized user #1

New (9)

  • Documentation: contradicts the code (docs/private-content.md)
  • Off-boarding risk: anonymized user #1
  • Outdated (npm): @modelcontextprotocol/sdk
  • Outdated (npm): chalk
  • Outdated (npm): commander
  • Outdated (npm): posthog-node
  • Outdated (npm): tar
  • Outdated (npm): yaml
  • Outdated (npm): zod

Written by watchdog.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

Survey your own repository

andrewyng/context-hub was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.

About this page

  • The score is its most recent published measurement, taken on 1 October 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit 67dcbeb2eb42c808549f08397920ad58be7c2206 — the exact code this score is about.
  • Scored under rubric-2026.09.18 — the same rubric and the same method as every other entry in this index.
  • Measured by watchdog.canine.dev using codehealth-analyzer preprod-e569280dd5e2.