Remote Developer - Claude Code instances in isolated Kubernetes pods
Go to file
jordan ddcfe52b5c
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
feat: implement shared notify host model for platform email delivery
Replace per-project notify host provisioning (7-9 API calls + DNS + async
Resend verification) with a shared platform host for all *.threesix.ai projects.

Under the new model:
- CreateProjectNotify: 3 calls only (account + send key + host grant)
- No per-project Resend domain, DNS records, or async verification
- All *.threesix.ai projects share `threesix.ai` as the platform host
- Custom domains still get a dedicated host via ReprovisionNotifyHost

Changes:
- domain/notify.go: slim NotifyCredentials (no Host/From/ResendDomainID);
  add NotifyHostCredentials for reprovision return path
- port/notify_provisioner.go: update interface signatures and docs
- adapter/notify/provisioner.go: rewrite CreateProjectNotify (3 steps);
  rewrite DeleteProjectNotify (account-only vs full cleanup)
- adapter/notify/provisioner_reprovision.go: return *NotifyHostCredentials
- adapter/notify/provisioner_test.go: update tests for new model
- service/project_infra_crud.go: store only NOTIFY_API_KEY on provision
- domain/credential.go: add CredKeyNotifySharedHost/CredKeyNotifySharedFrom
- cmd/rdev-api/config.go: add NotifySharedHost/NotifySharedFrom to InfraConfig
- service/component.go: add notifySharedHost/notifySharedFrom + WithNotifyDefaults
- service/component_deploy.go: inject shared host defaults when no custom host stored
- handlers/notify.go: handle shared-host projects in Reprovision guard;
  add WithSharedNotifyHost builder
- cmd/rdev-api/main.go: wire SharedHost to provisioner, component service,
  and notify handler

Bootstrap: NOTIFY_SHARED_HOST=threesix.ai and NOTIFY_SHARED_FROM=noreply@threesix.ai
stored in credential store (host id=1 already provisioned with Resend provider).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-25 17:04:11 -07:00
.claude/guides fix(templates): harden component CI steps and compile regexes 2026-02-09 19:36:23 -07:00
ai-lookup feat: add RWX storage class and full SDLC lifecycle cookbook 2026-02-06 11:37:57 -07:00
changelog release: v0.10.56 - fix: worker template unused pkg/config import 2026-02-05 13:46:45 -07:00
cmd feat: implement shared notify host model for platform email delivery 2026-02-25 17:04:11 -07:00
cookbooks fix: resolve 7 root causes causing cookbook deployment failures 2026-02-24 18:49:09 -07:00
deployments/k8s/base feat: add POST /projects/{id}/notify/reprovision to migrate notify host 2026-02-23 21:28:59 -07:00
docs fix: clarify database types across docs and fix video storage persistence 2026-02-19 23:13:21 -07:00
examples feat: add GCS-based persistent media storage, AI generation pipeline, and composable skeleton packages 2026-02-19 21:29:09 -07:00
history docs: add v0.5.0 history - API key authentication 2026-01-24 23:48:43 -07:00
ideas/aeres feat: add structured logging infrastructure and SDLC extensions 2026-02-04 22:56:04 -07:00
internal feat: implement shared notify host model for platform email delivery 2026-02-25 17:04:11 -07:00
pkg/api feat: add album generation system to skeleton 2026-02-22 23:57:21 -07:00
scripts feat: add POST /projects/{id}/notify/reprovision to migrate notify host 2026-02-23 21:28:59 -07:00
sdk feat: add album generation system to skeleton 2026-02-22 23:57:21 -07:00
tests/e2e feat: Implement hexagonal architecture with services, webhooks, queue, and telemetry 2026-01-25 19:57:46 -07:00
.env.local.example feat: add local development environment 2026-01-25 00:07:02 -07:00
.gitignore feat: add album generation system to skeleton 2026-02-22 23:57:21 -07:00
.gitkeep-ci chore: trigger CI rebuild 2026-02-07 13:32:31 -07:00
.golangci.yml feat: Add infrastructure adapters for threesix.ai 2026-01-25 22:49:58 -07:00
.woodpecker.yml chore: accumulated platform hardening and CI fixes 2026-02-10 23:16:56 -07:00
aeries-preparation-thoughts.md feat: add structured logging infrastructure and SDLC extensions 2026-02-04 22:56:04 -07:00
app-vision-gaps.md feat: enterprise worker pool with HTTP sidecar pattern 2026-02-05 16:21:11 -07:00
app-vision-roadmap.md feat: enterprise worker pool with HTTP sidecar pattern 2026-02-05 16:21:11 -07:00
app-vision.md feat: enterprise worker pool with HTTP sidecar pattern 2026-02-05 16:21:11 -07:00
CHANGELOG.md feat: Implement hexagonal architecture with services, webhooks, queue, and telemetry 2026-01-25 19:57:46 -07:00
CLAUDE.md feat: hook in notify service for per-project email delivery 2026-02-21 00:30:32 -07:00
CODING_GUIDELINES.md feat: Add multi-provider code agent interface with Claude Code and OpenCode adapters 2026-01-27 09:25:51 -07:00
docker-compose.yaml feat: add local development environment 2026-01-25 00:07:02 -07:00
Dockerfile fix: worker graceful shutdown and RWO PVC compatibility 2026-02-06 00:35:00 -07:00
Dockerfile.api feat: Implement hexagonal architecture with services, webhooks, queue, and telemetry 2026-01-25 19:57:46 -07:00
Dockerfile.api.prebuild feat: Implement hexagonal architecture with services, webhooks, queue, and telemetry 2026-01-25 19:57:46 -07:00
Dockerfile.worker feat: enterprise worker pool with HTTP sidecar pattern 2026-02-05 16:21:11 -07:00
go.mod feat: add GCS-based persistent media storage, AI generation pipeline, and composable skeleton packages 2026-02-19 21:29:09 -07:00
go.sum feat: add GCS-based persistent media storage, AI generation pipeline, and composable skeleton packages 2026-02-19 21:29:09 -07:00
IMPLEMENTATION_PLAN_V2.md feat: Implement hexagonal architecture with services, webhooks, queue, and telemetry 2026-01-25 19:57:46 -07:00
IMPLEMENTATION_PLAN.md docs: add hexagonal architecture implementation plan 2026-01-25 00:15:46 -07:00
Makefile feat: add local development environment 2026-01-25 00:07:02 -07:00
PLAN.md feat: Implement v0.2-v0.4 (workspaces, git, API) 2026-01-24 21:07:00 -07:00
QUICKSTART.md feat: add local development environment 2026-01-25 00:07:02 -07:00
README.md feat: Add claude-config API, security hardening, and testing infrastructure 2026-01-25 01:29:13 -07:00
vision.md feat: fix composable monorepo CI builds + health endpoint improvements 2026-02-03 18:46:51 -07:00

rdev - Remote Developer

Run Claude Code in isolated Kubernetes pods on your k3s cluster.

Quick Start

# 1. Set kubeconfig (REQUIRED - this is k3s, not GKE)
export KUBECONFIG=~/.kube/orchard9-k3sf.yaml

# 2. Authenticate Claude locally (if not already)
claude

# 3. Create credentials secret
./scripts/create-credentials-secret.sh

# 4. Deploy
./scripts/deploy.sh

# 5. Verify
./scripts/verify.sh

Usage

# Check Claude version
kubectl exec -n rdev claudebox-0 -- claude --version

# Interactive Claude session
kubectl exec -it -n rdev claudebox-0 -- claude "what can you help me with?"

# Run in workspace
kubectl exec -it -n rdev claudebox-0 -- bash
cd /workspace
claude "create a hello world go program"

Architecture

k3s cluster
└── rdev namespace
    └── claudebox-0 (StatefulSet)
        ├── Claude Code CLI
        ├── /workspace (20Gi PVC via Longhorn)
        └── /root/.claude (credentials from secret)

Roadmap

  • v0.1: Base case - single claudebox pod
  • v0.2: Real workspace mounting (pantheon, aeries)
  • v0.3: Git integration (push/pull)
  • v0.4: Discord bot control
  • v0.5: Streaming output
  • v0.6: Multi-project routing

Development

# Build image locally
docker build -t rdev-claudebox:dev .

# Build and push to Artifact Registry
./scripts/build-push.sh v0.1.0

Troubleshooting

# Check pod status
kubectl get pods -n rdev

# View pod logs
kubectl logs claudebox-0 -n rdev

# Describe pod for events
kubectl describe pod claudebox-0 -n rdev

# Check credentials mount
kubectl exec -n rdev claudebox-0 -- ls -la /root/.claude/