Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ RUN npm ci && \
# Copy application source code
COPY . .

# Install Claude Code CLI (required by @anthropic-ai/claude-agent-sdk)
RUN npm install -g @anthropic-ai/claude-code

# Build TypeScript (mcp-server first, then main project)
RUN cd mcp-server && npm run build && cd .. && npm run build

Expand Down
3 changes: 3 additions & 0 deletions src/ai/claude-executor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,10 @@ export async function runClaudePrompt(
const mcpServers = buildMcpServers(sourceDir, agentName);

// Build env vars to pass to SDK subprocesses
// Spread process.env first so PATH and other system vars are inherited,
// then override with Shannon-specific vars
const sdkEnv: Record<string, string> = {
...Object.fromEntries(Object.entries(process.env).filter((entry): entry is [string, string] => entry[1] != null)),
CLAUDE_CODE_MAX_OUTPUT_TOKENS: process.env.CLAUDE_CODE_MAX_OUTPUT_TOKENS || '64000',
};
if (process.env.ANTHROPIC_API_KEY) {
Expand Down