# `mix nous.profile.diff`
[🔗](https://github.com/nyo16/nous/blob/v0.21.1/lib/mix/tasks/nous.profile.diff.ex#L1)

Prints the `Nous.Eval.ProfileReport` of profile `B` against profile `A`,
without evaluation evidence: the components changed, a line diff of each
with its estimated token delta, and every removed line (the safety review
section).

    mix nous.profile.diff priv/profiles/support.json candidate.json
    mix nous.profile.diff --store file:priv/eval support_agent@production support_agent#7
    mix nous.profile.diff --agent MyApp.Agents.support - candidate.json

Each of `A` and `B` is a profile file, or with `--store` a stored
profile: `sha256:<hex>`, `name@label` or `name#version`. `A` may be `-`:
no profile, i.e. the agent's base text.

## Options

  * `--store SPEC` - `file:DIR`, `sqlite:PATH` or `duckdb:PATH`, for refs
  * `--agent Mod.fun` - a public 0-arity function returning the
    `%Nous.Agent{}`; components a profile does not set are then compared
    against the agent's base text, so text a profile rewrites shows up as
    changed and its removed lines are listed
  * `--format FORMAT` - `console` (default), `markdown` or `json`

Exits with status 2 on an operational error (bad arguments, unreadable
profile or store, invalid profile).

---

*Consult [api-reference.md](api-reference.md) for complete listing*
