bgauryy/octocode
Code research platform for AI agents; find, understand, and prove context across your code and all of GitHub, in a fraction of the tokens. One toolset, MCP or CLI
What it solves
Octocode is an evidence-first code research platform designed to provide AI agents and developers with precise, token-efficient context from both local filesystems and external sources like GitHub and npm. It prevents agents from "guessing" by allowing them to chain search, structural analysis, and semantic navigation to find the exact code regions needed for a task.
How it works
Octocode uses a high-performance Rust engine to power a suite of 17 tools. It can be deployed as a Model Context Protocol (MCP) server for AI assistants or as a standalone CLI. The system integrates ripgrep, AST (Abstract Syntax Tree) search, and Language Server Protocol (LSP) to perform deep code analysis. It supports a "search-broad, read-narrow" workflow where agents can find a pattern, fetch only the specific matched lines, and use minification/skeletonization to reduce token usage while preserving structural meaning across 70+ languages.
Who it’s for
- AI Agent Developers: Those building agents that need to research and modify codebases without over-fetching tokens.
- Software Engineers: Developers who want a powerful, unified CLI for researching local and remote repositories. -- AI Assistant Users: Users of MCP-compatible clients (like Cursor, VS Code, Windsurf) who want their AI to have deep, evidence-based access to their code.
Highlights
- Unified Research Flow: Single toolset for local code, GitHub repositories, PRs, issues, and npm packages.
- Token Efficiency: Built-in minification and skeletonization to strip boilerplate and reduce model context window pressure.
- Semantic Navigation: Full LSP support for resolving definitions, references, callers, and type relationships.
- Structural Search: AST-based searching to avoid false positives from comments or strings.
- High Performance: Powered by a Rust engine for fast execution across single files or massive monorepos.
- MCP Integration: Native support for the Model Context Protocol for one-click installation in modern AI IDEs.
Related
- Project
- Project
- Project
- Project
- Project