> ## Documentation Index
> Fetch the complete documentation index at: https://theagenticguy.github.io/opencodehub/llms.txt
> Use this file to discover all available pages before exploring further.
> Scoped bundles: [user-guide](https://theagenticguy.github.io/opencodehub/_llms-txt/user-guide.txt) · [mcp](https://theagenticguy.github.io/opencodehub/_llms-txt/mcp.txt) · [contributing](https://theagenticguy.github.io/opencodehub/_llms-txt/contributing.txt)

# Agents

OpenCodeHub gives an AI coding agent a code graph it can query: callers,
callees, processes, blast radius, owners, scanner findings, and a 5-tier
PR verdict — all behind 29 MCP tools served by one local binary. The
graph is built deterministically from your repo and stored next to it.

Other docs sections answer "what is OCH" and "how is it built." This
section answers "how does my agent talk to it."

## Who this is for

- An AI coding agent (Claude Code, Cursor, Codex, Windsurf, OpenCode,
  or anything else that speaks MCP) that needs to ground its answers in
  the structure of a codebase.
- The engineer wiring that agent up.

If you are reading this with an LLM in the loop, the rest of this
section is paste-ready. Headings are scannable. Code is first-class.

## 90-second setup

```bash title="install OpenCodeHub once, per-machine"
git clone https://github.com/theagenticguy/opencodehub
cd opencodehub
pnpm install --frozen-lockfile
mise run cli:link        # puts `codehub` on PATH
```

```bash title="wire it into a target repo"
cd /path/to/your/repo
codehub init             # writes .mcp.json + links the Claude Code plugin
codehub analyze          # first index — 30s to a few minutes
```

Restart your editor. Your agent now has 29 MCP tools, all prefixed
`mcp__opencodehub__*`. See [Install](/opencodehub/agents/install/) for
the full path or jump to the per-editor card below.

## Pick your editor

[Claude Code](/opencodehub/agents/editors/claude-code/)
  [Cursor](/opencodehub/agents/editors/cursor/)
  [Codex](/opencodehub/agents/editors/codex/)
  [Windsurf](/opencodehub/agents/editors/windsurf/)
  [OpenCode](/opencodehub/agents/editors/opencode/)
## What's in this section

[Why MCP](/opencodehub/agents/why-mcp/)
  [Install](/opencodehub/agents/install/)
  [Tool decision matrix](/opencodehub/agents/tool-decision-matrix/)
  [Idiomatic prompts](/opencodehub/agents/idiomatic-prompts/)
  [Discovery and resources](/opencodehub/agents/discovery-and-resources/)
  [MCP registries](/opencodehub/agents/registries/)
  [llms.txt cheatsheet](/opencodehub/agents/llms-txt-cheatsheet/)