Go API server + Preact UI + Claude Code adapter. - App-centric model (ideas, not repos) - AgentProvider interface for multi-agent support - K8s pod lifecycle for sandboxed agent sessions - Gitea integration (create repos, push branches) - WebSocket streaming for live session output - Woodpecker CI/CD pipelines (kaniko build + kubectl deploy)
17 lines
373 B
Bash
17 lines
373 B
Bash
#!/bin/bash
|
|
set -euo pipefail
|
|
cd /workspace
|
|
|
|
# Run claude interactively, streaming JSON output
|
|
claude --output-format stream-json "$@"
|
|
EXIT_CODE=$?
|
|
|
|
# After claude exits, push whatever it did
|
|
if [ -n "$(git status --porcelain)" ]; then
|
|
git add -A
|
|
git commit -m "agent session ${SESSION_ID:-unknown}"
|
|
git push origin "agent/${SESSION_ID:-unknown}"
|
|
fi
|
|
|
|
exit $EXIT_CODE
|