Skip to content

All endpoints are mounted under /_vibe-agent.

POST /prompt

Starts a new agent run.

Request body:

json
{
  "prompt": "...",
  "componentPath": "src/components/Button.vue",
  "tree": []
}

Notes:

  • tree is optional and is used to build component hierarchy guidance.
  • If a session is already running, the server responds with success: false and an error message.

POST /edit

Opens a file in the requested IDE.

Request body:

json
{
  "ide": "vscode" | "webstorm",
  "path": "relative/path/to/file"
}

GET /session-response

Returns the current session state.

DELETE /session-response

Clears response and thinkResponses in the session.

GET /sse

Initializes an SSE stream and immediately emits the current session state.

GET /kill

Kills the currently running agent process.

GET /workspace/drop

Drops changes and removes untracked files.

GET /workspace/reset

Resets to origin/main and removes untracked files.

GET /workspace/accept

Commits and pushes changes to a new branch and opens a GitLab merge request.