Files
agent-mgr/docker/entrypoint.sh
Steven Hooker e5b07cc1d8 initial agent-mgr: app builder platform MVP
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)
2026-02-18 15:56:32 +01:00

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