You realize the agent SDK is literally a wrapper of running claude -p "prompt"" right? Jesus Christ.
Are you actually like 12 years old and never told no by mommy? Any remotely close to functional human being would have spent 5 seconds educating themselves by now.
Run Claude Code programmatically
Use the Agent SDK to run Claude Code programmatically from the CLI, Python, or TypeScript.
The Agent SDK gives you the same tools, agent loop, and context management that power Claude Code. It’s available as a CLI for scripts and CI/CD, or as Python and TypeScript packages for full programmatic control.
The CLI was previously called “headless mode.” The -p flag and all CLI options work the same way.
To run Claude Code programmatically from the CLI, pass -p with your prompt and any CLI options:
This page covers using the Agent SDK via the CLI (claude -p). For the Python and TypeScript SDK packages with structured outputs, tool approval callbacks, and native message objects, see the full Agent SDK documentation.
Like everyone else who thought it would be a good idea to tell Claude to make some plugin + reddit post about it, i suggest you go read what prompt caching is.
Also I hope you realize rewind and fork are built in to cc.... lol
He's already making reddit posts with AI, they start young these days.
I personally find all ai including Claude useless for research outside of finding potential sources or ideas because they all like the other guy said will make shit up or be incorrect in a way that sounds nice but to anyone with actual understanding of the topic is just stupidly incorrect.
Using AI as a broad search is different though and it's actually useful. Grok heavy (I don't pay for it) for random searches in basic every day topics will use 2000 sources for example so if I'm looking for user discussions of specific things it's good in that regard. Like every other AI the analysis of the research will be useless though.
The CLI officially speaking doesn't allow it for interactive mode with api key or headless -p either if that makes you feel better. Only with SDK and API key.
When I was trying to do this it's not even just that Claude is good. It's that chat GPT and Gemini just completely make shit up about the spreadsheets and source data files, literally ignore what you say, etc.. My task involved making a spreadsheet from case reports on PubMed and Gemini would literally just completely invent drugs that were not mentioned in a single one of the reports and put them in the spreadsheet, and would admit that it did this when I asked about it. Such useless garbage
I've done the same task except slightly more complicated. Good luck getting it to work with anything but Claude. This includes deep think and gpt pro. Not going to happen.
I usually despise ai posts but this one is actually good and something people should understand tbh. Honestly can say for the first time I got insight from a post like this. Lol. Thought and brain went into it instead of DURR I SOLVED CONTEXT BY TELLING CLAUDE TO MAKE A PLUGIN
Ok so use any random speech to text who cares😭
Do you think those idiots actually even read the changelog or would otherwise come to know this exists?
Go look into why they had to try to control the voters stupidity with style control and then tell me why that leaderboard means anything
Hint: voters would vote after not reading the response, based solely off of how the response looked visually. Aka emoji spam mostly and markdown.
Go turn off style control and tell me it reflects reality. Then tell me any of those rankings mean anything
You realize the agent SDK is literally a wrapper of running claude -p "prompt"" right? Jesus Christ.
Are you actually like 12 years old and never told no by mommy? Any remotely close to functional human being would have spent 5 seconds educating themselves by now.
https://code.claude.com/docs/en/headless
Run Claude Code programmatically Use the Agent SDK to run Claude Code programmatically from the CLI, Python, or TypeScript.
The Agent SDK gives you the same tools, agent loop, and context management that power Claude Code. It’s available as a CLI for scripts and CI/CD, or as Python and TypeScript packages for full programmatic control. The CLI was previously called “headless mode.” The -p flag and all CLI options work the same way. To run Claude Code programmatically from the CLI, pass -p with your prompt and any CLI options:
This page covers using the Agent SDK via the CLI (claude -p). For the Python and TypeScript SDK packages with structured outputs, tool approval callbacks, and native message objects, see the full Agent SDK documentation.
I don't care what their stupid documentation says. Literally run claude --help on an old version of cc and see yourself. Jesus Christ.
I was referring to the OP
Like everyone else who thought it would be a good idea to tell Claude to make some plugin + reddit post about it, i suggest you go read what prompt caching is.
Also I hope you realize rewind and fork are built in to cc.... lol
He's already making reddit posts with AI, they start young these days.
I personally find all ai including Claude useless for research outside of finding potential sources or ideas because they all like the other guy said will make shit up or be incorrect in a way that sounds nice but to anyone with actual understanding of the topic is just stupidly incorrect.
Using AI as a broad search is different though and it's actually useful. Grok heavy (I don't pay for it) for random searches in basic every day topics will use 2000 sources for example so if I'm looking for user discussions of specific things it's good in that regard. Like every other AI the analysis of the research will be useless though.
And if you want to get literally anything done properly without placeholders everywhere even with a proper spec and plan.....
Go with anything else
The CLI officially speaking doesn't allow it for interactive mode with api key or headless -p either if that makes you feel better. Only with SDK and API key.
So in the end what model did you decide on to generate this post?
That has been there as well, lol
Is only posting the first sentence not a "technically wrong decision"?
I think we would all like to hear how you changed the claude.md to use sonnet 4.6...
You can do the same without it. claude --help to see the command I don't remember exact syntax off the top of my head.
Is the agent SDK not just a literal wrapper of running claude -p "prompt"? How can they make that bannable?
When I was trying to do this it's not even just that Claude is good. It's that chat GPT and Gemini just completely make shit up about the spreadsheets and source data files, literally ignore what you say, etc.. My task involved making a spreadsheet from case reports on PubMed and Gemini would literally just completely invent drugs that were not mentioned in a single one of the reports and put them in the spreadsheet, and would admit that it did this when I asked about it. Such useless garbage
Programmatic tool calling and code execution has been there for a few months on api since november j believe.
Currently this is the only implementation for CC? Just web search not local search (where imo the big difference would be?)
Are people actually this dumb?
I've done the same task except slightly more complicated. Good luck getting it to work with anything but Claude. This includes deep think and gpt pro. Not going to happen.
"The real unlock" You're absolutely right. 🙃
Ok NVM then. Since this is actually good I believe you lol. I meant AI generated or written posts yes
I usually despise ai posts but this one is actually good and something people should understand tbh. Honestly can say for the first time I got insight from a post like this. Lol. Thought and brain went into it instead of DURR I SOLVED CONTEXT BY TELLING CLAUDE TO MAKE A PLUGIN
I see you told AI to make one that writes Reddit posts too
What you get: some vibe coded 5000 agent spam made to burn all usage for no reason