Reading the repo
Opening the box…
Reading the repo
Opening the box…
How to install on macOS
Build and Search a knowledge base for your projects—bringing together code, PDFs, Markdown, and everything else.
Saved setup from 2 h ago
Will it work on macOS?
CONTRIBUTING.mdThank you for your interest in contributing to hedwig-cg! This guide will help you get started.
# Clone the repository
git clone https://github.com/hedwig-ai/hedwig-code-graph.git
cd hedwig-code-graph
# Create a virtual environment
python -m venv .venv
source .venv/bin/activate # Linux/macOS
# .venv\Scripts\activate # Windows
# Install in development mode with dev dependencies
pip install -e ".[dev]"
# Run all tests with coverage
pytest
# Run a specific test file
pytest tests/test_store.py
# Run with verbose output
pytest -v
We use Ruff for linting and formatting:
# Check for issues
ruff check .
# Auto-fix issues
ruff check --fix .
# Format code
ruff format .
Key conventions:
hedwig_cg/
├── cli/ # Click-based CLI interface
├── core/ # Pipeline stages (detect, extract, build, cluster, analyze)
├── query/ # Hybrid search engine (vector + graph + keyword + RRF)
└── storage/ # SQLite + FAISS storage layer
main.tests/.The pipeline follows a linear flow:
detect → extract → build → embed → cluster → analyze → store
By contributing, you agree that your contributions will be licensed under the MIT License.
Then run bash setup.sh. It stops at the first error and is safe to run again. Servers and tests aren't started; it lists them at the end. Read it first.
Needs Git: xcode-select --install
git clone https://github.com/hedwig-ai/hedwig-code-graph.git cd hedwig-code-graph
Python >=3.10
brew install uv
uv sync
uv run pytest
pip install hedwig-cg
cd your-project/
hedwig-cg claude install
Then tell Claude Code:
"Build a code graph for this project"
That's it. Claude Code will build the graph, and from then on, consult it before every search. The graph auto-rebuilds when your session ends.
No reports for macOS yet.
GitManual AI Agent reads the 5 key files and writes a step-by-step guide for macOS. Once written, it's saved for everyone.