Home/Docs/Review agent edits
Paper agent workflow

Review AI edits in your LaTeX source and PDF.

DraftPilot shows changes made by Codex or another configured local agent in the paper editor. Inspect the changed source, decide what to keep, then build and read the resulting PDF.

Before an agent edits

Open the correct paper workspace and make sure the paper builds. If the folder uses Git, commit a known-good state before a broad rewrite so you have an independent recovery point. In Settings → AI & integrations, check the selected agent command and any linked codebase folders. You can use the built-in Paper Agent or an external agent editing the same paper files.

Leave the top-bar Auto Approve toggle off when you want DraftPilot to show changed spans for review. This setting is saved for the workspace.

How external changes appear

The agent writes to the actual paper files. DraftPilot reloads an externally changed source file, highlights added and removed spans, and shows an external-change review bar. Accept is a review action, not a permission gate before the agent writes to disk. If automatic compilation is on, the changed file may also be compiled while review is pending.

Use the review bar's previous and next controls or Needs attention to reach pending changes. When opening another source file, DraftPilot can compare its on-disk content with the last workspace snapshot and show the differences there too.

Accept or reject the source edits

Read each changed span against the surrounding paragraph, equations, citations, and labels. Accepting a change marks it reviewed. Rejecting a change writes the previous content for that span back to the source file; the all-change controls perform the same choice for the current file's pending changes. If another tool is editing the file at the same time, inspect the latest on-disk version before rejecting to avoid overwriting concurrent work.

Turning Auto Approve on clears the pending review and accepts later external changes automatically in DraftPilot. It does not grant or revoke the agent's filesystem access. Keep it off if you need to inspect each edit.

Build and verify the paper

Recompile after your review. Read the changed pages in the PDF, check that references and figures still resolve, and inspect the final build log. For a submission, run the paper submission audit and compare the exact PDF you plan to upload. DraftPilot's change review shows source differences; it does not verify scientific claims or replace a full Git review.

If an agent edited a paper imported from Prism or Overleaf, compare the first local build with the reference PDF before making extensive changes.