Git Integration
Builder has a built-in git client. You can commit, branch, and push generated code without leaving the platform.
Endpoints
| Method | Endpoint | Description |
|---|---|---|
GET | /api/git/status | Working tree status |
GET | /api/git/diff | Diff of unstaged changes |
POST | /api/git/stage | Stage specific files |
POST | /api/git/commit | Commit staged changes |
POST | /api/git/quick-commit | Stage all + commit in one call |
GET | /api/git/branch | List branches and current branch |
POST | /api/git/push | Push to remote |
Typical workflow
bash
# 1. Check what changed
GET /api/git/status
# 2. Stage specific files
POST /api/git/stage
{ "files": ["app/routers/users.py", "tests/test_users.py"] }
# 3. Commit
POST /api/git/commit
{
"message": "feat(users): add CRUD endpoints with validation",
"author": "Purple8 Builder"
}
# 4. Push
POST /api/git/push
{ "remote": "origin", "branch": "feature/users-api" }Quick commit (single call)
bash
POST /api/git/quick-commit
{
"message": "chore: generated by Purple8 Builder v5.4.0",
"push": true,
"remote": "origin",
"branch": "main"
}After a build
Builder automatically creates a git commit at the end of every successful build with a structured message:
feat: initial generation by Purple8 Builder
Goal: mvp
Agents: 23 activated
Files: 47 generated
Lines: 3,820
CTQ score: 84/100
Build time: 9m 32s