v38

latestOpenAPI 3.1.0raw.githubusercontent.com2026-06-1793196344.2 KB
Context Documents

LLM-based three-way merge of a user edit with the current LLM output

Semantic auto-merge for a single file.

Uses Claude to combine the user's saved content with the fresh LLM baseline: preserve user framing, absorb new facts. Saves the result as an updated content edit and returns the refreshed tree.

Only works on DRAFT trees that have an active content edit and a captured LLM baseline for the path.

post/context-documents/tree/{tree_id}/files/automerge

Path parameters

tree_idstring required

Request body

pathstring required

File path to auto-merge.

Response

Successful Response

tree_idstring required
statusstring required
versioninteger required
errorstring nullable required
created_atstring date-time required
completed_atstring date-time nullable required
metaobject required