# Octocode: Research Driven Development for AI
<div align="center">
<img src="https://github.com/bgauryy/octocode-mcp/raw/main/packages/octocode-mcp/assets/logo_white.png" width="400px" alt="Octocode Logo">
<h3>Stop Guessing. Start Knowing.</h3>
<p><strong>Empower your AI assistant with the skills of a Senior Staff Engineer.</strong></p>
<p>
<a href="https://octocode.ai"><strong>π Official Website: octocode.ai</strong></a>
</p>
</div>
---
Octocode is not just a tool; it's a methodology and a platform that transforms how AI interacts with code. It moves AI from "guessing" based on training data to "knowing" based on deep, evidence-based research.
This repository contains the complete ecosystem that powers this transformation.
## π The Manifest
**"Code is Truth, but Context is the Map."**
At the heart of Octocode lies the **Manifest for Research Driven Development (RDD)**.
π **Read the full manifest here: [MANIFEST.md](./MANIFEST.md)**
The Manifest defines a new philosophy for AI coding:
- **Vibe-Research**: Enabling AI to intuitively explore code like a human.
- **Evidence First**: No line of code is written without proof it's needed and correct.
- **Adversarial Validation**: AI agents check each other's work (Planner vs. Verifier) to ensure quality.
It answers the question: *How can we trust AI to build complex software?* By forcing it to research before it acts.
---
## π The MCP (Model Context Protocol)
**The Eyes and Hands of Octocode.**
The **Octocode MCP Server** (`packages/octocode-mcp`) is the bridge between your AI (like Claude or Cursor) and the world of code. It acts as the engine that powers the research.
- **GitHub Tools**: Search millions of repositories, find usage patterns, and read real-world implementations.
- **Local Tools**: Explore your local codebase with filesystem access.
- **LSP Intelligence**: "Go to Definition", "Find References", and "Call Hierarchy" β giving AI the semantic understanding of a compiler.
The MCP Server provides the *capabilities* to see, touch, and understand code structure.
https://github.com/user-attachments/assets/de8d14c0-2ead-46ed-895e-09144c9b5071
---
## π§ The Skill
**The Brain of the Operation.**
> **[Agent Skills](https://agentskills.io/what-are-skills)** are a lightweight, open format for extending AI agent capabilities with specialized knowledge and workflows.
Octocode is supported in both MCP and as a skill!
It adds specialized capabilities **out-of-the-box (OOTB)**:
1. **Correct Prompts**: Auto-injects the Research Driven Development system prompts.
2. **Advanced Planning**: Breaks down complex problems into specific research questions.
3. **Deep Research**: Orchestrates the right MCP tools in the right order (e.g., Search β Go to Definition β Read).
4. **Parallel Agents**: Handles spawning sub-agents for parallel execution of research tasks.
This skill turns a generic AI model into a specialized **Research Architect**.
> **π‘ Tip**: Ask Octocode to "roast your code" and you will get a surprise! π₯π
https://github.com/user-attachments/assets/5b630763-2dee-4c2d-b5c1-6335396723ec
---
## β¨οΈ The CLI
**Your Command Center.**
Octocode comes with a powerful CLI to manage your agent's capabilities.
```bash
npx octocode-cli
```
It handles:
- **Authentication**: Easy GitHub OAuth setup.
- **Installations**: One-click setup for MCP servers and Skills.
- **Management**: Interactive menu for all Octocode features.
---
## π Documentation
Everything you need to master Octocode:
### π¦ Packages in this Monorepo
- **[octocode-mcp](./packages/octocode-mcp)**: The core MCP server for GitHub, Local FS, and LSP.
- **[octocode-cli](./packages/octocode-cli)**: The command-line interface for managing Octocode.
- **[octocode-research](./skills/octocode-research)**: The Research Skill for autonomous RDD.
- **[octocode-vscode](./packages/octocode-vscode)**: VS Code extension for authentication.
- **[octocode-shared](./packages/octocode-shared)**: Shared utilities and types.
### π₯ Tutorials
- [**Octocode AI YouTube Channel**](https://www.youtube.com/@Octocode-ai) - Video tutorials and deep dives.
### π Getting Started
- [**Installation Guide**](./README.md#installation-guide) - Get started quickly. (See previous README sections below)
- [**Octocode CLI**](./packages/octocode-cli/README.md) - The easiest way to install and manage skills.
### π Core Concepts
- [**The Manifest**](./MANIFEST.md) - The philosophy behind RDD.
### π οΈ Reference
- [**Authentication Setup**](./packages/octocode-mcp/docs/AUTHENTICATION_SETUP.md) - GitHub & GitLab authentication
- [**Configuration Reference**](./docs/CONFIGURATION_REFERENCE.md) - MCP server configuration options
- [**Troubleshooting**](./docs/TROUBLESHOOTING.md) - Common issues and solutions
---
## Installation Guide
> **Prerequisites**: GitHub authentication is required for all installations.
> See [Authentication Setup](./packages/octocode-mcp/docs/AUTHENTICATION_SETUP.md) for details.
### Quick Install
| Component | Command | Description |
|-----------|---------|-------------|
| **MCP Server** | `npx octocode-cli` | GitHub, Local FS & LSP tools for your AI |
| **Research Skill** | `npx add-skill octocode-research` | Autonomous research agent capabilities |
---
### Recommended: Octocode CLI
The CLI is the easiest way to install and manage everything:
```bash
npx octocode-cli
```
**Features:**
- Interactive setup wizard
- GitHub OAuth authentication
- MCP server installation
- Skills marketplace
---
### Alternative Installation Methods
<details>
<summary><strong>One-Click Install (Cursor)</strong></summary>
[<img src="https://cursor.com/deeplink/mcp-install-dark.svg" alt="Install in Cursor">](https://cursor.com/en/install-mcp?name=octocode&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyJvY3RvY29kZS1tY3BAbGF0ZXN0Il19)
</details>
<details>
<summary><strong>Manual Configuration</strong></summary>
Add to your MCP configuration file:
```json
{
"mcpServers": {
"octocode": {
"command": "npx",
"args": ["octocode-mcp@latest"]
}
}
}
```
</details>
<details>
<summary><strong>Research Skill (Direct Install)</strong></summary>
```bash
npx add-skill https://github.com/bgauryy/octocode-mcp/tree/main/skills/octocode-research
```
</details>
---
<div align="center">
<sub>Built with β€οΈ for the AI Engineering Community</sub>
</div>