Using Claude Code programmatically

There are some one-off tasks that can't be easily generalized to a proper agent but that are still so tedious that I want to automate them. Creating an agent with Claude Code SDK or Microsoft Agent Framework is nice but takes time. It turns out Claude Code by itself is a solid agent and I don't have to pay anything beyond $200/mo. claude -p \ # print mode, non-interactive --output-format json \…