Skip to main content

Comparison · vs CLAUDE.md

ClariLayer vs a hand-written CLAUDE.md

A CLAUDE.md keeps project-local instructions close to the code. ClariLayer carries selected durable work across projects and sessions, with source, applicability and correction. Forgetting an entry permanently deletes it, with no undo. In Analytics, the difference can also be whether a definition was checked against your warehouse.

A CLAUDE.md is a practical home for stable project instructions. It becomes less useful when a decision needs to apply across projects, retain its source, or be corrected without rewriting a file in every checkout. In Analytics, the moment a definition has money behind it, asserted text is a liability: the billing rule changes, the table moves, and the file keeps saying the old thing — and your agent keeps repeating it, confidently. Writing your definitions down is still a genuinely good first move; it just cannot tell you when it is wrong.

In Analytics, your agent can reconcile the same definition, saved in ClariLayer, against the result it actually computed: provenance and status are shown, and a declared-vs-actual mismatch surfaces as a caveat instead of a clean-looking wrong number. In the personal MCP path, ClariLayer never holds your warehouse credentials and never runs SQL server-side — it checks declared against actual and shows its work.

Reconciled, not asserted

A CLAUDE.md line stays asserted. Reconcile a ClariLayer entry and a mismatch becomes a caveat.

Hand-typing your definitions into a notes file is a real, useful start — but nothing checked it against your warehouse. In Analytics, your agent can reconcile the same definition saved in ClariLayer against the result it computed: provenance and status are shown, and a declared-vs-actual mismatch surfaces as a caveat instead of a confident wrong answer.

Hand-written CLAUDE.md
CLAUDE.md
## Metrics
"Active customer" = a user who logged in
in the last 90 days (raw_users.last_login).
 
# TODO: double-check this is still right
asserted · nothing checked it

Just text. Nothing reconciled it against your warehouse, so when the definition drifts the agent keeps trusting the stale line — confidently.

ClariLayer entry
"Active customer"
"Active customer" → fct_customers,
status = 'active' AND mrr > 0
source
dbt + you → reconciled
last reconciled
2 days ago
status
asserted
caveat · declared ≠ actual

The declared definition counted logged-in users; reconciling against your warehouse showed the billing rule (mrr > 0) returns a different number. Flagged for you to resolve — not hidden behind a clean-looking total.

Reconciled against the result your agent computed locally. In the personal MCP path, ClariLayer never holds your warehouse credentials and never runs SQL server-side — it checks declared against actual, and shows its work.

When each one is the right tool

Keep the file. Add reconciliation where it matters.

This is not a file you have to throw away. A CLAUDE.md and a ClariLayer context layer do different jobs — the question is which one a given piece of context actually needs.

A hand-written CLAUDE.md and ClariLayer, side by side.
AspectHand-written CLAUDE.mdClariLayer
Where it livesInstruction files the client reads: per project, or per user on that machine.A shared store that compatible AI clients recall from over MCP.
ReachThe project the file sits in, or every project on that machine for a user-level file.Across projects and sessions inside the authorized space you select.
Source and applicabilityOnly what you write into the file.Kept with each entry.
When it changesEdit and commit the file; it does not carry source or applicability per item.Correct the entry, or forget it: a permanent delete from the space that holds it, with no undo.
Checked against dataNothing checks it.Analytics and HubSpot CRM definitions only: an explicit reconcile checks one saved definition against evidence your agent supplies, and a mismatch becomes a caveat. General work context is not reconciled.
StatusAsserted text.asserted or caveat. The stronger verified status is not live.

A hand-written CLAUDE.md is great for

  • Day-zero notes — jotting down the handful of definitions and join paths you keep re-typing.
  • Stable conventions that rarely change: naming, where a model lives, a house style for SQL.
  • Context that has no warehouse result to check it against in the first place.

A ClariLayer entry earns its keep when

  • A definition has a real warehouse result behind it that can drift — revenue, active customers, retention.
  • You need to know a saved definition still matches the data, not just that you wrote it down once.
  • A confirmed fact, preference, decision, rule or lesson should cross projects and sessions with source and applicability attached.

Caveat over confident-but-wrong

The honest unit of trust here is the caveat. A hand-written file has no way to raise one — it cannot know it has drifted. ClariLayer reconciles the saved definition against your real warehouse result and, on a mismatch, records a caveat; a clean pass leaves the entry asserted, the honest baseline. Today the product emits caveat or leaves an entry asserted — a stronger verified stamp remains gated and is not a live status.

Keep the file. Add continuity where the work crosses sessions.

Connect a compatible client, select the authorized space and save one confirmed rule. Import selected supported history only after reviewing the exact proposal; use reconcile separately for Analytics evidence.