Improving Claude Code Sessions with claude-self-improve

claude-self-improve is a command-line tool created to address repetitive errors in Claude Code sessions by automating the analysis and updating of memory files. This tool was developed due to the tedious nature of manually curating MEMORY.md files to improve AI-driven coding sessions.
The process involves three main steps:
- The tool reads session facets, specifically the JSON performance data Claude Code already generates.
- This data is sent to headless Claude (also referred to as Sonnet), where it extracts patterns indicating friction and successes, as well as lessons learned.
- Upon analysis, it updates
MEMORY.mdautonomously, making sure the subsequent sessions are incrementally smarter.
After evaluating 52 sessions, the tool reported a 42% friction rate and identified common anti-patterns. For instance, 'wrong initial diagnosis' accounted for 41% of the friction events. The system also suggested four memory updates and three CLAUDE.md improvements without the need for manual review.
# Example command
bash claude-self-improve.shRunning the tool costs approximately $0.07 to $0.20 per session. The code repository is available on GitHub, providing access to the script and allowing other developers to implement similar improvements.
📖 Read the full source: r/ClaudeAI
👀 See Also

Open source Next.js starter kit adds guardrails and agent instructions to prevent AI slop
A new Next.js boilerplate includes auth, database, CI, tests, and Claude Code instructions out of the box, aimed at developers using AI coding agents to build production apps faster.

bad-ass-mcp: Free, Open Source MCP for Native Desktop GUI Control via Accessibility API
bad-ass-mcp is an open source MCP server that lets Claude and other AI agents control macOS, Windows, and Linux desktops using the native accessibility layer — no screenshots, no look-move-look loops. Free alternative to Computer Use, Operator, or UiPath.

Be My Butler: Multi-Agent Pipeline for AI Code Verification
Be My Butler is an open-source multi-agent pipeline where different AI models review each other's code through blind verification. The system addresses the problem of AI agents incorrectly reporting their own code as functional.

Gemma-4 26B-A4B with Opencode Runs Efficiently on M5 MacBook Air
A 32GB M5 MacBook Air can run the Gemma-4-26B-A4B-it-UD-IQ4_XS model at 300 tokens/second prompt processing and 12 tokens/second generation in low power mode, using only 8W of power without getting warm or noisy.