# GitHub Helper Persona for Discourse AI

**URL:** https://meta.discourse.org/t/github-helper-persona-for-discourse-ai/299458
**Category:** Announcements
**Tags:** ai, ai-bot
**Created:** [March 15, 2024, 3:37am UTC](https://meta.discourse.org/t/github-helper-persona-for-discourse-ai/299458 "2024-03-15T03:37:44Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [March 15, 2024, 3:37am UTC](https://meta.discourse.org/t/github-helper-persona-for-discourse-ai/299458/1 "2024-03-15T03:37:44Z")

</div>

We just landed a brand new [AI Persona](https://meta.discourse.org/t/new-ai-persona-editor-for-discourse/286271) which integrates AI Bot into GitHub.

It ships with 3 tools:

1. The ability to read pull requests
2. The ability to read any particular set of files in a repository
3. The ability to search through a repository

For search to work you need to configure: `ai bot github access token`

To generate a token head to:

- [Sign in to GitHub · GitHub](https://github.com/settings/profile)
- Click on “Developer settings” at the bottom right
- Generate a “Personal access token”

GitHub supports fine grained tokens so you can grant a token with not access to private repositories (or you can create a token with access to private discussions)

Examples of what the new persona can do:

### 1. Review a pull request:

> **[Redis Go Client Adds RESP3 Protocol Support](https://meta.discourse.org/discourse-ai/ai-bot/shared-ai-conversations/Bo7V_t6p5rqkhbb7PRanBg)**
>
> sam: Carefully review: 
> 
> 
> 
> What does this do?
> Is it implemented correctly?
> Are there any changes you would recommend?

### 2. Read files in Github

> **[User Updater Service Documentation in Discourse App](https://meta.discourse.org/discourse-ai/ai-bot/shared-ai-conversations/Jp1M15PLbkh8aVjA7KIxoA)**
>
> sam: Produce API documentation for: 
> https://github.com/discourse/discourse/blob/main/app/services/user\_updater.rb

### 3. Search Github repositories

> **[Rails Template Compilation: Implementation and Optimization](https://meta.discourse.org/discourse-ai/ai-bot/shared-ai-conversations/c-kRPAT2TvLwUQDIG-OR7Q)**
>
> sam: I Rails how is template compilation implemented and optimised?

* * *

The GitHub API is vast and there are many new tools we could look at adding, be mindful though that the more tools an LLM has to work with, the often the more confused it can get, by keeping the features set smaller we are able to produce pretty impressive results.

Also note, this gives access to all of GitHub, you can explore Discourse or any other project.

Given the flexibility of the persona framework you can design custom personas that mix and match various tools (for example search on forum and search on GitHub) to produce very powerful domain specific personas.

Enjoy and let us know what you think 🎊
