Appearance
The Vibe server workspace helper wraps common git operations behind API endpoints.
Workspace endpoints
GET /_vibe-agent/workspace/drop- Runs
git checkout -- .andgit clean -fd.
- Runs
GET /_vibe-agent/workspace/reset- Runs
git checkout main,git fetch, andgit reset --hard origin/main, thengit clean -fd.
- Runs
GET /_vibe-agent/workspace/accept- Responds immediately with
success: trueunless a push is already running. - Runs an internal prompt to create
.commit.txt. - Creates a new branch named
vibenv/<timestamp>. - Runs
git add .andgit commit -F .commit.txt. - Pushes the branch and creates a GitLab merge request.
- Responds immediately with
Change tracking
workspace.changes() returns:
additionsanddeletionsfromgit diff --numstataffectedFilesfromgit diff --numstatand untracked filesbranchandisMainfromgit rev-parse --abbrev-ref HEAD