This directory contains configuration for using this project with Claude Code, particularly in the online environment.
The hooks/SessionStart script automatically runs when a new Claude Code session begins. It:
- Installs pixi (if not already installed) - The package and environment manager
- Installs project dependencies - All Python packages and tools defined in
pyproject.toml - Sets up prek hooks - For automatic code quality checks
- Configures git - Sets up merge drivers for lockfiles
When you start a Claude Code online session, the SessionStart hook will automatically run and set up your environment. You'll see output indicating the setup progress.
Once setup is complete, Claude can use these pixi tasks:
pixi run test- Run pytest testspixi run coverage- Run tests with coverage reportpixi run lint- Run ruff and pylint linterspixi run format- Format code with ruff
pixi run ci- Run full CI pipeline (format, lint, test, coverage)pixi run fix- Auto-fix common issues (update lock, format, lint)
pixi run prek- Run all prek hookspixi run prek-update- Update prek hook versions
- First session: The hook installs pixi and all dependencies (may take a few minutes)
- Subsequent sessions: The hook verifies the environment is ready (much faster)
- Environment activated: All pixi commands are available to Claude
If you encounter issues:
- Dependencies not found: Run
pixi installmanually - Lockfile conflicts: Run
pixi run update-lock - Prek issues: Run
pixi run prek-update - Full reset: Delete
.pixidirectory and restart session
You can modify hooks/SessionStart to:
- Install additional tools
- Run custom setup scripts
- Configure environment variables
- Set up external services
This project includes ralph-orchestrator, an autonomous agent orchestrator for managing complex multi-step tasks.
Ralph is installed as a pixi dependency. After running pixi install, it's available in the environment.
# Initialize ralph (creates ralph.yml and PROMPT.md if not present)
pixi run ralph init
# Plan a task (creates a spec file)
pixi run ralph plan "Implement feature X"
# Run ralph with the current PROMPT.md
pixi run ralph run
# Check ralph version
pixi run ralph --versionralph.yml- Main configuration (event loop, hats, backends)PROMPT.md- Task description for ralph to executespecs/- Directory for task specifications
Edit ralph.yml to customize:
event_loop.max_iterations- Maximum iterations before stoppingevent_loop.max_runtime_seconds- Maximum runtimecli.backend- AI backend (claude, gemini, codex, etc.)hats- Define custom personas for multi-agent workflows
See the ralph-orchestrator documentation for more details.