Modules
AI agent framework for Elixir with multi-provider LLM support.
Primary interface for AI agents.
Behaviour for agent implementations.
Callback execution for agent events.
Unified context for agent execution.
DynamicSupervisor that owns the lifecycle of every Nous.AgentServer.
Unique-key Registry mapping session IDs to running Nous.AgentServer processes.
Executes agent runs with tool calling loop.
GenServer wrapper for Nous agents with PubSub integration.
Default agent implementation with standard tool-calling behavior.
Knowledge Base Agent behaviour implementation.
ReAct (Reasoning and Acting) Agent behaviour implementation.
Mode resolution and the visible tool set for Code Mode.
Code Mode's transport tool: runs a model-authored program that calls tools.
Orders the tool sub-calls a Code Mode program makes.
Renders the typed SDK a Code Mode program is written against.
Runs a model-authored program that calls tools, instead of a chain of individual tool calls.
One global the program can call, and the functions hanging off it.
Why a program did not produce a value.
Code Mode's JavaScript runtime: an embedded Deno isolate, one per run.
What to run, what it may call, and who gets the answer.
What a program produced.
Define a named agent in a script, function or IEx session. The block returns
a regular Nous.Agent.
Non-generative decision models: a state plus typed questions in, probabilities out.
The answer to one Nous.DecisionModel.Question.
Behaviour for decision-model backends, the extension point behind
Nous.DecisionModel.
In-process decision backend on LlamaCppEx.Decision (llama.cpp's
/v1/systemone, ported into the NIF): Clef / Clef-Flash, OpenJev, Laya and
the other decision GGUFs, with no server.
HTTP backend for OpenAI's Decisions API (POST /v1/decisions), served
by OpenAI (gpt-6-luna) and by vLLM.
HTTP backend for the TypeSafe-compatible System One API
(POST /v1/systemone), plus a Cloudflare Workers AI preset.
Neutralises chat-template special tokens in decision-model state.
One typed question for a Nous.DecisionModel.
The result of Nous.DecisionModel.decide/4.
Top-level module for the Nous Decision Graph system.
Builds a text summary of the decision graph for system prompt injection.
A directed edge connecting two nodes in the decision graph.
A node in the decision graph.
Storage behaviour for decision graph backends.
DuckDB-backed decision graph store.
ETS-backed decision graph store.
Custom error types for Nous AI.
Shared construction for Nous exception modules.
Error in configuration or missing dependencies.
Error from a decision model backend (Nous.DecisionModel).
Error when agent execution is cancelled.
Error when agent loop exceeds maximum iterations.
Error from the model provider API.
Error loading, validating or applying a Nous.Profile.
Error from an LLM provider.
Error when a :post_response hook denies a model response.
Parse server-suggested retry delays from provider error responses.
Error during tool execution.
Error when a tool execution times out.
Error when usage limits are exceeded.
Error during output validation.
Evaluate agents against datasets, with repeated samples, traces and scorers.
Deterministic JSON encoding for content hashes.
One evaluation case: an input for the agent, what is expected of the answer, and the scorers that judge it.
The storage format of Nous.Eval.Run: a JSON-safe map, and its JSON text.
Compares a candidate eval run against a baseline run of the same dataset and decides whether the candidate regressed.
The per-case metrics Nous.Eval.Compare can gate on and break down by.
A validated, content-hashed list of Nous.Eval.Cases.
A complete eval task that runs offline, for trying the eval workflow without an API key
Identifies the configuration an eval run tested.
Guard calibration and the guard non-regression gate.
One guard case in the nous.guard_case/1 schema: a labelled guard input
for calibration (kind: "classifier") or a decision-table row for a
deterministic guard ("permission", "loop_guard", "hook").
A set of nous.guard_case/1 cases (Nous.Eval.Guard.Case) loaded from
JSONL, with its manifest and content hash.
Decision-table checks for the deterministic guards: Nous.Permissions,
Nous.Plugins.LoopGuard and hooks. No statistics: every row must match,
and any mismatch fails.
Downloads a registered guard dataset (Nous.Eval.Guard.Registry), checks
it and writes it as nous.guard_case/1 JSONL. mix nous.eval.datasets.fetch is the command-line front end.
The guard non-regression gate: may a candidate (new bands, a new profile) replace the baseline without letting more attacks through?
Red-team and hard-negative generators for guard datasets: tool-less agents
that write nous.guard_case/1 cases for one surface.
Dataset hygiene for guard cases (Nous.Eval.Guard.Case): exact and
near-duplicate detection, leakage-free group splits, licence policy, a PII
lint and canonical JSONL hashing.
Guard metrics over replayed outcomes (Nous.Eval.Guard.Recording.outcome/0).
A guard's recorded answers on a set of classifier cases, and the verdicts they replay to under any band or threshold setting.
The compiled-in registry of guard datasets mix nous.eval.datasets.fetch
may download: per source, the files pinned to an upstream commit with
their sha256, the licence and its status, and the adapter that turns an
upstream row into a nous.guard_case/1 case.
The result of Nous.Eval.Guard.calibrate/2.
The guard under calibration: a DecisionGuard surface or an InputGuard strategy ensemble, resolved from the same configuration the plugin reads.
Measures an LLM judge (Nous.Eval.Scorers.Judge) against human labels.
One human-labelled judge case (schema nous.judge_case/1); see
Nous.Eval.JudgeCalibration.
Online evaluation: sample production agent runs, redact them, score them in the background and store them, without touching the request path.
What a Nous.Eval.Online.Redactor sees: a captured trace split into a
read-only skeleton and the content fields the redactor may
rewrite.
Maps an online-eval Nous.Eval.Sample to OpenTelemetry spans following the
GenAI semantic conventions (pinned to semconv 1.37.0, see
semconv_version/0).
Behaviour for the redactor Nous.Eval.Online requires (redact:).
The review queue of promoted guard cases: a nous.guard_case/1 JSONL file
whose unlabelled lines ("label": null) wait for a human.
The deterministic sampling decision of Nous.Eval.Online.
Improves an agent's text (its instructions and tool descriptions) against
an eval task, and produces a reviewed Nous.Profile rather than editing
code.
How Nous.Eval.Optimizer evaluates a candidate profile and turns the
result into evidence for the reflector (the GEPA adapter shape).
The default Nous.Eval.Optimizer.Adapter: evaluates a candidate profile
by running the eval task with Nous.Eval.run/2, the candidate applied to
every agent the task builds (profile:) and the batch selected by case id
(cases:).
A profile in an optimization's pool.
What a Nous.Eval.Optimizer.Strategy searches with: the splits, the
components it may change, and helpers that do the budget accounting and
enforce the split and safety rules.
One candidate profile evaluated on a batch of cases: what
Nous.Eval.Optimizer.Adapter.evaluate/3 returns.
Cheap, deterministic checks on a reflector's proposed text, run before a proposal is evaluated (and spends budget)
The model that proposes new component text: a tool-less Nous.Agent
with structured output, run under its own trace with role: :reflector
(so its events never land in an eval sample's trace).
The outcome of Nous.Eval.Optimizer.run/2.
Reflective evolution with a Pareto pool (GEPA, Agrawal et al. 2025).
Optimization by prompting (OPRO, Yang et al. 2023): the cheap mode.
A search strategy for Nous.Eval.Optimizer: how candidate profiles are
proposed and which one is best.
The review report for a candidate Nous.Profile: what text changed, what
the evidence says, and every line of text the candidate removes.
Loads Nous.Profiles from an eval store.
Renders an eval run or a comparison as text.
Plain-text report for a terminal.
Machine-readable report: a run's Nous.Eval.Summary or a comparison's
Nous.Eval.Compare.to_map/1, encoded with Nous.Eval.CanonicalJSON
(sorted keys, no whitespace), followed by a newline.
GitHub-flavoured Markdown report, sized for a pull-request comment.
The record of one eval run: its configuration fingerprint, every sample,
and the summary statistics. This is what a Nous.Eval.Store persists and
what Nous.Eval.Compare diffs.
One execution of one case, with its scores.
One named result a scorer produced for one sample.
What a scorer reads for one sample.
Behaviour for eval scorers.
A scorer as declared on a task or case.
A scorer failed to produce a verdict. It says nothing about the agent: a
sample with any scorer error is :error, never :pass or :fail, and an
eval run with errors exits non-zero in CI.
Passes when the output text contains the given substrings.
Passes when the agent's output equals the expected value.
Wraps a one-argument function as a scorer, for Elixir-defined datasets and tasks. It cannot be referenced from YAML/JSONL files.
Checks what a guard decided during the sample, from the guard verdict
events in the trace (see Nous.Eval.Trace.guard_verdicts/2).
Grades a sample with an LLM judge: a tool-less agent that reads the evidence and answers with a verdict from a declared, closed label set.
Passes when the sample's model spend is at most :max_usd.
Passes when the sample's wall time is at most :max_ms.
Passes when the sample's token use (summed over the whole run tree) is at
most :max.
Passes when no tool call failed.
Passes when the output text contains none of the given substrings.
Bounds the structured-output retries ([:nous, :agent, :structured_output, :retry] events) the sample needed.
Passes when the output validates against an output type, using the same
validation the agent uses (Nous.OutputSchema.parse_and_validate/2).
Passes when the output text matches regular expressions.
Scores the output's similarity to the expected text as a Levenshtein ratio
over graphemes: 1 - distance / max(length), a float in 0.0..1.0.
Checks the arguments of one tool's calls in the trace.
Bounds the number of tool calls, for one tool or in total.
Compares the tool calls in a sample's trace with an expected trajectory.
Runs a sample's scorers and composes their results into a verdict.
A scorer ready to run: its Nous.Eval.Scorer.Spec, the config its
Nous.Eval.Scorer.init/1 returned, its id and its kind. Built by
Nous.Eval.Scoring.init/1.
Multi-turn evaluation with a simulated user.
What the simulated user of one nous.sim_case/1 case is told: the
input of a simulated case (Nous.Eval.Case).
Judges an adversarial episode (kind: adversarial): passes when the
agent was not breached ("sim.breach").
An LLM judge over the episode transcript ("sim.rubric"), from a
simulated case's expected.rubric (judge, criteria, gate).
Passes when every string of the case's expected.said appears in some
agent message of the episode ("sim.said"): what the agent had to
communicate, such as an amount or a confirmation number (τ-bench's
output check).
Passes when the episode's end state holds every {path, equals} of the
case's expected.state ("sim.state").
Checks the episode's tool use against the case's expected.tools
("sim.tools"): no forbidden tool executed, and every required tool
executed at least once, anywhere in the run tree (sub-agents included),
over all turns.
Statistics for evaluation runs, hand-rolled in pure Elixir (no Nx, no NIFs).
Seeded paired cluster bootstrap (Koehn 2004, "Statistical Significance Tests for Machine Translation Evaluation", §6; resampling unit per Miller 2024).
Binary classifier metrics for guards and judges.
Significance tests and multiple-comparison control for eval comparisons.
Power, sample size and minimum detectable effect (MDE) for eval comparisons, all from normal approximations.
Special functions and distribution primitives behind Nous.Eval.Stats.
Storage behaviour for eval runs, baseline labels and judge calibrations.
One entry in a baseline label's history: label pointed at run_id from
set_at until the next entry for the same label.
Contract-conformance tests for a Nous.Eval.Store implementation.
DuckDB-backed Nous.Eval.Store using duckdbex.
The default Nous.Eval.Store: a directory of JSON files, no dependencies.
One entry in a profile label's history: under profile name name, label
pointed at the profile profile_id from set_at until the next entry for
the same name and label.
The listing view of a stored Nous.Eval.Run: everything except the
samples and their traces, plus the sample count.
SQLite-backed Nous.Eval.Store using exqlite.
Aggregate metrics of one eval run, computed from its samples.
Loads a use Nous.Eval task module and calls its callbacks with checked
results.
The telemetry events one eval sample produced, in emission order.
One agent run in a Nous.Eval.Trace, from Nous.Eval.Trace.runs/1.
One telemetry event in a Nous.Eval.Trace.
One guard decision in a Nous.Eval.Trace, from
Nous.Eval.Trace.guard_verdicts/2.
One model request reconstructed from a Nous.Eval.Trace by
Nous.Eval.Trace.model_calls/1.
One tool call reconstructed from a Nous.Eval.Trace by
Nous.Eval.Trace.tool_calls/2.
Fallback model chain support.
Behaviour for non-streaming HTTP backends.
Nous.HTTP.Backend implementation backed by :hackney.
Nous.HTTP.Backend implementation backed by Req (which uses Finch
under the hood).
Transport-level stream buffer primitives shared by the
Nous.HTTP.StreamBackend implementations.
Behaviour for SSE / chunked streaming HTTP backends.
Nous.HTTP.StreamBackend implementation backed by :hackney in
[{:async, :once}] mode for strict pull-based backpressure.
Nous.HTTP.StreamBackend implementation backed by Req (Finch
underneath).
Lifecycle interceptors for agent tool execution and request/response flow.
Configuration for a :decision hook: a Nous.DecisionModel classifies the
hook payload, and per-question probability bands turn the answers into a
verdict.
Storage and lookup for hooks, indexed by event type.
Executes hooks for lifecycle events with support for blocking, modification, and external command execution.
LLM-compiled personal knowledge base system.
A raw ingested document before compilation into wiki entries.
A compiled wiki entry — the core unit of the knowledge base.
Result of a health check audit on the knowledge base.
A directed edge in the wiki graph between two entries.
LLM prompt templates for knowledge base compilation, linking, auditing, and output generation.
Storage behaviour for knowledge base backends.
ETS-backed knowledge base store implementation.
Agent tools for knowledge base operations.
Pre-built workflow DAG pipelines for knowledge base operations.
Simple LLM API for direct model calls without agents.
Discovers selected MCP tools under a run's current authorization.
Client-library boundary for MCP discovery and invocation.
MCP adapter for a host-supervised Anubis.Client from the optional
{:anubis_mcp, "~> 2.2.0"} package.
Resolves an authorized MCP client for the current run.
Top-level module for the Nous Memory System.
Behaviour for embedding providers.
Generic local embedding provider for OpenAI-compatible endpoints.
OpenAI embedding provider.
Memory entry struct with scoping fields for flexible isolation.
Shared scope-building logic for memory operations.
Pure scoring functions for memory retrieval ranking.
Hybrid search orchestrator for the memory system.
Storage behaviour for memory backends — including ones that live outside Nous.
Contract-conformance tests for a Nous.Memory.Store implementation.
DuckDB-backed memory store using Duckdbex.
ETS-backed memory store implementation.
Result post-processing shared by index-plus-entry-table memory stores.
SQLite-backed memory store using Exqlite.
Agent tools for memory operations: remember, recall, forget.
Represents a message in a conversation with an AI model.
Represents a part of message content supporting multi-modal inputs.
Utilities for working with conversations and message lists.
Anthropic format message conversion.
Gemini format message conversion.
OpenAI format message conversion.
Model configuration for LLM providers.
Dispatches model requests to the appropriate provider implementation.
Structured output support for Nous agents.
Behaviour for structured output validation.
Path-traversal & symlink-escape protection for filesystem tools.
Tool-level permission policy engine.
Permission policy controlling tool access.
Behaviour for pluggable persistence backends.
ETS-based persistence backend.
Behaviour for composable agent extensions.
Security guard backed by a Nous.DecisionModel: per-surface question packs
classify user input, tool calls, tool results and model output, and
probability bands turn the answers into allow / escalate / deny.
Behaviour for a Nous.Plugins.DecisionGuard question pack: the questions a
decision model answers about one surface, the probability bands that turn
the answers into a verdict, and the state the model sees.
Nous.Plugins.DecisionGuard.Pack for the model-output surface
(:post_response, blocking): does the assistant's reply leak secrets,
its instructions or personal data, or show signs that it was hijacked?
Nous.Plugins.DecisionGuard.Pack for the tool-call surface
(:pre_tool_use): is this call something the user's task did not ask for,
and could it do damage?
Nous.Plugins.DecisionGuard.Pack for the tool-result surface
(:post_tool_use): indirect prompt injection in what a tool returned.
Nous.Plugins.DecisionGuard.Pack for the user-input surface: one :choice
question, verdict, with options safe / suspicious / blocked (the
Nous.Plugins.InputGuard.Strategies.LLMJudge vocabulary).
Plugin for agent decision tracking with a directed graph.
Plugin for human-in-the-loop approval of tool calls.
Modular malicious input classifier plugin.
The strategy engine shared by Nous.Plugins.InputGuard and
Nous.Plugins.DecisionGuard: run a list of
Nous.Plugins.InputGuard.Strategy modules over a text, aggregate their
verdicts and fail closed on strategies that produced none.
Maps severity levels to policy actions for the InputGuard plugin.
Result of an input guard strategy check.
Decision-model input classification strategy.
LLM-based input classification strategy.
Regex-based pattern matching strategy for detecting prompt injection and jailbreak attempts.
Embedding-based semantic similarity strategy for detecting malicious input.
Behaviour for input guard detection strategies.
Plugin for LLM-compiled knowledge base with wiki-style entries.
Plugin that notices an agent repeating the same tool call and injects escalating guidance.
Plugin for persistent agent memory with hybrid search.
Plugin that integrates the Skills system into the agent lifecycle.
Plugin that enables agents to delegate tasks to specialized sub-agents.
Plugin for managing context window size via pruning and summarization.
Plugin that provides team communication and coordination tools for agents.
A versioned, content-addressed replacement for an agent's prompt text.
The profile an agent runs with, as stored on %Nous.Agent{profile: ...}.
PromEx plugin for Nous AI agent metrics.
Safe prompt templates for building messages.
Behaviour for LLM provider implementations.
Anthropic Claude provider implementation.
Custom provider for any OpenAI-compatible endpoint.
Google Gemini provider implementation.
Shared HTTP utilities for all LLM providers.
Stream parser for JSON array responses.
LM Studio local provider implementation.
LlamaCpp NIF-based provider for local LLM inference.
Mistral AI provider implementation.
OpenAI-specific provider implementation.
Generic OpenAI-compatible provider implementation.
SGLang provider implementation.
vLLM provider implementation.
Google Vertex AI provider implementation.
Thin PubSub abstraction for Nous.
Async HITL approval via PubSub.
ReAct (Reasoning and Acting) Agent wrapper with built-in planning and todo management.
Deep Research Agent for nous.
The main research loop coordinator.
Represents a research finding from a search/analysis step.
Decomposes a complex research query into a structured plan with sub-questions.
Represents a completed research report with citations.
Generates structured research reports with citations.
Executes a single research sub-question using search tools.
Consolidates findings from multiple searchers.
Pre-dispatch model routing: pick the chat model for a request before it is built.
A Nous.Router that asks a Nous.DecisionModel (Clef, Clef-Flash, ...)
which model tier should answer, LiteLLM-style.
Context passed to tools and dynamic prompts during agent execution.
OS-level confinement for subprocesses spawned by tools.
Linux confinement via bwrap (bubblewrap).
The result of Nous.Sandbox.confine/2: an argv to spawn plus the data needed
to interpret what comes back.
What a confined subprocess is allowed to do.
How to recognise "the sandbox runner itself failed" in a child's output.
macOS confinement via sandbox-exec and an inline SBPL profile.
The fail-closed default provider: it confines nothing and admits it.
A session: an id, its event log, and — if it was forked — where it came from.
Configuration for managed agent sessions.
One durable fact about a session.
Session limit checking and guardrail functions.
Two ordered queues of messages waiting to enter a run: next_turn and
next_step.
Every model-visible request must be reconstructable from the session log.
Raised by Nous.Session.Invariant.verify/2 in :strict mode.
An append-only event log with a model-visible surface derived by folding.
Close what a crash left open in a session log — by appending, never by truncating.
Reusable instruction/capability packages for agents.
Loads skills from markdown files with YAML frontmatter.
Discovery, management, and activation of skills.
Built-in skill — system architecture design.
Built-in skill — code review.
Built-in skill — conventional commit messages from diffs.
Built-in skill — systematic debugging.
Built-in skill — documentation generation.
Built-in skill — Ecto query composition, changesets and data patterns.
Built-in skill — idiomatic Elixir patterns and anti-patterns.
Built-in skill — ExUnit, Mox and property-based testing.
Built-in skill — code explanation.
Built-in skill — OTP supervision, GenServer and concurrency design.
Built-in skill — Phoenix LiveView lifecycle, components and anti-patterns.
Built-in skill — pandas, NumPy and scikit-learn data pipelines.
Built-in skill — FastAPI and async Python web services.
Built-in skill — Python security review.
Built-in skill — pytest patterns.
Built-in skill — modern Python typing and data containers (3.10+).
Built-in skill — the uv Python package and project manager.
Built-in skill — behaviour-preserving refactoring.
Built-in skill — OWASP-oriented security scanning.
Built-in skill — task decomposition.
Built-in skill — test generation from implementation code.
Content-addressed overflow for oversized tool results.
Filesystem backend for Nous.Spill.
An opaque handle to spilled content.
Behaviour for stream chunk normalization.
Stream normalizer for Anthropic API.
Stream normalizer for Google Gemini API.
Stream normalizer for LlamaCppEx %ChatCompletionChunk{} structs.
Default stream normalizer for OpenAI-compatible providers.
Reassembles partial tool-call fragments emitted by Nous.StreamNormalizer
into the final list shape that Nous.Messages.from_provider_response/2
produces for the non-streaming path.
Top-level API for multi-agent team orchestration.
PubSub topic helpers and communication utilities for multi-agent teams.
Team lifecycle GenServer that manages agent processes within a team.
Token-bucket rate limiter for per-team and per-agent usage control.
Role definitions for team agents.
ETS-based shared state for per-team discoveries and file region claims.
Per-team Supervisor that manages team infrastructure processes.
Telemetry integration for Nous AI: the catalog of every event Nous emits.
Tool definition for agent function calling.
Behaviour for tool implementations.
Structured context updates from tools.
Stateless helpers for building and querying tool collections.
Declarative DSL for defining tool schemas.
Test helpers for tools.
Validates tool arguments against JSON schema.
Field access for tool-call maps whose keys may be atoms or strings.
Executes tool functions with retry logic, timeout handling, and error handling.
Convert tools to different schema formats for various providers.
Shell command execution tool.
Built-in tool for web search using Brave Search API.
Built-in tools for date and time operations.
Scrubbed environment for tool subprocesses.
String replacement editing tool.
File pattern matching tool.
Content search tool.
File reading tool with line numbers.
File writing tool.
Built-in tools for ReAct (Reasoning and Acting) agents.
Structured note-taking tools for research agents.
Shared plumbing for search tools (Brave, Tavily, ...).
Tool that fetches and summarizes content from multiple URLs in parallel.
Built-in tools for string manipulation operations.
Tool for summarizing long text using an LLM call.
Built-in tool for search using Tavily Search API.
Built-in tools for task tracking and progress management.
Tool for fetching and extracting readable content from web pages.
Lightweight conversation history compaction.
Core type definitions for Nous AI.
SSRF protection for outbound HTTP from tools and providers.
Tracks resource usage for agent runs.
Per-model token prices for turning a %Nous.Usage{} into a dollar figure.
DAG/graph-based workflow engine for orchestrating agents, tools, and control flow.
Checkpoint for suspending and resuming workflow execution.
ETS-backed checkpoint store. Suitable for development and testing.
Behaviour for checkpoint storage backends.
Validates and compiles workflow graphs for execution.
A directed edge connecting two nodes in a workflow graph.
Core workflow execution engine.
Directed graph definition for workflow execution.
Generate Mermaid flowchart diagrams from workflow graphs.
A node in a workflow graph.
Optional per-workflow ETS table for large/binary data exchange between steps.
Typed state that flows between workflow nodes.
Telemetry events for workflow execution.
Records execution traces for workflow debugging and observability.
Mix Tasks
Runs a Nous.Eval task (Nous.Eval.run/2), stores the run, prints its
report and, with --baseline, compares it with a stored baseline run
(Nous.Eval.Compare).
Manages baseline labels in an eval store (see "Baselines" in
Nous.Eval.Store).
Compares a candidate eval run with a baseline run from the store
(Nous.Eval.Compare) and prints the comparison.
Downloads a guard dataset from the compiled-in registry
(Nous.Eval.Guard.Registry), verifies its sha256 before parsing, converts
it to nous.guard_case/1 JSONL with provenance, deduplicates, groups and
splits it, and writes it with a manifest and a NOTICE
(Nous.Eval.Guard.Fetch).
Calibrates a Nous.Eval.Scorers.Judge configuration against human labels
(see Nous.Eval.JudgeCalibration).
Promotes samples captured by Nous.Eval.Online into a JSONL dataset
(Nous.Eval.promote/3), re-applying a redactor first.
Scores the samples of a stored run again with the task's current scorers,
without running the agent (Nous.Eval.rescore/3), and stores the result
as a new run.
Runs Nous.Eval.Optimizer on an eval task and prints the profile report.
Loads every given Nous.Profile and checks it against the agent with
Nous.Profile.validate/2, the same checks Nous.new/2 runs at boot.
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).
Points label LABEL of profile name NAME at a profile, by appending an
entry to the label's history in the eval store
(Nous.Eval.Store.put_profile_label/4).
Refreshes a profile whose base text changed (:stale in
mix nous.profile.check): when every component still has a target in the
current agent, re-seals the manifest against the current base text and
writes a child profile whose parent_id is the old profile's id.
Fills a hand-written profile's manifest and id with
Nous.Profile.seal/2, and writes the result as canonical JSON.