> For the complete documentation index, see [llms.txt](https://pharaoh.so/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://pharaoh.so/docs/use-pharaoh/terms-and-privacy.md).

# Terms and privacy

Pharaoh's terms of service and privacy policy: what we collect, how long repository metadata is kept, billing terms and how to request deletion.

Last updated: November 19, 2026

[Terms of Service](#terms) · [Privacy Policy](#privacy)

## Terms of Service <a href="#terms" id="terms"></a>

### 1. What Pharaoh Does

Pharaoh (“we”, “us”, “the Service”) provides codebase intelligence via MCP (Model Context Protocol) tools. We parse your repositories into knowledge graphs that coding agents can query. A graph holds structure (names, file paths, dependencies, complexity scores) and excerpts such as function signatures and doc comments; section 9 describes what it holds. Mapping and PR Guard do not retain repository source files. Optional project-memory diagnostics can retain bounded text supplied by you or your agent, which may incidentally contain code.

On supported local installs, Pharaoh can analyze saved files in the active Git worktree on your device to answer callers and blast radius. The local query path keeps source, local paths, selectors and results on your device. Your connected coding client receives the answer and handles it under its own terms.

### 2. Account & Access

You authenticate via GitHub OAuth. By using Pharaoh, you confirm you have authority to grant read access to the repositories you connect. We verify organization membership on every token refresh. Access is scoped to your GitHub organization or personal account.

### 3. Billing

Pro replaces the Personal and Team plans. Every account you install starts a trial. After it, Pro is billed monthly via Stripe to the person who pays: one subscription covers every account you own, plus a seat for each other person Pharaoh answered in the last 30 days in those accounts. Seats are counted daily and billed from the next invoice, never mid-cycle. You see the exact charge before you confirm it; nobody is charged without that. Current pricing is listed on our [pricing page](https://pharaoh.so/#pricing). Personal and Team subscriptions started before Pro keep their plan and price. PR Guard is included in every paid plan with no per-repo add-on charges. Prices may change with 30 days notice. You can cancel anytime through the [billing portal](https://pharaoh.so/manage)—access continues through the end of your current billing period. No refunds for partial months.

### 4. What We Store

We store repository metadata and excerpts, your GitHub identity, records of how you use the Service, project-memory records you or your agent submit, and billing records (Stripe handles payment; we never see card numbers). With the separate project-memory diagnostics choice, we also store the bounded text and evidence described in section 9. Repository ingestion does not retain source files or function bodies; diagnostic excerpts may incidentally include code you or your agent supplied. Credentials and environment variable values are not requested as diagnostic evidence.

### 5. Data Isolation

Your data is isolated through application-level controls: every graph query is scoped to your repositories, and repo ownership is verified against your account before each request. Your architectural data is never visible to other customers.

### 6. Acceptable Use

Don’t use Pharaoh to: reverse-engineer others’ codebases without authorization, circumvent access controls, or resell access. We may suspend accounts that violate these terms.

### 7. Availability & Liability

We aim for high availability but don’t guarantee uptime. Pharaoh is provided “as is.” Our total liability is limited to the amount you’ve paid us in the last 12 months. We are not liable for decisions made by AI tools based on Pharaoh’s data.

### 8. Changes to Terms

We may update these terms. Material changes will be communicated via the email associated with your GitHub account at least 14 days in advance. Continued use after changes take effect constitutes acceptance.

## Privacy Policy <a href="#privacy" id="privacy"></a>

Pharaoh is operated by 2407066 Alberta Inc. This policy explains what data we collect, why, and how we protect it.

### 9. Data We Collect

| Category                                | What                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | Why                                                                                                                                                                                                                                                         |
| --------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| GitHub identity                         | GitHub user ID, username, display name and avatar URL; your email address (see below); organization membership and repository access; installation ID                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | Authentication, authorization, tenant isolation                                                                                                                                                                                                             |
| Repository metadata                     | Repository names, the ID of the latest mapped commit and the repository’s `.pharaoh.yml` settings, if it has that file; function, class and constant names; file paths, module boundaries and package names; which files import each other, which functions call each other and which classes extend which; complexity scores, line counts and line ranges, whether a function is exported or async, and whether a file is a test; function signatures as written, including parameters, types, default values and return types, with no length limit, so a default value can include code; up to 200 characters of each doc comment or Python docstring; one-way hashes of function bodies; values of top-level constants (TypeScript and JavaScript strings and numbers of up to 128 characters, skipping constants named KEY, SECRET, TOKEN, PASSWORD or CREDENTIAL, or ending in `_KEY`, `_SECRET`, `_TOKEN`, `_PASSWORD` or `_CREDENTIAL`, in any case) and their type annotations; HTTP routes and methods, cron schedules, database table names, event names and environment variable names; each file’s last-modified date and how often it changed in the last 90 days; and import paths a map couldn’t resolve                                                                                                                                                                                                                                                                                                                                                                                                                                                          | Knowledge graph construction (our core service)                                                                                                                                                                                                             |
| Repository setup and workflow counts    | Which AI coding tools a repository has setup files for (for a repository Pharaoh doesn’t map, only that, whether it is a fork and the Git tree ID it was read from, using GitHub’s list of its file names without opening any file), whether those files mention or configure Pharaoh, and how many imports the map resolved; for the default branch’s last 90 days, counts of commits, merges, commits matching pull-request merges (checked against GitHub’s merged pull-request records), AI-tool co-authored commits, and distinct authors in bands. Stored as yes/no values and counts, never file text, paths, commit messages, pull-request details or author identities. Each map replaces them, and removing the repository from the GitHub App deletes them                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | Product analytics, compatibility, onboarding and support                                                                                                                                                                                                    |
| Billing                                 | Stripe customer ID, subscription status, connected-repository count and one live repository name on the customer record; for Pro, the GitHub user ID of the person whose subscription covers each account, with that person’s Stripe customer and subscription IDs and their trial and payment state; and a record of the first paid Personal, Team or Pro subscription for each billed GitHub account or payer, including invoice reference, amount, currency and an opaque transaction ID                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | Subscription management, account support and preventing duplicate purchase measurement                                                                                                                                                                      |
| Local worktree authorization and usage  | Signed-in GitHub user and OAuth session, owning account and repository, access epoch, tool, opaque request and permit IDs, status and finite client-reported outcome, and creation, expiry and settlement times.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | Authorize local analysis, enforce repository access and rate limits, and deduplicate receipts. These receipts do not count toward seat billing or first-answer onboarding.                                                                                  |
| Seat usage                              | For each account, the GitHub user ID of each person Pharaoh answered a question for, and when it last did                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | Counting the seats on the subscription that covers the account                                                                                                                                                                                              |
| Daily usage totals                      | Daily counts under your GitHub user ID, the owning account, full repository name, UTC date, tool and counting-definition version: calls, answers, empty results, errors and calls eligible for the observed-usage total; summed call duration and response size in characters, with a count of response-size samples; counts of calls matching a prompt Pharaoh offered, unmatched calls and calls whose origin is unknown; and the first eligible call time and last observation time. These totals store no additional arguments, prompts or source code. Calls are not independent questions or completed tasks, and prompt matches do not establish who chose a question                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | Product analytics, operating the service and showing factual usage totals; these records do not measure time, tokens, credits or money saved                                                                                                                |
| Daily usage context totals              | Accepted daily usage totals grouped by finite client and connection families, Pharaoh plugin and user/project instruction-marker states, managed-block state, proxy-report coverage and context-definition version, captured when each call starts. These contain no raw client names or versions, file contents or paths, prompts, transcript contents or skill inventories. Missing or unsupported observations remain unknown; file markers do not establish that instructions were loaded or followed                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | Product analytics to improve client compatibility, setup and tool usage; these observations do not establish causal improvements or savings                                                                                                                 |
| Optional runtime analytics              | New supported managed NPX connections can enroll by default during device sign-in. Other connections require you to enable runtime analytics. Collection includes supported instruction-load scope, reason and Pharaoh marker states, requests or successful tool invocations of bundled Pharaoh skills, agent episode boundaries and outcomes, bounded client and model version information, and client-reported model-request token counts where supported. We link observations to your GitHub identity and local enrollment, and to an answered call and its repository only when the client returns that call’s opaque receipt and access still checks out. Session and turn references are pseudonymous. Controlled comparisons can add an approved task profile and versioned test context. No instruction or skill text, local paths, prompts, transcripts, tool output or third-party skill names are collected                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | Product analytics to improve setup and the tools, and to evaluate elapsed time and token use against controlled comparisons                                                                                                                                 |
| Usage logs                              | For each hosted MCP tool call: the tool, the arguments your agent sent (such as repository names, search terms and function names), when it ran and how long it took, the response size, any error, your GitHub user ID and username, and the session ID. A text argument longer than 500 characters is cut to 500 (text inside a list argument is stored in full), and arguments named token, password, secret, key, authorization or credential are replaced with `[REDACTED]`. For each PR Guard check: the pull request number, the commit checked and the result. For each scored pull request: its number, the commit scored, the author’s GitHub user ID and username, the score, and how many exported functions the pull request added and changed. Milestones such as your first sign-in, first map and first tool call                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | Recording rate-limit refusals, debugging, audit trail, onboarding, scheduling map refreshes, product analytics                                                                                                                                              |
| Onboarding                              | Your answer to “What made you try Pharaoh today?”: the option you chose and, if you choose “Something else”, up to 300 characters you type (a few words; no code or secrets). Skipping stores nothing. Also which setup actions you dismissed, one-way hashes of the tool calls behind the prompts we offered you, when your AI client first got an answer and in which session, when you finished setup, and when we first saw a Pharaoh call that no offered prompt explains                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | Choosing your first prompt and the dashboard’s lead, ticking setup actions, and learning why people try Pharaoh. The check-in email may quote the option you chose, never your typed text, which also never goes into logs, analytics or site-visit records |
| Codebase Health insights                | On the Insights page: which Codebase Health costs we showed you (the repository, whether it was duplicate functions, dependency cycles or complex functions, the points shown and the day of the score reading they came from), with your GitHub user ID and the ID of that page view. The issue reference a Copy button copies names a repository and one of those three costs, never a file or function. Which Copy button you used is a Site visits record, never what you copied; the issue lookups your agent makes are Usage logs. Kept 90 days, and deleted with your user, the repository or the account. For each issue your agent looks up directly: a one-way issue reference that holds no file or function name, one-way hashes of its files, how much it counted when first looked up and, at each later map of the default branch, the commit, how much it still counted and its status (unchanged, reduced, stopped counting, or unclear because another issue of the same kind is in its files). When Pharaoh’s pull-request check analysed a change touching those files: the pull-request number and the commit checked, merged or not. Issue and pull-request records aren’t linked to any person, are kept 90 days (an issue for 90 days after its last lookup) and are deleted with the repository or the account                                                                                                                                                                                                                                                                                                                                           | To learn whether the Insights page helps people act on what costs their score, and what becomes of the issues agents look up                                                                                                                                |
| Connection records                      | For each MCP session, the name and version your agent reports (for example `claude-code` and its version number) and the connection type; through the npx proxy, also the agent running it, whether the Pharaoh plugin is enabled, and whether your user-level Claude instruction file (under `~/.claude` or your configured `CLAUDE_CONFIG_DIR`) mentions Pharaoh (the line Pharaoh's setup suggests, another mention, no mention, or no file) and still holds the block Pharaoh's setup wrote. For agents we've confirmed start the proxy in your project folder, the same for that project's `CLAUDE.md`, `CLAUDE.local.md`, `.claude/CLAUDE.md` or `AGENTS.md`. We never collect the text of these files. For device sign-ins, the IP address and user agent of the `/device` request and of one-click approvals on `/activate`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | Support, client compatibility, abuse detection, and learning which setup steps lead agents to use Pharaoh                                                                                                                                                   |
| Server logs                             | Application logs of sign-ins, errors and refused requests, with GitHub usernames and IDs, repository names and, for some requests, an IP address or user agent                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | Debugging and security                                                                                                                                                                                                                                      |
| Alert records                           | Internal alerts about mapping, account and billing problems, which can name an account, a repository or a GitHub username                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | Operating and monitoring the service                                                                                                                                                                                                                        |
| Site visits                             | A random visitor ID kept in a cookie; the pages and page sections you view; how far you scroll (25, 50, 75 and 90%); how long a page stays in the foreground (10, 30 and 60 seconds; on setup, counted apart for the setup steps and the page behind them); which Install or setup button you click and the plan it’s for; which copy button you use, never what you copy; on setup, which setup steps you see and when you reopen them, how you move between them (next, skip or back), how you close them (the close button, Escape or Finish) and which answer you chose and where it sat in the list, never the words you type; on setup, your device type (phone, tablet or desktop), worked out in your browser from its screen size and pointer, never from the user agent, whether a copy happened in the setup steps or on the page behind them, and when you open or close “Connect with an MCP URL”; on a phone or tablet, whether you share the setup link from your browser’s share sheet (shared, cancelled or failed; never where it went) and whether you ask us to email it to you; which setup page controls you use (such as Finish setup, the checklist, Dismiss, Docs, or a link in Codebase Health) and how far you scroll a workspace’s repository table sideways; whether the FAQ comes into view, which entries you open and which links in them you click; whether you change the pricing calculator or open its assumptions, never the values you enter; the site or page that sent you; and any campaign tags in the link; when you follow our Install link, a server record of that navigation and its public source page, and your arrival on setup | To learn which channels bring people who go on to use Pharaoh and how they use our pages                                                                                                                                                                    |
| Optional Google measurement             | If you allow it, Google Analytics measures landing-page traffic and sources, and Google Ads processes visits to and interactions with our public marketing pages, such as scrolling and link clicks, ad-click identifiers and cookie identifiers, along with browser and network information such as your IP address. For a completed first Personal or Team purchase, we also send an opaque transaction ID, the paid amount and its currency.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | To monitor landing-page traffic and measure our Google Ads campaigns and paid conversions; advertising personalization is disabled                                                                                                                          |
| Project memory                          | Candidate observations, lessons and decisions that you or your agent submit, including those your agent saves automatically after a turn that edited code and passed a check: its summary and reason, and a procedure made of the check command, the edited file paths and whether it passed. Also references, versions, approval status, the submitting GitHub user and repository, and capture receipts. A candidate is never approval.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | Recalling project context in later work and letting you review or remove it                                                                                                                                                                                 |
| Project-memory operational diagnostics  | Authorized recall, expansion, capture and feedback attempts and outcomes, latency, bounded error codes, record/version identifiers and ranking, response truncation, client and server configuration versions, repository and GitHub identity, session/turn references, event provenance, collection gaps and sampling probabilities. Reports distinguish event-time internal, customer and synthetic evaluation cohorts.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | Finding failures, compatibility problems and gaps in collection; comparing releases and diagnosing retrieval quality                                                                                                                                        |
| Optional project-memory diagnostic text | When diagnostics are offered and you enable them for a supported client: up to 1 KB of task/prompt context and intended next action, exact bounded recall terms and up to 8 KB of recall or expanded memory text, up to 2 KB of observed action descriptions and final-response text, edited paths, record links, and sampled agent feedback with bounded explanations and suggestions. These excerpts can incidentally contain source supplied in your task or your agent's response. We record whether evidence came from the server, native hooks, the agent or an independent reviewer.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | Checking whether memory was relevant, changed an action, was stale or misleading, and what to improve. An agent's helpfulness claim does not by itself prove an improved outcome                                                                            |

Project-memory diagnostic text has a separate client choice from project memory itself, which includes its edit-time cues. The default is off, and normal native hook review/trust still applies. We do not collect conversation transcripts, repository file bodies, patches, arbitrary command/output text or hidden reasoning for diagnostics. Bounded excerpts are screened for common credentials; this screening does not guarantee that all sensitive text is recognized. Avoid including secrets in submitted tasks, memories or feedback. Routine reports contain counts and configuration metadata; access to diagnostic text requires current internal administrator authorization and is audited. We do not send these excerpts to an additional model provider for automatic grading. A sampled assessment uses your connected agent under its existing provider terms.

Project memory saves automatically. When a turn edits code and a check command then passes, your agent is asked once to save the decision or fix with its reason, without asking you first. The session shows each save and how to undo it. `npx @pharaoh-so/mcp --disable-memory-capture` turns automatic saving off; turning project memory hooks off stops it too. To decide whether a turn qualifies, the hook keeps a per-turn list of tool names, edited file paths, check commands and their results on your machine for up to 12 hours. Only the saved record leaves it. Saving continues when an account is limited.

Automatic project-memory excerpts and submissions are fenced in conversations that use local worktree analysis. Opted-in collection in other conversations follows the policy above.

Disabling diagnostics stops new local collection and clears its queued excerpts. The client attempts to revoke the server collection generation immediately and retries a pending revocation on setup if offline; until revocation reaches the server, previously delivered excerpts remain subject to retention and deletion below. A saved choice does not bypass deployment policy or native hook trust. Optional text collection remains disabled until its policy notice and deployment prerequisites are satisfied.

When you sign in with GitHub we store your primary verified GitHub email. We use it for setup emails, each with a one-click unsubscribe, and as the email on an account’s own Stripe customer record, where one exists (section 12). We send at most two setup emails while you haven't connected an AI client: one when every repository in your accounts has been mapped, and one asking what made you try Pharaoh and what got in the way. That second email is either a reminder three days after you install or, if it reaches you first, a plain-text check-in sent four to fourteen days after we first see your GitHub account. Nobody gets both. Once you connect, the check-in is the only setup email still to come, unless you've had the reminder. We don't send it after your account uninstalls the GitHub App. The map-ready email also goes to you if you have already connected, since the setup screen promises it; we skip it when mapping finished within 15 minutes of install. While your account is on a trial, we also email you when the trial starts, the day before it ends if no payment method is on file, and when it ends. You never get more than one automatic setup or trial email in 24 hours. If you ask the setup page to email you its link, we send it to your verified address at most once an hour; it doesn't count toward these limits. We never collect your teammates' email addresses and never use the email addresses in commits. If you reply, your reply reaches us like any other email you send us. Our email provider, Resend, tells us whether each email was delivered, bounced, opened or clicked; for a click, its report includes the IP address and browser that clicked. We keep those reports with your unsubscribe choice.

**Enterprise consultation requests.** On our enterprise page, we record page views, consultation-button clicks and sanitized campaign/referrer labels separately from our product-install funnel. When you open the form, we create an anonymous draft and save your optional qualification answers and progress as you go, including incomplete responses. We use these answers to improve the form and understand interest in the service. Contact fields stay in your browser until you press **Book a call**. On submission, we save your name, email address, company website, optional phone number, optional discussion notes and qualification answers so Dan can follow up. We do not require a work-email domain. Please do not put source code, credentials or other secrets in the discussion field.

Qualification answers and contact details are separate from finite interaction events, which record steps viewed, answers changed or skipped, backtracking, closing, submission outcomes and calendar handoffs or link clicks. Events contain no contact details, phone number or discussion text. A handoff or calendar click is not a confirmed booking. After submission we may send one acknowledgement using Resend; it receives your email address and the message, without your phone number. This consultation acknowledgement is separate from GitHub setup emails. When you press **Book a call**, we save your response before opening the configured booking provider in the same tab. We do not put your answers or contact details in the booking link. If no booking provider is configured, we show a follow-up confirmation instead. We also record founder-entered commercial follow-up stages and their supporting reference for the submitted company.

Native metadata v2 records finite model identity, model basis, registered hook capability and installation build provenance. Model and capability classifications use a finite registry; arbitrary raw model strings are not uploaded. Structural exploration measurement also retains bounded returned-result counts, keyed target fingerprints, evidence versions and exclusion reasons scoped to your identity, owning account and repository access generation. It collects no additional source, local paths, prompts, transcripts or tool results. Recognized metadata does not by itself qualify for an estimate.

Qualified value email delivery stores the frozen checkpoint and an encrypted message needed for bounded retries, plus a delivery identity and provider receipt. The encrypted message includes its recipient and unsubscribe link; your unsubscribe preference stores only the token hash. Chat emission, provider-reported email delivery/open/click events and explicit interactions are distinct; none is treated as proof that you read an estimate.

### 10. Data We Do NOT Collect

**Repository ingestion.** To map a repository or check a pull request, we clone it into a temporary directory on our servers and delete that directory when the job ends, including when the job fails. Ingestion does not retain source files, function bodies, comments other than the first 200 characters of each doc comment, environment variable values, commit messages, authors or diffs. From commit history we keep only the commit IDs, dates, change frequency and counts section 9 lists. The [open-source parser](https://github.com/Pharaoh-so/pharaoh-parser) shows what is extracted from function, class and constant definitions; section 9 lists the rest. Optional diagnostic text is a separate, bounded collection described in section 9 and may contain incidental code; it does not collect repository files. **Credit card numbers.** Payment is handled entirely by [Stripe](https://stripe.com/privacy). We never see or store card details.

### 11. How Data Is Stored

Repository metadata is stored in Neo4j (graph database) with query-level isolation per customer. Operational data (account records, repository names and mapping status, sign-in sessions, usage logs) is stored in PostgreSQL, along with mapping-quality records, which can include import paths a map couldn’t resolve. Both are hosted on infrastructure with encryption at rest and in transit. On top of that, we encrypt a few fields ourselves with AES-256-GCM: GitHub tokens before storage, and function signatures, doc comments and constant values with a key derived for your account before they enter the graph. The rest of the repository metadata in section 9 (names, file paths, modules, dependencies, HTTP routes, complexity scores) has no encryption beyond the hosting providers’. Pharaoh’s own access and refresh tokens are stored only as SHA-256 hashes.

Project-memory records, diagnostic episodes, evidence and reviewer labels are stored in PostgreSQL with account, repository and person scope. Diagnostic text has hosting-provider encryption at rest and in transit; it has no additional field encryption. Authorized internal text access is audited. Diagnostic text does not enter the graph or routine usage logs.

### 12. Data Sharing

We do not sell your data. We share data only with:

* **GitHub** — sign-in, repository access, looking up your public profile name and avatar, and the check results PR Guard and setup post to your repositories
* **Stripe** — billing and payment processing. When an account’s owner installs the GitHub App, their Pro trial starts, and we create a Stripe customer for them if they have none; subscribing to Pro does the same. That customer belongs to the person whose subscription covers the account, with their GitHub login and GitHub user ID, and their verified email when we have one. Installing the GitHub App and signing in create no Stripe customer for the account itself. An account that already has its own Stripe customer keeps it, with the account name, the Pharaoh account ID and whether it is a personal or organization account. A primary verified GitHub email can fill the account’s missing contact when a confirmed admin signs in from an AI client or the billing page, or when the recorded installer or personal owner signs in on the setup page. To fill a missing Stripe email, we use an address with authenticated verification recorded for the personal owner, installer or a recorded admin, preferring the existing account contact when it matches an eligible address. Existing account contacts and emails already set in Stripe are preserved. Periodic synchronization retries missing updates; historical addresses without verification evidence are not used. Customer metadata also includes the number of connected GitHub repositories and one live repository’s full name (`owner/repository`). This may be a private repository’s name. These fields refresh while the app is installed and may remain after uninstall until reinstall or account deletion; no source code is sent to Stripe. You can update billing information through the billing portal
* **Resend** — sending our emails. It receives your email address and the message
* **Infrastructure providers** — Render (application servers, PostgreSQL and our blog), Neo4j Aura (graph database), Cloudflare (network edge in front of our servers), Vercel (hosting for pharaoh.so, including Vercel Web Analytics on pages our servers render) and GitBook (hosting for pharaoh.so/docs)
* **Google Analytics and Google Ads** — optional traffic measurement on our landing page and advertising measurement on our public marketing pages and a minimal purchase-confirmation page, only after you allow it. Our conversion event contains an opaque transaction ID, paid amount and currency. We do not include your GitHub identity, email, repository metadata, card information or Stripe identifiers in this event. Enhanced user-data collection and advertising personalization are disabled. See [Google’s Privacy Policy](https://policies.google.com/privacy) and [how Google uses information from partner sites](https://policies.google.com/technologies/partner-sites).

All providers are bound by their own privacy policies and data processing agreements.

Tool results go to the agent you connect (for example Claude Code, Cursor or Codex). That agent, and the model provider behind it, handle them under their own terms.

### 13. Data Retention

A live repository’s graph is updated on every push. Entries for code you delete stop appearing at once and are removed at the repository’s next full rebuild. When you remove a repository from the GitHub App, we delete its graph. When a repository stops being live, because it was removed from the GitHub App or because an account on a legacy one-repository plan switched its live repository, we delete its graph 30 days later. A trial ending does not do that: while your account is unpaid we keep its graphs, and 90 days after the trial or the last subscription ended we stop updating them. When you uninstall the GitHub App, we delete your account, its graphs and its operational data 30 days later; reinstalling before then keeps them. If you ask us to delete your account (section 14), we run that deletion by hand. It removes the same data, along with your Stripe customer record (Stripe keeps the payment records it is required to keep).

Usage logs, connection records, PR Guard check records, mapping-quality records, alert records and site-visit records are deleted after 90 days. Alert records aren’t removed when an account is deleted; they age out on that same 90 days. Sign-in sessions are deleted once their tokens expire (a refresh token lasts a year), and setup and billing sign-in links after 24 hours. Your GitHub identity and email reports are kept while your account exists and are deleted with it, unless you also belong to another Pharaoh account, in which case your own records stay with that account. A record that you unsubscribed or that your address bounced is kept even then, under your GitHub user ID, so we never email you again. Server logs are kept for 14 days, the log retention on our Render plan.

Optional runtime analytics detail and structural exploration evidence expire after 90 days. Frozen value-email message bodies are cleared after successful delivery or cancellation; associated scoped checkpoint and receipt records are removed with the person, account or repository. Pending messages are cancelled when their evidence or authorization is invalidated. Queued observations can be sent for up to 24 hours. The collector removes expired entries the next time it opens the queue. Daily totals remain while the associated person, account and repository records remain and the enrollment is active. Removing, renaming, transferring or deleting a repository clears its linked totals. Disabling runtime analytics stops local collection and clears its queue immediately. When the server receives the revocation, it removes that collection generation’s observations and totals and rejects delayed uploads from it. [What we measure](https://pharaoh.so/docs/use-pharaoh/what-we-measure.md#optional-runtime-analytics) lists the controls. This choice is separate from project-memory diagnostics.

Project-memory diagnostic episodes, their excerpts, feedback and reviewer labels expire after 90 days. The local background-delivery queue is limited to 1 MB and 24 hours. Removing a memory record erases diagnostics for the affected repository and revokes collection generations so queued excerpts cannot restore them. Repository retirement, account deletion and applicable person deletion also erase scoped diagnostic data. Disabling a collection generation deletes its episodes when the revocation reaches the server. Content-free generation tombstones remain to reject stale queued uploads; no diagnostic excerpts are kept in those tombstones. Project-memory candidates and approved records remain until you remove them or their repository/account is deleted; they are not diagnostic log entries.

A local analysis permit expires after 60 seconds. Its metadata is removed 30 days after expiry or earlier when associated session, repository, account or person data is removed under the applicable scope. Existing seat-use and onboarding records follow their own retention rules.

Our hosting providers keep backups for 7 days: Render’s point-in-time recovery for PostgreSQL and Neo4j Aura’s daily graph snapshots. Data we delete can stay in those backups for up to 7 days.

Seat-usage records are deleted after 62 days. Pull request scores are kept for 12 months. Records of which pull requests PR Guard admitted under the daily limit are deleted after 7 days. Your onboarding record and your answers to the onboarding question are kept with your GitHub identity and deleted with it. The record of who pays for an account is kept until that person, or the last account they pay for, is deleted. Deleting your account removes all of these, so no record of a past trial survives it.

Daily usage totals and their daily context totals have no age-based expiry and outlive the 90-day detailed usage logs. We keep them while the associated repository, account and person data remain. Removing a repository from the GitHub App, renaming it, transferring it or deleting its Pharaoh record clears its earlier totals. Adding it again or returning to an earlier name starts from zero. Ordinary repository filters, a suspended installation or uninstalling the App alone do not clear these totals; the account deletion described above does. Account or person deletion removes their associated totals. Counts start when measurement launches; we do not reconstruct them from earlier usage logs. [What we measure](https://pharaoh.so/docs/use-pharaoh/what-we-measure.md) explains which calls count.

The first-payment record is kept while your account exists to prevent repeated payments being reported as new purchases. It is removed with your account data. A Pro payer’s first-payment record is kept the same way, under their GitHub user ID. A pending browser conversion is eligible for reporting for seven days after payment; browser blocking or lack of permission can prevent it from being reported to Google.

Enterprise draft answers and their write credentials expire after 30 days without activity. Anonymous enterprise reporting sessions and events are kept for 90 days from session creation, independently of draft answers; public page/click events are kept for 90 days. Submitted consultation responses, contact details including an optional phone number, follow-up stages and acknowledgement receipts are deleted 90 days after submission. Hashed recipient cooldown and bounce/complaint suppression records are kept for 90 days after their last update. You can request a copy or deletion by emailing the privacy address below; enterprise requests do not require a GitHub account.

### 14. Your Rights

You can: request a copy of your data, ask us to delete your data (uninstall the GitHub App or email us), and update your billing information via the [billing portal](https://pharaoh.so/manage). For any data request, email <privacy@pharaoh.so>.

### 15. Cookies

We use session cookies to keep you signed in; `pharaoh_auth`, a signed cookie that remembers your GitHub account for 90 days so you can approve your next device sign-in with one click; and a first-party cookie, `ph_vid`, that holds a random ID for 90 days. Our Install redirect and setup pages use the same `ph_vid` cookie to connect these steps with visits to our public pages. If you later sign in with GitHub, we link that ID to your account, which helps us identify an observed page or campaign that brought you. When we did not observe the original source, we record it as unknown. Our first-party site-visit records do not store IP addresses.

We store your landing-page traffic and advertising measurement choice in `ph_measurement_consent` for 90 days, and keep the advertising choice in `ph_ads_consent` for purchase measurement. A previous advertising-only choice does not enable Analytics: we ask again on the landing page. Until you allow measurement, we do not load Google Analytics or Google Ads on the landing page or send them measurement requests. If you allow it, Google may set advertising measurement cookies, including `_ga`, `_ga_` and `_gcl_` cookies, and process the information described above. Google Analytics uses cookies to distinguish visits and sessions on the landing page. Advertising personalization remains disabled.

The enterprise form uses your browser's local storage, under `ph_enterprise_intake_v1`, to recover your qualification answers and progress after closing or reloading the form. This entry also holds an unpredictable credential that authorizes only that draft. Unsubmitted contact fields, including an optional phone number, and pending submission details are stored separately in this tab's session storage, under `ph_enterprise_intake_contact_v1`, to recover after a refresh in the same tab. Contact recovery does not extend across tabs or browser restarts. Both browser entries expire after 30 days without activity. Contact fields are sent to our server only when you press **Book a call**. Successful submission clears the browser's contact and qualification copies, retaining only the draft credential and completion metadata to restore the confirmation. Restoring that confirmation does not automatically reopen the booking provider. If browser storage is unavailable, the current page can still save qualification answers on the server and submit, but refresh recovery is unavailable.

**Clear form**, at the bottom left of the form, removes the saved response and draft credential from your browser and starts a new response. It does not delete server-side draft answers, anonymous analytics or an already submitted consultation request; those follow the retention periods in section 13 or a verified deletion request. This policy remains available from the form's Privacy link.

After an eligible purchase, a five-minute cookie, `ph_ads_purchase_attempted`, prevents repeated redirects if advertising measurement is blocked or interrupted. It contains only an attempt flag, not payment or account details.

You can allow or reject measurement, or withdraw permission later, using **Measurement privacy choices** on our public marketing pages. Withdrawing permission removes the Google measurement cookies we can access and reloads the page so the Google tag is no longer loaded. If your browser cannot save this choice, we show instructions to clear site data and reload. This does not undo information Google already received. Refusing measurement does not affect your ability to use Pharaoh or our existing first-party site-visit measurement.

### 16. Changes to This Policy

We may update this policy. Material changes will be communicated via the email associated with your GitHub account. The “last updated” date at the top indicates when the policy was last revised.

### 17. Contact

Questions? Email <support@pharaoh.so> (general) or <privacy@pharaoh.so> (privacy-specific).
