CommandCode Freeze Report
Who am I
I'm a generalist all-rounder — I know enough to operate at a medium level across a lot of stuff (homelab, WSL, basic scripting, tooling) but I don't have the depth to human-diagnose a CLI tool's internals. This report is a self-test performed by DeepSeek v4 Pro running inside CommandCode, collecting its own environment and config to hand off to humans who know this codebase. Please take it from here.
What's happening
CommandCode becomes completely unresponsive during use. The tab freezes — no keypresses work, no output renders. I have to close the tab and open a new one. The session can be recovered (state is still there), but it's disruptive. Separate from this, there's a rendering issue with flickering. Specific things I notice:
- Tab freezes solid — no keypresses work, no output renders
- Must close tab and open new one — session recovers, but disruptive
- Screen flickers on large outputs — happens independently of freezing, fixes itself after the next shorter output renders (separate cosmetic bug, not related to the freeze)
- DeepSeek v4 Pro is extremely slow in general — even simple questions take very long
- Custom agents don't seem to work — I have 40 agent profiles set up but the tool doesn't route to them the way I'd expect, or they don't behave like their descriptions say they should
I'm running all defaults as installed. I haven't modified CommandCode internals. The project it freezes in has a larger-than-average .commandcode/ directory, but nothing unusual for someone using CommandCode seriously.
Self-collected environment info
DeepSeek v4 Pro collected this from inside my session using shell commands. It's the best I can give you without knowing what else to look for.
System:
- Windows 10, WSL2 Ubuntu 24.04.4 LTS, kernel 6.6.87.2
- AMD Ryzen 7 9800X3D (16 threads)
- 47GB RAM available to WSL
- 1TB NVMe disk
- No GPU visible inside WSL (Nvidia RTX4090)
Terminal:
- Windows Terminal (the default Microsoft one)
- Bash shell, TERM=xterm-256color
Node / CommandCode:
- Node.js v22.22.2 (installed via nvm)
- CommandCode v0.26.12 (global npm install)
~/.commandcode/config.json:
{
"provider": "command-code",
"model": "deepseek/deepseek-v4-pro",
"reasoningEffort": {
"deepseek/deepseek-v4-pro": "max"
}
}
Project .commandcode/ directory (584KB total):
COMMANDCODE.md (2.5KB) — routing file
taste/taste.md — 8 learned preferences
- 18 skills in
.commandcode/skills/ (all symlinked)
- 40 agent profiles in
.commandcode/agents/ (483KB total, some profiles 20-27KB each)
MCP servers connected:
Token estimate by DeepSeek v4 Pro:
DeepSeek itself estimated that per-turn context overhead is roughly:
- 40 agent profiles: ~120,000 tokens
- 50+ AgentMemory MCP tool schemas: ~15,000-20,000 tokens
- AGENTS.md + COMMANDCODE.md: ~5,000 tokens
- Other MCP schemas: ~5,000 tokens
- Total: ~150,000 tokens before I type anything
My guesses (from a non-dev — may be wrong)
DeepSeek v4 Pro, while collecting this report, suggested these might be worth looking at. I'm including them since the model has more context than I do, but please treat these as starting points, not conclusions:
- Way too much stuff loaded at once. 40 agent profiles + 50 MCP tools + project docs all in context before I even type. If there's a context window limit, I'm probably blowing past it.
- DeepSeek v4 Pro is slow on its own and
reasoningEffort: max makes it worse. Even outside this project, it's not snappy.
- Large output rendering flickers — but this is a separate issue from freezing. Flicker happens on large responses and fixes itself after the next shorter output renders. This could be a TUI/ANSI rendering issue rather than a model problem.
- Custom agents don't seem wired up. 40 profiles exist but the behavior doesn't match. Maybe the schema format I'm using isn't what CommandCode expects, or agent discovery isn't loading them correctly.
- Remote MCP might be slow. The AgentMemory and A2A servers run on a separate machine on my local network. If network calls are blocking, that could explain hangs.
What I need from you
I don't know how to debug this further. I'm handing off:
- This report (everything I could self-collect)
- Happy to run any diagnostic commands you give me or test patches
Priority for me: stop the freezing so I can actually use the tool. If fixing agents or trimming MCP tools fixes the freezes too, great. If the freezes are a separate rendering bug, I need to know that.
Thanks for looking into this.
Related CommandCode GitHub Issues
This report touches on several existing open issues. Linking them here so devs can cross-reference:
Terminal / rendering:
MCP hangs / crashes:
Memory / heap:
DeepSeek / performance:
Agent routing:
If this self-diagnostic helps, I'm happy to provide more data or test patches.
Public tools I'm using (for context)
These are the third-party tools loaded into CommandCode that contribute to the token overhead:
CommandCode Freeze Report
Who am I
I'm a generalist all-rounder — I know enough to operate at a medium level across a lot of stuff (homelab, WSL, basic scripting, tooling) but I don't have the depth to human-diagnose a CLI tool's internals. This report is a self-test performed by DeepSeek v4 Pro running inside CommandCode, collecting its own environment and config to hand off to humans who know this codebase. Please take it from here.
What's happening
CommandCode becomes completely unresponsive during use. The tab freezes — no keypresses work, no output renders. I have to close the tab and open a new one. The session can be recovered (state is still there), but it's disruptive. Separate from this, there's a rendering issue with flickering. Specific things I notice:
I'm running all defaults as installed. I haven't modified CommandCode internals. The project it freezes in has a larger-than-average
.commandcode/directory, but nothing unusual for someone using CommandCode seriously.Self-collected environment info
DeepSeek v4 Pro collected this from inside my session using shell commands. It's the best I can give you without knowing what else to look for.
System:
Terminal:
Node / CommandCode:
~/.commandcode/config.json:{ "provider": "command-code", "model": "deepseek/deepseek-v4-pro", "reasoningEffort": { "deepseek/deepseek-v4-pro": "max" } }Project
.commandcode/directory (584KB total):COMMANDCODE.md(2.5KB) — routing filetaste/taste.md— 8 learned preferences.commandcode/skills/(all symlinked).commandcode/agents/(483KB total, some profiles 20-27KB each)MCP servers connected:
Token estimate by DeepSeek v4 Pro:
DeepSeek itself estimated that per-turn context overhead is roughly:
My guesses (from a non-dev — may be wrong)
DeepSeek v4 Pro, while collecting this report, suggested these might be worth looking at. I'm including them since the model has more context than I do, but please treat these as starting points, not conclusions:
reasoningEffort: maxmakes it worse. Even outside this project, it's not snappy.What I need from you
I don't know how to debug this further. I'm handing off:
Priority for me: stop the freezing so I can actually use the tool. If fixing agents or trimming MCP tools fixes the freezes too, great. If the freezes are a separate rendering bug, I need to know that.
Thanks for looking into this.
Related CommandCode GitHub Issues
This report touches on several existing open issues. Linking them here so devs can cross-reference:
Terminal / rendering:
MCP hangs / crashes:
Memory / heap:
DeepSeek / performance:
Agent routing:
If this self-diagnostic helps, I'm happy to provide more data or test patches.
Public tools I'm using (for context)
These are the third-party tools loaded into CommandCode that contribute to the token overhead:
install-agency-agents.sh)