Skip to main content
Glama
Pharaoh-so

Pharaoh - Your AI breaks things it can't see

get_cross_repo_audit

Compare two repositories to identify code duplication, structural overlap, and shared patterns for refactoring, package extraction, or audit purposes.

Instructions

Compare two repositories for code duplication, structural overlap, and shared patterns.

CALL THIS WHEN: • You need to find copy-pasted code across two repos • You're planning a shared package extraction • You want to compare the structure of two codebases • A team is auditing cross-repo duplication before a refactor

RETURNS: Three tiers of function matches (HIGH = exact duplicates, MEDIUM = diverged implementations, LOW = name-only), shared module structure, and shared environment variables. Each tier has clear action guidance.

PREREQUISITE: Both repos must be mapped via 'pharaoh add'. Use repo names, not paths.

TIER: Pharaoh Pro — free tier receives a preview. Summarize what the preview reveals, explain what full data would show for this task, then include the upgrade link.

EXAMPLES: • "Compare web-app and api for code duplication" • "Find shared functions between the mobile and web repos" • "What code is duplicated across our two services?"

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Pharaoh-so/pharaoh'

If you have feedback or need assistance with the MCP directory API, please join our Discord server