changes

A change log for grouped file edits, with per-file differences and the ability to undo an entire change at once.

In plain words
What is it for?
Use it to list changes, inspect their diffs, filter them by time or actor, and revert a selected change.
Why use it?
It makes it easier to see what happened and reverse a related set of edits instead of handling files one by one.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/px0-ai/px0/changes
Clone the repo
git clone --depth 1 https://github.com/px0-ai/px0
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 593 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.00593
Opus 5 $0.00000 $0.00296
Sonnet 5 $0.00000 $0.00119
Haiku 4.5 $0.00000 $0.00059

Measured 2d ago against content hash 59aab0b8016e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

changes scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

docs/commands/changes.md · 91 lines

How it starts

The opening of the file, as written. The whole thing — 91 lines — stays where its author put it; the contents beside it link to each section on GitHub.

px0 changes

A change is one atomic write across the store — a workflow build, a guideline the build wrote, a hand edit px0 noticed, a migration. It is the store's log of what happened and its unit of undo: changes shows each one, with a per-file diff, and reverts a whole change at once.

Every file still carries a full version chain underneath, and changes show reads it to build its diffs — but a change, not a single file's version, is what you address.

Implemented by px0/versioning.py.

px0 changes list [--since WHEN] [--actor ACTOR] [--json]
px0 changes show <change_id>
px0 changes revert <change_id>

px0 changes list

The change log, newest first: id, when, actor, and how many files each touched.

--since WHEN

Only changes after a point in time.

  • Input: a relative span — <n>d, <n>w, or <n>h. A leading minus is accepted, since "-7d" reads naturally as seven days back. Absolute dates are not accepted.

--actor ACTOR

Only changes made by one actor.

  • Input: an actor name. px0 records builder for workflow and guideline builds, update for schema migrations, and user:manual for hand edits it detects on its checkpoint scan.

--json

Print the log as JSON, and nothing else.

px0 changes list
px0 changes list --since 7d --actor builder

px0 changes show

One change in full: every file it touched, with the diff for each.

change_id (required)

  • Input: a change id, as printed by changes list.
px0 changes show chg_20260821-093000-a1b2

px0 changes revert

Undo an entire change — every file it touched, together, in one new change. The revert is itself recorded, so it can be undone in turn.

change_id (required)

  • Input: a change id.
px0 changes revert chg_20260821-093000-a1b2

Schema migrations are forward-only and are not undone by this. px0 update rollback reinstalls a previous px0 version and says so explicitly when the update it is rolling back had run migrations.

Read the full file on GitHub · 91 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 91 lines · 0 tokens per session scan A 59aab0b8016e

Subscribe to this mod's changes

changes is a command published in the GitHub repository px0-ai/px0 (241 stars, last pushed 5d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 593 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.