Voice packs
Status: Ready
Truth label: Limited
Audience: Fleet operator, System designer
Reader outcome: Author a voice pack, control which definitions win, and move a pack between installations without losing history.
Last verified: 2026-09-12
Full guides: Manage voice packs, Voice pipeline
What a pack contains
Open Voice and drafts > Voice packs, samples, rules, and history.
| Resource | Purpose |
|---|---|
| Voice profiles | Delivery registers |
| Reasoning lenses | Analytical guidance plus the source groups it may retrieve from |
| Static writing samples | Approved writing examples authored in the pack |
| Style rules | Filler openings, banned wording, polish-gate and evaluation hedge lists, punctuation handling, sentence and paragraph limits |
| Tone corpus | The pack's evaluation corpus |
A pack is a directory of TOML files on the Brain host. It is external content: it lives outside the repository and outside the runtime data root.
Scaffold one with:
agent voice-pack init "<path>"
Create, activate, and order packs
Open Pack directories and active order.
- Enter an absolute directory on the Brain host.
- Choose Create empty inactive pack with a unique id and name, or register an existing valid external pack. Initialization requires a new directory outside the repository and runtime data.
- Both actions leave the pack inactive so its content can be inspected, imported, or authored before use.
- Select a registered pack, toggle its active state, and move it earlier or later.
- Preview lists the effective packs, shadowed ids, voices, and lenses.
- Apply to persist the reviewed order.
Built-in defaults load first. Later active packs override earlier definitions. Default protection rejects a configuration that removes the selected default voice or lens.
Deactivating preserves authored files and content history. Inactive packs remain available in the full-content editor.
Where pack configuration lives
Before the first Cortex configuration save, VOICE_PACK_DIR and VOICE_PACKS
supply the initial order. After that first save,
voice-pack-settings.json under the Brain data root is authoritative for that
host, with versioned history.
Changing the environment pack paths afterward does not silently replace saved Cortex choices. The API reports bootstrap paths separately. Paths always refer to the serving Brain host, and other Brain processes reload saved settings at startup or through their existing reload path.
Edit and apply content
- Open the destination pack. Built-in definitions can be inspected and exported, but author changes in an external operator pack.
- Select a resource. Corpus editing uses the JSON structure corresponding to its TOML file.
- Open an item, edit its fields, and choose Keep item changes in editor. A new profile id clones the definition. Removal changes the editor until you apply the pack.
- Select Validate and preview pack changes. The preview names changed sections and added, changed, or removed profiles and lenses. Invalid ids, values, references, and stale versions prevent publication.
- Select Apply reviewed pack. For an active pack, the serving Brain reloads validated voices, examples, and rules for later requests. An inactive pack saves its contents without activating them. An in-flight request keeps its already resolved context.
Static samples
Static samples in an active applied pack are approved writing examples. Review the request, operator wording, category, and local or cloud availability before applying. A sample's paragraphs are entered one per line.
The sample editor includes audience and format lists, an optional scope, a retirement switch, and a provenance or review note.
| Field | Behavior |
|---|---|
| Empty audience and format lists, empty scope | Broad applicability, unchanged from earlier behavior |
| Nonempty field | Case-insensitive exact match required. If the request has no value, a restricted sample is excluded |
| Category | Descriptive only. It never becomes a matching rule |
| Review note | Metadata. It is never inserted into style guidance |
Set audience and format in the chat controls, and scope in chat scope. The selected voice supplies only samples matching those values and the local or cloud availability rule. The active voice instructions still apply when every optional sample is excluded, and generation settings name excluded samples with their reasons. The selection is resolved once per request and reused by the optional polish pass.
New or edited samples overlapping retained held-out evaluation writing are rejected. Unchanged legacy samples remain in the pack but are excluded by comparison-time leakage filtering.
Retire a sample to stop future selection while retaining its content in history and exports.
Dynamic draft examples keep their separate approval, history, and index in Writing and voice.
Style rules
Style controls include filler openings, banned wording, separate polish-gate and evaluation hedge lists, punctuation handling, and sentence and paragraph limits. They use the same rules loader as the live linter and the voice revision gate.
Applying rules does not measure improved voice quality or guarantee detector results.
Retirement, history, and restoration
Use a profile or lens Retired checkbox to keep its definition while preventing new selection. Retired voices also stop supplying static examples.
- Choose another operator default before retiring its voice.
- A configured default lens must be changed before retirement.
- Saved tasks and completed comparisons keep their frozen context and evidence.
- Retirement does not delete approved drafts, historical answers, or evaluation records.
- Removing a definition entirely can expose an override from an earlier pack. Retirement is the explicit way to keep an id unavailable.
Each distinct content snapshot is retained in the pack's .cortex-history
directory. Quick profile and lens saves also capture complete pack snapshots.
Select a version, restore it into the editor, then validate and apply it.
Restoring content does not rewrite prior comparison records. Identical restored
content shares its previous content hash, so this history records distinct
contents rather than every button click.
A full-pack publication writes new content files under .cortex-versions, then
switches the manifest with one atomic file replacement. Failed publication
restores the prior manifest. External edits change the content revision and a
stale Cortex write fails with a conflict.
Import and export
Export complete saved pack downloads a portable JSON bundle and its content revision: manifest metadata, profiles, lenses, full static samples with provider availability, style rules, and the optional tone corpus. Unsaved editor changes and learned-draft records are excluded.
The CLI export preserves effective operator style rules and corpus rather than substituting built-in files:
agent voice-pack export --out "<path>" --pack-id operator --label "My pack"
Import pack into editor replaces the editor's content while retaining the destination pack id. Review all content before applying.
- Cortex removes reserved
noneanddefaultdefinitions when importing a built-in export. Those remain supplied by the built-in pack. - Referenced source groups must exist before applying changed lenses.
- Import does not trust supplied filesystem paths or overwrite the destination immediately.
- The editing limit is 2 MB per bundle.
An export captures the selected pack's own definitions. Other configured packs can still override them according to the load order. The pack list reports shadowed ids. Use the live selector and the generation report to inspect the effective voice.
Backup
Retain external pack files, .cortex-history, and .cortex-versions with the
operator content backup. The runtime SQLite backup does not include them. Back
up voice-pack-settings.json with runtime settings.
Historical snapshots and superseded content consume disk until a separate cleanup workflow removes them.