3 Claude Code habits that were quietly costing me (and the fixes I actually run)

Discover the 3 Claude Code habits that were secretly costing you and the precise fixes I implemented to stop fake completions, token waste, and session amnesia.

jueves, 30 de julio de 2026 • 3 min read • Q2BSTUDIO Team

Hábitos ocultos que están quemando tus tokens en Claude Code

Working with code assistants like Claude Code can boost your productivity, but it also hides time-consuming pitfalls you might not notice. At Q2BSTUDIO, where we develop custom software and AI-based solutions, we have integrated Claude Code into multiple pipelines. After months of intensive use, we identified three habits that caused constant friction and designed practical solutions that are already running in our environments. Here is what we learned, without fluff or empty promises.

1. The fake 'done' that was never verifiedThe most common and costly problem: Claude Code finishes a task, writes 'done ✅' and the code has never been executed. You trust that signal, move on, and hours later discover that a critical feature fails because it was never tested. On an AI project for document classification, this false completion set us back an entire week. The solution we implemented does not rely on CLAUDE.md reminders — those get ignored under pressure. Instead, we installed a Stop hook in Claude Code's configuration: a Python script that runs every time the assistant tries to end its turn. If during the session there has been no test execution (unit test, manual validation, or feature verification), the hook blocks the completion message and forces Claude to run the tests before allowing it to say 'done.' Since we put it in place, unverified deliveries have vanished. This is especially relevant when we build AI agents that must orchestrate multiple cloud services, because an undetected error can propagate through the entire architecture.

2. The invisible token tax per sessionEverything you load into context — CLAUDE.md files, automatic rules, MCP server definitions, project documents — is billed in tokens every time you send a message. We measured our standard load: 7,229 tokens before typing the first instruction. In a team working with AWS and Azure cloud, where each session may require specific configurations, that tax multiplies. The solution is not to eliminate everything, but to move rarely-used rules into files Claude reads on demand, not always active. For example, MCP server definitions we only use for cybersecurity audits we removed from autoload and invoke with an explicit command. We also disabled connectors we don't use daily. In one afternoon we cut the permanent load by more than half. If you also work with Power BI dashboards or BI analytics, every token saved translates into faster responses and lower operational cost. At Q2BSTUDIO we apply the same efficiency philosophy in all our process automation projects: what is not needed now, is not loaded.

3. Total amnesia between sessionsEach new Claude Code session starts from scratch: it doesn't know what you decided yesterday, what architecture you agreed on, what environment variables you defined. The trend is to set up a vector database, but for small teams or personal projects it is overkill. Our solution is a MEMORY.md index: a plain text file with one line per memory. Each line points to a small file where the detail is stored. When a session starts, Claude loads the index, reads the relevant files based on context, and at the end writes new facts. No infrastructure, no extra costs. In a custom software project for inventory management, this system allowed us to resume development after a weekend without losing the thread. Moreover, since we work with AI agents that interact with each other, having persistent memory avoids contradictory decisions. Combined with a completion hook that verifies the memory has been updated, we close the continuity loop.

These three tweaks — mandatory verification before closing, optimized context load, and persistent memory in flat files — have eliminated the main time leaks in our use of Claude Code. They are not theory; we run them daily in production environments with clients who require both cybersecurity and cloud scalability. If you want to dive deeper into how we implement custom hooks or how we integrate these practices into process automation developments, feel free to contact our team. The key is not to blindly trust the assistant, but to build safeguards that guarantee quality and continuity.

A BREAK?

Play for a moment before you go

OUR SERVICES

How we can help you

Do you have a project in mind?

Tell us your vision and we'll turn it into a software solution. Whatever the scope, we make your idea real.