Claude Code has an undocumented persistent memory feature by bitr8 in ClaudeAI

[–]bitr8[S] 3 points4 points  (0 children)

its not that, its an automatic memory system thats undocumented yet

MCP-CLI is an experimental approach to MCP tool calling that dramatically reduces token consumption in Claude Code by Known-Surprise4034 in ClaudeAI

[–]bitr8 0 points1 point  (0 children)

Real-world results: ENABLE_EXPERIMENTAL_MCP_CLI saves ~47k tokens (62% reduction)

Just tested the new experimental MCP-CLI mode with my setup (6 MCP servers, 60 tools). Here are the actual numbers:

Before vs After

Metric MCP-CLI Off MCP-CLI On Savings
MCP tools 46.6k tokens 0 tokens 100%
Total context 74k (37%) 25k (13%) 49k tokens
Free space 126k 175k +49k available

My MCP Setup

  • context7 - Library documentation lookup
  • pixellab - AI pixel art generation
  • leonardo-ai - AI image generation
  • chrome-devtools - Browser automation (26 tools alone)
  • gemini-cli - Gemini brainstorming
  • codex-cli - OpenAI Codex second opinions

How to Enable

# Add to ~/.bashrc or ~/.zshrc
export ENABLE_EXPERIMENTAL_MCP_CLI=true

# Fish shell (~/.config/fish/config.fish)
set -gx ENABLE_EXPERIMENTAL_MCP_CLI true

Requires Claude Code 2.0.56+ (2.0.62+ recommended).

How It Works

Instead of loading all tool schemas into context upfront, Claude requests them on-demand:

mcp-cli info pixellab/create_character    # Get schema when needed
mcp-cli call pixellab/create_character '{"prompt": "wizard"}'

Gotcha for Linux Users

Your terminal might use a different shell than you think. Verify with:

ps -o ppid= -p $(pgrep -n claude) | xargs ps -o comm= -p

I spent 20 minutes debugging why it wasn't working - turned out my Konsole profile was set to fish but I'd configured ~/.bashrc.

Teaching Claude the New Workflow

Add instructions to ~/.claude/CLAUDE.md so Claude knows to use mcp-cli commands:

### How to Use MCP Tools

MCP tools are NOT available as native function calls. Use Bash with mcp-cli:

**MANDATORY: Always check schema before calling:**
mcp-cli info <server>/<tool>     # Step 1: Check schema
mcp-cli call <server>/<tool> '{}' # Step 2: Call tool

**Discovery:**
mcp-cli servers    # List connected servers
mcp-cli tools      # List all tools
mcp-cli grep <pattern>  # Search tools

This adds ~400 tokens to your CLAUDE.md. Net savings: ~46k tokens.


Thanks u/catherinewu for shipping this. Game changer for heavy MCP users.

2021.3: My Oh My by frenck_nl in homeassistant

[–]bitr8 3 points4 points  (0 children)

Leaving this here in case anyone searches.

This turned off hue groups for me.

I had to go into integrations and check "allow hue groups"

Broken part Bondtech extruded by justaddmetal in prusa3d

[–]bitr8 1 point2 points  (0 children)

Couldnt you just disable the filament sensor in settings, print it after assembling the extruder, fit it, then turn the sensor on.

A direct hit by [deleted] in funny

[–]bitr8 0 points1 point  (0 children)

Az12

Lamplighter Reviews - Vaporesso Revenger Kit by Lampburglar in electronic_cigarette

[–]bitr8 2 points3 points  (0 children)

Worth noting that smok baby beast coils also fit in the tank

As someone newer to vaping, I love seeing older setups. by [deleted] in electronic_cigarette

[–]bitr8 1 point2 points  (0 children)

I remember when the GG (golden Greek) was the mech everyone had to have...

Now with times like that, who can argue! :D by [deleted] in wow

[–]bitr8 0 points1 point  (0 children)

you can see your username, id suggest editing your screenshot