Markwork Docs

Agent

Browsing files and Git

The initial context only holds the parts that are chosen automatically. For the rest, the agent browses the workspace by itself with read-only tools that run right away without approval.

File read tools

ToolFunction
list_filesThe list of Markdown files in the work folder with their word counts and headings
search_documentsSearch sections of files by topic (BM25)
search_textSearch for exact text, e.g. a name, a date, or a number
read_fileRead the contents of a file by line range, with line numbers

For a question like “is there a meeting decision that has not made it into the launch plan?”, the agent searches for every occurrence of the topic, reads the surrounding parts, and then answers with quotes of the file and the line number.

Git history tools

When the work folder is a Git repository, the agent can also read its history:

ToolFunction
git_logThe latest commits for the whole folder or one file (following renames), with the files that changed
show_commitThe diff of one commit
file_at_commitThe contents of a file at an old commit, including files that were deleted

A question like “when was the release date changed and by whom?” is answered from the history.

The Assistant panel answering when the release date was written, after calling git_log and show_commit; the History tab is open in the sidebar
The agent reads the history and the commit diff, then answers who and when
Git access boundary

git is run in the work folder with a pathspec that only covers non-hidden Markdown files. A commit may only be a hash or HEAD~n. No git command that changes the repository is available.

Tips