agentic-net-examples / track-changes
AGENTS.md4 starsChanged 3 months agoMITView on GitHub
Verified C# examples for track-changes scenarios in Aspose.Words for .NET
1 other project uses a version of this.
Adopted by
Most recently taken up by
- chiKeka/csitrep-generatortheir own version, first seen Apr 14, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- chiKeka/csitrep-generator★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository29 other files it gives its agents.
- aspose-words-examplesAGENTS.md
- barcode-imageAGENTS.md
- chartsAGENTS.md
- commentsAGENTS.md
- comparisonAGENTS.md
- content-controlAGENTS.md
- conversionAGENTS.md
- extractionAGENTS.md
- find-and-replaceAGENTS.md
- fontsAGENTS.md
- form-fieldsAGENTS.md
- hyphenationAGENTS.md
- imagesAGENTS.md
- join-documentsAGENTS.md
- linq-reportingAGENTS.md
- listsAGENTS.md
- mail-mergeAGENTS.md
- officemathAGENTS.md
- ole-objectsAGENTS.md
- paragraphsAGENTS.md
- programming-with-documentsAGENTS.md
- rangeAGENTS.md
- renderingAGENTS.md
- security-and-protectionAGENTS.md
- shapesAGENTS.md
- split-documentAGENTS.md
- vba-macrosAGENTS.md
- watermarkAGENTS.md
- working-with-tableAGENTS.md
The file
We split this AGENTS.md into the rules it gives an agent
8 rules. About 0 are common, 7 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 17
Always use documented Aspose.Words APIs directly.
- Distinctive: line 18
Always create local sample source documents when a task refers to an existing file, folder, stream, template, or input asset.
- Very specific: line 19
Prefer StartTrackRevisions, StopTrackRevisions, Document.Revisions, and documented accept/reject workflows.
- Distinctive: line 20
Keep validation narrow and task-specific.
- Distinctive: line 21
Do not invent revision helper APIs.
- Distinctive: line 27
Use the simplest workflow that satisfies the task.
- Distinctive: line 290
When replacing a file, prefer the latest verified publish-ready version rather than a merely compiling draft.
- Distinctive: line 291
Keep examples standalone, bootstrap missing inputs locally, and prefer documented Aspose APIs over speculative shortcuts.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AGENTS.md - Track Changes
Purpose
This folder is a live, curated example set for Track Changes scenarios. Treat every .cs file as a standalone console application. The goal is correct, warning-free examples that use documented Aspose APIs and match the original task intent.
Non-negotiable conventions
- Always use documented Aspose.Words APIs directly.
- Always create local sample source documents when a task refers to an existing file, folder, stream, template, or input asset.
- Prefer
StartTrackRevisions,StopTrackRevisions,Document.Revisions, and documented accept/reject workflows. - Keep validation narrow and task-specific.
- Do not invent revision helper APIs.
Recommended workflow selection
- Track Changes Workflow workflow: 40 examples
Use the simplest workflow that satisfies the task.
Validation priorities
- The code must compile and run without manual input.
- API usage must be supported by the configured package versions.
- Exported outputs must actually be written by the example.
- Validation scenarios must inspect only the behavior requested by the task.
- Examples that depend on files, folders, streams, images, or data should bootstrap those inputs locally during the example run.
File-to-task reference
load-a-document-from-a-stream-start-tracking-add-a-header-and-stop-tracking-before-saving.cs- Task: Load a document from a stream, start tracking, add a header, and stop tracking before saving.
- Workflow: track-changes-workflow
- Outputs: doc
- Selected engine: mcp
create-a-new-document-start-tracking-revisions-insert-a-paragraph-then-stop-tracking.cs- Task: Create a new document, start tracking revisions, insert a paragraph, then stop tracking.
- Workflow: track-changes-workflow
- Outputs: doc
- Selected engine: mcp
enable-revision-tracking-modify-a-table-cell-and-verify-the-revision-appears-in-the-collec.cs- Task: Enable revision tracking, modify a table cell, and verify the revision appears in the collection.
- Workflow: track-changes-workflow
- Outputs: docx
- Selected engine: mcp
enable-tracking-apply-a-style-change-to-multiple-paragraphs-stop-tracking-and-verify-a-sin.cs- Task: Enable tracking, apply a style change to multiple paragraphs, stop tracking, and verify a single revision group.
- Workflow: track-changes-workflow
- Outputs: docx
- Selected engine: mcp
start-tracking-revisions-insert-an-image-stop-tracking-and-verify-the-image-insertion-appe.cs- Task: Start tracking revisions, insert an image, stop tracking, and verify the image insertion appears as a revision.
- Workflow: track-changes-workflow
- Outputs: docx
- Selected engine: mcp
load-a-document-start-tracking-insert-a-table-stop-tracking-then-accept-the-table-insertio.cs- Task: Load a document, start tracking, insert a table, stop tracking, then accept the table insertion revision.
- Workflow: track-changes-workflow
- Outputs: doc
- Selected engine: mcp
start-tracking-delete-a-sentence-stop-tracking-then-accept-the-deletion-revision-individua.cs- Task: Start tracking, delete a sentence, stop tracking, then accept the deletion revision individually.
- Workflow: track-changes-workflow
- Outputs: docx
- Selected engine: mcp
load-a-document-enable-tracking-perform-a-find-and-replace-operation-and-list-the-generate.cs- Task: Load a document, enable tracking, perform a find-and-replace operation, and list the generated revisions.
- Workflow: track-changes-workflow
- Outputs: doc
- Selected engine: mcp
load-a-document-enable-revision-tracking-apply-formatting-changes-and-list-resulting-revis.cs- Task: Load a document, enable revision tracking, apply formatting changes, and list resulting revision types.
- Workflow: track-changes-workflow
- Outputs: doc
- Selected engine: mcp
stop-tracking-revisions-then-make-additional-edits-and-confirm-no-new-revisions-are-record.cs- Task: Stop tracking revisions, then make additional edits and confirm no new revisions are recorded.
- Workflow: track-changes-workflow
- Outputs: docx
- Selected engine: mcp
determine-if-a-document-contains-any-revisions-before-further-processing-by-checking-the-h.cs- Task: Determine if a document contains any revisions before further processing by checking the HasRevisions property.
- Workflow: track-changes-workflow
- Outputs: doc
- Selected engine: mcp
use-the-hasrevisions-property-to-conditionally-apply-a-watermark-indicating-pending-change.cs- Task: Use the HasRevisions property to conditionally apply a watermark indicating pending changes.
- Workflow: track-changes-workflow
- Outputs: docx
- Selected engine: mcp
iterate-through-all-revisions-in-the-document-and-log-each-revision-s-author-and-timestamp.cs- Task: Iterate through all revisions in the document and log each revision's author and timestamp.
- Workflow: track-changes-workflow
- Outputs: doc
- Selected engine: mcp
iterate-over-revisions-group-them-by-type-and-output-a-summary-of-insertion-and-deletion-c.cs- Task: Iterate over revisions, group them by type, and output a summary of insertion and deletion counts.
- Workflow: track-changes-workflow
- Outputs: docx
- Selected engine: mcp
group-sequential-insertions-using-revisiongroup-and-accept-the-entire-group-with-a-single.cs- Task: Group sequential insertions using RevisionGroup and accept the entire group with a single call.
- Workflow: track-changes-workflow
- Outputs: docx
- Selected engine: mcp
use-revisiongroup-to-merge-consecutive-deletions-into-a-single-revision-before-accepting-i.cs- Task: Use RevisionGroup to merge consecutive deletions into a single revision before accepting it.
- Workflow: track-changes-workflow
- Outputs: docx
- Selected engine: existing_repo
accept-revisions-only-for-paragraphs-authored-by-a-specific-user-while-rejecting-others.cs- Task: Accept revisions only for paragraphs authored by a specific user while rejecting others.
- Workflow: track-changes-workflow
- Outputs: docx
- Selected engine: mcp
reject-a-specific-revision-based-on-author-name-then-confirm-the-change-is-no-longer-prese.cs- Task: Reject a specific revision based on author name, then confirm the change is no longer present.
- Workflow: track-changes-workflow
- Outputs: docx
- Selected engine: mcp
reject-all-formatting-revisions-but-keep-content-insertions-and-deletions-still-intact.cs- Task: Reject all formatting revisions but keep content insertions and deletions still intact.
- Workflow: track-changes-workflow
- Outputs: docx
- Selected engine: mcp
programmatically-reject-all-deletions-while-keeping-insertions-and-formatting-changes-stil.cs- Task: Programmatically reject all deletions while keeping insertions and formatting changes still intact.
- Workflow: track-changes-workflow
- Outputs: docx
- Selected engine: mcp
reject-revisions-older-than-a-specific-date-while-preserving-newer-changes-in-the-document.cs- Task: Reject revisions older than a specific date while preserving newer changes in the document.
- Workflow: track-changes-workflow
- Outputs: doc
- Selected engine: mcp
accept-all-revisions-in-a-loaded-docx-file-and-save-the-cleaned-document-to-a-new-file.cs- Task: Accept all revisions in a loaded DOCX file and save the cleaned document to a new file.
- Workflow: track-changes-workflow
- Outputs: docx, doc
- Selected engine: mcp
accept-all-revisions-in-a-document-then-re-enable-tracking-to-capture-subsequent-changes-s.cs- Task: Accept all revisions in a document, then re-enable tracking to capture subsequent changes separately.
- Workflow: track-changes-workflow
- Outputs: doc
- Selected engine: mcp
after-accepting-all-revisions-lock-the-document-to-prevent-further-editing-without-trackin.cs- Task: After accepting all revisions, lock the document to prevent further editing without tracking.
- Workflow: track-changes-workflow
- Outputs: doc
- Selected engine: mcp
reject-all-tracked-changes-in-a-document-then-verify-the-hasrevisions-property-returns-fal.cs- Task: Reject all tracked changes in a document, then verify the HasRevisions property returns false.
- Workflow: track-changes-workflow
- Outputs: doc
- Selected engine: existing_repo
compare-two-word-documents-to-generate-revision-differences-specifying-author-name-and-com.cs- Task: Compare two Word documents to generate revision differences, specifying author name and comparison date.
- Workflow: track-changes-workflow
- Outputs: doc
- Selected engine: mcp
use-doc-compare-to-create-a-revision-document-that-highlights-differences-between-two-vers.cs- Task: Use doc.Compare to create a revision document that highlights differences between two versions.
- Workflow: track-changes-workflow
- Outputs: doc
- Selected engine: mcp
programmatically-compare-a-document-against-its-previous-version-and-generate-a-revision-r.cs- Task: Programmatically compare a document against its previous version and generate a revision report in memory.
- Workflow: track-changes-workflow
- Outputs: doc
- Selected engine: mcp
compare-three-versions-of-a-contract-sequentially-generating-cumulative-revision-sets-for.cs- Task: Compare three versions of a contract sequentially, generating cumulative revision sets for each comparison.
- Workflow: track-changes-workflow
- Outputs: docx
- Selected engine: mcp
generate-a-report-listing-each-revision-s-type-author-and-the-paragraph-number-where-it-oc.cs- Task: Generate a report listing each revision's type, author, and the paragraph number where it occurs.
- Workflow: track-changes-workflow
- Outputs: docx
- Selected engine: mcp
develop-a-utility-to-export-revision-metadata-to-a-csv-file-for-external-analysis.cs- Task: Develop a utility to export revision metadata to a CSV file for external analysis.
- Workflow: track-changes-workflow
- Outputs: csv
- Selected engine: mcp
create-a-custom-logger-that-captures-revision-metadata-during-document-editing-for-audit-p.cs- Task: Create a custom logger that captures revision metadata during document editing for audit purposes.
- Workflow: track-changes-workflow
- Outputs: doc
- Selected engine: mcp
create-a-function-that-returns-true-if-any-revision-author-matches-a-specified-list-of-nam.cs- Task: Create a function that returns true if any revision author matches a specified list of names.
- Workflow: track-changes-workflow
- Outputs: docx
- Selected engine: mcp
create-a-utility-that-accepts-revisions-only-when-they-meet-a-minimum-word-count-threshold.cs- Task: Create a utility that accepts revisions only when they meet a minimum word count threshold.
- Workflow: track-changes-workflow
- Outputs: docx
- Selected engine: mcp
batch-process-a-folder-of-documents-rejecting-revisions-authored-by-a-given-user-across-al.cs- Task: Batch process a folder of documents, rejecting revisions authored by a given user across all files.
- Workflow: track-changes-workflow
- Outputs: doc
- Selected engine: mcp
create-a-batch-process-that-opens-multiple-documents-accepts-all-revisions-and-saves-them.cs- Task: Create a batch process that opens multiple documents, accepts all revisions, and saves them in place.
- Workflow: track-changes-workflow
- Outputs: doc
- Selected engine: mcp
accept-revisions-in-a-specific-section-of-the-document-while-leaving-other-sections-unchan.cs- Task: Accept revisions in a specific section of the document while leaving other sections unchanged.
- Workflow: track-changes-workflow
- Outputs: doc
- Selected engine: mcp
after-rejecting-all-revisions-verify-that-the-document-s-original-content-matches-a-baseli.cs- Task: After rejecting all revisions, verify that the document's original content matches a baseline file.
- Workflow: track-changes-workflow
- Outputs: doc
- Selected engine: llm
implement-error-handling-for-attempts-to-accept-a-revision-that-has-already-been-rejected.cs- Task: Implement error handling for attempts to accept a revision that has already been rejected.
- Workflow: track-changes-workflow
- Outputs: docx
- Selected engine: mcp
create-a-script-that-toggles-tracking-on-and-off-based-on-user-input-during-runtime.cs- Task: Create a script that toggles tracking on and off based on user input during runtime.
- Workflow: track-changes-workflow
- Outputs: docx
- Selected engine: mcp
Common failure patterns and preferred agent fixes
- Unsupported API invention
- Symptom: Generated code references members that do not exist in the selected package version.
- Preferred fix: Replace invented members with documented Aspose.Words APIs already proven in this category.
- Missing local bootstrap inputs
- Symptom: The example assumes source files, folders, images, or data already exist.
- Preferred fix: Create deterministic local inputs before loading, processing, or validating them.
- Over-broad validation
- Symptom: The example fails at runtime while checking unrelated document internals.
- Preferred fix: Validate only the requested behavior and the existence of expected outputs.
Build and run contract
- Target framework:
net8.0 - Package:
Aspose.Words26.9.0
Command reference
Create a temporary console project
dotnet new console -n ExampleProject --framework net8.0
cd ExampleProjectAdd required packages
dotnet add package Aspose.Words --version 26.9.0Copy a category example into the temp project
Copy-Item ..\track-changes\<example-file>.cs .\Program.csBuild and run
dotnet build --configuration Release --verbosity minimal
dotnet run --configuration Release --no-buildCategory update guidance
- Preserve file-to-task traceability. Any future update should keep the original task text associated with the file in metadata.
- When replacing a file, prefer the latest verified publish-ready version rather than a merely compiling draft.
- Keep examples standalone, bootstrap missing inputs locally, and prefer documented Aspose APIs over speculative shortcuts.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

