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_noteOne note of a board, list, table, calendar, timeline, gallery, or chart document. add (with fields), update (title, tags, fields; an empty value removes a field), move, mark, delete, and the groups (the columns of a board): add_group, rename_group, delete_group (empty groups only). Every value is checked against the fields the document declares, so an unknown field, a select option that does not exist, or a date that is not a real day comes back to the agent as an error instead of being written. today and now are accepted for date fields, and the defaults of the document (such as created: date = now) are filled in. On a board grouped by a field, move sets that field
edit_schemaThe frontmatter of a structured document: add_field (a type such as select(todo:gray, doing) and a default), remove_field, add_option / remove_option of a select, reorder_fields, set_layout, and set_option (group, sort, columns, charts, date, …). The notes are never rewritten: a field with values, or an option that notes use, is refused (a field can be removed with force, which leaves its values in the notes). A layout that needs a date or select field is refused until the document has one
propose_batchUp to 20 of the actions above at once, reviewed in one window. Later actions see the result of earlier ones, so a field can be declared and used in the same batch

The review window

  • It opens automatically when the agent proposes, with the reason at the top and a colored diff in the style of a Git diff: line numbers, three lines of context, and several hunks.
  • The Reject and Apply buttons. Closing the window is the same as rejecting.
  • A compact status card remains in the panel with a Review changes button to open it again.
  • The result of Apply, Reject, an error, or Stop is sent back to the agent, so the agent does not insist after a rejection.
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.

  • Uncheck to reject part of it; the button changes to Apply 2 of 3.
  • The agent is told which files were applied and which were rejected.
  • Several changes to the same file are merged into one diff.
  • A file that is deleted or moved may not be touched by another action in the same batch, so every file is safe to apply on its own.
  • All the files are checked before any is written. If writing fails halfway, the files that were already written are restored where possible.
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:

  • It fails without overwriting anything if the file has been edited again.
  • A deleted file is restored from the journal snapshot; a move is reversed.
  • The journal marks it Undone so the agent does not assume that the change still holds.

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.

  • Kanban cards and lists are matched from their text and exactly one must match; otherwise the agent is given a list of candidates.
  • delete_list only applies to an empty list so that cards do not disappear with it.
  • The proposal tools only exist when the Other files in the folder switch is on.