Skip to content

Commit de51787

Browse files
issue chat docs (#254)
* wip on issue chat * wip adding pictures * add more pics and cleanup * fix tools link * lint * add more info on use cases
1 parent fe42e21 commit de51787

10 files changed

+155
-0
lines changed

docs/guides/issue-chat.md

+155
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,155 @@
1+
---
2+
title: Issue Chat
3+
sidebar_label: Issue Chat
4+
description: Learn how to use CodeRabbit's chat capabilities within issues
5+
sidebar_position: 10
6+
---
7+
8+
```mdx-code-block
9+
import ProPlanNotice from '@site/src/components/ProPlanNotice.mdx';
10+
11+
<ProPlanNotice />
12+
```
13+
14+
# Issue Chat
15+
16+
CodeRabbit provides an intelligent chat interface directly within GitHub and GitLab issues. This allows developers to have natural conversations about code, get answers to questions, create AI powered code searches, plan features, and gain deeper insights into their codebase - all without leaving their issue tracking workflow.
17+
18+
## Getting Started
19+
20+
To start a conversation with CodeRabbit in any issue:
21+
22+
1. Simply mention `@coderabbitai` (or your custom bot name if configured) in an issue comment
23+
2. Ask your question or make your request in natural language
24+
3. CodeRabbit will analyze the context and respond accordingly
25+
26+
:::note
27+
Organizations can configure a custom bot name by creating their own bot user. The bot will respond to mentions of that custom name instead of `@coderabbitai`.
28+
:::
29+
30+
![Github Chat Example](../../static/img/guides/chat-example.png)
31+
32+
![Gitlab Chat Example](../../static/img/guides/gitlab-issue-chat.png)
33+
34+
## Core Capabilities
35+
36+
### Code Analysis
37+
38+
When chatting in issues, CodeRabbit has access to your repository and powerful tools that allow it to analyze and understand your codebase like a real developer. This includes:
39+
40+
- Full access to search and analyze the repository code
41+
- Advanced static analysis capabilities
42+
- Command line tools for code search and manipulation (e.g. grep, awk, sed, etc.)
43+
- Complete git history and metadata information
44+
- Access to past CodeRabbit learnings and insights
45+
46+
This allows CodeRabbit to:
47+
48+
- Search through code to find relevant examples
49+
- Analyze code patterns and relationships
50+
- Generate statistics and metrics
51+
- Provide context-aware answers about the codebase
52+
- Create AI powered code searches
53+
- Use tribal knowledge from learnings to enhance responses
54+
55+
![Script Execution Example](../../static/img/guides/chat-script-execution.png)
56+
57+
![Chat Learnings Example](../../static/img/guides/chat-learnings-use.png)
58+
59+
### Agentic Thought Chain
60+
61+
When [agentic thought chain](./agent_chat.md) is enabled, CodeRabbit will use an agentic thought chain to plan out a response using multiple commands in series to articulate a more advanced response.
62+
63+
![Agentic Thought Chain Example](../../static/img/guides/agentic-thought-chain.png)
64+
65+
### Feature Planning Support
66+
67+
Issue chat is particularly valuable during feature planning phases:
68+
69+
- **Code Impact Analysis**: Ask about which parts of the codebase might be affected by proposed changes
70+
- **Pattern Discovery**: Find similar implementations or related code
71+
- **Dependency Mapping**: Understand relationships between components
72+
- **Technical Feasibility**: Get insights into potential challenges or approaches
73+
74+
Example conversation:
75+
76+
![Feature Planning Example](../../static/img/guides/feature-planning.png)
77+
78+
## Additional Use Cases
79+
80+
### Open Source Support
81+
82+
Issue chat, like all Pro CodeRabbit features, is free for open source projects. CodeRabbit acts as a powerful support tool for open source maintainers by:
83+
84+
- Answering common user questions with detailed, contextual responses
85+
- Providing relevant code examples and implementation patterns
86+
- Explaining error messages with debugging context and solutions
87+
- Suggesting step-by-step debugging approaches with code snippets
88+
- Helping triage and categorize issues
89+
- Identifying potential duplicates and related issues
90+
- Offering guidance on best practices and common pitfalls
91+
- Reducing maintainer burden by handling routine support tasks
92+
93+
Example:
94+
95+
![Open Source Support Example](../../static/img/guides/open-source-support.png)
96+
97+
### Documentation Assistance
98+
99+
Use issue chat to generate high level descriptions of the code and services in your repositories. This can be used to create README documentation which can be used across platforms like [wikis](https://docs.github.com/en/communities/documenting-your-project-with-wikis), [Confluence](https://www.atlassian.com/software/confluence/guides), [Notion](https://www.notion.so/help/guides) and more:
100+
101+
- Generate high level documentation
102+
- Create usage examples and mermaid diagrams
103+
- Provide content to assist in updating README files
104+
- Write tutorials
105+
106+
Example:
107+
108+
![Documentation Assistance Example](../../static/img/guides/high-level-docs.png)
109+
110+
### Marketing Content Generation
111+
112+
CodeRabbit can assist with creating content on new features for social media posts, blogs, and more:
113+
114+
- Release announcements
115+
- Blog post drafts
116+
- Social media content
117+
- Community updates
118+
119+
Example:
120+
121+
![Marketing Content Example](../../static/img/guides/marketing-posts.png)
122+
123+
## Best Practices
124+
125+
1. **Be Specific**
126+
127+
- Provide context in your questions
128+
- Mention specific files or features when relevant
129+
- Clarify your goals or requirements
130+
131+
2. **Iterative Refinement**
132+
133+
- Start with broad questions
134+
- Follow up for more details
135+
- Ask for clarification when needed
136+
137+
3. **Collaborative Planning**
138+
139+
- Include stakeholders in the conversation
140+
- Use issue chat to document decisions
141+
- Reference related issues or PRs
142+
143+
4. **Keep Questions Focused**
144+
- CodeRabbit works best with clear, specific questions
145+
- Link to specific files, directories or pull requests to help refine answers and provide better context
146+
- CodeRabbit does not generate API documentation, Swagger specs, or other technical documentation that requires high accuracy
147+
- Break down complex questions into smaller, more manageable ones
148+
- Use multiple messages to ask follow up questions if needed
149+
150+
## Related Resources
151+
152+
- [Agentic Chat](./agent_chat.md)
153+
- [Issue Creation](./issue-creation.md)
154+
- [Commands](./commands.md)
155+
- [Tooling Guide](../tools/tools.md)
73.8 KB
Loading

static/img/guides/chat-example.png

85 KB
Loading
70.6 KB
Loading
73.6 KB
Loading
126 KB
Loading
121 KB
Loading

static/img/guides/high-level-docs.png

104 KB
Loading

static/img/guides/marketing-posts.png

161 KB
Loading
128 KB
Loading

0 commit comments

Comments
 (0)