ref
Session-scoped branch / working-tree overlay. Ops:
use: pin a repository's reads to a branch (latest indexed revision). Branch must be tracked+indexed (open a PR, or add on the dashboard); else "indexing_in_progress". commitSha overrides.
clear: remove the pin, revert to default.
index_working_tree: overlay UNCOMMITTED edits (changedFiles path+content, optional deletedPaths/baseSha) on a short-lived synthetic revision pinned here; find_node/locate/relate reflect them, source and locate mode:semantic do NOT. Cap 100 files/256KB.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | Yes | use: pin reads to a tracked branch. clear: revert to the default branch. index_working_tree: overlay uncommitted edits on a synthetic revision and pin it. | |
| branch | No | op:use. The tracked branch to pin. | |
| baseSha | No | Indexed base your edits sit on. Omit for the default-branch tip. | |
| feedback | No | Optional: report how a previous answer worked out; piggybacks on any call. | |
| projectId | No | Project id from init/list_projects. Omit for the active project. | |
| repository | No | Repository full name, e.g. "owner/repo". Omit when the project has one repository. | |
| changedFiles | No | Changed/added files with current contents, repo-relative paths. | |
| deletedPaths | No | Repo-relative deleted paths. |