Privacy choices: we'd like to measure visits anonymously (our own cookie-free counter plus Google Analytics, which sets its own cookies; no ads) and load Beehiiv's newsletter sign-up, which may set its own cookies. Nothing optional runs until you choose. Privacy policy

AgentScout / Tasks / Writing code / Codebase context and code search

Codebase context and code search tools for coding agents

Context layers and code search that help agents understand large codebases with fewer tokens. Of the 964 tools on our writing code page, 41 fit this narrower job. By pricing: 32 open source, 2 source-available, 3 free or freemium, 2 paid, usage-based or enterprise, 2 pricing on the maker's site. The most-starred open repos here are Claude Code (153,919 stars), Graphify (139,123 stars), Archify (94,965 stars). Most come from the coding (26), MCP servers (8), agent infra (2) categories.

Updated

Claude Code logo

Claude Code

codingPaid

Claude Code is Anthropic's agentic coding tool that lives in your terminal, understands your codebase and carries out routine tasks, explains complex code and handles git workflows through natural-language commands. It also runs in IDEs and on GitHub when you tag @claude, and installs via a native script, Homebrew or WinGet (the npm install is deprecated).

Added

Graphify logo

Graphify

codingOpen source

Graphify is an Apache-2.0 /graphify skill for Claude Code, Cursor, Codex and Gemini CLI that maps a whole project, including code, docs, SQL schemas, configs and PDFs, into a knowledge graph the agent can query instead of grepping through files. Code is parsed locally with tree-sitter, so the map is deterministic, needs no LLM or vector store, and nothing leaves your machine, and every edge in the graph says why it exists. A separate paid Graphify Cloud adds always-on team memory with a 14-day trial.

Added

Archify logo

Archify

codingOpen source

Archify is an Apache-2.0 agent skill for Cursor, Claude Code, Codex CLI and OpenCode that turns an idea, plan or whole codebase into an interactive HTML diagram you can explore, follow source links through and share, from repository maps to learning paths and travel plans.

Added

Understand-Anything logo

Understand-Anything

codingOpen source

Turns any codebase, knowledge base or docs folder into an interactive knowledge graph you can explore and question, working inside Claude Code, Codex, Cursor, Copilot and Gemini CLI.

Added

CLI-Anything logo

CLI-Anything

agent infraOpen source

CLI-Anything, from the HKU Data Science lab (HKUDS), is an Apache-2.0 project that turns existing desktop software, codebases and web APIs into agent-native command-line tools, so coding agents like Claude Code can drive programs such as Blender, GIMP, LibreOffice or CAD apps through structured commands with previews instead of screenshots. Its CLI-Hub (pip install cli-anything-hub) lets agents browse and install community-built CLIs, and contributors can add new harnesses by pull request.

Added

Aider logo

Aider

codingOpen source

Aider is an Apache-2.0 AI pair programmer in your terminal: you start a new project or work in an existing repo, and it edits files across 100+ languages using a map of your whole codebase, then commits each change to git with a sensible message. It works with Claude, DeepSeek, OpenAI models and almost any other LLM, including local models, and also supports voice input, images and web pages as context and linting and testing after each edit.

Added

Open Code Review logo

Open Code Review

codingOpen source

Open Code Review is Alibaba's Apache-2.0 AI code review CLI (ocr), used internally by tens of thousands of Alibaba developers before it was open-sourced. It reads Git diffs and sends changed files to an agent that can read whole files, search the codebase and inspect related changes, then posts structured line-level comments; deterministic pipelines and a built-in multi-language ruleset catch issues like null-pointer risks, thread safety, XSS and SQL injection, and ocr scan reviews whole files or folders without a diff. It works with any OpenAI- or Anthropic-compatible model endpoint.

Added

Codebase Memory MCP logo

Codebase Memory MCP

MCP serversOpen sourceLocal only

MCP server that indexes codebases into a persistent knowledge graph so coding agents can look up structure quickly.

Added

Context Mode logo

Context Mode

codingSource-available + cloud

Context window optimizer for coding agents that sandboxes tool output and persists session memory.

Added

code-review-graph logo

code-review-graph

codingOpen source

Local code knowledge graph built with Tree-sitter that serves compact review context over MCP, so coding agents read only the files a change touches.

Added

Composio logo

Composio

agent infraFreemium

Composio gives AI agents more than 1,000 pre-authenticated toolkits for apps such as Gmail, Slack, GitHub and Salesforce, with per-user sessions, managed OAuth, tool search, triggers and a sandboxed workbench, so an agent can act in a user's accounts without you building each integration. The MIT-licensed monorepo ships TypeScript and Python SDKs, a CLI for searching and running tools from the shell, and adapters for the OpenAI Agents SDK, Claude Agent SDK, Vercel AI SDK, LangChain and more; the hosted platform has a free tier.

Added

Repomix logo

Repomix

codingOpen source

CLI and web tool that packs an entire repository into a single AI-friendly file (with an MCP server) so coding agents and LLMs get full codebase context.

Added

Dagger logo

Dagger

frameworksOpen source + cloud

Automation engine to build, test and ship any codebase. Runs locally, in CI, or directly in the cloud

Added

HumanLayer logo

HumanLayer

codingOpen source

Tools for getting coding agents to solve hard problems in complex codebases.

Added

Claude Context logo

Claude Context

codingOpen source

Zilliz MCP plugin that adds semantic code search to Claude Code and other coding agents, using your whole codebase as context.

Added

Trail Code logo

Trail Code

codingOpen source

Context layer that makes Claude Code, Cursor, Codex and other coding agents faster and cheaper on large codebases.

Added

Repowise logo

Repowise

codingOpen source

Codebase intelligence tool that indexes code, call graph, git history and docs locally and answers questions for you and your coding agent over MCP.

Added

Semble logo

Semble

codingOpen source

Fast code search for agents that uses far fewer tokens than grep and file reads.

Added

Potpie logo

Potpie

codingOpen source + cloud

Builds a knowledge graph of your codebase so agents can help across the software lifecycle.

Added

Code-Graph-RAG logo

Code-Graph-RAG

codingOpen source

Graph-based RAG for monorepos that lets agents query and edit multi-language code.

Added

Fallow logo

Fallow

codingOpen source

Codebase intelligence for TypeScript and JavaScript in a single Rust binary. It reports health, complexity hotspots, duplication, circular dependencies, architecture boundaries and unused code, and ships as a CLI, a GitHub Action, an LSP, an MCP server and a VS Code extension.

Added

LazyCodex logo

LazyCodex

codingOpen source

Agent harness for Codex that adds project memory, planning, execution and verified completion for complex codebases.

Added

SocratiCode logo

SocratiCode

codingOpen source

Codebase context engine for AI agents with hybrid semantic search, dependency graphs and impact analysis, available as MCP, plugin or skill.

Added

TrustGraph logo

TrustGraph

Newmemory & RAGOpen source

TrustGraph is an Apache-2.0 ontology runtime for AI agents: it turns your documents and data into ontology-grounded knowledge graphs built on W3C standards (RDF, OWL, SHACL, PROV-O) and governs what each agent and user can see. It is aimed at enterprises where agent decisions carry real risk, keeps your ontology, knowledge and audit trail portable and self-hosted, and has a playground, Docker images and a PyPI package.

Added

CodeBoarding logo

CodeBoarding

codingOpen source

Generates interactive architecture diagrams of codebases.

Added

Shippie logo

Shippie

QA & testingOpen source

Extendable code review and QA agent that reads your diff, explores the codebase and posts focused review comments.

Added

Gemini MCP Tool logo

Gemini MCP Tool

codingSource-available

MCP server that lets Claude and other assistants call the Gemini CLI to analyze large files and codebases with its big context window.

Added

AOCI-CODE logo

AOCI-CODE

codingOpen source

AOCI-CODE keeps a persistent, Git-versioned map of your whole codebase and database schema that your coding agent writes and a local MCP server governs. Agents in Codex, Claude Code, Cursor or OpenCode read the map once and know what each file is for, what it depends on and what must not break, instead of re-reading the repo on every task. It can index an existing codebase of up to about half a million lines and report how well it knows each area before taking over development.

Added

Webbrain logo

Webbrain

Newbrowser/computer useSee site

Webbrain is an open-source agent project that helps builders handle AI browser agent for Chrome and Firefox (monorepo).

Added

Repobrain logo

Repobrain

NewMCP serversOpen sourceNot yet checked

๐Ÿง  RepoBrain (formerly Antigravity) โ€” Give your repo a brain. ChatGPT for your codebase: works in Claude Code, Cursor, Codex, Windsurf & more.

Added

Axiomcodegraph logo

Axiomcodegraph

NewcodingOpen source

AxiomCode Graph turns a repository into a knowledge graph built with formal methods: for every function it derives exactly who calls it and what it calls, including calls through interfaces and subclasses that grep misses. Coding agents then explore, search and edit from that map to see what each change breaks, saving time and tokens. It runs locally with a CLI.

Added

nanocode logo

nanocode

frameworksOpen source

nanocode is a small SDK for embedding frontier-model agents inside your own apps and tools. It provides the agent loop, tool calling and session handling for models such as Claude and GPT in a compact codebase, so developers can ship a capable embedded agent without adopting a heavy framework.

Added

Octocode logo

Octocode

NewMCP serversOpen sourceLocal only

Octocode is an MCP server that gives agents a way to handle code indexer with semantic search and knowledge graphs.

Added

Roam Code logo

Roam Code

NewMCP serversOpen sourceNot yet checked

Roam Code is an MCP server that gives agents a way to handle local codebase intelligence CLI + MCP server for AI coding agents: SQLite.

Added

Code Context Engine logo

Code Context Engine

NewMCP serversOpen sourceLocal only

Code Context Engine is an MCP server agents call to index your codebase.

Added

RoboSystems logo

RoboSystems

NewMCP serversOpen sourceNot yet checked

RoboSystems is an MCP server that gives agents a way to handle accounting knowledge graphs: SEC XBRL filings, QuickBooks ledgers, reports and forecasts over.

Added

Spiderbrain logo

Spiderbrain

NewMCP serversOpen sourceNot yet checked

Spiderbrain is an MCP server that gives agents a way to handle deterministic context layer for your codebase: change impact, blast radius, answers.

Added

Augment Code logo

Augment Code

codingPaid

Agentic software development platform for engineering teams, with coding agents that use deep context from large codebases.

Added

cubic logo

cubic

codingFreemium

AI code review that catches bugs in complex codebases on every pull request.

Added

Greptile logo

Greptile

codingFreemium

AI code reviewer that reads your whole codebase to review pull requests and catch bugs before merge.

Added

Ml) Persistent Agent Memory & Code Localization logo

Ml) Persistent Agent Memory & Code Localization

NewMCP serversSee siteNot yet checked

Sub-millisecond persistent memory, behavioral code search, and bug localization for AI agents.

Added

GitHub repos (38)

RepoGitHub starsLicenceLast push
Claude Code โ†—153,919Proprietary (All rights reserved; Anthropic Commercial Terms of Service)2026-10-30
Graphify โ†—139,123Apache License 2.02026-10-27
Archify โ†—94,965Apache License 2.0โ€”
Understand-Anything โ†—88,992MIT2026-10-26
CLI-Anything โ†—57,786Apache License 2.02026-09-22
Aider โ†—49,825Apache License 2.02026-05-22
Open Code Review โ†—49,071Apache License 2.02026-10-30
Codebase Memory MCP โ†—47,830MIT2026-10-29
Context Mode โ†—32,905Elastic License 2.0 (source-available)2026-10-30
code-review-graph โ†—32,498MIT2026-10-15
Composio โ†—30,828MIT2026-10-29
Repomix โ†—29,080MIT2026-10-28
Dagger โ†—16,550Apache License 2.02026-10-30
HumanLayer โ†—12,712Apache-2.02026-10-29
Claude Context โ†—12,660MIT2026-07-14

Top 15 of 38 by stars. Stars and licence come from each repo, checked when the listing was last verified.

FAQ

What are the best AI tools for writing code focused on codebase context and code search?

We list 41. The first three by GitHub stars and featured status are Claude Code: Claude Code is Anthropic's agentic coding tool that lives in your terminal, understands your codebase and carries out routine tasks, explains complex code and handles git workflows through natural-language commands. It also runs in IDEs and on GitHub when you tag @claude, and installs via a native script, Homebrew or WinGet (the npm install is deprecated).; Graphify: Graphify is an Apache-2.0 /graphify skill for Claude Code, Cursor, Codex and Gemini CLI that maps a whole project, including code, docs, SQL schemas, configs and PDFs, into a knowledge graph the agent can query instead of grepping through files. Code is parsed locally with tree-sitter, so the map is deterministic, needs no LLM or vector store, and nothing leaves your machine, and every edge in the graph says why it exists. A separate paid Graphify Cloud adds always-on team memory with a 14-day trial.; Archify: Archify is an Apache-2.0 agent skill for Cursor, Claude Code, Codex CLI and OpenCode that turns an idea, plan or whole codebase into an interactive HTML diagram you can explore, follow source links through and share, from repository maps to learning paths and travel plans.

Are there free or open-source options?

Yes: 32 open source, 2 source-available, 3 free or freemium, 2 paid, usage-based or enterprise, 2 pricing on the maker's site. Pricing is as each maker states it.

More from writing code

Tools are grouped by what each says it does. Missing one? Submit it free.