Skip to content

ChubThe all-in-one infrastructure layer for AI-assisted development

Context, tracking, security, and team knowledge in one tool. Curated docs, session analytics, secret scanning, self-learning annotations โ€” agent-agnostic, git-native, built in Rust.

Chub
4
Pillars: Context ยท Tracking ยท Security ยท Team
1,553+
Curated Docs
8
MCP Tools
6+
Agents Supported

The All-in-One Agent Layer โ€‹

Most tools do one thing: serve docs, or track usage, or scan secrets, or sync configs. Chub does all four โ€” because context, tracking, security, and team knowledge are one problem, not four.

Chub Architecture โ€” Context, Tracking, Learning

Install โ€‹

sh
npm install -g @nrl-ai/chub
sh
pip install chub
sh
cargo install chub
sh
brew install nrl-ai/tap/chub

Or download a prebuilt binary from GitHub Releases โ€” single 10 MB binary, no runtime dependencies.

Quick Start โ€‹

1. Give your agents accurate docs โ€‹

sh
chub search "stripe payments"              # find docs
chub get openai/chat --lang python         # fetch a doc
chub mcp                                   # start MCP server for agents

2. Track what your agents do โ€‹

sh
chub track enable                          # install hooks (auto-detects agent)
# ... use your AI agent as normal ...
chub track status                          # see active session
chub track report                          # costs, tokens, models, tools
chub track dashboard                       # web dashboard at localhost:4243

3. Catch leaked secrets โ€‹

sh
chub scan secrets git                          # scan git history
chub scan secrets git --staged                 # pre-commit hook mode
chub scan secrets dir ./src                    # scan a directory

4. Build team knowledge โ€‹

sh
chub init --from-deps                      # create .chub/, auto-pin docs
chub annotate openai/chat "Use streaming"  # team annotation
  --kind practice --team
chub agent-config sync                     # generate CLAUDE.md, .cursorrules

MCP Setup โ€‹

Chub MCP Dataflow โ€” Agent โ†’ Chub โ†’ Registry

Add to your MCP config and your AI agent gets instant access to context, tracking, and team knowledge:

json
{
  "mcpServers": {
    "chub": {
      "command": "chub",
      "args": ["mcp"]
    }
  }
}

Works with Claude Code, Cursor, Windsurf, Copilot, Gemini CLI, Kiro, Codex, Cline, Roo Code, Augment, Continue.dev, and Aider. See Agent Integrations for setup guides.

8 MCP tools: chub_search, chub_get, chub_list, chub_context, chub_pins, chub_annotate, chub_feedback, chub_track

Benchmarks โ€‹

Context vs Context Hub โ€” 1,553 docs, median of 5 runs โ€‹

OperationContext Hub (JS)Chub (Rust)Speedup
search "stripe payments"1,060 ms56 ms19x
build --validate-only1,920 ms380 ms5x
build (1,560 entries)3,460 ms1,770 ms2x
get stripe/api148 ms63 ms2.3x
Cold start (--help)131 ms44 ms3x
MetricContext Hub (JS)Chub (Rust)
Package size~22 MB (node_modules)10 MB (single binary)
Runtime dependencyNode.js 20+None
Peak memory (build)~122 MB~23 MB

Secret scanning โ€” 10 real public repos, median of 3 runs โ€‹

Directory scan (chub vs gitleaks v8.30.1):

RepoFilesChubGitleaksSpeedup
axios/axios361124 ms410 ms3.8x
expressjs/express213119 ms409 ms3.9x
tokio-rs/tokio843132 ms414 ms3.5x
tiangolo/fastapi2,981263 ms421 ms1.8x
django/django7,027445 ms435 ms1.1x
golang/go15,154847 ms422 ms0.6x

Chub is 2โ€“4x faster on repos up to ~7k files. gitleaks leads on very large monorepos. See full table.

What makes Chub different โ€‹

CapabilityContext HubContext7Chub
Context
Curated docs1,600+hosted1,553+
MCP server5 tools2 tools8 tools
CLI commands7โ€”22
Self-hosted registryYesNoYes
Format compatibleโ€”โ€”Identical to Context Hub
Self-Learning
Structured annotations (issue/fix/practice)NoNoYes
Three-tier storage (personal/team/org)NoNoYes
Annotation policy in CLAUDE.mdNoNoYes
Team Features
Doc version pinningNoNoYes
Context profiles with inheritanceNoNoYes
Agent config syncNoNo10 targets
Project context docsNoNoYes
Tracking & Analytics
Session trackingNoNoYes
Cost estimationNoNoYes
Web dashboardNoNoYes
Multi-agent supportโ€”โ€”6+ agents
Security
Secret scanning (260+ rules)NoNoYes
AI transcript scanningNoNoYes
Gitleaks/betterleaks compatibleNoNoDrop-in
SARIF/JSON/CSV outputNoNoYes

Built on Context Hub by Andrew Ng โ€” fully format-compatible. Complementary to Context7. Read the full story.

Built on Context Hub by Andrew Ng