Skip to Content
DocsReferenceCLI CommandsInfrastructurematrix-apply

Apply a reviewed patch entry from a matrix refresh run to templates/agents/<id>.json.

Usage

aigon matrix-apply <feedback-id> [--dry-run]

Arguments

ArgumentDescription
<feedback-id>The numeric ID of the feedback item created by a refresh agent
--dry-runPreview the change without writing to disk

How it works

Weekly pricing refresh and quarterly qualitative refresh agents never mutate the agent registry directly. Instead, they write a patch file to .aigon/matrix-refresh/<YYYY-MM-DD>/proposed.json and create a feedback item for each change. matrix-apply performs the actual write after you’ve reviewed the proposal.

When you run matrix-apply:

  1. Locates the patch entry matching <feedback-id> across all .aigon/matrix-refresh/ patch files (newest first)
  2. Loads templates/agents/<agentId>.json
  3. Applies only the patched fields (pricing, label, quarantined, deprecated, notes, score)
  4. Writes the updated file and sets lastRefreshAt to now
  5. Prints the agent file path and patch source so you can verify with git diff

Example

# A refresh agent filed feedback #47 proposing a pricing update aigon feedback-triage 47 # Review the proposal aigon matrix-apply 47 --dry-run # Preview the change aigon matrix-apply 47 # Apply it aigon server restart # Pick up the updated registry

After applying

Run aigon server restart to reload the agent registry in the dashboard. The Settings tab matrix view will reflect the updated pricing, scores, and notes immediately after restart.

Supported change kinds

changeKindWhat it patches
pricing-updatepricing.inputPerM, pricing.outputPerM
new-modelAdds a new entry to cli.modelOptions[]
deprecationSets deprecated: true on the model option
quarantine-candidateSets quarantined: { reason, since } on the model option
notes-updateUpdates notes.<op> fields
score-updateUpdates score.<op> fields

See also

Last updated on