# Vault





<Note>
  **Beta.** The four Vault tools ship in the default MCP connection. The folder
  conventions on these pages are recommendations, not enforced structure.
</Note>

A Vault is a folder of Markdown documents scoped to one
[environment](https://www.withsurface.com/docs/concepts#environment). Agents read it before they write, and
every edit carries the `revision` of the document it was based on, so two
writers cannot overwrite each other.

<Frame caption="A Vault document. The agent reads every folder here and writes to any of them except Uploads.">
    <img alt="The Vault, with an ICP document open" src="__img0" />
</Frame>

## The Same Prompt, Twice [#the-same-prompt-twice]

**No Vault.*&#x2A; &#x2A;"Write the intro for a comparison page against Chili Piper":*

> Choosing the right lead routing solution is critical for modern go-to-market
> teams. In this article we compare two leading platforms to help you make an
> informed decision.

**With a Vault** holding your positioning doc, three closed-won call summaries
and a competitor note:

> Most teams evaluating us against Chili Piper are not really comparing routing.
> They are asking whether they can stop paying per seat for booking, and whether
> the qualification decision and the calendar can live in one system. That is
> the comparison worth making, so we will make it directly.

Same model. The second one had your words to work from.

## What Connects to the Vault [#what-connects-to-the-vault]

The Vault screen carries a **Connections** panel with eight rows. Two of them
can be live, and both of them **write into** the Vault rather than read from
it:

| Connection                                                                     | Live when                                                     | What it writes                        |
| ------------------------------------------------------------------------------ | ------------------------------------------------------------- | ------------------------------------- |
| **[Competitor Monitoring](https://www.withsurface.com/docs/platform/vault/connections/competitor-monitoring)** | Your watchlist has at least one competitor                    | `Competitors/<domain>/`, nightly      |
| **[Content Analytics](https://www.withsurface.com/docs/platform/vault/connections/content-analytics)**         | The [Surface Tag](https://www.withsurface.com/docs/platform/traffic/surface-tag) is installed | `Content Analytics/<date>.md`, weekly |

The counter above the panel ("N of 8") counts those two and nothing else, so a
fresh environment reads 0 of 8 and a fully set-up one reads 2 of 8.

**[Uploads](https://www.withsurface.com/docs/platform/vault/connections/uploads)** is the third row and is not
a connection: it opens the add-to-Vault dialog.

The remaining five rows read **Surface email, Surface forms, HubSpot, Gong and
LinkedIn Ads**. All five are hardcoded as coming soon with nothing behind them,
so none of them can be turned on. One narrow piece of Surface email is an
exception and is already running: competitor newsletters, covered on
[Competitor Monitoring](https://www.withsurface.com/docs/platform/vault/connections/competitor-monitoring).

Two more readers are not listed as connections:

* **[Prism](https://www.withsurface.com/docs/platform/vault/sam)** reads the Vault before it drafts anything, and
  files good answers back with **Save in Vault**.
* **Your own agents** get the four `vault`
  [MCP tools](https://www.withsurface.com/docs/mcp-server/tools#vault) in the default connection.

<Info>
  Which of Surface's other agents read the Vault, and which folders they reach
  for, is not documented. Ask your FDE before you build a folder specifically to
  feed one.
</Info>

## Getting Started [#getting-started]

<Steps>
  <Step title="Create it from your website">
    One call, one URL. Surface reads your public site and writes the first pass:
    what you do, who for, how you talk.
  </Step>

  <Step title="Read what it got wrong">
    The crawler believes whatever your site claims. Fix the three worst ones.
  </Step>

  <Step title="Add what is not on your site">
    Objections, pricing rationale, the competitor take you would never publish,
    the phrases you refuse to use.
  </Step>
</Steps>

In the app, a **Vault Setup** checklist tracks its own three: site scanned,
questions answered, upload what you have.

[Getting docs in →](https://www.withsurface.com/docs/platform/vault/getting-docs-in)

## It Is Backed by Git [#it-is-backed-by-git]

Every environment's Vault is a private Git repository, with a Postgres mirror
the browser and the MCP tools read from. One batch of changes becomes one
commit and one mirror update, which is what makes an edit atomic and why the
document has history.

Two consequences worth knowing:

* **The `revision` on every edit is a hash of the document you read.** If it
  changed since, the whole call is rejected and nothing is partly applied.
* **`MIRROR_STALE` is not a failure.** It means the commit landed and only the
  read mirror lagged. Retrying on it duplicates the work. See
  [the write contract](https://www.withsurface.com/docs/mcp-server/vault).

## Two Things Worth Knowing [#two-things-worth-knowing]

**It is not a chatbot knowledge base.** It is source material for writing. The
test of a document is "would this change how a writer phrases something", not
"would a support rep send this".

**Shorter beats longer.*&#x2A; A 200-word document that says &#x2A;"we never use the word
'solution' and we always name the customer"* beats a 40-page brand bible.

<Cta title="We will build your first Vault with you" href="https://www.withsurface.com/book-a-demo" label="Book a session">
  Bring your positioning doc and two closed-won call recordings, and we will
  work through the Vault Setup checklist with you.
</Cta>
