INTERFACE

TERMINAL PIPE

Everything the terminal outputs can enter Claude.

cat error.log | claude diagnose this. Build output, test logs, production dumps: pipe them straight in.

Do not copy-paste. Pipe is faster, preserves formatting and dodges the clipboard limit.

Works for small files without allocating a read tool. For big files, still use Read, or you blow the context.

In practice

# Straight diagnosis:
cat /tmp/error.log | claude "diagnose this"

# Broken build:
npm run build 2>&1 | claude "explain the error"

# Explained diff:
git diff | claude "review this, hunt for bugs"

# Structured JSON:
curl api.example.com/data | claude "extract the email fields"

This practice is part of Claude Code OS, the full blueprint of the practices that separate following a tutorial from actually working with Claude. Ler em português.