Before you start
- Entries belong to an active staff user. For an API key, that is the user who created the key. For OAuth, it is the user who granted access. No call accepts an author: give each person their own key or connection. If that user is not an active staff user, calls return
403with codestaff_principal_required. - Scopes:
work_log:readto read everyone’s entries.work_log:writeto log work and delete your own entries.work_log:writeincludeswork_log:read. - The person must have turned the log on. Nothing is logged for someone until they switch on Let my AIs log my work on the Work log page, and nothing is logged for anyone while a super admin has turned the work log off for the workspace. Until then, logging answers
403with codework_log_not_turned_onorwork_log_disabled. Reading and deleting entries still work, and so does sending a private category to have an entry forgotten.
Log work
Log a piece of work once when it starts and once when it ends, with the samekey:
201 and the second 200, both with the entry:
Teams are the ones of your workspace, managed with your users. Tags need no setup: reuse the same ones so they stay useful as filters.
An update only changes the fields you send.
started_at is the time of the first call. ended_at is set when the status becomes done or abandoned, and cleared if the work goes back to in_progress.
What the log never stores
Keep titles and comments high level: no customer data, people’s names, credentials, figures or file contents. Work sent with the categoryhr, personal or sensitive_strategy is never stored. The call answers 204 with no content, and an entry already logged under the same key is removed. Assistants should not log this kind of work at all.
Your workspace also excludes topics. By default, AGO leaves out anything unrelated to work, such as personal errands or leisure; staff users can replace this yes/no question in Settings on the Work log page, for example with “Is this work about recruiting or salaries?”. AGO asks it about the title, comment and tags of each call that sends them. The check needs OpenAI as the fast model provider, or an AI gateway: without one, the default question is skipped. When the answer is yes, the work is not stored either: the call answers 204 and an entry already logged under the same key is removed. A call that only changes the status, such as the one that closes a piece of work, is not checked again.
Read the log
page, page_size up to 100).
To find abandoned work, combine both signals: entries with the status
abandoned, and inactive_days for work that was started and never closed.
Delete an entry
DELETE /api/v1/work-log/{entry_id} removes one of your own entries and answers 204. Someone else’s entry answers 404, like a missing one.
Errors
See Errors for the error envelope.
MCP tools
AI assistants connected to the AGO MCP server get the same operations:log_work, list_work_log and delete_work_log_entry. Entries logged through an OAuth connection belong to the person who approved it.
For a person who turned the log on, AGO also tells the connected assistant to log their work: when to log, what to leave out, and one entry per piece of work. Nothing else is needed, for example in Claude. The connection needs the work_log:write scope: an assistant connected before that scope existed must be connected again. While the work log is turned off for the workspace, log_work is not listed; list_work_log and delete_work_log_entry stay available.
Log work from Claude Code
Claude Code can log its own work while it helps you. Set the endpoint and your key in~/.claude/settings.json, and add a hook that gives Claude the instructions when a session starts:
~/.claude/ago-work-log.md with the instructions:
work_log:write scope only, one per person.