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

  1. Open your terminal or command prompt

  2. Run the following command to install and configure Mobb Tracy:

    npx --yes mobbdev@latest claude-code-install-hook
  3. The command will prompt you to log in to your Mobb account. Follow the authentication process.

  4. After successful authentication, manually update your Claude settings file located at ~/.claude/settings.json to complete the setup.

  5. Tracy will now begin securely collecting AI interaction data from Claude Code.

Step 2: Set Up GitHub App Integration

  1. Visit the Mobb platform: https://app.mobb.ai

  2. Click the robot icon on the left sidebar:

  3. Select Configure GitHub App in the top-right corner.

  4. Choose the repositories where you want to enable Tracy (or select All repositories).

  5. That’s it! Tracy will now annotate your pull requests automatically.

Step 3: Seeing Tracy in Action

  1. Open Claude Code in a repository where Tracy is enabled.

  2. Make changes to the code - using Claude's AI assistance, manual edits, or both.

  3. Commit the changes and create a pull request.

  4. 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:\

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

  6. 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?