Document history, diff and rollback
See how a company document changed, version by version, and let an admin bring an earlier version back.
What it does
The server keeps every version of each company document. Any member sees the list of versions and the server’s diff of two versions, and an admin can roll a document back.
When to use it
- After an admin changed the brand voice, to see what changed.
- When a change was a mistake.
Example
Thomas wants to know what Jane, an admin, changed in the brand voice on Friday 30 October. He asks for the diff of version 3 and version 4.
/doc-history diff brand-voice 3 4
You are signed in as Thomas, a member, in your workspace. This diff compares version 3 of brand-voice, written 21 days ago (12 Oct), with version 4, written 3 days ago (30 Oct).
--- brand-voice v3 +++ brand-voice v4 @@ -3,9 +3,10 @@ Brightline Ltd makes lamps and fittings. We sell them to makers and shops. ## Tone -We write short, plain sentences. +We write short, plain sentences. One idea in each sentence. We give a number in place of an adjective. We never promise a date that we did not confirm. ## Terms We say "price list", not "catalogue". +We say "offer" for a price that we send to one customer.
Claude’s reading of this diff: the tone section now asks for one idea in each sentence, and the terms section now says what an offer is.
The diff is the server’s text, which Claude prints word for word. The reading is Claude’s, and it stands under the diff, so you can check it against the lines.
How to use it
Type /doc-history in the Claude app, /adayo-crm:doc-history in Claude Code. Type the whole name, because /doc alone picks /doctor of Claude Code.
- Type
historyand a document, and Claude lists its versions. - Type
show, a document and a number, and Claude reads that version. - Type
diff, a document and one or two numbers, and Claude shows the server’s diff. With one number, Claude compares that version with the current one. - Type
rollback, a document and a number, and Claude brings that earlier version back. This is for an admin. Claude shows the diff first, and the admin says yes.
You can also say it in a sentence, for example What changed in the brand voice since version 3?
The rules it keeps
- Every member reads a document’s history and its diffs.
- Only an admin rolls a document back. For a member, Claude says so and sends nothing.
- The server computes every diff. Claude never makes one.
- Claude’s reading comes after the diff.
- A rollback copies the earlier version as a new version. The version it replaces stays in the history.
- The server stores the note “rollback to” and the version number, with the reason after it.
- The list shows the newest 50 versions and says how many older versions there are.
- The history is the CRM’s own, and no one needs git to read it.