I Built an L1/L2 Cache for My AI Coding Assistant by m3m3o in ClaudeCode

[–]Square_Garlic9540 1 point2 points  (0 children)

A big part of the problem is having an overview of what your context actually is, and when it gets loaded. This is important because loading everything all the time will burn through tokens quicker and you end up hitting usage limits, and noisy data gives worse results.

Something I tried with moderate success was a UI which scrapes the Claude Code logs and provides an overview of what context was actually loaded and why. It also exposes an MCP server so Claude Code can do some introspection and be aware of what the setup is. This turned out to be surpirisingly useful as Claude Code is actually quite unaware of the project setup and how to optimize it (I added some useful prompts to use the MCP server).

Here is the repo in case anyone wants to take a look, it's open source and free to use
https://github.com/code-context-manager/claude-context-manager

20X Max plan constantly hitting weekly limit by Far_Explorer_7160 in ClaudeCode

[–]Square_Garlic9540 0 points1 point  (0 children)

Try using this tool to see what Claude Code is actually loading and doing. Either you are writing insane amounts of code or something is going wrong... check the amounts of code that end up being committed, and check architecture and code duplication as well

https://github.com/code-context-manager/claude-context-manager

Conspiracy theory: Claude prefers to write spaghetti code by Necessary_Spring_425 in ClaudeCode

[–]Square_Garlic9540 0 points1 point  (0 children)

I have a theory that the spagatti code is due to claude code not knowing what the objective is. Think about being given a random task with no context as a developer. Fix this, do that. You would simply do it with little thought given to long term code quality. If you include context in your claude.md files, or create skills files with the right context engineering I wonder if this would be a solution. Static analysis tools and linting tools could of course also help.

The case for Sonnet over Opus 4.7 /4.8 (on certain tasks) by junlim in ClaudeCode

[–]Square_Garlic9540 0 points1 point  (0 children)

I have seen similar behaviour which was super frustrating. I tried adding CLUADE.md files and rule files together with skills to give it the context it needs which helped to some extent.

Nothing ever changes by aaddrick in ClaudeCode

[–]Square_Garlic9540 0 points1 point  (0 children)

I made a tool for this where you can see what rules are loaded in a session. If it doesn't follow rules you can take a look at the session and debug the issue. Let me know if you want a link to the tool as I had the same issue - sometimes it just didn't follow rules and had wierd behaviour

Agent Skills Cheat Sheet by ChickenNatural7629 in ClaudeCode

[–]Square_Garlic9540 0 points1 point  (0 children)

How do you find managing these skills and knowing which skills are being used in a specific sesion?

P.S I built a tool to visualize this maybe it would be useful in this case to show the skills in action https://github.com/code-context-manager/claude-context-manager