Repository navigation
Feature/update from template #721
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
72 commits
Select commit
Hold shift + click to select a range
c1c1cf0
update pixi
blooop f5da0b8
update pixi.lock
blooop e43d70e
Add upper version bound for gh dependency
blooop 550973a
first pass on ralph
blooop 42616a0
update gitignore
blooop 0b44634
docs: address PR review feedback
blooop 0d32b9f
Merge pull request #131 from blooop/feature/ralph_pixi
blooop 1942e6e
Merge branch 'main' into feature/gh-version-upper-bound
blooop c072386
update version
blooop 363681a
update pixi.lock
blooop 77e3531
Merge pull request #129 from blooop/feature/gh-version-upper-bound
blooop f462716
Add ralph-orchestrator as pixi dependency
blooop b85c697
build(deps): bump prefix-dev/setup-pixi from 0.9.3 to 0.9.4
dependabot[bot] 19c1c31
build(deps-dev): update ty requirement in the lib-dependencies group
dependabot[bot] 77fba4e
Merge pull request #135 from blooop/dependabot/pip/lib-dependencies-f…
blooop bd2bb50
build(deps-dev): bump the dev-dependencies group with 4 updates
dependabot[bot] 03794b1
Merge pull request #134 from blooop/dependabot/pip/dev-dependencies-9…
blooop 4a93c4b
Merge branch 'main' into dependabot/github_actions/prefix-dev/setup-p…
blooop 64d31b5
Add prebuilt devcontainer image support via GHCR
claude e818c80
Merge pull request #133 from blooop/dependabot/github_actions/prefix-…
blooop e344e27
restore commented out features.
blooop 0451e82
Merge pull request #136 from blooop/claude/prebuilt-images-devcontain…
blooop a571e7a
build(deps): bump actions/checkout from 4 to 6
dependabot[bot] c877c18
build(deps-dev): bump the dev-dependencies group with 3 updates
dependabot[bot] 8138b39
Merge pull request #137 from blooop/dependabot/github_actions/actions…
blooop 30140e6
build(deps-dev): update ty requirement in the lib-dependencies group
dependabot[bot] 867454b
Document GHCR package visibility and how to make it public
blooop 799c95b
Default to local builds for template portability
blooop 1e73f3b
Merge pull request #138 from blooop/dependabot/pip/dev-dependencies-0…
blooop a13dbe1
Merge pull request #139 from blooop/dependabot/pip/lib-dependencies-8…
blooop f44873a
Add pixi task to migrate devcontainer to prebuilt GHCR image
blooop 37cc4f3
Address Sourcery review: clarify org vs user package paths
blooop dab0704
Fix portability and add gh CLI check in migration script
blooop 330f1d0
Address subagent review feedback
blooop 37688f0
Fix syntax error in gh api error handling
blooop cedc565
Merge pull request #140 from blooop/fix/ghcr-package-visibility-docs
blooop 8d42e7a
feat: pull changes from remote template
blooop cb73d65
update pixi.lock
blooop 0eb519b
update pixi.lock
blooop dec885e
Default devcontainer to template's prebuilt image for fast startup
blooop e5f2878
Escape sed-special characters in rename_project.sh
blooop 8389c8f
Merge pull request #141 from blooop/feat/default-template-prebuilt-image
blooop 0fb7546
feat: pull changes from remote template
blooop 27025af
build(deps-dev): bump the dev-dependencies group with 3 updates
dependabot[bot] dd1d103
build(deps-dev): update ty requirement in the lib-dependencies group
dependabot[bot] c9bd15b
Merge pull request #143 from blooop/dependabot/pip/lib-dependencies-0…
blooop db84f21
Merge pull request #142 from blooop/dependabot/pip/dev-dependencies-e…
blooop f1ef7a2
Merge branch 'feature/update_from_template' of github.com:blooop/benc…
blooop 2ae2fcd
update pixi.lock
blooop 5887938
ignore ralph folder
blooop faf12fb
update pixi
blooop e81e8bf
update ralph orchestrator version
blooop 7889ff7
Merge main into feature/update_lock, resolve conflicts
blooop fd3df5d
bump pixi version
blooop d5b8d40
restore gh
blooop 5d86fe8
Merge pull request #132 from blooop/feature/update_lock
blooop 0a7d40a
add shellcheck
blooop 1582f29
add shellcheck
blooop 88da858
turn off common utils and docker-in-docker by default
blooop 7eb3b1d
add pipefile to scripts
blooop b1d7630
update pixi.lock
blooop e6af7f3
fix shellcheck pre-commit hook to work in CI
blooop b1f3b99
Merge pull request #144 from blooop/feature/shellcheck
blooop 71f7b9c
Merge branch 'feature/update_from_template' of github.com:blooop/benc…
blooop 3c63f24
turn off features in ci devcontainer
blooop f07c079
Merge pull request #145 from blooop/feature/ci_devcontaine
blooop f6dc466
feat: pull changes from remote template
blooop cb793be
chore: update pixi.lock after template merge
blooop 0e9c27a
remove old ralph-claude-code files
blooop 6cb9c31
feat: pull changes from remote template
blooop 5542922
update pixi.lock
blooop 6c79f62
update pixi.lock
blooop File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,104 @@ | ||
| # Claude Code Configuration | ||
|
|
||
| This directory contains configuration for using this project with Claude Code, particularly in the online environment. | ||
|
|
||
| ## SessionStart Hook | ||
|
|
||
| The `hooks/SessionStart` script automatically runs when a new Claude Code session begins. It: | ||
|
|
||
| 1. **Installs pixi** (if not already installed) - The package and environment manager | ||
| 2. **Installs project dependencies** - All Python packages and tools defined in `pyproject.toml` | ||
| 3. **Sets up prek hooks** - For automatic code quality checks | ||
| 4. **Configures git** - Sets up merge drivers for lockfiles | ||
|
|
||
| ## Usage with Claude Code Online | ||
|
|
||
| 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. | ||
|
|
||
| ### Available Commands | ||
|
|
||
| Once setup is complete, Claude can use these pixi tasks: | ||
|
|
||
| #### Testing & Quality | ||
| - `pixi run test` - Run pytest tests | ||
| - `pixi run coverage` - Run tests with coverage report | ||
| - `pixi run lint` - Run ruff and pylint linters | ||
| - `pixi run format` - Format code with ruff | ||
|
|
||
| #### CI Tasks | ||
| - `pixi run ci` - Run full CI pipeline (format, lint, test, coverage) | ||
| - `pixi run fix` - Auto-fix common issues (update lock, format, lint) | ||
|
|
||
| #### Prek Hooks | ||
| - `pixi run prek` - Run all prek hooks | ||
| - `pixi run prek-update` - Update prek hook versions | ||
|
|
||
| ### How It Works | ||
|
|
||
| 1. **First session**: The hook installs pixi and all dependencies (may take a few minutes) | ||
| 2. **Subsequent sessions**: The hook verifies the environment is ready (much faster) | ||
| 3. **Environment activated**: All pixi commands are available to Claude | ||
|
|
||
| ### Troubleshooting | ||
|
|
||
| If you encounter issues: | ||
|
|
||
| 1. **Dependencies not found**: Run `pixi install` manually | ||
| 2. **Lockfile conflicts**: Run `pixi run update-lock` | ||
| 3. **Prek issues**: Run `pixi run prek-update` | ||
| 4. **Full reset**: Delete `.pixi` directory and restart session | ||
|
|
||
| ### Customization | ||
|
|
||
| You can modify `hooks/SessionStart` to: | ||
| - Install additional tools | ||
| - Run custom setup scripts | ||
| - Configure environment variables | ||
| - Set up external services | ||
|
|
||
| ## Ralph Orchestrator | ||
|
|
||
| This project includes [ralph-orchestrator](https://github.com/mikeyobrien/ralph-orchestrator), an autonomous agent orchestrator for managing complex multi-step tasks. | ||
|
|
||
| ### Installation | ||
|
|
||
| Ralph is installed as a pixi dependency. After running `pixi install`, it's available in the environment. | ||
|
|
||
| ### Basic Usage | ||
|
|
||
| ```bash | ||
| # 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 --version | ||
| ``` | ||
|
|
||
| ### Configuration Files | ||
|
|
||
| - `ralph.yml` - Main configuration (event loop, hats, backends) | ||
| - `PROMPT.md` - Task description for ralph to execute | ||
| - `specs/` - Directory for task specifications | ||
|
|
||
| ### Customization | ||
|
|
||
| Edit `ralph.yml` to customize: | ||
| - `event_loop.max_iterations` - Maximum iterations before stopping | ||
| - `event_loop.max_runtime_seconds` - Maximum runtime | ||
| - `cli.backend` - AI backend (claude, gemini, codex, etc.) | ||
| - `hats` - Define custom personas for multi-agent workflows | ||
|
|
||
| See the [ralph-orchestrator documentation](https://github.com/mikeyobrien/ralph-orchestrator) for more details. | ||
|
|
||
| ## Learn More | ||
|
|
||
| - [Claude Code Documentation](https://docs.claude.com/claude-code) | ||
| - [Pixi Documentation](https://pixi.sh) | ||
| - [Ralph Orchestrator](https://github.com/mikeyobrien/ralph-orchestrator) | ||
| - [Project README](../README.md) | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| { | ||
| "name": "python_template-build", | ||
| "build": { | ||
| "dockerfile": "../Dockerfile", | ||
| "context": "../.." | ||
| }, | ||
| "features": { | ||
| "../claude-code": {}, | ||
| // "ghcr.io/devcontainers/features/docker-in-docker:2": {}, | ||
| // "ghcr.io/devcontainers/features/common-utils:2": {} | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,49 @@ | ||
| name: Devcontainer Image | ||
|
|
||
| on: | ||
| push: | ||
| branches: ["main"] | ||
| paths: | ||
| - ".devcontainer/**" | ||
| - ".github/workflows/devcontainer.yml" | ||
| pull_request: | ||
| branches: ["main"] | ||
| paths: | ||
| - ".devcontainer/**" | ||
| - ".github/workflows/devcontainer.yml" | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: read | ||
| packages: write | ||
|
|
||
| jobs: | ||
| build-and-push: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v6 | ||
|
|
||
| - name: Log in to GHCR | ||
| uses: docker/login-action@v3 | ||
| with: | ||
| registry: ghcr.io | ||
| username: ${{ github.actor }} | ||
| password: ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
| - name: Set image metadata | ||
| id: meta | ||
| run: | | ||
| SHORT_SHA=$(echo "${{ github.sha }}" | cut -c1-7) | ||
| DATE=$(date +%Y-%m-%d) | ||
| echo "short_sha=$SHORT_SHA" >> "$GITHUB_OUTPUT" | ||
| echo "date=$DATE" >> "$GITHUB_OUTPUT" | ||
|
|
||
| - name: Build and push devcontainer image | ||
| uses: devcontainers/ci@v0.3 | ||
| with: | ||
| configFile: .devcontainer/ci/devcontainer.json | ||
| imageName: ghcr.io/${{ github.repository }}/devcontainer | ||
| imageTag: latest,sha-${{ steps.meta.outputs.short_sha }},${{ steps.meta.outputs.date }} | ||
| cacheFrom: ghcr.io/${{ github.repository }}/devcontainer:latest | ||
| push: ${{ github.event_name != 'pull_request' && 'always' || 'never' }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| # Project Development Context | ||
|
|
||
| <!-- CUSTOMIZE: Replace this section with your project description --> | ||
| ## Project Overview | ||
| [Describe your project here] | ||
|
|
||
| ## Development Commands | ||
| <!-- These are from pyproject.toml - update if you customize tasks --> | ||
| - `pixi run test` - Run tests | ||
| - `pixi run lint` - Run linters (ruff, pylint, ty) | ||
| - `pixi run format` - Format code | ||
| - `pixi run ci` - Full CI pipeline | ||
|
|
||
| ## Quality Standards | ||
| - All tests must pass | ||
| - Code must pass linting | ||
| - Follow existing code patterns | ||
|
|
||
| ## Current Objectives | ||
| <!-- CUSTOMIZE: Add your current development goals --> | ||
| 1. [Your objective here] |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpick (typo): Consider capitalizing AI backend names (Claude, Gemini, Codex) as proper nouns.
Using proper capitalization for these product names will keep the docs correct and consistent.