- agent/: Claude Agent SDK inside Docker container - Persistent sessions (resume/checkpoint) - MCP tools for Tracker (chat, tasks) - File-based IPC protocol - runner.py: Host-side container manager - Docker lifecycle management - IPC file processing → Tracker REST API - Interactive CLI for testing - Dockerfile: node:22-slim + Claude Agent SDK - Based on NanoClaw architecture, stripped to essentials
27 lines
635 B
Docker
27 lines
635 B
Docker
FROM node:22-slim
|
|
|
|
# System deps for Claude Code tools
|
|
RUN apt-get update && apt-get install -y \
|
|
git curl jq ripgrep \
|
|
python3 python3-pip \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Working directory
|
|
WORKDIR /app
|
|
|
|
# Install agent dependencies
|
|
COPY agent/package.json agent/package-lock.json* ./
|
|
RUN npm install
|
|
|
|
# Copy and build agent code
|
|
COPY agent/tsconfig.json ./
|
|
COPY agent/src/ ./src/
|
|
RUN npx tsc
|
|
|
|
# Workspace for agent data (mounted from host)
|
|
RUN mkdir -p /workspace /workspace/ipc/input /workspace/ipc/messages /workspace/ipc/tasks /workspace/conversations
|
|
|
|
WORKDIR /workspace
|
|
|
|
ENTRYPOINT ["node", "/app/dist/index.js"]
|