Skip to content

Conversation

@blooop
Copy link
Owner

@blooop blooop commented Nov 16, 2025

This commit adds complete support for Claude Code online environment:

  • Add .claude/hooks/SessionStart: Automatically sets up pixi and dependencies
  • Add .claude/README.md: Comprehensive documentation for Claude Code usage
  • Add .claude/activate.sh: Manual environment activation script
  • Update README.md: Add Claude Code section with quick start guide

The SessionStart hook automatically:

  • Installs pixi package manager if not present
  • Installs all project dependencies via pixi
  • Sets up pre-commit hooks
  • Configures git merge drivers

This enables immediate development in Claude Code online without manual setup.

Summary by Sourcery

Enable seamless development in Claude Code by automating environment setup via pixi including dependencies installation, pre-commit hook and git configuration, plus provide a manual activation script and documentation.

New Features:

  • Add SessionStart hook for Claude Code to auto-install pixi, project dependencies, pre-commit hooks, and configure git on session start
  • Add activate.sh script for manual pixi environment activation in Claude Code

Documentation:

  • Update root README with Claude Code quick-start guide
  • Add .claude/README.md with detailed configuration instructions for Claude Code

This commit adds complete support for Claude Code online environment:

- Add .claude/hooks/SessionStart: Automatically sets up pixi and dependencies
- Add .claude/README.md: Comprehensive documentation for Claude Code usage
- Add .claude/activate.sh: Manual environment activation script
- Update README.md: Add Claude Code section with quick start guide

The SessionStart hook automatically:
- Installs pixi package manager if not present
- Installs all project dependencies via pixi
- Sets up pre-commit hooks
- Configures git merge drivers

This enables immediate development in Claude Code online without manual setup.
@sourcery-ai
Copy link

sourcery-ai bot commented Nov 16, 2025

Reviewer's Guide

This PR introduces a complete Claude Code integration template by adding a new .claude folder with automated environment setup hooks, a manual activation script, and detailed documentation, and updates the main README with quick-start instructions for Claude Code online.

Sequence diagram for automated environment setup in Claude Code

sequenceDiagram
    actor User
    participant "Claude Code"
    participant "SessionStart Hook"
    participant "Pixi"
    participant "Pre-commit"
    participant "Git"
    User->>"Claude Code": Open repository online
    "Claude Code"->>"SessionStart Hook": Start session
    "SessionStart Hook"->>"Pixi": Check/install pixi
    "SessionStart Hook"->>"Pixi": Install dependencies
    "SessionStart Hook"->>"Pre-commit": Set up hooks
    "SessionStart Hook"->>"Git": Configure merge drivers
    "SessionStart Hook"-->>"Claude Code": Environment ready
    "Claude Code"-->>User: Ready to run pixi commands
Loading

Class diagram for new Claude integration scripts

classDiagram
    class SessionStart {
        +installPixi()
        +installDependencies()
        +setupPreCommitHooks()
        +configureGitMergeDrivers()
    }
    class ActivateSh {
        +activatePixiEnv()
        +showAvailableCommands()
        +checkPixiInstalled()
    }
    SessionStart <.. ActivateSh : "manual activation fallback"
Loading

File-Level Changes

Change Details Files
Add .claude directory with integration scripts and documentation
  • Create SessionStart hook for automated setup
  • Add manual activation script
  • Add detailed Claude Code README
.claude/hooks/SessionStart
.claude/activate.sh
.claude/README.md
Implement automated environment setup in SessionStart hook
  • Install pixi if missing
  • Install project dependencies via pixi
  • Configure pre-commit hooks and git merge drivers
.claude/hooks/SessionStart
Update root README with Claude Code section
  • Add Claude Code Online Support section
  • Outline quick start steps
  • Link to manual activation and detailed docs
README.md

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey there - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@blooop blooop merged commit 94fab02 into main Nov 16, 2025
7 checks passed
@blooop blooop deleted the claude/setup-claude-template-018pEspHaNhB7a1XgjDiMd1B branch November 16, 2025 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants