Claude Code
This guide walks you through setting up Mobb Tracy with Claude Code to track AI-generated code in your pull requests.
Prerequisites
Before you begin, make sure you have:
Claude Code installed on your machine
A GitHub repository where you'll be making pull requests
A Mobb account (sign up at https://app.mobb.ai)
Node.js and npm installed (for running npx commands)
Installation
Step 1: Install Mobb Tracy for Claude Code
Open your terminal or command prompt
Run the following command to install and configure Mobb Tracy:
npx --yes mobbdev@latest claude-code-install-hookThe command will prompt you to log in to your Mobb account. Follow the authentication process.
After successful authentication, manually update your Claude settings file located at
~/.claude/settings.jsonto complete the setup.Tracy will now begin securely collecting AI interaction data from Claude Code.
Step 2: Set Up GitHub App Integration
Visit the Mobb platform: https://app.mobb.ai
Click the robot icon on the left sidebar:
Select Configure GitHub App in the top-right corner.
Choose the repositories where you want to enable Tracy (or select All repositories).
That’s it! Tracy will now annotate your pull requests automatically.
Step 3: Seeing Tracy in Action
Open Claude Code in a repository where Tracy is enabled.
Make changes to the code - using Claude's AI assistance, manual edits, or both.
Commit the changes and create a pull request.
If any part of the code was AI-generated, Tracy will post a PR comment letting you know that AI code analysis is ready with some more insights:\

Click the link in the comment to open Tracy's detailed view:

Select any AI-generated line to see:
The prompts used to generate that line
The full conversation context behind it
This gives you complete transparency into how AI contributed to your code.
Last updated
Was this helpful?