Stop Re-Teaching Claude Code Every Session: Use a Persistent Config

A post on r/ClaudeAI describes a common frustration: manually re-steering Claude Code every session — restating code structure preferences, error handling rules, avoidance of confirmation prompts, directory constraints, and more. The user estimates this took ~20 minutes per session, likening it to onboarding a new hire every day.
Key Details
- Problem: Each session required re-explaining preferences (code style, error handling, no confirmations, stay in directory). Resulted in ~20 minutes of setup per session before productive work.
- Solution: Wrote a persistent config file containing all preferences once. Claude Code now starts each session already aware of the user's working style — no re-explaining, no course-correcting in the first 10 messages.
- Outcome: Sessions that used to take 60 minutes dropped to ~40 minutes — a ~33% time savings. Output quality also improved because the model spent less time guessing and more time executing.
Implementation Approach
The user distilled all recurring instructions into a single config document. While the exact format isn't specified (likely a .claude file or project-level prompt), the principle is: codify your preferences once, then let the agent load them automatically. Common items to include:
- Code style rules (e.g., prefer functional components, specific import ordering)
- Error handling patterns (always wrap in try-catch, log to specific service)
- Confirmation suppression for routine operations
- Working directory restrictions
Who It's For
Developers who use Claude Code daily and are tired of repeating themselves — especially those working on complex projects where context gets lost between sessions.
📖 Read the full source: r/ClaudeAI
👀 See Also

Claudlytics: Self-Hosted Dashboard for Tracking Claude Code Token Usage and Costs
Claudlytics is a Node.js web server that reads Claude Code's local .jsonl session files to provide real-time tracking of token usage and costs. It runs locally on 127.0.0.1 and can be accessed via SSH tunnel for remote servers.

Xiaozhen: A Claude Code skill that digs three layers into root causes
Xiaozhen (小真) is a Claude Code skill that uses three mechanics—The Gift, Three Layers Deep, and The Prediction—to help users uncover what's actually bothering them rather than giving direct advice. It's installed with a one-line curl command and activated by typing /小真 in Claude Code.

CtxSnap VS Code Extension Tracks File Changes for Claude Sessions
CtxSnap is a VS Code extension that tracks which files changed since your last Claude session and packages them into a ready-to-paste handoff block with file contents and a token budget bar calibrated to Claude's 200k context window.

Nanocode: Training Claude-like coding agents with JAX on TPUs
Nanocode is a JAX library for training Claude-like coding agents end-to-end, using Constitutional AI and TPU optimization. The 1.3B parameter model can be trained in ~9 hours for $200 on TPU v6e-8.