AI-Powered Code Intelligence

Understand your codebase with semantic search, context packs, and MCP integration. Free local embeddings included.

# Install from PyPI
pip install ai-code-autodoc

# Analyze your codebase
autodoc analyze ./src --save

# Semantic search with natural language
autodoc search "user authentication flow"

Features

🔍

Semantic Search

Search your code with natural language. Find functions by what they do, not just their names.

📦

Context Packs

Group related code by feature. Perfect for giving AI assistants focused context.

🤖

MCP Server

9 tools for AI assistant integration via Model Context Protocol. Works with Claude, ChatGPT, and more.

💰

Free Local Embeddings

ChromaDB with sentence-transformers. No API key required for semantic search.

Impact Analysis

Know which features are affected when files change. Perfect for CI/CD pipelines.

📊

Cost Controls

Dry-run mode, caching, and configurable models. Stay in control of LLM costs.

Context Packs

Group your code by feature for focused AI context

# autodoc.yaml
context_packs:
  - name: auth
    display_name: Authentication System
    files:
      - "src/auth/**/*.py"
      - "api/routes/auth.py"
    security_level: critical
    tags: [security, core]

  - name: payments
    display_name: Payment Processing
    files:
      - "src/payments/**/*.py"
    dependencies: [auth]
autodoc pack build auth --embeddings --summary autodoc pack query auth "token validation" autodoc pack diff auth

Quick Start

1

Install

pip install ai-code-autodoc
2

Analyze

autodoc analyze ./src --save
3

Search

autodoc search "your query"

Optional: Enable AI Summaries

# Set API key for LLM features
export ANTHROPIC_API_KEY=sk-ant-...

# Generate AI summaries for packs
autodoc pack build --all --summary

MCP Integration

9 tools for AI assistant integration

pack_list
pack_info
pack_query
pack_files
pack_entities
impact_analysis
pack_status
pack_deps
pack_diff
autodoc mcp-server