1. Install the cubic GitHub App
1
Sign up
Go to cubic.dev/sign-up and sign in with your GitHub account.
2
Authorize GitHub and start your free trial
Authorize cubic to access the repositories you want to review. You’ll get 14 days free, no credit card required.
2. Trigger your first review
To get your first AI review, you have two options: Option 1: Open a new pull request cubic automatically reviews new pull requests within a few minutes.- A comment from
@cubic-dev-aiwith the PR summary - Inline comments on specific code changes pointing out bugs and improvements
- Actionable suggestions with explanations
3. Interact with AI comments
cubic’s AI is interactive. You can chat with it, provide feedback, and request changes.1
Ask follow-up questions
Reply to any AI comment to ask for clarification:The AI will respond with more context.
2
Provide feedback
Help cubic learn by reacting to comments:
- Thumbs up if the suggestion is helpful
- Thumbs down if it’s not relevant
3
Request fixes
Ask cubic to generate a fix:If background agents are enabled, cubic can automatically apply the fix.
4. Set up your first custom rule
Custom rules enforce team-specific standards. Let’s create a simple one.1
Navigate to custom rules
- Go to cubic.dev/dashboard
- Select your repository
- Click Custom Rules in the sidebar
2
Create a rule
Click New Rule and define it using natural language:Example rule:You can also use code patterns:
3
Test the rule
Open a new PR that violates the rule. cubic will flag it:cubic will comment: “This function parameter uses
any type, which violates the custom rule.”For more advanced rule configurations, see Custom Rules.
5. Use background agents
Background agents automatically fix issues without manual intervention.1
Enable background agents
In your repository settings on cubic.dev, enable Background Agents.
2
Trigger a fix
When cubic identifies an issue, you can request a fix:cubic will:
- Generate the fix
- Create a commit on your PR branch
- Push the changes automatically
3
Review the fix
Check the new commit to verify the changes. You can always:
- Request modifications
- Revert the commit if needed
- Provide feedback for future fixes
6. Explore PR summaries
cubic automatically generates PR descriptions based on your code changes. When you create a PR, cubic will:- Analyze the diff
- Generate a summary including:
- What changed
- Why it changed
- Potential impacts
- Post it as the first comment
What’s next?
Now that you’ve experienced the basics, explore more features:- Key features: Deep dive into all AI review capabilities
- Custom rules: Advanced rule configurations and patterns
- Memory and learning: How cubic adapts to your codebase
- Interactive comments: Full list of AI commands and interactions
- Settings: Configure review behavior and preferences