๐ŸŒ AIๆœ็ดข & ไปฃ็† ไธป้กต
Skip to content

Muvon/octocode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Octocode - Intelligent Code Indexer and Graph Builder

ยฉ 2025 Muvon Un Limited (Hong Kong) | Website | Product Page

License Rust

๐Ÿš€ Overview

Octocode is a powerful code indexer and semantic search engine that builds intelligent knowledge graphs of your codebase. It combines advanced AI capabilities with local-first design to provide deep code understanding, relationship mapping, and intelligent assistance for developers.

โœจ Key Features

  • ๐Ÿ” Semantic Code Search - Natural language queries with multi-query support
  • ๐Ÿ•ธ๏ธ Knowledge Graph (GraphRAG) - Automatic relationship discovery between files
  • ๐ŸŒ Multi-Language Support - Rust, Python, JavaScript, TypeScript, Go, PHP, C++, Ruby, and more
  • ๐Ÿง  AI-Powered Features - Smart commits, code review, memory system with semantic search
  • ๐Ÿ”Œ MCP Server Integration - Built-in Model Context Protocol server with LSP support
  • โšก Performance & Flexibility - Intelligent LanceDB optimization, local/cloud embedding models

๐Ÿ“ฆ Quick Installation

# Universal install script (Linux, macOS, Windows)
curl -fsSL https://raw.githubusercontent.com/Muvon/octocode/master/install.sh | sh

Alternative methods:

  • Download from GitHub Releases
  • Install with Cargo: cargo install --git https://github.com/Muvon/octocode

For detailed installation instructions, see Installation Guide.

๐Ÿ”‘ API Keys Setup

โš ๏ธ Required for functionality:

# Required: Voyage AI (embeddings) - 200M free tokens/month
export VOYAGE_API_KEY="your-voyage-api-key"

# Optional: OpenRouter (LLM features)
export OPENROUTER_API_KEY="your-openrouter-api-key"

Get your free API keys:

๐Ÿš€ Quick Start

# 1. Index your codebase
octocode index

# 2. Search with natural language
octocode search "HTTP request handling"

# 3. Multi-query search for comprehensive results
octocode search "authentication" "middleware"

# 4. AI-powered git workflow
octocode commit --all

# 5. Start MCP server for AI assistants
octocode mcp --path /path/to/your/project

๐Ÿ“š Complete Documentation

๐Ÿ“– Quick Navigation

๐ŸŒ Supported Languages

Language Extensions Features
Rust .rs Full AST parsing, pub/use detection, module structure
Python .py Import/class/function extraction, docstring parsing
JavaScript .js, .jsx ES6 imports/exports, function declarations
TypeScript .ts, .tsx Type definitions, interface extraction
Go .go Package/import analysis, struct/interface parsing
PHP .php Class/function extraction, namespace support
C++ .cpp, .hpp, .h Include analysis, class/function extraction
Ruby .rb Class/module extraction, method definitions
JSON .json Structure analysis, key extraction
Bash .sh, .bash Function and variable extraction
Markdown .md Document section indexing, header extraction

๐Ÿ”’ Privacy & Security

  • ๐Ÿ  Local-first option: FastEmbed and SentenceTransformer run entirely offline (macOS only)
  • ๐Ÿ”‘ Secure storage: API keys stored locally, environment variables supported
  • ๐Ÿ“ Respects .gitignore: Never indexes sensitive files or directories
  • ๐Ÿ›ก๏ธ MCP security: Server runs locally with no external network access for search
  • ๐ŸŒ Cloud embeddings: Voyage AI and other providers process only file metadata, not source code

๐Ÿค Support & Community

โš–๏ธ License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.


Built with โค๏ธ by the Muvon team in Hong Kong