Setup Guide
Install Dual-Graph globally once, then run it on any project in seconds. Everything runs 100% locally โ no account, no API key, no cloud.
Prerequisites
- โClaude Code (Anthropic) or Codex CLI (OpenAI) installed
- โAn active Claude or ChatGPT Pro/Plus subscription
- โmacOS, Linux, or Windows
Install Homebrew (if not already installed)
Homebrew is a package manager for macOS and Linux.
1/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Configure Homebrew in your shell
1echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofile2eval "$(/opt/homebrew/bin/brew shellenv)"
Install Python 3.11
1brew install python@3.11
Install Dual-Graph
1brew tap kunal12203/tap2brew install dual-graph3dual-graph-install
Reload your shell
1source ~/.zshrc
Fresh setup commands for a new Windows laptop
1# 1) Allow scripts (once)2Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser34# 2) Install Scoop5irm get.scoop.sh | iex67# 3) Install runtime deps (open NEW terminal after this)8scoop install python311 nodejs910# 4) Install Claude Code11npm install -g @anthropic-ai/claude-code1213# 5) Install dual-graph from bucket14scoop bucket add dual-graph https://github.com/kunal12203/scoop-dual-graph15scoop update16scoop install dual-graph
After the global install, run one of the commands below inside your project directory. Dual-Graph will scan your codebase, build the graphs, and start the MCP server automatically.
1dg /path/to/project # Codex CLI (OpenAI / ChatGPT)2dgc /path/to/project # Claude Code (Anthropic)
That's it!
Your AI coding assistant will automatically connect to the local MCP server and receive enriched context for every query.
Windows FAQ
C) First-run validation on new laptop
Run `where.exe dgc`, `where.exe claude`, and `claude --version`. Then start `dgc "C:\path\to\your\project"` and run `claude mcp list` in a second terminal.
Why do I still get old dual-graph behavior after reinstall?
Run section A fully to remove project-local artifacts, user install folders, and Scoop shims before reinstalling.
Do I need to open a new terminal during setup?
Yes. After `scoop install python311 nodejs`, open a new PowerShell terminal before continuing with the remaining commands.