Skip to content

Instantly share code, notes, and snippets.

@miguelrios
miguelrios / Dockerfile
Created January 7, 2026 20:44
golink Alpine Dockerfile
FROM golang:1.23-alpine AS builder
RUN apk add --no-cache git
ENV GOTOOLCHAIN=auto
WORKDIR /app
RUN git clone https://github.com/tailscale/golink.git .
RUN CGO_ENABLED=0 go build -o /golink ./cmd/golink
FROM alpine:latest
RUN apk add --no-cache ca-certificates tzdata
COPY --from=builder /golink /golink
@miguelrios
miguelrios / sdk-agents-filepath-bug-v2.py
Last active January 23, 2026 02:42
Claude CLI bug: --agents flag doesn't support @filepath syntax (affects SDK with large agent configs)
#!/usr/bin/env python3
"""
Minimal reproducible example: Claude Agent SDK @filepath bug for --agents flag
BUG SUMMARY:
When custom agents are passed to ClaudeAgentOptions and the resulting command line
exceeds 100K characters, the SDK writes agents to a temp file and passes `@filepath`
to the CLI. However, the CLI doesn't support this syntax for --agents, causing
custom agents to be silently ignored.