Skip to main content

Live Diffs

As Nimbus implements a task, it streams file changes to the terminal in real time.

What it looks like

  api/routes/auth.py
+ from pydantic import BaseModel, EmailStr, validator
+
+ class RegistrationInput(BaseModel):
+ email: EmailStr
+ password: str
+
+ @validator('password')
+ def password_strength(cls, v):
+ if len(v) < 8:
+ raise ValueError('password must be at least 8 characters')
+ return v
+
@router.post('/register')
- async def register(email: str, password: str):
+ async def register(body: RegistrationInput):
- user = await create_user(email, password)
+ user = await create_user(body.email, body.password)
return {'id': user.id}

Green lines (+) are additions. Red lines (-) are deletions. Context lines have no prefix.

Why live diffs matter

Nimbus is writing code to your disk in real time. The diff stream lets you see exactly what's happening as it happens. If you notice something wrong, you can interrupt with Ctrl+C before the task completes.

After implementation

Once all files are written and verification passes, Nimbus shows the complete diff one more time and asks for final approval:

  verification  passed  ·  pytest 47/47

approve diff and commit? [y/n]

This is your last opportunity to review before the changes are committed. In hosted mode, approving here pushes the branch and opens a PR.