10 years from now: "Can you believe they did anything with such a small context window?"
Apideck CLI – An AI-agent interface with much lower context consumption than MCP
11–20 of 149 posts
Re: Apideck CLI – An AI-agent interface with much lower context consumption than MCP
#12We built a unified API with a large surface area and ran into a problem when building our MCP server: tool definitions alone burned 50,000+ tokens before the agent touched a single user message. The fix that worked for us was giving agents a CLI instead. ~80 tokens in the system prompt, progressive discovery through --help, and permission enforcement baked into the binary rather than prompts. The post covers the benc…
How is progressive discovery not more expensive due to the increased number of steps?
Re: Apideck CLI – An AI-agent interface with much lower context consumption than MCP
#13Re: Apideck CLI – An AI-agent interface with much lower context consumption than MCP
#14The major harnesses like Claude Code + Codex have had tool search for months now.
Re: Apideck CLI – An AI-agent interface with much lower context consumption than MCP
#15We built a unified API with a large surface area and ran into a problem when building our MCP server: tool definitions alone burned 50,000+ tokens before the agent touched a single user message. The fix that worked for us was giving agents a CLI instead. ~80 tokens in the system prompt, progressive discovery through --help, and permission enforcement baked into the binary rather than prompts. The post covers the benc…
How is progressive discovery not more expensive due to the increased number of steps?
Re: Apideck CLI – An AI-agent interface with much lower context consumption than MCP
#16What I've done with my MCPs is turning them into a CLI, except there's still an MCP server that only has the instructions to tell the the agent about the CLI.[1] Claude and GLM-5 seem to have no problems with it. As a bonus, the entire thing now works as a plain old CLI too - which it honestly should have from the beginning. [1]: https://github.com/jcdickinson/ferrisfetch/blob/main/cmd/mcp...
Going to try this with fastmail-cli and see what happens.
Re: Apideck CLI – An AI-agent interface with much lower context consumption than MCP
#17See the progressive disclosure section in the skills docs: https://agentskills.io/what-are-skills
Re: Apideck CLI – An AI-agent interface with much lower context consumption than MCP
#18We built a unified API with a large surface area and ran into a problem when building our MCP server: tool definitions alone burned 50,000+ tokens before the agent touched a single user message. The fix that worked for us was giving agents a CLI instead. ~80 tokens in the system prompt, progressive discovery through --help, and permission enforcement baked into the binary rather than prompts. The post covers the benc…
How is progressive discovery not more expensive due to the increased number of steps?
Compare this to an MCP, where my understanding is that the entire API usage is injected into the context.
Re: Apideck CLI – An AI-agent interface with much lower context consumption than MCP
#19What I've done with my MCPs is turning them into a CLI, except there's still an MCP server that only has the instructions to tell the the agent about the CLI.[1] Claude and GLM-5 seem to have no problems with it. As a bonus, the entire thing now works as a plain old CLI too - which it honestly should have from the beginning. [1]: https://github.com/jcdickinson/ferrisfetch/blob/main/cmd/mcp...
You don't need a whole server to tell agents that, I think you can just write a skill file or two and be done with it.
Re: Apideck CLI – An AI-agent interface with much lower context consumption than MCP
#20Why not use skills? They follow a three-tier loading approach, and you can stick an MCP as part of the toolset for the skills, so it will only load it when the skill is selected. See the progressive disclosure section in the skills docs: https://agentskills.io/what-are-skills