---
title: "oz0 changes"
description: "Usage and flags for oz0 changes."
canonical_url: "https://docs.oz0.ai/reference/cli/oz0/changes"
---
# oz0 changes

> Usage and flags for oz0 changes.

For: Operators and developers looking up a command.

An agent that declares changes: ends its session with a changeset instead of writing to its target:
the diff of its work directory against the base it started from, stored by digest. A person approves it, or the
agent's policy does, and then the function the agent names applies it, such as oz0_github.push_changes, which opens a
draft pull request. The approval is bound to the patch's digest: a different patch is refused.

A changeset that
touches a protected path or the plugin's own outcome files is refused, never offered. One that touches a plugin's tests
or rules (its evals, its agents' outcome checks, its policy files, CODEOWNERS or CI workflows) waits, after its changes
approval, for a second approval by another person who holds governance.write: no policy, key or agent gives it. Seeing a diff takes the content permission.

## Usage

```bash
oz0 changes [command]
```

## Subcommands

- [`approve`](https://docs.oz0.ai/reference/cli/oz0/changes/approve)
- [`diff`](https://docs.oz0.ai/reference/cli/oz0/changes/diff)
- [`reject`](https://docs.oz0.ai/reference/cli/oz0/changes/reject)
- [`rollback`](https://docs.oz0.ai/reference/cli/oz0/changes/rollback)
- [`show`](https://docs.oz0.ai/reference/cli/oz0/changes/show)

## Inherited flags

<table>
<thead>
  <tr>
    <th>
      Flag
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Default
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        --context
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      <code>
        $OZ0_CONTEXT or &lt;config dir>/orchestrator-zero/context.json
      </code>
    </td>
    
    <td>
      CLI context file written by server init
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        --log-level
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      <code>
        info
      </code>
    </td>
    
    <td>
      log level: debug, info, warn or error
    </td>
  </tr>
</tbody>
</table>

See [all `oz0` commands](https://docs.oz0.ai/reference/cli/oz0) and the [global flags](https://docs.oz0.ai/reference/cli/oz0#global-flags).


## Sitemap

See the full [sitemap](https://docs.oz0.ai/sitemap.md) for all pages.
