AGENTIC CHAT
Debate, refine, and modify code changes directly within your review comments.
GitRabbit operates as a stateful agent. You can reply directly to any comment left by GitRabbit in GitHub or GitLab to request corrections, ask for code alternatives, or debate style issues. The agent maintains the context of the discussion and can rewrite suggestions in real-time.
Key_Capabilities
Threaded Context
The agent understands the historical context of a comment thread and respects prior updates.
Automatic Code Refinement
Ask GitRabbit to modify its suggestion, and it will update the suggestion block instantly.
Command Prompts
Use explicit commands like '/refactor' or '/explain' in your replies to instruct the agent.
Setup_Sequence
Reply to a Comment
Go to any line comment created by GitRabbit in your pull request.
Ask a Question
Type your query, e.g. '@gitrabbit can you rewrite this using async/await?'
Observe Update
GitRabbit will analyze your reply, rewrite the code, and replace the inline suggestion.
Code_Example
🙋 Developer: @gitrabbit please implement this with a debounce delay of 300ms instead.
🤖 GitRabbit: Certainly. Here is the updated code utilizing debounced execution:
```typescript
const debouncedSearch = debounce((query) => {
fetchResults(query);
}, 300);
```Pro_Tips
- ✦Keep responses simple. GitRabbit reads code changes automatically when you push new commits to the branch.
- ✦You can restrict chat capabilities to collaborators only in your .gitrabbit.yml file.
- ✦Use '/explain' if you want a detailed algorithmic walkthrough of why GitRabbit flagged a block of code.