A System for Claude Code to Learn Your Project Over Time

A developer on r/ClaudeAI shared a system to address Claude Code's lack of persistent context between sessions. Instead of starting from scratch each time, this setup helps Claude learn your project's conventions, architecture, and past mistakes.
The Problem and Solution
When using Claude Code, each new session loses all previous context. Claude re-reads files it already understood, repeats corrected mistakes, and ignores established patterns, requiring constant re-explanation.
The solution involves adding a few files to any repository:
CLAUDE.md- A short set of rules telling Claude how to behave. Examples include "ask before proceeding if something is unclear" and "don't run tests yourself, tell me what to run instead" (which saves money by avoiding token waste on error chasing).docs/folder - Contains short files (5-10 lines each) capturing project conventions, patterns, and architecture, organized into subfolders. An index file (docs/README.md) helps Claude quickly find the right document instead of guessing.
Three Key Prompts
- bootstrap - Pasted once when adopting an existing codebase. Claude reads your code and writes the initial documentation.
- refine - Pasted at the end of a session. Claude reflects on what happened and updates the documentation with new learnings.
- factory - Pasted when Claude does something you want to repeat. It captures the pattern as a reusable prompt.
The Workflow Loop
The process creates a continuous learning cycle: You code with Claude → session ends → you paste the refine prompt → Claude updates the docs → you commit → next session starts smarter. Since the documentation lives in git, everyone on your team benefits from it, and it works with any tech stack.
Practical Tips from Implementation
- Explicitly tell Claude not to run build/test commands to avoid burning tokens chasing errors. Instead, have it tell you what commands to run.
- Use specific numbers in rules (e.g., "pause if changing 3+ files") rather than vague terms like "pause for complex tasks," as Claude wastes time interpreting ambiguity.
- An index file for your docs folder pays off immediately by preventing Claude from opening random files hoping to find relevant information.
The system is free and open source, available at saas-vibe.
📖 Read the full source: r/ClaudeAI
👀 See Also

Exporting AI Agent Memories Using Claude's Import Function
A Reddit user shares a prompt for extracting stored memories from AI agents like ChatGPT and Claude, then importing them into OpenClaw. The prompt requests all stored context including instructions, personal details, projects, tools, and preferences.

Single-page chatbot interface for locally running Gemma 4 26B A4B
A developer built a single HTML page chatbot that connects to Gemma 4 26B A4B running locally with 32K context window at 50-65 tokens/second, sharded between a 7900 XT and 3060 Ti GPU. The interface includes full streaming, Markdown rendering, and parameter controls.

Exploring API-to-API Interactions: A Closer Look at Automation
A recent discussion on Reddit delves into the intricacies of API-to-API phone calls, focusing on practical implementation and potential challenges using tools such as Postman and Twilio.

OutClaw: GUI Installer and Manager for OpenClaw in Docker
OutClaw is a free, open-source application that installs and manages OpenClaw instances inside Docker containers. It provides a step-by-step GUI for setup, configuration, and connection to AI providers and chat channels without using the command line.