Record changeset
record_changesetStore changed files, patches, git metadata, intent, and session links so subsequent agents can understand what was modified and why.
Instructions
Purpose: Persist a code changeset with files, optional patches, git metadata, and session links. When to use: call after an agent edits or reviews files so future agents can understand what changed and why. Inputs: files contains changed file objects; workspace_id or workspace_uri is required; metadata links commits, branches, intent, and sessions. Side effects: writes changeset and file rows. Output: changeset identifiers and summary fields. Failure modes: raises when no workspace identifier is supplied or payloads are invalid.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | List of changed file objects with file_path, status, and optional patch. | |
| branch | No | Optional branch name associated with the changeset. | |
| intent | No | Short explanation of why the changes were made. | |
| summary | No | Human-readable summary of the changeset. | |
| metadata | No | Optional JSON metadata for tools, test evidence, or external refs. | |
| git_commit | No | Optional git commit SHA associated with the changeset. | |
| session_id | No | Optional internal session UUID to link to this changeset. | |
| workspace_id | No | Existing workspace UUID; required if workspace_uri is omitted. | |
| workspace_uri | No | Workspace root URI used to create or resolve a workspace. | |
| workspace_name | No | Optional display name when creating a workspace from workspace_uri. | |
| session_external_id | No | Optional external transcript/session id to link to this changeset. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||