By githits-com
Search canonical open-source code examples from global repositories and inspect package intelligence (versions, licenses, vulnerabilities, dependencies) using a CLI tool with natural language queries.
Use GitHits CLI for canonical open-source examples, indexed source, docs, grep, file listing, and code navigation. Activate when verifying library behavior from source or examples. For metadata, vulnerabilities, dependency graphs, or changelogs, use githits-package instead.
Set up GitHits from an agent session: detect supported coding tools, install GitHits MCP configuration, start account sign-in/signup, verify auth, and recover from setup issues. Use when the user asks to install, connect, set up, sign up for, or start using GitHits.
Use GitHits CLI package-intelligence commands for package/dependency triage: overview, latest version, license, repository health, vulnerabilities, advisory history, dependency graphs, transitive provenance, changelogs, release notes, and upgrade reviews. Activate for packages, dependencies, versions, upgrades, CVEs, dependency footprints, or release changes.
No model invocation
Executes directly as bash, bypassing the AI model
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
Code examples from global open source for developers and AI assistants.
GitHits gives your AI coding assistant access to verified, canonical code examples drawn from all of open source. When your assistant is stuck, needs an up-to-date API example, or encounters a vague error, GitHits helps it find a working solution in seconds.
npx githits init
init walks you through setup: choose the local MCP server or Agent Skills, detect your coding tools, sign in, and connect everything to GitHits.
Supported tools: Claude Code, Cursor, Windsurf, VS Code / Copilot, Cline, Claude Desktop, Codex CLI, Pi, Gemini CLI, Google Antigravity, OpenCode, and Hermes Agent.
If you are using a tool that is not listed above, use the manual MCP setup instructions near the end of this README.
The npm package includes Open Plugin-compatible files:
.plugin/plugin.json (vendor-neutral, used by Cursor/Codex/Copilot-compatible hosts).claude-plugin/plugin.json (Claude Code compatibility).claude-plugin/marketplace.json (Claude Code marketplace catalog).mcp.json (Open Plugin MCP server config for plugin hosts)plugins/claude/ (Claude plugin runtime payload: .claude-plugin/plugin.json, .mcp.json, skills/, and commands/)Root .claude-plugin/marketplace.json provides marketplace metadata. Claude Code
loads the plugin runtime payload from plugins/claude/.
Claude Code Plugin (Marketplace)
Install from terminal (recommended):
claude plugin marketplace add githits-com/githits-cli
claude plugin install githits@githits-plugins
This is preferred over in-session install so the plugin is loaded cleanly on
next claude launch.
Alternative (inside Claude input):
/plugin marketplace add githits-com/githits-cli
/plugin install githits@githits-plugins
If installed inside a running Claude session, reload/restart Claude if the plugin is not immediately available.
For unpublished/local testing of this repository:
claude plugin marketplace add "$PWD"
claude plugin install githits@githits-plugins
By default, the plugin starts MCP with npx -y githits@latest mcp start so installs track the latest published GitHits CLI.
For unpublished/local testing, install from your local repository path and verify behavior in your host before publishing.
In Claude Code, run /mcp and confirm plugin:githits:githits is listed for the plugin path.
Note: when running Claude in this repository directory, root .mcp.json can also register githits for project-level MCP. For plugin-only attribution during testing, run Claude from a different working directory.
Gemini CLI extension install
gemini extensions install https://github.com/githits-com/githits-cli
For plugin-based hosts, install from npm/GitHub using your agent's plugin workflow and enable plugin githits.
.plugin/ for Open Plugin installs.claude-plugin/ and Open Plugin componentsgemini-extension.json and GEMINI.mdThat's it. Your assistant now has GitHits example-search tools and indexed dependency/package inspection tools.
GitHits runs as an MCP server that your AI assistant connects to over stdio.
Core tools available in every authenticated session:
| Tool | Purpose |
|---|---|
get_example | Find canonical code examples by describing what you need in natural language |
search_language | Look up supported programming language names |
feedback | Submit result or session feedback to improve future quality |
The assistant decides when to call these tools on its own — typically when it's stuck, needs a working example for an unfamiliar API, or encounters an error it can't resolve from its training data alone.
GitHits also exposes indexed package/source tools:
Code examples from global open source for developers and AI assistants
Code examples from global open source for developers and AI assistants
npx claudepluginhub githits-com/githits-cliGitHub integration providing repository management, issues, pull requests, actions, and code search via GitHub Copilot's hosted MCP server. Zero configuration required.
Personal Claude Code + Codex dev stack: security hooks, AI-first code conventions, /security-review, /repo-map, /stack-check, portable statusline. Designed to complement other skills-based plugins, not replace them.
CodeAlive context engine for semantic code search and AI-powered codebase Q&A. Enables AI coding agents to understand entire codebases beyond just open files — search across all indexed repositories, trace cross-service dependencies, discover usage patterns, and get synthesized answers to architectural questions. Includes a lightweight code exploration subagent, authentication hooks, and multiple search modes (fast lexical, semantic, and deep cross-cutting). Works standalone or alongside the CodeAlive MCP server for direct tool access via the Model Context Protocol.
Hub plugin for cc-multi-cli-plugin: contains the companion runtime, subagents, setup wizard, and customization skills.
A powerful code indexing tool with multi-platform support
Research existing solutions when exploring a new problem space