Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
361 commits
Select commit Hold shift + click to select a range
b16256b
add shellcheck
blooop Sep 1, 2025
011eb99
bump pixi version
blooop Sep 1, 2025
468fc11
update pixi.lock
blooop Sep 1, 2025
e8ae755
Merge pull request #91 from blooop/feature/shellcheck
blooop Sep 1, 2025
5032386
build(deps): bump prefix-dev/setup-pixi from 0.8.14 to 0.9.1
dependabot[bot] Sep 27, 2025
aec6e44
build(deps): bump the dev-dependencies group with 7 updates
dependabot[bot] Sep 27, 2025
58a68d3
Merge pull request #92 from blooop/dependabot/github_actions/prefix-d…
blooop Sep 27, 2025
a68d1e2
Merge pull request #94 from blooop/dependabot/pip/dev-dependencies-e0…
blooop Sep 27, 2025
ff66008
build(deps): bump actions/checkout from 4 to 5
dependabot[bot] Sep 27, 2025
ab3a927
only install extensions if inside a docker container
blooop Sep 27, 2025
b24be8b
Merge pull request #93 from blooop/dependabot/github_actions/actions/…
blooop Sep 27, 2025
cdc843b
Merge pull request #95 from blooop/feature/detect_docker
blooop Sep 27, 2025
626c4c2
remove deps.yaml and upate rockerc
blooop Oct 12, 2025
f67a4c9
Merge pull request #96 from blooop/feature/update_rockerc
blooop Oct 12, 2025
2435d18
build(deps): bump prefix-dev/setup-pixi from 0.9.1 to 0.9.2
dependabot[bot] Nov 1, 2025
f32d60d
Clean up README: remove black reference and update legacy section
claude Nov 12, 2025
0701fa3
Remove all black references and fix outdated configurations
claude Nov 12, 2025
f28bb03
Additional cleanup and consistency improvements
claude Nov 12, 2025
ca9bd8f
Merge pull request #99 from blooop/claude/update-readme-cleanup-011CV…
blooop Nov 12, 2025
01e1b3f
Merge pull request #97 from blooop/dependabot/github_actions/prefix-d…
blooop Nov 12, 2025
562f046
build(deps): bump prefix-dev/setup-pixi from 0.9.2 to 0.9.3
dependabot[bot] Nov 12, 2025
5990b43
build(deps-dev): bump the dev-dependencies group across 1 directory w…
dependabot[bot] Nov 12, 2025
9bdd182
Merge pull request #100 from blooop/dependabot/github_actions/prefix-…
blooop Nov 12, 2025
70e6c3f
Merge pull request #101 from blooop/dependabot/pip/dev-dependencies-1…
blooop Nov 12, 2025
09d0db8
update pixi to workspace
blooop Nov 15, 2025
e650182
update pixi.lock
blooop Nov 15, 2025
c4fc62c
Merge pull request #102 from blooop/feature/fix-workspace
blooop Nov 15, 2025
46b2e99
Add Claude Code online environment support
claude Nov 16, 2025
94fab02
Merge pull request #103 from blooop/claude/setup-claude-template-018p…
blooop Nov 16, 2025
d260b40
build(deps): bump actions/checkout from 5 to 6
dependabot[bot] Nov 29, 2025
5747b2b
Merge pull request #104 from blooop/dependabot/github_actions/actions…
blooop Nov 29, 2025
4a40b2a
build(deps-dev): bump the dev-dependencies group with 6 updates
dependabot[bot] Nov 29, 2025
bb26f4c
Merge pull request #105 from blooop/dependabot/pip/dev-dependencies-9…
blooop Nov 29, 2025
48cece3
build(deps-dev): bump the dev-dependencies group with 2 updates
dependabot[bot] Dec 1, 2025
086e4e8
Merge pull request #106 from blooop/dependabot/pip/dev-dependencies-6…
blooop Dec 21, 2025
d621c28
update devcontainer pixi version
blooop Dec 24, 2025
6117508
update devcontainer setup
blooop Dec 24, 2025
0aa29df
update pixi.lock
blooop Dec 24, 2025
e0b19f7
Merge pull request #107 from blooop/feature/update_devcontainer
blooop Dec 24, 2025
823b770
add devpod to gitignore
blooop Dec 24, 2025
22c5c43
Merge pull request #108 from blooop/feature/devpod_ignore
blooop Dec 24, 2025
fb2d8b8
update extensions
blooop Dec 24, 2025
05488dc
Merge pull request #109 from blooop/feature/extensions
blooop Dec 24, 2025
c842977
turn off auto submodule.recurse
blooop Dec 28, 2025
7ff2493
basic claude code with link click authorisation working, not reusing
blooop Dec 28, 2025
7c23461
set files back to readonly
blooop Dec 28, 2025
0e7576a
update pixi.lock
blooop Dec 28, 2025
50a60db
update notes
blooop Dec 28, 2025
1aa5ac6
Merge pull request #110 from blooop/feature/claude_feature
blooop Dec 28, 2025
6b4a890
build(deps-dev): bump the dev-dependencies group with 5 updates
dependabot[bot] Dec 29, 2025
34822ba
Merge pull request #111 from blooop/dependabot/pip/dev-dependencies-3…
blooop Dec 29, 2025
e18d720
address some comments
blooop Dec 29, 2025
151cc85
reduce auto installed extensions
blooop Dec 29, 2025
eec73b9
fail clearly
blooop Dec 29, 2025
fc842f7
update pixi.lock
blooop Dec 29, 2025
70e9234
autoformat code
blooop Dec 29, 2025
f5257ed
restore node and add ssh
blooop Dec 29, 2025
65fcc34
remove trailing comma
blooop Dec 29, 2025
acfb761
Merge pull request #112 from blooop/feauture/claude_fixes
blooop Dec 29, 2025
6ce9c59
update extensions
blooop Dec 29, 2025
8108ddd
add ty
blooop Dec 30, 2025
119afdc
update pixi.lock
blooop Dec 30, 2025
f950966
update pixi.lock
blooop Dec 30, 2025
2646125
Merge pull request #113 from blooop/feature/ty
blooop Dec 30, 2025
2508756
use dependson for node
blooop Dec 30, 2025
2c73d63
Merge pull request #114 from blooop/feature/dependson_node
blooop Dec 30, 2025
665462e
update pixi lock
blooop Dec 31, 2025
8091364
build(deps-dev): update hypothesis requirement
dependabot[bot] Jan 1, 2026
a989caf
Merge pull request #115 from blooop/dependabot/pip/dev-dependencies-1…
blooop Jan 1, 2026
e9fa5bf
fix: make devcontainer portable across hosts
blooop Jan 11, 2026
6330d33
Address code review: remove hardcoded paths, improve home resolution
blooop Jan 11, 2026
2cd30e7
Fix pixi trampoline bug and defer claude download to first run
blooop Jan 11, 2026
7188153
Merge pull request #116 from blooop/fix/portable-devcontainer-claude
blooop Jan 11, 2026
adb78a5
use ubuntu:24.04 instead of jammy
blooop Jan 11, 2026
f3d3149
update pixi.lock
blooop Jan 11, 2026
bd85405
Add devpod dependency and dev tasks
blooop Jan 13, 2026
a36e82d
Add dev-add-docker task to ensure docker provider exists
blooop Jan 13, 2026
b336331
Add SSH-based dev tasks, rename VSCode tasks to dev-vs
blooop Jan 13, 2026
3d1c321
Use ssh command directly for proper agent forwarding
blooop Jan 13, 2026
79cb50f
Configure SSH agent forwarding via devcontainer mount
blooop Jan 13, 2026
c72826b
Merge pull request #117 from blooop/feature/add-devpod-tasks
blooop Jan 14, 2026
a64633a
Fix devpod SSH tunneling and VS Code IDE launch issues
blooop Jan 14, 2026
2f60566
Address PR #117 review comments
blooop Jan 14, 2026
6580049
Merge pull request #118 from blooop/fix/devpod-ssh-and-ide-tasks
blooop Jan 14, 2026
09d0649
build(deps-dev): bump the dev-dependencies group with 2 updates
dependabot[bot] Jan 14, 2026
aae1e74
Merge pull request #119 from blooop/dependabot/pip/dev-dependencies-f…
blooop Jan 14, 2026
7aed223
Replace pre-commit with prek
claude Jan 16, 2026
4e5b872
Fix prek version constraint and update lock file
claude Jan 16, 2026
6efc5b0
Merge pull request #121 from blooop/claude/replace-precommit-with-pre…
blooop Jan 16, 2026
cee13dc
build(deps-dev): update ty requirement in the lib-dependencies group
dependabot[bot] Jan 16, 2026
5799e47
build(deps-dev): update ruff requirement in the dev-dependencies group
dependabot[bot] Jan 16, 2026
3857bfc
Merge pull request #122 from blooop/dependabot/pip/dev-dependencies-c…
blooop Jan 16, 2026
865d003
Merge pull request #120 from blooop/dependabot/pip/lib-dependencies-f…
blooop Jan 16, 2026
c1c1cf0
update pixi
blooop Jan 16, 2026
f5da0b8
update pixi.lock
blooop Jan 16, 2026
a862b40
remove ssh
blooop Jan 17, 2026
0c749f0
update ty tasks
blooop Jan 17, 2026
e5a90e4
update pixi.lock
blooop Jan 17, 2026
af4c1ff
bump ty version
blooop Jan 17, 2026
baadde1
update pixi.lock
blooop Jan 17, 2026
c44c44b
update pixi.lock
blooop Jan 17, 2026
fc53253
Merge pull request #123 from blooop/feature/ssh_cfg
blooop Jan 17, 2026
529eb91
fix traling comma
blooop Jan 17, 2026
1c18b85
add gh cli
blooop Jan 17, 2026
5714b0b
Merge branch 'main' into feature/gh_cli
blooop Jan 17, 2026
6b1217c
Merge pull request #124 from blooop/feature/gh_cli
blooop Jan 17, 2026
1a7d188
Mount entire .ssh directory for SSH agent forwarding
blooop Jan 17, 2026
21220a3
Add agent instructions and fix-issue command
blooop Jan 17, 2026
3d6a51b
Merge pull request #126 from blooop/feature/agent-instructions
blooop Jan 17, 2026
685ee79
Merge branch 'main' into feature/ssh_fixes
blooop Jan 17, 2026
9cc8cc3
Merge pull request #127 from blooop/feature/ssh_fixes
blooop Jan 17, 2026
4a70e88
fix pixi issues with merge
blooop Jan 17, 2026
53c15a8
bump pixi version
blooop Jan 17, 2026
89d4168
Merge pull request #128 from blooop/feature/fix_update_from_template
blooop Jan 17, 2026
e43d70e
Add upper version bound for gh dependency
blooop Jan 17, 2026
550973a
first pass on ralph
blooop Jan 18, 2026
42616a0
update gitignore
blooop Jan 18, 2026
0b44634
docs: address PR review feedback
blooop Jan 18, 2026
0d32b9f
Merge pull request #131 from blooop/feature/ralph_pixi
blooop Jan 18, 2026
1942e6e
Merge branch 'main' into feature/gh-version-upper-bound
blooop Jan 18, 2026
c072386
update version
blooop Jan 18, 2026
363681a
update pixi.lock
blooop Jan 18, 2026
77e3531
Merge pull request #129 from blooop/feature/gh-version-upper-bound
blooop Jan 18, 2026
f462716
Add ralph-orchestrator as pixi dependency
blooop Jan 29, 2026
b85c697
build(deps): bump prefix-dev/setup-pixi from 0.9.3 to 0.9.4
dependabot[bot] Feb 1, 2026
19c1c31
build(deps-dev): update ty requirement in the lib-dependencies group
dependabot[bot] Feb 1, 2026
77fba4e
Merge pull request #135 from blooop/dependabot/pip/lib-dependencies-f…
blooop Feb 1, 2026
bd2bb50
build(deps-dev): bump the dev-dependencies group with 4 updates
dependabot[bot] Feb 1, 2026
03794b1
Merge pull request #134 from blooop/dependabot/pip/dev-dependencies-9…
blooop Feb 1, 2026
4a93c4b
Merge branch 'main' into dependabot/github_actions/prefix-dev/setup-p…
blooop Feb 2, 2026
64d31b5
Add prebuilt devcontainer image support via GHCR
claude Feb 9, 2026
e818c80
Merge pull request #133 from blooop/dependabot/github_actions/prefix-…
blooop Feb 10, 2026
e344e27
restore commented out features.
blooop Feb 10, 2026
0451e82
Merge pull request #136 from blooop/claude/prebuilt-images-devcontain…
blooop Feb 10, 2026
a571e7a
build(deps): bump actions/checkout from 4 to 6
dependabot[bot] Feb 10, 2026
c877c18
build(deps-dev): bump the dev-dependencies group with 3 updates
dependabot[bot] Feb 10, 2026
8138b39
Merge pull request #137 from blooop/dependabot/github_actions/actions…
blooop Feb 10, 2026
30140e6
build(deps-dev): update ty requirement in the lib-dependencies group
dependabot[bot] Feb 10, 2026
867454b
Document GHCR package visibility and how to make it public
blooop Feb 10, 2026
799c95b
Default to local builds for template portability
blooop Feb 10, 2026
1e73f3b
Merge pull request #138 from blooop/dependabot/pip/dev-dependencies-0…
blooop Feb 10, 2026
a13dbe1
Merge pull request #139 from blooop/dependabot/pip/lib-dependencies-8…
blooop Feb 10, 2026
f44873a
Add pixi task to migrate devcontainer to prebuilt GHCR image
blooop Feb 10, 2026
37cc4f3
Address Sourcery review: clarify org vs user package paths
blooop Feb 10, 2026
dab0704
Fix portability and add gh CLI check in migration script
blooop Feb 10, 2026
330f1d0
Address subagent review feedback
blooop Feb 10, 2026
37688f0
Fix syntax error in gh api error handling
blooop Feb 10, 2026
cedc565
Merge pull request #140 from blooop/fix/ghcr-package-visibility-docs
blooop Feb 10, 2026
dec885e
Default devcontainer to template's prebuilt image for fast startup
blooop Feb 11, 2026
e5f2878
Escape sed-special characters in rename_project.sh
blooop Feb 11, 2026
8389c8f
Merge pull request #141 from blooop/feat/default-template-prebuilt-image
blooop Feb 11, 2026
27025af
build(deps-dev): bump the dev-dependencies group with 3 updates
dependabot[bot] Mar 1, 2026
dd1d103
build(deps-dev): update ty requirement in the lib-dependencies group
dependabot[bot] Mar 1, 2026
c9bd15b
Merge pull request #143 from blooop/dependabot/pip/lib-dependencies-0…
blooop Mar 1, 2026
db84f21
Merge pull request #142 from blooop/dependabot/pip/dev-dependencies-e…
blooop Mar 1, 2026
5887938
ignore ralph folder
blooop Mar 1, 2026
faf12fb
update pixi
blooop Mar 1, 2026
e81e8bf
update ralph orchestrator version
blooop Mar 1, 2026
7889ff7
Merge main into feature/update_lock, resolve conflicts
blooop Mar 1, 2026
fd3df5d
bump pixi version
blooop Mar 1, 2026
d5b8d40
restore gh
blooop Mar 1, 2026
5d86fe8
Merge pull request #132 from blooop/feature/update_lock
blooop Mar 1, 2026
0a7d40a
add shellcheck
blooop Mar 1, 2026
1582f29
add shellcheck
blooop Mar 1, 2026
88da858
turn off common utils and docker-in-docker by default
blooop Mar 1, 2026
7eb3b1d
add pipefile to scripts
blooop Mar 1, 2026
b1d7630
update pixi.lock
blooop Mar 1, 2026
e6af7f3
fix shellcheck pre-commit hook to work in CI
blooop Mar 1, 2026
b1f3b99
Merge pull request #144 from blooop/feature/shellcheck
blooop Mar 1, 2026
3c63f24
turn off features in ci devcontainer
blooop Mar 1, 2026
f07c079
Merge pull request #145 from blooop/feature/ci_devcontaine
blooop Mar 1, 2026
0e9c27a
remove old ralph-claude-code files
blooop Mar 1, 2026
addbbac
replace custom ourslock merge driver with built-in merge=ours
blooop Mar 1, 2026
3befd20
update pixi.lock
blooop Mar 1, 2026
baaeac6
Merge pull request #146 from blooop/feature/mergedriver
blooop Mar 1, 2026
87312f4
install prek by default
blooop Mar 1, 2026
48bc674
remove prek from claude
blooop Mar 1, 2026
3ef3606
update pixi.lock
blooop Mar 1, 2026
32e2e6d
update pixi.lock
blooop Mar 1, 2026
55837f3
Merge pull request #147 from blooop/prek
blooop Mar 1, 2026
7cbffee
build(deps): bump codecov/codecov-action from 5 to 6
dependabot[bot] Apr 1, 2026
bb3e5ee
build(deps): bump j178/prek-action from 1 to 2
dependabot[bot] Apr 1, 2026
8dd16c9
build(deps): bump prefix-dev/setup-pixi from 0.9.4 to 0.9.5
dependabot[bot] Apr 1, 2026
d2a21f0
build(deps): bump docker/login-action from 3 to 4
dependabot[bot] Apr 1, 2026
cc49690
build(deps-dev): bump the dev-dependencies group with 4 updates
dependabot[bot] Apr 1, 2026
458a095
build(deps-dev): update ty requirement in the lib-dependencies group
dependabot[bot] Apr 1, 2026
03efc49
Merge pull request #155 from blooop/dependabot/pip/lib-dependencies-e…
blooop Apr 1, 2026
dc32aba
Merge pull request #154 from blooop/dependabot/pip/dev-dependencies-a…
blooop Apr 1, 2026
32ff1ed
Merge pull request #153 from blooop/dependabot/github_actions/docker/…
blooop Apr 1, 2026
577480e
Merge pull request #152 from blooop/dependabot/github_actions/prefix-…
blooop Apr 1, 2026
130c132
Merge pull request #151 from blooop/dependabot/github_actions/j178/pr…
blooop Apr 1, 2026
3dafbd9
fix: update_from_template.sh fails on first run
blooop Apr 25, 2026
3620257
fix: scope git config to local repo, allow env var overrides
blooop Apr 25, 2026
d873838
Merge pull request #156 from blooop/fix/update-from-template-script
blooop Apr 25, 2026
6a13b77
build(deps-dev): update ty requirement in the lib-dependencies group
dependabot[bot] May 1, 2026
193520e
Merge pull request #158 from blooop/dependabot/pip/lib-dependencies-8…
blooop May 23, 2026
a95190a
Merge pull request #150 from blooop/dependabot/github_actions/codecov…
blooop May 23, 2026
a68d41e
build(deps-dev): bump the dev-dependencies group across 1 directory w…
dependabot[bot] May 23, 2026
a6835a1
Merge pull request #157 from blooop/dependabot/pip/dev-dependencies-7…
blooop May 23, 2026
83960b5
build(deps-dev): update ty requirement in the lib-dependencies group
dependabot[bot] Jun 2, 2026
3fcc70b
Merge pull request #161 from blooop/dependabot/pip/lib-dependencies-0…
blooop Jun 2, 2026
538262d
build(deps-dev): bump the dev-dependencies group across 1 directory w…
dependabot[bot] Jun 2, 2026
925b650
Merge pull request #160 from blooop/dependabot/pip/dev-dependencies-f…
blooop Jun 2, 2026
30ee1a4
build(deps): bump codecov/codecov-action from 6 to 7
dependabot[bot] Jul 1, 2026
4b623af
build(deps): bump prefix-dev/setup-pixi from 0.9.5 to 0.10.0
dependabot[bot] Jul 1, 2026
f2676eb
build(deps-dev): bump the dev-dependencies group with 6 updates
dependabot[bot] Jul 1, 2026
b1cdfdd
chore: bump pixi to v0.75.0 in devcontainer
blooop Jul 29, 2026
b3b8665
Merge pull request #167 from blooop/chore/bump-pixi-0.75.0
blooop Jul 30, 2026
85f117a
Merge pull request #162 from blooop/dependabot/github_actions/codecov…
blooop Jul 30, 2026
62466e0
Merge pull request #163 from blooop/dependabot/github_actions/prefix-…
blooop Jul 30, 2026
166c293
Merge pull request #165 from blooop/dependabot/pip/dev-dependencies-9…
blooop Jul 30, 2026
38a7cf8
build(deps): bump actions/checkout from 6 to 7
dependabot[bot] Jul 30, 2026
b368222
Merge pull request #164 from blooop/dependabot/github_actions/actions…
blooop Jul 30, 2026
4485eb1
build(deps-dev): update ty requirement
dependabot[bot] Jul 30, 2026
1c0a88a
Merge pull request #166 from blooop/dependabot/pip/lib-dependencies-a…
blooop Jul 30, 2026
fcf50ae
fix(devcontainer): make launches zero-build and stop the merge conflict
blooop Aug 24, 2026
e0d3ead
docs: correct auth and network guidance after devcontainer change
blooop Aug 24, 2026
0fd4176
docs: describe the real ~/.claude mount instead of read-only protecti…
blooop Aug 24, 2026
cbff39a
docs: correct install mechanism and remove the installsAfter claim
blooop Aug 24, 2026
cefdb48
docs: stop hardcoding the pythontemplate workspace name
blooop Aug 24, 2026
d34c0c3
fix(rename): substitute the separator-stripped workspace name too
blooop Aug 24, 2026
9bb1d62
fix(rename): stop rewriting the shared devcontainer image URL
blooop Aug 24, 2026
ab018e5
fix(devcontainer): restore the gh config mount, which does work
blooop Aug 24, 2026
c872c83
fix(devcontainer): move postCreate into a script, and stop assuming p…
blooop Aug 24, 2026
312abfb
fix(devcontainer): make post-create.sh shellcheck-clean
blooop Sep 3, 2026
5ff4cb3
Merge pull request #170 from blooop/fix/devcontainer-zero-build
blooop Sep 3, 2026
0360168
fix(setup_host): make the script work on ubuntu 26.04
blooop Sep 12, 2026
dd0602c
Merge pull request #174 from blooop/fix/setup-host-ubuntu-2604
blooop Sep 12, 2026
19233e0
fix(devcontainer): drop the compromised emSign ECC Root CA - G3
blooop Oct 25, 2026
82f770d
Merge pull request #175 from blooop/fix/ca-certificates-emsign-g3
blooop Oct 25, 2026
e1e49bf
chore(devcontainer): move the base image to Ubuntu 26.04
blooop Oct 25, 2026
52f0569
Merge pull request #176 from blooop/chore/devcontainer-ubuntu-26.04
blooop Oct 25, 2026
8597b40
chore(devcontainer): pixi 0.83.0, and keep post-create from rewriting…
blooop Oct 25, 2026
2d54493
feat(devcontainer): install git-lfs in the shared image
blooop Oct 25, 2026
8e0a728
Merge pull request #177 from blooop/chore/devcontainer-pixi-0.83
blooop Oct 25, 2026
52b5340
chore: drop pylint references from docs, dependabot and VS Code tasks
blooop Oct 25, 2026
c1d2167
ci: run one pinned ruff in CI, pixi tasks and prek hooks
blooop Oct 25, 2026
46691fe
fix: sort imports in test_basic for ruff 0.17; call the prek pixi tas…
blooop Oct 25, 2026
9f35248
ci: use --locked so a stale pixi.lock fails instead of running an old…
blooop Oct 25, 2026
0904641
Merge pull request #178 from blooop/ci/ruff-single-pin
blooop Oct 25, 2026
68d1f79
fix: container create failed on a host with no ~/.config/gh
blooop Oct 25, 2026
59f32c6
docs: say which devcontainer.json comments are template-only
blooop Oct 25, 2026
e57dd1b
chore(dependabot): drop check-manifest, mark the docker entry templat…
blooop Oct 25, 2026
4dd590a
fix(vscode): run the pytest duration task through pixi
blooop Oct 25, 2026
ffd773a
fix: bind-mount drift guard missed a mount written type=bind,source=...
blooop Oct 25, 2026
f3fedaa
docs: a child repo also needs init-host.sh, not only devcontainer.jso…
blooop Oct 25, 2026
0ded55e
Merge pull request #181 from blooop/fix/template-sweep-defects
blooop Oct 25, 2026
d546c1b
feat: pull changes from remote template
blooop Oct 26, 2026
b5d2a01
chore: update pixi.lock after template merge
blooop Oct 26, 2026
af26536
docs: claude-code docs pointed at a .devcontainer/ci config this repo…
blooop Oct 26, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
104 changes: 104 additions & 0 deletions .claude/README.md
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 check, ruff format --check and ty
- `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)
19 changes: 19 additions & 0 deletions .claude/activate.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash
# Source this file to activate the pixi environment in your current shell
# Usage: source .claude/activate.sh

# Add pixi to PATH
export PATH="$HOME/.pixi/bin:$PATH"

# Optional: Activate pixi shell if available
if command -v pixi &> /dev/null; then
echo "✅ Pixi environment activated"
echo "💡 Available commands:"
echo " pixi run test - Run tests"
echo " pixi run lint - Run linters"
echo " pixi run format - Format code"
echo " pixi run ci - Run full CI"
pixi task list --summary 2>/dev/null || true
else
echo "⚠️ Pixi not found. Please run .claude/hooks/SessionStart first."
fi
20 changes: 20 additions & 0 deletions .claude/commands/fix-issue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Fix GitHub Issue

Fix the GitHub issue: $ARGUMENTS

## Steps

1. Fetch issue details: `pixi run gh issue view $ARGUMENTS`
2. Extract the issue number from the URL for commit messages
3. Understand the problem and locate relevant code
4. Implement the fix
5. Run `pixi run ci` to verify (format, lint, test, coverage)
6. Commit with message referencing the issue (e.g., `Fixes #123`)
7. Create PR: `pixi run gh pr create`

## Notes

- Input can be a GitHub URL (e.g., `https://github.com/owner/repo/issues/123`) or issue number
- Keep changes minimal and focused on the issue
- Add tests if fixing a bug
- Run full CI before committing
47 changes: 47 additions & 0 deletions .claude/hooks/SessionStart
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
#!/bin/bash
# SessionStart hook for Claude Code online environment
# This script sets up the Python development environment using pixi

set -eo pipefail

echo "🚀 Setting up Python Template environment..."

# Check if pixi is installed
if ! command -v pixi &> /dev/null; then
echo "📦 Installing pixi..."
curl -fsSL https://pixi.sh/install.sh | bash

# Add pixi to PATH for current session
export PATH="$HOME/.pixi/bin:$PATH"

# Source bashrc to get pixi in PATH (if bashrc was updated)
# shellcheck disable=SC1091
[ -f "$HOME/.bashrc" ] && source "$HOME/.bashrc"

echo "✅ Pixi installed successfully"
else
echo "✅ Pixi already installed"
fi

# Ensure pixi is in PATH for this session
export PATH="$HOME/.pixi/bin:$PATH"

# Install project dependencies
echo "📦 Installing project dependencies..."
pixi install

# Run prek installation
echo "🔧 Setting up prek hooks..."
pixi run prek install || echo "⚠️ Prek installation skipped (optional)"

echo "✅ Environment setup complete!"
echo ""
echo "Available pixi tasks:"
pixi task list
echo ""
echo "💡 Common commands:"
echo " pixi run test - Run tests"
echo " pixi run lint - Run linters"
echo " pixi run format - Format code"
echo " pixi run ci - Run full CI pipeline"
echo ""
2 changes: 1 addition & 1 deletion .devcontainer/claude-code/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Splitting the rest of the directory into separate read-only binds is possible an

### Setup

The feature is declared where the image is built, in `.devcontainer/ci/devcontainer.json`:
The feature is declared where the image is built, in python_template's `.devcontainer/ci/devcontainer.json` (this repo does not carry that file):

```json
{
Expand Down
4 changes: 2 additions & 2 deletions .devcontainer/claude-code/TROUBLESHOOTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Every one of these is writable from inside the container, and a write lands on t
}
```

The `../claude-code` feature is declared in `.devcontainer/ci/devcontainer.json`, the config CI builds the image from, so there is no `features` block here -- and no `runArgs` either.
The `../claude-code` feature is declared in python_template's `.devcontainer/ci/devcontainer.json`, the config its CI builds the image from, so there is no `features` block here -- and no `runArgs` either.

## Common Issues and Solutions

Expand Down Expand Up @@ -255,7 +255,7 @@ docker inspect <container-id> | jq '.[0].HostConfig.NetworkMode'

When setting up a new workspace:

- [ ] `../claude-code` feature declared in `.devcontainer/ci/devcontainer.json`, so the published image carries it
- [ ] `../claude-code` feature declared in python_template's `.devcontainer/ci/devcontainer.json`, so the published image carries it
- [ ] `claude` authenticated on the host, so no OAuth flow runs in the container
- [ ] Environment variables added (CLAUDE_CONFIG_DIR, XDG_*)
- [ ] Files exist on host: `.credentials.json`, `.claude.json`
Expand Down
8 changes: 6 additions & 2 deletions .devcontainer/claude-code/init-host.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
#!/bin/sh
# Create the host directories that devcontainer.json bind-mounts; docker
# refuses to create the container when a bind source is missing.
# Create the host directories that devcontainer.json bind-mounts.
# This script runs on the HOST before the container is created.
# docker refuses to create the container when a bind source is missing, so a
# host that has never run `gh auth login` (no ~/.config/gh) or never run Claude
# Code (no ~/.claude) could not start the container without this.
# mkdir -p is idempotent - it only creates if missing, won't clobber existing.
# Keep this list in step with the ${localEnv:HOME} bind mounts in
# devcontainer.json; test/test_devcontainer.py fails when they drift.

mkdir -p "$HOME/.claude" "$HOME/.config/gh"
32 changes: 21 additions & 11 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,29 @@
{
// Uses the template's prebuilt image by default for fast startup.
// To build locally: pixi run dev-use-local
// To use this repo's own prebuilt image: pixi run dev-use-prebuilt
// Uses python_template's prebuilt image by default for fast startup.
//
// Template-only: python_template itself also ships .devcontainer/Dockerfile,
// .devcontainer/ci/ (the config its image is built from) and two pixi
// tasks that toggle this block -- `pixi run dev-use-local` (uncomment the
// "build" block below and build from the Dockerfile) and
// `pixi run dev-use-prebuilt` (point "image" at this repo's own image).
// A child repo that kept only devcontainer.json, post-create.sh and
// claude-code/init-host.sh (the initializeCommand below) has none of
// those; there the commented "build" block is inert, and to build locally
// you bring them over from blooop/python_template first.
// "build": {
// "dockerfile": "Dockerfile",
// "context": ".."
// },
"image": "ghcr.io/blooop/python_template/devcontainer:latest",

// There is deliberately no "features" block. The claude-code feature is
// already baked into the image above: .devcontainer/ci/devcontainer.json,
// which is the config CI builds that image from, declares
// "../claude-code". Declaring it again here made the devcontainer spec
// build a derived image on the first launch of every branch, reinstalling
// something the pulled image already carried -- so the "prebuilt image for
// fast startup" above still paid for a build. With this block gone the
// launch is a pull and nothing else.
// already baked into the image above: python_template's
// .devcontainer/ci/devcontainer.json, which is the config its CI builds
// that image from, declares "../claude-code". Declaring it again here
// made the devcontainer spec build a derived image on the first launch of
// every branch, reinstalling something the pulled image already carried --
// so the "prebuilt image for fast startup" above still paid for a build.
// With this block gone the launch is a pull and nothing else.
//
// Adding a feature back here is allowed and costs that derived build again.
// If that ever becomes the normal case, the fix is devlaunch's design --
Expand Down Expand Up @@ -63,7 +71,9 @@
},

// Three mounts. The pixi volume keeps the environment out of the bind-
// mounted workspace; the other two share host credentials.
// mounted workspace; the other two share host credentials. docker will not
// create the container when a bind source is missing, so initializeCommand
// (.devcontainer/claude-code/init-host.sh) creates both on the host first.
//
// ~/.config/gh is here because it works. `gh` uses a system keyring when
// one is available and falls back to hosts.yml when it is not, and on this
Expand Down
3 changes: 2 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
*.dae filter=lfs diff=lfs merge=lfs -text
*.obj filter=lfs diff=lfs merge=lfs -text
*.ply filter=lfs diff=lfs merge=lfs -text
*.usd filter=lfs diff=lfs merge=lfs -text

# Compiled libraries
*.a filter=lfs diff=lfs merge=lfs -text
Expand All @@ -42,4 +43,4 @@
# numpy file format
*.npy filter=lfs diff=lfs merge=lfs -text
# GitHub syntax highlighting
pixi.lock linguist-language=YAML merge=ourslock
pixi.lock linguist-language=YAML merge=ours
7 changes: 3 additions & 4 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,10 @@ updates:
groups:
dev-dependencies:
#try to group all development dependencies updates into a single pr
patterns:
- "check-manifest"
- "pre-commit"
patterns:
- "prek"
- "pytest"
- "pytest-cov"
- "pytest-cov"
- "hypothesis"
- "ruff"
- "coverage"
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,19 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
environment: [py310, py311, py312]
environment: [py310, py311, py312, py313]
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: prefix-dev/setup-pixi@v0.8.1
uses: actions/checkout@v7
- uses: prefix-dev/setup-pixi@v0.10.0
with:
cache: true
frozen: true
locked: true
environments: ${{ matrix.environment }}
- name: CI
run: |
pixi run -e ${{ matrix.environment }} ci
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
uses: codecov/codecov-action@v7
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
19 changes: 19 additions & 0 deletions .github/workflows/prek.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: prek

on: [pull_request]

jobs:
prek:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
# The ruff hooks are local hooks that run ruff (and prek) from the pixi
# environment, so CI uses the same pinned versions as local.
- uses: prefix-dev/setup-pixi@v0.10.0
with:
cache: true
locked: true
environments: default
- name: prek
# `prek` is the pixi task `prek run -a`; extra args are appended to it.
run: pixi run --locked prek --show-diff-on-failure
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ jobs:
with:
pypi-token: ${{ secrets.PYPI_API_TOKEN }}
gh-token: ${{ secrets.GITHUB_TOKEN }}
parse-changelog: true
parse-changelog: true
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -170,3 +170,10 @@ log/**

managed_context/metadata.json
test_suite_analysis/metadata.json

.devpod/
.devpod-internal/
.ralph/

# Claude Code local settings (personal, not shared)
.claude/settings.local.json
Loading
Loading