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
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||