CodeEagle
CodeEagle is a CLI tool that indexes codebases into a knowledge graph and exposes AI agents for planning, design review, and code review — all grounded in deep codebase understanding.
It supports monorepos, multi-repo setups, and multi-language codebases (Go, Python, TypeScript, JavaScript, Java, Rust, C#, Ruby, HTML, Markdown, Makefile, Shell, Terraform, YAML). No external database required — the embedded graph store runs locally with zero setup.
Features
- Knowledge graph of source code entities (functions, classes, interfaces, packages, services) and their relationships (calls, imports, implements, tests, etc.)
- 15 language parsers: Go (stdlib AST), Python, TypeScript, JavaScript, Java, Rust, C# (with ASP.NET), Ruby (with Rails), HTML, Markdown, Makefile, Shell, Terraform, YAML, plus a manifest parser (go.mod, package.json, pyproject.toml, requirements.txt)
- Document format extraction: Text extraction from DOCX, PPTX, XLSX, ODT, ODS, ODP (pure Go, stdlib only) and PDF (
dslipak/pdf in pure Go, or poppler when built with -tags poppler -- far faster on long documents). Documents are indexed, topic-extracted via LLM, and semantically searchable
- Non-code file indexing: Changelogs, design docs, CSVs, images, config templates — all indexed as Document nodes with optional LLM-based topic extraction and image description
- Meeting transcripts: Diarized recordings are indexed with speaker identification, topic segmentation, per-topic summaries, decisions, and follow-ups. Speakers arrive anonymous ("Person 1", "Person 2") and are resolved to durable people, shared with face recognition
- Face detection & recognition (optional,
-tags faces): OpenCV DNN-based face detection with 128-dim embeddings, agglomerative clustering, KNN classification, person management, and EXIF metadata extraction
- Cross-service dependency analysis: API endpoint extraction, HTTP client call detection, import-to-manifest linking, cross-file interface implements resolution
- Test coverage mapping: automatic test file/function detection across 8 languages with
EdgeTests linking to source counterparts
- Code quality metrics: cyclomatic complexity, lines of code, TODO/FIXME counts
- Graph analysis queries: unused code detection and test coverage reporting
- AI agents for planning, design, code review, and freeform Q&A — read-only, advisory, never modify code
- Temporal tracking: Every file node records
UpdatedAt with Year/Month/Date graph nodes for date-based queries (e.g., "files modified in March 2024")
- Duplicate file detection: Content-hash-based identification of identical files across different paths, with
DuplicateOf graph edges and query duplicates CLI command
- Symlink tracking: Automatic detection of symbolic links with
SymLink graph edges pointing to resolved targets
- Git-aware incremental sync with branch tracking and diff-based updates
- Smart non-git sync: Skips unchanged files by comparing mtime against DB, with crash-resilient periodic state saving
- MCP server for integration with Claude Code and other MCP-compatible tools
- LLM auto-summarization of services and architectural patterns
Installation
New to this, or setting it up for someone who is? docs/installation.md
walks through it step by step — no Go toolchain assumed — and covers the
configuration file, storing API keys in your system keyring, Google
application default credentials, and the failures that actually happen.
Pre-built Binaries (Recommended)
Download the latest release for your platform from GitHub Releases:
- Linux:
codeeagle-linux-amd64.tar.gz, codeeagle-linux-arm64.tar.gz
- macOS:
codeeagle-darwin-amd64.tar.gz, codeeagle-darwin-arm64.tar.gz
Extract and move to your PATH:
tar -xzf codeeagle-<platform>.tar.gz
sudo mv codeeagle /usr/local/bin/
To update to the latest version:
codeeagle update
Build from Source
Requires Go 1.27+ and a C compiler (gcc or clang) — needed for tree-sitter parsing via CGO.
go install github.com/imyousuf/CodeEagle/cmd/codeeagle@latest
Or clone and build:
git clone https://github.com/imyousuf/CodeEagle.git
cd CodeEagle
make build # Auto-detects OpenCV for face support
make build-faces # Explicitly enable face detection (requires libopencv-dev)
make build-minimal # Skip face detection
# Binary: bin/codeeagle
Keeping the index current
codeeagle sync indexes a project once. To stop doing that by hand:
codeeagle worker --list # every registered project, and what it watches
codeeagle service install # run it at login (Linux: systemd; macOS: launchd)