Designing APIs for Agents
freestyle.sh
Designing APIs for Agents
1–10 of 58 posts
Re: Designing APIs for Agents
#2Re: Designing APIs for Agents
#3Re: Designing APIs for Agents
#4MCP and A2A weren't enough?
Re: Designing APIs for Agents
#5This is not what defaults are for.
If, for example, you are writing a replacement CLI for git, *for the love of God and all that is holy* do not force agents to read the entire documentation and pass a value for every possible parameter
Re: Designing APIs for Agents
#6First time I'm hearing about https://agentauthprotocol.com/ and https://workos.com/auth-md MCP and A2A weren't enough?
TBH I know nothing about A2A.
Agent Identity and Authz is a different problem, allowing agents to operate independently from humans with granular permissions is coming/whether from these protocols or others, and when it does I think CLIs/CLI Device Auth which is used as a rough proxy for this where the agent just takes your identity will finally go away.
Re: Designing APIs for Agents
#7>Defaults are bad. Agents can be expected to read the documentation, register what good starting values are, and fill them all in, in place. This is not what defaults are for. If, for example, you are writing a replacement CLI for git, *for the love of God and all that is holy* do not force agents to read the entire documentation and pass a value for every possible parameter
The docs for git clone at https://git-scm.com/docs/git-clone are less than 4000 tokens, I don't think this is unreasonable.
Re: Designing APIs for Agents
#8>Defaults are bad. Agents can be expected to read the documentation, register what good starting values are, and fill them all in, in place. This is not what defaults are for. If, for example, you are writing a replacement CLI for git, *for the love of God and all that is holy* do not force agents to read the entire documentation and pass a value for every possible parameter
Why not? The docs for git clone at https://git-scm.com/docs/git-clone are less than 4000 tokens, I don't think this is unreasonable.
Re: Designing APIs for Agents
#9>Defaults are bad. Agents can be expected to read the documentation, register what good starting values are, and fill them all in, in place. This is not what defaults are for. If, for example, you are writing a replacement CLI for git, *for the love of God and all that is holy* do not force agents to read the entire documentation and pass a value for every possible parameter
Why not? The docs for git clone at https://git-scm.com/docs/git-clone are less than 4000 tokens, I don't think this is unreasonable.
Re: Designing APIs for Agents
#10Earlier quoted context omitted.
Why not? The docs for git clone at https://git-scm.com/docs/git-clone are less than 4000 tokens, I don't think this is unreasonable.
Because LLMs degrade with context length. And even if they didn't, having to constantly ingest the same stuff is wasteful for execution and cost. Why stuff the context when you don't have to?
I think wasteful is an irrelevant metric. Claude ingests those tokens in a quarter of a second, if it causes it to catch any bug ever it saves far more time than it ever uses.
Any individual default that causes unexpected behavior causes more problems, takes more time and costs more than the small cost of being explicit.