Skip to content
15.8M+ mapped lines

Pay 3x less for Claude to understand your code

Claude reads your code one file at a time. Pharaoh hands it a map: same answers, half the time, a third of the cost.

Works with Claude · Cursor · OpenClaw · Codex · Any MCP client
claude code — pharaoh
▐▛███▜▌ ▜█████▛▘ ▘▘ ▝▝ Claude Code with pharaoh codebase intelligence
✳ Claude Code pharaoh connected

AI agents have a context problem. You tell them to build and they read 3,000 lines of irrelevant code before getting started. Pharaoh gives agents a map of your codebase - what connects to what, what breaks if you change it, what already exists - so your AI changes code like someone who has read all of it.

15,839,312
Lines of code analyzed
334,752
Functions mapped
850
Repos mapped

Full architecture context before line one

Your AI queries the full module context before writing a single line. Functions, dependencies, endpoints, env vars - the real system, not three random files.

Every change checks what it breaks

Before your AI touches shared code, it knows exactly what depends on it. Direct callers, transitive impact, affected endpoints and crons.

No more duplicate code

Your AI searches the entire codebase for existing functions before writing new ones. If it exists, it imports it. If it doesn't, it creates it in the right place.

Current on every push

Pharaoh re-maps your repo on every push to the default branch. Your AI reasons about the code you shipped this morning, not last week's.

The architecture gap

Your AI reads files. Pharaoh reads how they connect.

Without Pharaoh
With Pharaoh
Knows what depends on what
✗ Guesses
✓
Checks what breaks before changing code
✗
✓
Finds existing code before writing new
✗ Writes new
✓
Remembers your codebase between sessions
✗ Forgets everything
✓
Knows which endpoints and cron jobs a change reaches
✗ Finds out in production
✓
Cross-references code across multiple repos
✗ One repo at a time
✓
HOW IT WORKS
1

Pharaoh maps your architecture

On every push, Pharaoh parses your code into a knowledge graph — functions, dependencies, module boundaries. No source code stored.

2

Your AI queries the map

Instead of reading files one at a time, your AI asks the graph: what connects to what, what breaks, what already exists.

3

Changes are informed, not guessed

One graph query replaces 20+ file reads. Your AI goes straight to the right files with full architectural context.

See exactly what gets mapped

Pharaoh's parser is open source. Every function extracted, every dependency traced, every module boundary detected. Verify it yourself.

View pharaoh-parser on GitHub →

Not another code search tool

Sourcegraph finds code. SonarQube lints code. Pharaoh tells your AI what happens when it changes code: every caller, every dependency, every endpoint and cron job a change reaches. The architecture layer that's been missing.

Set up in about two minutes

Install, sign in, connect. Nothing to configure per repo.

  1. 1. Install the GitHub App
    Pick the repos Pharaoh can read. It maps them in a minute or two and never stores your code.
    Install GitHub App →
  2. 2. Sign in on the setup page
    GitHub sends you straight there. Watch your first map finish and, on the free plan, pick which repo is live.
    Open setup →
  3. 3. Connect your AI tool
    Claude Code: run the command. Claude.ai, Cursor, VS Code and other MCP clients: add the URL.
    $ npx @pharaoh-so/mcp

Frequently asked questions

Does Pharaoh store my source code?
No. Pharaoh stores structural metadata only: function names and signatures, file paths, import/export relationships, call edges, complexity scores. No source code, no function bodies, no environment variable values. Signatures, doc comments, routes and constant values are encrypted per account, and the clone used for mapping is deleted when each run ends. The parser is open source, so you can audit exactly what gets extracted.
How long does initial setup take?
Under 5 minutes. Install the GitHub App, select repos, add the MCP endpoint to your AI tool. Pharaoh parses the codebase automatically. A 50K LOC TypeScript project maps in about 60 seconds.
How does the graph stay current?
A GitHub webhook re-maps your live repos on every push to the default branch, so the graph stays within one commit of HEAD. Your AI tool can also refresh a repo on demand.
What languages does Pharaoh support?
TypeScript and Python today, with full support for imports, exports, call chains, decorators, and barrel files. More languages coming — the parser is built on tree-sitter, which supports 100+ grammars.
How is Pharaoh different from Sourcegraph?
Sourcegraph answers "where is this code?" Pharaoh answers "what breaks if I change it?" Sourcegraph is search and navigation. Pharaoh is blast radius, dependency chains, and the endpoints and jobs a change reaches. Different tools, different questions.
How is Pharaoh different from CodeScene?
CodeScene analyzes file-level health using git history: complexity trends, code age, developer coupling. Pharaoh analyzes cross-module architecture using a knowledge graph: how modules connect, what depends on what, which endpoints and jobs a function feeds. CodeScene is behavioral. Pharaoh is structural.
How is Pharaoh different from SonarQube?
SonarQube does line-level static analysis: bugs, code smells, security issues. Pharaoh does system-level structural analysis: blast radius, dependency chains, module boundaries. SonarQube looks at lines. Pharaoh looks at architecture.
Can Pharaoh work across multiple repositories?
Yes, on Pro, where every repo is live. Your AI searches across all of them, so it finds the function that already exists in another service before writing a new one. No monorepo required. Everyone on the team connects to the same MCP endpoint.
Can I use Pharaoh with private repositories?
Yes. Pharaoh reads repository contents to map them and can't write to your code. All graph data is tenant-isolated.
What happens if I cancel?
Your workspace goes back to the free plan. One repo stays live; the others stop answering, and their graphs are deleted after 30 days. Re-subscribe within 30 days and they come straight back. No lock-in: Pharaoh reads your code, it doesn't store it.
Do I need Pharaoh if I already use Claude Code or Cursor?
That's exactly who Pharaoh is for. Claude Code and Cursor are powerful, but they read files one at a time with no structural awareness. They don't know what depends on what, which endpoints a function feeds, or whether the code they're about to write already exists somewhere else. Pharaoh gives them that context via MCP. Same tools, smarter decisions.
Is Pharaoh worth the subscription?
One prevented regression pays for months of Pharaoh. Without architectural context, AI tools introduce duplicate utilities, break downstream callers they can't see, and create exports that never get wired to entry points. Each of those costs hours of debugging. Pharaoh fixes the root cause — the AI's blind spot — for less than a single production incident.
Who built Pharaoh? Can I trust a small team with my code?
Trust shouldn't depend on team size. It should depend on architecture. Pharaoh never stores source code. Only structural metadata like function names and dependency edges. Pharaoh can't write to your code. Tokens are encrypted with per-tenant keys. The parser is open source for full auditability. And if you uninstall the app, your graphs are deleted within 30 days, and there's nothing to leak because there's no code to leak.

Pricing

Start free on one repo. Pro makes every repo live and checks every pull request.

Free
$0
Every tool on one live repo. No credit card.
  • Recon
  • Codebase Map
  • Module Context
  • Search Functions
  • Blast Radius
  • Unused Code
  • One live repo, re-mapped on every push
  • Switch the live repo any time
  • TypeScript + Python
  • No source code stored
  • Read-only access to your code
Start free
Pro
$27/mo
Every repo live. $99/mo for organizations.
  • Everything in Free
  • Every repo live, re-mapped on every push
  • Your AI searches across all of them
  • PR Guard on every pull request: new dead code, breaking changes, duplicates
  • Organizations: everyone in the org, one bill
  • A failed payment keeps Pro while it retries
Upgrade on the setup page →