Agentic Fix Suggestions

When you create a slice, Brie's agent gets to work immediately. It analyzes the bug context — console errors, failed network requests, screenshots, and your codebase — and prepares a code fix proposal. By the time you open the slice in the web app, a suggested fix is already waiting for your approval.

This isn't a chatbot you have to prompt. Brie's agent acts on your behalf, proactively — you just review and approve.

Requirements

  • A GitHub repository connected to your workspace. See GitHub Integration for setup.
  • The repository must have allowed paths configured — directories where Brie's agent is permitted to suggest changes (e.g., src/, apps/web/).

The flow

1. You report a bug — Capture the bug from the extension as usual.

2. Brie's agent starts working — As soon as the slice is ready, the agent analyzes the bug context against your codebase and prepares a fix proposal. This happens in the background — no action needed from you.

3. A fix is waiting — Open the slice in the Brie web app. The Suggested Changes panel shows what the agent found:

  • A summary explaining the fix.
  • A list of files to add, modify, or delete.
  • The actual code diff for each file.
  • Any risks or caveats that were flagged.

4. You approve — Review the changes, then check the "I agree with this proposal" checkbox.

5. A pull request is created — Click Create Pull Request, enter a branch name, and Brie automatically:

  • Creates a new branch on your GitHub repository.
  • Applies the code changes.
  • Opens a pull request with a title, description, and links back to the slice.

What the agent works with

Brie's agent builds its fix from everything captured in your slice:

  • Bug title and description
  • Console errors and stack traces
  • Failed network requests
  • Screenshot annotations
  • Your repository's file structure and relevant source code

The richer the bug report, the more accurate the fix.

Safety & constraints

No code is pushed until you explicitly approve. Additional safeguards:

  • Allowed paths only — The agent can only modify files in directories you've configured.
  • Blocked paths — Sensitive directories like .github/workflows, infra/, terraform/, and k8s/ are never touched.
  • Max 20 files per proposal.
  • Max 200KB total diff size.
  • Human approval required — Always. The agent proposes, you decide.

If something goes wrong

  • If the proposal fails, you'll see an error message with a Retry button.
  • If the PR creation fails, your approved proposal is preserved — you can retry without regenerating.
  • Status updates are tracked in real time while the agent is working.

Pro tip: The more context Brie captures (console errors, network failures, screenshots with annotations), the more accurate the agent's fix will be.