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

Portable engineering system for Claude Code with hooks, specialized agents, and self-improvement
A developer built a portable engineering system that lives in ~/.claude/ and applies to every project automatically, featuring a 650-line constitution, deterministic hooks that block dangerous commands, three specialized agents, and a self-improving compound engineering approach.

gui.new: Tool for Claude to Render Visual Output as Shareable Links
gui.new is a tool that lets Claude render visual output as live shareable links instead of returning code blocks. It's built with Claude, uses Next.js on Vercel with Supabase, and requires no signup.

Utilyze: Open-Source GPU Monitor That Measures Real Compute Throughput, Not Just Kernel Activity
Utilyze samples hardware performance counters to report compute and memory throughput relative to theoretical limits, exposing that dashboards showing 100% utilization may have only 1-10% real throughput.

DocMason: Local Agent Knowledge Base for Complex Office Files
DocMason is a repo-native agent app that builds local knowledge bases from complex office documents like PPTX, DOCX, Excel, and PDFs. It runs entirely within Codex or Claude Code, maintaining document structure and providing traceable answers with provenance.