Skip to content

Instantly share code, notes, and snippets.

@shidhincr
Last active January 24, 2026 01:05
Show Gist options
  • Select an option

  • Save shidhincr/0b7159c54867f7f187db3f2a4a4790dd to your computer and use it in GitHub Desktop.

Select an option

Save shidhincr/0b7159c54867f7f187db3f2a4a4790dd to your computer and use it in GitHub Desktop.
shidhi.in TIL gists
title
Better planning in Claude with the AskUserQuestionTool

read this @SPEC.md and interview me in detail using the AskUserQuestionTool about literally anything: technical implementation, UI & UX, concerns, tradeoffs, etc. but make sure the questions are not obvious

be very in-depth and continue interviewing me continually until it's complete, then write the spec to the file

https://www.atcyrus.com/stories/claude-code-ask-user-question-tool-guide

title
MCP-CLI: Token-Efficient Tool Calling in Claude Code

MCP-CLI is an experimental approach to MCP tool calling that dramatically reduces token consumption in Claude Code. Instead of loading full tool definitions into the system prompt, MCP-CLI provides Claude with minimal metadata about each server. When Claude needs detailed information about a specific tool, it requests it on-demand rather than consuming context upfront.

This enables on-demand tool information (only consume tokens for tools actually relevant to each session), programmatic output processing (pipe large outputs directly to files or process with jq to keep bulky data out of context), and the ability to scale to more tools without sacrificing context space.

Enable it with ENABLE_EXPERIMENTAL_MCP_CLI=true and share feedback in the GitHub issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment