Code and path search across GitHub by owner, repository, path, filename, extension, and match filters. Accepts 1 to 5 parallel queries.
Read a GitHub file or region: full file, line range, match slice, or paginated chars.
Browse a repository's directory tree, plus opt-in repository enrichments.
Discover repositories by keywords, owner, topic, language, stars, updated, license, visibility.
Search pull requests, or deep-read one PR: files, patches, comments, reviews, commits.
Search issues, or read one issue's body and comments.
Walk a repository's commit history, or compare two refs (`base`+`head`).
List releases and the latest stable release, with opt-in assets. **Opt-in** (see [Tools](#tools) for the flags).
Search a repository's Discussions (Q&A, RFCs, announcements) through GraphQL. **Opt-in** (see [Tools](#tools) for the flags).
Clone a repository or sparse subtree into the local cache for local and LSP analysis. **Opt-in** on MCP (`ENABLE_CLONE=true`); on by default in the CLI.
Local code/text search returning file and line anchors. `mode:"structural"` runs Octocode AST shape queries (`pattern` or `rule`).
Browse a local directory tree: depth, filters, pagination, metadata.
+5 more tools listed on main page