Context
Serve curated, versioned API docs to any AI agent. 1,553+ entries, BM25 search in 56ms, MCP + CLI. Your agents stop hallucinating API signatures.
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.
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.
npm install -g @nrl-ai/chubpip install chubcargo install chubbrew install nrl-ai/tap/chubOr download a prebuilt binary from GitHub Releases โ single 10 MB binary, no runtime dependencies.
chub search "stripe payments" # find docs
chub get openai/chat --lang python # fetch a doc
chub mcp # start MCP server for agentschub 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:4243chub scan secrets git # scan git history
chub scan secrets git --staged # pre-commit hook mode
chub scan secrets dir ./src # scan a directorychub 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, .cursorrulesAdd to your MCP config and your AI agent gets instant access to context, tracking, and team knowledge:
{
"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
| Operation | Context Hub (JS) | Chub (Rust) | Speedup |
|---|---|---|---|
search "stripe payments" | 1,060 ms | 56 ms | 19x |
build --validate-only | 1,920 ms | 380 ms | 5x |
build (1,560 entries) | 3,460 ms | 1,770 ms | 2x |
get stripe/api | 148 ms | 63 ms | 2.3x |
Cold start (--help) | 131 ms | 44 ms | 3x |
| Metric | Context Hub (JS) | Chub (Rust) |
|---|---|---|
| Package size | ~22 MB (node_modules) | 10 MB (single binary) |
| Runtime dependency | Node.js 20+ | None |
| Peak memory (build) | ~122 MB | ~23 MB |
Directory scan (chub vs gitleaks v8.30.1):
| Repo | Files | Chub | Gitleaks | Speedup |
|---|---|---|---|---|
| axios/axios | 361 | 124 ms | 410 ms | 3.8x |
| expressjs/express | 213 | 119 ms | 409 ms | 3.9x |
| tokio-rs/tokio | 843 | 132 ms | 414 ms | 3.5x |
| tiangolo/fastapi | 2,981 | 263 ms | 421 ms | 1.8x |
| django/django | 7,027 | 445 ms | 435 ms | 1.1x |
| golang/go | 15,154 | 847 ms | 422 ms | 0.6x |
Chub is 2โ4x faster on repos up to ~7k files. gitleaks leads on very large monorepos. See full table.
| Capability | Context Hub | Context7 | Chub |
|---|---|---|---|
| Context | |||
| Curated docs | 1,600+ | hosted | 1,553+ |
| MCP server | 5 tools | 2 tools | 8 tools |
| CLI commands | 7 | โ | 22 |
| Self-hosted registry | Yes | No | Yes |
| Format compatible | โ | โ | Identical to Context Hub |
| Self-Learning | |||
| Structured annotations (issue/fix/practice) | No | No | Yes |
| Three-tier storage (personal/team/org) | No | No | Yes |
| Annotation policy in CLAUDE.md | No | No | Yes |
| Team Features | |||
| Doc version pinning | No | No | Yes |
| Context profiles with inheritance | No | No | Yes |
| Agent config sync | No | No | 10 targets |
| Project context docs | No | No | Yes |
| Tracking & Analytics | |||
| Session tracking | No | No | Yes |
| Cost estimation | No | No | Yes |
| Web dashboard | No | No | Yes |
| Multi-agent support | โ | โ | 6+ agents |
| Security | |||
| Secret scanning (260+ rules) | No | No | Yes |
| AI transcript scanning | No | No | Yes |
| Gitleaks/betterleaks compatible | No | No | Drop-in |
| SARIF/JSON/CSV output | No | No | Yes |
Built on Context Hub by Andrew Ng โ fully format-compatible. Complementary to Context7. Read the full story.