# Glyph > Glyph is code intelligence for AI coding agents. Index a GitHub repository once and your agent can see how the code connects — definitions, callers, and transitive dependents — with file:line citations. Connect a repo in about a minute. No card required. Glyph is built for agents that already use the Model Context Protocol (MCP). Instead of guessing at grep results or loading whole files, the agent calls a small set of code-aware tools and gets prompt-sized context with sources. ## What Glyph does - Indexes a GitHub repository into a code graph of symbols, callers, imports, and tests. - Answers code questions with ranked snippets under a token budget. - Traces direct callers and transitive dependents before a change. - Finds tests that reference a symbol, so agents can start from a narrower set — and labels what it did not check. - Plans multi-file changes in dependency order. - Reviews a branch diff and reports what breaks, what it did not check, and which tests reference the change. - Runs an agent-written script in a sandbox (code mode), so one call performs a whole multi-lookup investigation. ## Product facts - 16 MCP tools: 12 core retrieval and change-intelligence tools, plus 4 atomic helpers. - Code mode adds `run_code` on the same `/mcp` endpoint: 10 scripts/day on Free, 100 on Pro. - Works with MCP-capable agents, including Claude, OpenAI/Codex, opencode, and Grok-based clients. - Free to start: 100 answers a day. - Pro: $5 per seat for 1,000 answers and unlimited repos. - Team: $10 per month for 5 seats. - Self-hosted deployments are available by contacting the team. - Measured results: 48.6% median context-token reduction across 30 queries; 16/17 bugs fixed with Glyph versus 13/17 with plain search across 17 tasks in the public outcome study. Both are small studies with published methods and sessions. - Cost model: less repository context means fewer input tokens at the same per-token price, so the input bill falls. Total spend also includes output, retries and caching. ## Start here - [Product overview](https://tryglyph.dev/product): how Glyph retrieves and connects code context, and the full MCP tool list. - [Documentation](https://tryglyph.dev/docs): connect a repo and add one config line to your agent. - [Pricing](https://tryglyph.dev/pricing): free, Pro, and Team plans. - [Research](https://tryglyph.dev/research): benchmark method, task results, and public sessions. - [Changelog](https://tryglyph.dev/changelog): what is new in Glyph. - [Blog](https://tryglyph.dev/blog): notes on code search, AI coding agents, and context quality. - [Contact](https://tryglyph.dev/contact): Pro, Team, and self-hosted questions. ## MCP tools - `search_code` — ranked snippets for a question about the code. - `get_context` — prompt-sized context assembled under a token budget. - `get_symbol` — jump to a definition. - `find_references` — direct callers of a symbol. - `analyze_impact` — transitive dependents with files. - `covering_tests` — tests that exercise a symbol. - `plan_change` — scope, build order, and verification set in one call. - `describe_diff` — what a push breaks. - `review_change` — one brief over a change: files, symbol deltas, dependents, tests, risks. - `verify_change` — a receipt of callers, tests, and what was not checked. - `index_status` — whether a repo is indexed and ready. - `sync_working_tree` — send the branch diff for uncommitted work. - `scope_change` — caller and dependent counts per symbol. - `order_changes` — the order to change files in. - `test_plan` — the exact test files to run. - `get_file_outline` — every symbol in a file, in order. ## Code mode - Endpoint: served by `/mcp` itself — one credential, the 16 direct tools plus `run_code`; `/code/mcp` remains as an alias. Typed API: `/code/api.d.ts`, `glyph://api`. Playbook prompt: `glyph-code`. - One tool, `run_code`, takes exactly one of `code` (a TypeScript script with top-level await) or `recipe`, plus `args`, `allowWrites`, and an optional `sessionId`. - The script runs in a QuickJS-WASM sandbox. It sees only the `glyph.*` API: no network, no filesystem, no environment variables, no imports. - Guest API: `searchCode`, `getContext`, `getSymbol`, `getFileOutline`, `findReferences`, `analyzeImpact`, `coveringTests`, `indexStatus`, `describeDiff`, `reviewChange`, and `verifyChange` behind the write gate. - Returns `{ status, result, logs, calls, evidence, notChecked, truncated, error, limits, payload }`. - Measured, same eight lookups on one index: 8 separate calls = 32,816 bytes (8,204 tokens) over 8 round trips; one `run_code` script = 6,826 bytes (1,707 tokens) over 1 round trip — 4.8× less context. Both figures are `payload.total`, the bytes the envelope bills for both carriers; the script's own `calls[]` receipts report the 25,297 bytes it read through to produce that answer. - Budgets per run — Free: 10 scripts/day, 5 calls, 1 in flight, 8s wall (20s on a `describe_diff` run), reads only. Pro: 100 scripts/day, 20 calls, 4 in flight, 10s wall (30s on a `describe_diff` run), writes allowed. Every plan: 32KB script, 64KB result, 16KB logs. - Recipes: `trace_feature` (search → symbol → references → impact), `review_branch` (diff → impact → tests → verify), `plan_and_verify` (index status → verify). ## What Glyph does not check - Tests, lint, typecheck, runtime behaviour, external services — no tool runs them, and `verify_change` says so on every receipt. - Callers reached only through a re-export or a dynamic dispatch: no edge is recorded, so the answer is `unknown`, never `absent`. - Code added on your branch: the graph has no edges for it until an index run writes them. A synced diff yields text matches labelled "not a resolved edge" — leads, not a blast radius. - Files outside the indexed commit and the synced overlay. An uncommitted test file means coverage is unconfirmed, not missing. - `covering_tests` states the depth it searched; `analyze_impact` states the rows it withheld. ## Links - Website: https://tryglyph.dev - GitHub: https://github.com/Official-Krish/ - X: https://x.com/KrishAnand0103 - Contact: Krishanand974@gmail.com