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

Reduce AI Coding Session Costs by 90% with Graph-Based Code Indexing
A developer built a local graph database that indexes a codebase using LLM-generated summaries, cutting Claude Code session costs from $6-10 to cents by avoiding redundant file re-reads.

OpenClaw .NET: NativeAOT Port with JSON-RPC Bridge for Existing Plugins
OpenClaw .NET is a C# port of OpenClaw that compiles to a ~23MB NativeAOT binary, eliminating JIT warmup and Node runtime overhead while maintaining compatibility with existing TypeScript/JavaScript plugins through a built-in JSON-RPC bridge.

LocalSynapse MCP Server Adds macOS Support and Search Improvements
LocalSynapse, an offline MCP server for searching local documents, now supports macOS and includes fixes for multi-word search queries. The developer has implemented feedback-driven improvements including position-adjusted click boosting and time decay as promotion.

latexnav: Python Tool for LLM and Human Navigation of LaTeX Files
latexnav is a free open source Python tool that parses LaTeX files to extract structural elements like theorems, definitions, sections, labels, cross-references, and dependencies, providing summaries with authoritative line numbers to help LLMs and humans navigate large manuscripts efficiently.