Overview
Ghost is Better Hub’s AI assistant, accessible with⌘I from anywhere in the app. Ghost helps you review pull requests, navigate code, triage issues, write commit messages, and answer questions about repositories.
Key Features
PR Reviews
Summarize changes, spot issues, and suggest improvements
Code Navigation
Find files, explain functions, trace dependencies
Issue Triage
Categorize, label, and draft responses to issues
Commit Messages
Generate conventional commit messages from diffs
Opening Ghost
Ghost is available everywhere in Better Hub:Keyboard Shortcut
Press⌘I (Mac) or Ctrl+I (Windows/Linux) to toggle Ghost from any page.
Command Center
- Press
⌘Kto open the command center - Select “Open Ghost” from the suggestions
Floating Button
Click the Ghost icon in the bottom-right corner (appears on repository pages).Ghost opens in a slide-out panel on the right side of the screen, keeping your current page visible for context.
Ghost Panel Interface
The Ghost panel has several key components:Header
- Ghost icon: Indicates active AI session
- Close button (X): Collapse the panel
- Resize handle: Drag to adjust panel width
Tab Bar
Ghost supports multiple tabs for parallel conversations:- Current tab: Shows the active conversation
- Tab label: Auto-generated from page context (e.g., “PR #123 · repo-name”)
- New tab (+): Start a fresh conversation
- Close tab (X): Remove a tab (hover to reveal)
Chat Area
- Messages: Your questions and Ghost’s responses
- Code blocks: Syntax-highlighted with copy button
- File links: Click to navigate to mentioned files
- Suggestions: Contextual prompts to get started
Input Box
- Text field: Type your question or command
- Mention files: Type
@to mention PR files or#to search repo files - Context chips: Shows attached code snippets (when you select code)
- Send button: Submit your message
Page-Aware Context
Ghost automatically understands where you are:- On a Pull Request
- On an Issue
- On Repository Overview
- On Code Files
Ghost has access to:
- All changed files and diffs
- PR description
- Comments and reviews
- Commit messages
- Related issues
- “Summarize this PR”
- “Are there any security concerns?”
- “What files should I review first?”
Common Use Cases
1. PR Review Assistance
When reviewing a pull request:- “Show me the authentication flow”
- “Are there any security issues?”
- “What tests were added?”
- “Check for error handling”
2. Code Explanation
Understanding complex code:3. Issue Triage
Processing new issues:4. Commit Message Generation
When committing code:5. File Navigation
Finding code in large repos:Mentioning Files
Attach specific files or code to your queries:@ Mentions (PR Files)
On a PR, type@ to mention files changed in the PR:
# Mentions (Any Repo File)
Type# to search and mention any file in the repository:
Multiple Files
Attaching Code Snippets
Select code in a diff or file view, then click “Ask AI”:- Code snippet appears as a context chip in Ghost’s input
- Ask questions about that specific code:
- “What does this do?”
- “Is this secure?”
- “Suggest improvements”
- Ghost references line numbers in its response
- Remove context chip with the X button
Conversation History
Ghost saves your conversations:- Per-tab history: Each Ghost tab maintains its own conversation
- Persistent: Conversations survive page navigation
- Searchable: Click “History” to see past conversations
- Loadable: Click a past conversation to restore it in a new tab
Starting Fresh
To clear the current conversation:- Click the ”+” button to open a new tab
- The new tab starts with a clean slate
- Close the old tab if you no longer need it
Ghost Models
Better Hub uses different AI models for different tasks:- Default model:
kimi-k2.5(fast, context-aware) - Merge model:
gemini-2.5-pro-preview(for PR merges)
Changing the Model
- Press
⌘K→ “Configuration” → “Model Settings” - Select from available models:
- GPT-4
- Claude 3.5 Sonnet
- Gemini 2.5 Pro
- Kimi K2.5
- Each model has different strengths (speed, context size, reasoning)
Which model should I choose?
Which model should I choose?
Kimi K2.5 (default) - Best balance of speed and quality for most tasks.Claude 3.5 Sonnet - Best for code review and technical writing.GPT-4 - Best for general questions and explanations.Gemini 2.5 Pro - Best for very large context (huge PRs).
Best Practices
Limitations
Ghost works best with:
- PRs under 50 files changed
- Text-based files (code, markdown, configs)
- Repositories with clear structure
- Binary files or images
- Very large monorepos (>10k files)
- Generated code (minified JS, compiled output)
Privacy & Security
- Ghost analyzes code in your current session only
- Conversations are not used to train models
- Private repos remain private (Ghost uses your GitHub auth)
- Self-hosted Better Hub: All AI processing can run on-premises
Can I use my own API keys?
Can I use my own API keys?
Yes! In Configuration → Settings, toggle “Use your own API key” and enter:
- OpenRouter API key
- Anthropic API key (optional)
- OpenAI API key (optional)
Keyboard Shortcuts
| Shortcut | Action |
|---|---|
⌘I | Toggle Ghost panel |
⌘Enter | Send message |
Esc | Close Ghost |
⌘T | New tab |
⌘W | Close current tab |
Related Features
- Pull Requests - Use Ghost for PR reviews
- Issues - Triage issues with Ghost
- Command Center - Open Ghost from ⌘K
- Repository Overview - Ask Ghost about repo structure