Index your local codebase into a SurrealDB knowledge graph and query it via natural language, SurrealQL, or MCP tools to trace function callers/callees, analyze change impacts, list file entities, fetch stats, search symbols, and audit graph health. Refresh indexes after changes and ingest external docs for cross-referenced insights, enabling precise, token-efficient AI-driven code intelligence.
Autonomous research loop. Takes a topic, runs web searches, fetches sources, synthesizes findings, and files everything into the knowledge graph. Based on Karpathy's autoresearch pattern. Triggers on: "/autoresearch", "research [topic]", "deep dive into [topic]", "investigate [topic]", "find everything about [topic]", "go research".
Code intelligence engine — query knowledge graphs, find functions, trace callers, analyze impact. Use when user asks about code structure, dependencies, function relationships, or wants to understand a codebase.
Ask a natural language question about the codebase. Translates to graph queries automatically. Use when user asks questions in Turkish or English about code structure.
Find all callers of a function. Use when user asks who calls a function, wants to trace call chains, or asks about function usage.
List all entities (functions, classes, imports, configs) in a specific file. Use when user asks what's in a file, wants a file overview, or asks about file contents.
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
The brain your AI coding assistant is missing.
A graph-first code intelligence engine. Your agents stop reading files and start traversing a knowledge graph — 98-99% fewer tokens, deterministic, single-digit-millisecond traversal.
Rust-native · Fully local · MCP + LSP + Web · 57 languages · 9 agents
Install · Quick Start · Why Graph-First? · Benchmarks · Docs · Releases
Most AI coding assistants still embed every file as a vector, nearest-neighbor a chunk, and pray it's relevant. When you ask "if I change User::email, what breaks?" they read 40 files and burn 150,000 tokens guessing.
That's not a code intelligence problem. It's an architecture problem. Vectors can't do graph traversal. Fuzzy search can't tell you who calls whom.
Codescope solves it the right way: parse the code into a knowledge graph — functions, calls, imports, type hierarchies, decisions, all of it — and let agents walk the graph instead of flipping through files.
Question: "Who calls parse_config transitively within 3 hops?"
Traditional RAG: Codescope:
───────────────── ─────────────────
~150K tokens ~1-2K tokens
~12 seconds ~3 ms (end-to-end)
Fuzzy text match Deterministic edge walk
Guess confidence Actual answer
| Platform | Command |
|---|---|
| Linux / macOS | curl -fsSL https://raw.githubusercontent.com/onur-gokyildiz-bhi/codescope/main/install.sh | bash |
| Windows | irm https://raw.githubusercontent.com/onur-gokyildiz-bhi/codescope/main/install.ps1 | iex |
| Homebrew | brew install onur-gokyildiz-bhi/codescope/codescope |
| Claude Code plugin | /plugin marketplace add onur-gokyildiz-bhi/codescope then /plugin install codescope@codescope |
| Build from source | cargo install --git https://github.com/onur-gokyildiz-bhi/codescope |
Already installed? codescope --version to check. Update in-place with codescope upgrade.
Pre-built binaries: x86_64-unknown-linux-gnu, aarch64-unknown-linux-gnu, aarch64-apple-darwin, x86_64-pc-windows-msvc.
# 1. Bring the bundled SurrealDB server up (idempotent)
codescope start
# 2. In your project — writes .mcp.json and indexes your code
cd your-project
codescope init
# That's it. Claude Code, Cursor, Codex — any MCP-compatible
# agent in this project now has codescope wired in.
Target a different agent:
codescope init --agent cursor # .cursor/mcp.json
codescope init --agent gemini-cli # ~/.gemini/settings.json
codescope init --agent vscode-copilot # .vscode/mcp.json
codescope init --agent codex # ~/.codex/config.toml
codescope init --agent windsurf # ~/.codeium/windsurf/mcp_config.json
codescope init --agent kiro # .kiro/settings/mcp.json
codescope init --agent cline # .vscode/cline_mcp_settings.json
codescope init --agent antigravity # global + GEMINI.md nudge
Daemon mode (MCP + Web UI in one process):
codescope init --daemon # port 9877 — per-repo routing at /mcp/<repo>
# Web UI: http://localhost:9877/
LSP mode (editor-agnostic — VS Code, Zed, Neovim, Helix, IntelliJ):
codescope lsp
# Go-to-def, Find References, Hover, Workspace Symbols — all graph-backed.
Daily operation:
codescope status # surreal server state
codescope gain # cumulative token savings
codescope insight # per-repo + hourly activity
codescope session # last 5 MCP sessions with tails
codescope upgrade # in-place self-update
codescope repair --repo <n> # drop + re-index a corrupted repo
codescope hook install # PreToolUse bash-suggest for Claude Code
codescope doctor # diagnose setup (+ --fix)
A structured MCP surface your agent programs against, instead of scrolling output.
search(mode) — fuzzy / exact / file / cross_type / neighborhood / backlinksfind_callers / find_callees — 1-hop call graphimpact_analysis — transitive BFS blast radiustype_hierarchy — inheritance chainscontext_bundle — file overview with delta-mode caching (97% savings on repeat visits)knowledge(action) — save / search / link / lint; scopes project / global / bothmemory(action) — save / search / pincapture_insight — record decisions in real timemanage_adr — Architecture Decision Recordsnpx claudepluginhub onur-gokyildiz-bhi/codescope --plugin codescopeLocal codebase intelligence + change-safety gates for coding agents. Pre-indexes your repo's symbols, call graph, deps, and git history into SQLite (28 languages, 100% local, zero API keys), then exposes a lean 16-tool MCP core preset: graph-precise search, callers/impact blast radius, coupling, dead code, taint reachability, and pre-merge verify/critique gates that catch regressions, broken references, AI-slop duplication, and convention drift before they ship.
AST knowledge graph for intelligent code navigation — auto-indexes your codebase and provides semantic search, call graph traversal, HTTP route tracing, and impact analysis via MCP tools
Code graph navigation and semantic search for LLM coding agents
Codebase intelligence — semantic search workflows, dependency graph analysis, and context artifact exploration for SocratiCode
Full AI context layer over MCP — tree-sitter code-map, document RAG (PDF/Office/HTML/email + OCR + reranker), shared agent memory, on-demand web crawl, git history + blame + per-symbol diff. 300+ languages, 8 coding-agent harnesses, content-addressed Fjall + LanceDB.
Lightweight knowledge graph for AI-assisted development. Impact analysis, code search, dependency tracking, and context generation.