Markwork Docs

Agent

Proposals and approval

The agent never writes by itself. Every action becomes a proposal with a diff that you review; files are only touched after you press Apply.

The review window of an agent proposal: a one-line diff of the release date with the Reject and Apply buttons
The review window: the release date changes from 15 to 22 November

Actions that can be proposed

ToolAction
create_fileA new Markdown file; after it is applied it is opened in a tab right away
edit_fileReplace an exact piece of text that appears exactly once, or every occurrence with all: true
insert_textInsert text at the start of a file (after the frontmatter), at the end, or after a given line. A line number must come with the contents of that line, so a miscount is rejected
delete_fileMove a file to the Trash, not delete it permanently
move_fileRename or move to another folder; an open document follows its new path
edit_kanbanCards: add, move, mark, edit, delete. Lists: add_list, rename_list, delete_list (empty lists only)
propose_batchUp to 20 of the actions above at once, reviewed in one window

The review window

The review window of an agent proposal: a kanban card moves from the Plan list to In Progress
Moving a card only marks that card, not the whole board

Batches and partial approval

For work that touches several files, the agent uses propose_batch. All the diffs appear in one window with a checkbox per file.

The review window of a three-file batch: one checkbox removed, a note for the agent filled in, the Apply 2 of 3 button
A three-file batch: one rejected through its checkbox, with a note for the agent

Notes for the agent

The Note for the agent box below the diff is passed on together with your decision, e.g. the reason for rejecting or the correction you want, so the agent can fix its proposal.

Undo

A proposal card that has been applied has an Undo button, also in a conversation that is opened again. Undo applies the reverse of the change through the same checks:

Changes to an open document can also be undone with Ctrl+Z, because they are applied as one editor undo step.

Safeguards

Always rejected

A file name outside the work folder, starting with a dot, containing .., or passing through a symlink; files that are not Markdown; and applying to a file whose contents changed since it was proposed. The agent is then asked to propose again.