chore: remove unused legacy agent.sh

- Remove agent.sh (was never actually used, entrypoint.sh handles both modes)
- Update Dockerfile to remove the copy of agent.sh
This commit is contained in:
jcfs
2026-01-11 22:15:11 +00:00
parent 15cf60edb9
commit fd98328058
2 changed files with 0 additions and 35 deletions
@@ -39,10 +39,6 @@ RUN chmod +x /usr/local/bin/agentctl
# Create agent directory
WORKDIR /agent
# Copy agent script (legacy, for backward compatibility)
COPY dockerfiles/augment-agent/agent.sh /agent/agent.sh
RUN chmod +x /agent/agent.sh
# Copy entrypoint script
COPY dockerfiles/augment-agent/entrypoint.sh /agent/entrypoint.sh
RUN chmod +x /agent/entrypoint.sh
@@ -1,31 +0,0 @@
#!/bin/bash
# Augment Agent - Runs in ACP (Agent Client Protocol) mode
# Uses JSON-RPC 2.0 over stdin/stdout for bidirectional communication
set -e
# Check if auggie is available
if ! command -v auggie &> /dev/null; then
echo '{"jsonrpc":"2.0","method":"error","params":{"message":"Auggie CLI not found"}}' >&2
exit 1
fi
# Check for authentication
if [ -z "$AUGMENT_SESSION_AUTH" ]; then
echo '{"jsonrpc":"2.0","method":"error","params":{"message":"AUGMENT_SESSION_AUTH required"}}' >&2
exit 1
fi
# Export for auggie to use
export AUGMENT_SESSION_AUTH
# Build auggie command
AUGGIE_ARGS="--acp"
# Add workspace root if we're in a workspace with files
if [ -d "/workspace" ] && [ "$(ls -A /workspace 2>/dev/null)" ]; then
AUGGIE_ARGS="$AUGGIE_ARGS --workspace-root /workspace"
fi
# Execute auggie in ACP mode - stdin/stdout will be used for JSON-RPC communication
exec auggie $AUGGIE_ARGS