惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

P
Privacy & Cybersecurity Law Blog
人人都是产品经理
人人都是产品经理
The Cloudflare Blog
B
Blog RSS Feed
罗磊的独立博客
V
V2EX
V
Visual Studio Blog
博客园 - 叶小钗
W
WeLiveSecurity
小众软件
小众软件
K
Kaspersky official blog
美团技术团队
雷峰网
雷峰网
阮一峰的网络日志
阮一峰的网络日志
Martin Fowler
Martin Fowler
Recorded Future
Recorded Future
Project Zero
Project Zero
Hugging Face - Blog
Hugging Face - Blog
Engineering at Meta
Engineering at Meta
Security Latest
Security Latest
Microsoft Azure Blog
Microsoft Azure Blog
V
Vulnerabilities – Threatpost
月光博客
月光博客
博客园 - 三生石上(FineUI控件)
Help Net Security
Help Net Security
博客园 - Franky
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
F
Fortinet All Blogs
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Forbes - Security
Forbes - Security
M
MIT News - Artificial intelligence
H
Hacker News: Front Page
大猫的无限游戏
大猫的无限游戏
Vercel News
Vercel News
Spread Privacy
Spread Privacy
The Register - Security
The Register - Security
H
Hackread – Cybersecurity News, Data Breaches, AI and More
量子位
Google Online Security Blog
Google Online Security Blog
PCI Perspectives
PCI Perspectives
The Last Watchdog
The Last Watchdog
AI
AI
N
News | PayPal Newsroom
D
DataBreaches.Net
Cloudbric
Cloudbric
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
博客园 - 司徒正美
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
T
Tailwind CSS Blog

Data Studios ‧Exafin

Claude Code With Opus 4.7: Code Quality, Agentic Editing, Validation Loops, and Workflow Reliability in Modern OpenRouter for Production Apps: Routing, Fallbacks, Uptime, and Provider Resilience Across Multi-Model AI Infr Claude Opus 4.7 for Coding: Agentic Development, Debugging Workflows, Code Validation, and Professional Limits in Autonomous Software Engineering ChatGPT 5.5 Pro: Pricing, Context Window, Reasoning Depth, and Professional Limits for Advanced AI, Finance, R Grok 4.20 vs Grok 4: Speed, Reasoning, Access, Pricing, and Model Differences for API and Product Workflows Claude Code Project Setup: CLAUDE.md, Memory Files, Rules, and Team Conventions for Reliable Repository Workfl OpenRouter for OpenAI-Compatible Apps: Migration, SDK Portability, and Provider Switching Across Multi-Model W Claude Opus 4.7 for Difficult Prompts: Instruction Following, Consistency, and Complex Reasoning Across High-C ChatGPT 5.5 for Scientific Work: Data Analysis, Research Reasoning, and Complex Problem Solving Across Multi-S Grok Structured Outputs: JSON, Function Calling, Tool Use, and Automation-Ready Responses for Production Applications Claude Code Quality Reports: Regressions, Caching Issues, and Reliability Lessons for Agentic Coding Tools OpenRouter Analytics: Usage Tracking, Budget Controls, and Multi-Model Cost Visibility Across AI Workflows Claude Opus 4.7 Pricing: API Costs, Plan Access, Context Limits, and Usage Trade-Offs for Long-Context Workflows ChatGPT 5.5 System Card: Safety, Limitations, Evaluations, and Enterprise Relevance for Agentic AI Workflows Grok 4.20 Context Window: Long Inputs, Files, Collections, and Retrieval Workflows Across 2M-Token Reasoning S Claude Code GitHub Actions: Automated Reviews, CI Workflows, and Repository Automation Across Event-Driven Dev OpenRouter Tool Calling: Function Schemas, Structured Responses, and App Integration Across Production AI Work Claude Opus 4.7 for Computer Use: Browser Actions, Tool Execution, and Task Automation Across Agentic Workflow ChatGPT 5.5 for Enterprise Work: Agents, Professional Analysis, and Document-Heavy Tasks Across Governed Business Workflows Grok Imagine API: Image Generation, Video Generation, and Creative Media Workflows Across Programmable Visual Production Claude Code Slash Commands: /compact, /review, Fast Mode, and Terminal Productivity Across Agentic Coding Work OpenRouter Model Discovery: Providers, Benchmarks, Context Windows, and Effective Pricing Across Multi-Model API Workflows Claude Opus 4.7 for Enterprise Teams: Task Reliability, Workflow Automation, and Codebase Support Across Agentic Development Systems ChatGPT 5.5 vs ChatGPT 5.4: Pricing, Tools, Context Window, and Performance Differences for API and ChatGPT Wo Grok 4.20 for Coding: Technical Prompts, Tool Calling, and Developer Workflows Across Agentic Software Systems Claude Code Permissions: Safe Command Execution, Project Control, and Developer Guardrails Across Agentic Codi OpenRouter Video Inputs: Multimodal Models, File Handling, and Practical API Workflows for Video Understanding Claude Opus 4.7 for Long-Context Work: Large Files, Repositories, and Multi-Document Projects Across 1M-Token ChatGPT 5.5 in Codex: Coding Agents, Debugging, and Software Development Workflows Across Repository Context a Grok Voice API: Real-Time Conversation, Transcription, and Voice Agent Workflows Across Speech-to-Speech Syste Claude Code MCP Integrations: Databases, Issue Trackers, Documents, and External Tools Across Connected Engine Claude Opus 4.7 for Vision: Image Analysis, Claude Design, and Multimodal Workflows Across High-Resolution Scr ChatGPT 5.5 for Data Analysis: Spreadsheets, Charts, Documents, and Technical Reports Across Tool-Backed Analy Grok 4.20 Multi-Agent: Reasoning, Tool Use, and Complex Task Execution Across Collaborative Agents, Long Conte Claude Code Automatic Review: Hooks, Second-Model Checks, and Pull Request Workflows Across Non-Blocking AI Re OpenRouter Free Models: Zero-Cost Access, Limitations, and Practical Trade-Offs Across Experimentation, Quotas Claude Opus 4.7 vs Claude Opus 4.6: Performance, Pricing, Coding, and Workflow Differences Across Anthropic’s ChatGPT 5.5 for Research: Online Verification, Source Handling, and Synthesis Workflows Across Search, Documen Grok 4.20 Explained: Model Access, Capabilities, Pricing, and Best Use Cases Across xAI’s Flagship Text Model Claude Code With Opus 4.7: Effort Modes, Code Quality, and Workflow Reliability Across Long-Horizon Agentic De OpenRouter for Production Apps: Routing, Fallbacks, Uptime, and Provider Resilience Across Multi-Provider AI I Claude Opus 4.7 for Coding: Agentic Development, Debugging, and Validation Workflows Across Long-Horizon Softw ChatGPT 5.5 Pro: Pricing, Context Window, Reasoning Depth, and Practical Limits Across ChatGPT Subscriptions a Grok 4.3: characteristics, pricing, benchmarks, context window, API access, and what changed from Grok 4.20 ChatGPT 5.4 vs Microsoft Copilot for Document Drafting: Which AI Is Better for Reports, Rewrites, And Business ChatGPT 5.4 vs Claude Opus 4.6 for Long Documents: Which AI Is Better at Retrieving Buried Details From Large Claude Sonnet 4.6 vs Perplexity Sonar for File-Backed Research: Which AI Is Better for Documents, Source-Groun ChatGPT 5.4 vs Gemini 3.1 Pro for Document Analysis: Which AI Is Better With Large Reports Across PDFs, Long C Grok Context Window: Long Inputs, Reasoning Modes, and Agent Tools Across 2M-Token Workflows, File-Aware Sessi Claude Code MCP Integrations: Databases, Issue Trackers, and External Tools Across Connected Systems, Live Con OpenRouter for OpenAI-Compatible Apps: SDK Migration, Provider Portability, and Easier Multi-Model Access Across One Unified Integration Layer Claude Opus 4.6 for Difficult Tasks: Reasoning, Orchestration, and Complex Workflows Across Agents, Coding, an ChatGPT 5.4 for Prompt Adherence: Complex Instructions, Structured Outputs, and Reliable Execution Across Mult Grok for Coding: Tool Calling, Developer Workflows, and Technical Use Cases Across Agentic Development, File-A ChatGPT 5.5 vs ChatGPT 5.4: features, performance, benchmarks, limits, pricing, and real differences Claude Code for Large Codebases: Refactoring, Debugging, and Project-Wide Edits Across Monorepos, Multi-File W OpenRouter Pricing: BYOK, Routing Costs, and Cost Control Strategies Across Model Billing, Provider Selection, Claude Opus 4.6 Context Window: Long Projects, Large Files, and 1M-Token Workflows Across Anthropic’s Develope ChatGPT 5.4 for Coding: Debugging, Agentic Workflows, and Developer Use Cases Across ChatGPT, Codex, and the O ChatGPT 5.5 just launched: features, performance, benchmarks, limits, and more Grok Pricing: Subscription Tiers, API Token Costs, and Model Access Across X, Grok.com, and xAI Developer Plat OpenRouter Routing: Fallbacks, Provider Reliability, and Model Selection Logic Across Multi-Provider Model Acc Claude Opus 4.6 Pricing: API Costs, Claude Plans, and Access Differences Across Anthropic, AWS Bedrock, Vertex ChatGPT 5.4 for File-Heavy Work: How PDFs, Documents, Images, Spreadsheets, and Advanced Analysis Work Across Grok Real-Time Search: How X Integration, Live Web Retrieval, Citations, and Agent Tools Turn xAI’s Model Into a Research Workflow System Claude Code Explained: How Anthropic’s Terminal-First Coding Agent Works Across CLI Sessions, IDE Integrations, Shared Context, Hooks, Memory, and Long-Running Development Workflows OpenRouter Explained: How One API Connects Developers to Many AI Models Through Unified Requests, Provider Routing, Compatibility Layers, and Consolidated Billing Claude Opus 4.6 for Coding: How Anthropic’s Model Handles Debugging, Code Review, Large Codebases, and Long-Horizon Software Engineering Work ChatGPT 5.4 Pricing: How OpenAI’s Subscription Plans, API Costs, Context Tiers, Credits, and Real Usage Limits Mythos AI explained: what it is, why Anthropic has not released it publicly, and why it matters Grok Context Window: How xAI’s 2M-Token Models Combine Reasoning Modes, Long Inputs, Encrypted Reasoning State Claude Code Pricing: How Anthropic’s Plan Access, Shared Usage Limits, Session Budgets, and Pro vs Max Differe Claude Design: what it is, how it works, and why Anthropic launched it OpenRouter Multimodal Workflows: How Images, PDFs, Audio, Video, Plugins, and Structured Outputs Turn OpenRout Claude Opus 4.6 for Difficult Tasks: How Anthropic’s Model Handles Deep Reasoning, Agent Orchestration, Large Claude Opus 4.7 vs Opus 4.6: features, performance, context window, pricing, and more Claude Opus 4.6 vs Gemini 3.1 Pro for Long-Context Reasoning: Which AI Is Better With Extended Multi-File Inpu ChatGPT 5.4 vs Claude Opus 4.6 for Research Synthesis: Which AI Is Better at Combining Sources Into Structured Claude Opus 4.7: release, pricing, context window, and API changes ChatGPT 5.4 vs Microsoft Copilot for Presentation Work: Which AI Is Better for Slides, Restructuring, And Busi Claude Sonnet 4.6 vs Microsoft Copilot for Office Work: Which AI Is Better for Documents, Meetings, And Task S ChatGPT 5.4 vs Perplexity Sonar for Web Research: Which AI Is Better for Source-Backed Answers, Live Search, A ChatGPT 5.4 vs Claude Opus 4.6 for File-Heavy Work: Which AI Is Better With PDFs, Documents, And Large Inputs Gemini 3.1 Pro vs Perplexity Sonar for Current-Information Analysis: Which AI Is Better for Grounded Research, ChatGPT 5.4 vs Microsoft Copilot for Spreadsheet Analysis: Which AI Is Better for Excel-Heavy Work Across Form Claude Opus 4.6 vs Gemini 3.1 Pro for Multimodal Analysis: Which AI Is Better With Images, Documents, Audio, V ChatGPT 5.4 vs Gemini 3.1 Pro for Document Analysis: Which AI Is Better With PDFs And Large Reports Across Lon ChatGPT 5.4 for Coding: How OpenAI’s Model Handles Debugging, Agentic Workflows, Developer Tasks, Tool Use, an Grok for Coding: How xAI’s Tool-Calling Models Fit Developer Workflows, Agentic Programming, File-Based Reasoning, Code Execution, and Technical Automation Claude Code Explained: How Anthropic’s Terminal-First Coding Agent Works Across CLI Sessions, Editor Integrations, Shared Context, Git Operations, and IDE Workflows OpenRouter Pricing, BYOK, Routing Costs, and Cost Optimization Strategies: How OpenRouter Actually Charges for Inference, Keys, Provider Selection, and Multi-Model Spend Control Claude Opus 4.6 Context Window, Long Projects, Large Files, and 1M-Token Workflows: What Anthropic’s 1M Context Actually Means in the API and How Claude Handles Project-Scale Work in Practice ChatGPT 5.4 Context Window, Long Documents, File-Heavy Work, and Output Limits: What the 1M Token Model Means in the API and What ChatGPT Actually Exposes in Practice Grok Pricing, X Premium Subscriptions, SuperGrok Plans, xAI API Costs, and Model Access: A Full Breakdown of How Grok Billing Works Across Consumer, Business, and Developer Products Claude Code Memory, CLAUDE.md, Persistent Instructions, and Project Context: How Anthropic’s Coding Agent Actually Stores, Loads, and Uses Long-Term Guidance OpenRouter Routing: Fallbacks, Provider Reliability, and Model Selection Logic in Multi-Provider AI Infrastructure Claude Opus 4.6 Pricing: API Costs, Subscription Plans, Access Differences, and Real Usage Economics Across Consumer, Team, Developer, and Enterprise Workflows Claude Mythos and Project Glasswing: what they are, why the model is too dangerous for public release, and how Anthropic is using it Google Vids in 2026: what it is, how it works, what is free, and which AI features and limits matter ChatGPT 5.4 for File-Heavy Work: Advanced PDF Reading, Document Reasoning, Image Interpretation, and High-Context Analysis Across Professional Workflows
Claude Code Memory: How CLAUDE.md, Persistent Instructions, and Project Context Work Across Sessions, Reposito
Michele Stef · 2026-04-24 · via Data Studios ‧Exafin

Claude Code does not treat memory as one single feature, because its behavior is shaped by a combination of persistent instruction files, automatically learned preferences, and live context gathered from the repository during the active session.

That distinction matters because many users describe everything Claude remembers as memory, while Anthropic’s own documentation separates manual instruction layers from automatic memory and from the project context that Claude retrieves as it reads files, searches directories, and uses tools.

The result is a layered system in which some information is loaded at the start of a session, some is learned across sessions, and some is only pulled into context when Claude begins working in the relevant part of the codebase.

·····

CLAUDE.md is the main persistent instruction layer in Claude Code.

Anthropic documents CLAUDE.md as the primary way to give Claude Code persistent instructions that are read at the start of every session, which makes the file the main place to store information that would otherwise need to be repeated each time a developer opens the tool.

In practice, CLAUDE.md functions less like a casual note file and more like an operating manual for the repository, because it is meant to capture recurring rules, preferred workflows, architecture expectations, coding conventions, and other guidance that should remain stable across sessions.

Anthropic explicitly recommends adding information to CLAUDE.md when Claude keeps making the same mistake, when code review reveals a rule it should have followed, when the same correction has to be repeated in later sessions, or when a new teammate would need the same orientation in order to work effectively in the project.

That positioning makes CLAUDE.md the durable instruction surface for recurring expectations rather than a place to store every temporary thought that arises during development.

........

Content Type

Why It Fits in CLAUDE.md

Coding conventions

They apply repeatedly across sessions

Build and test commands

They are core operating instructions for the repo

Architecture rules

They guide Claude’s decisions during edits and reviews

Repeated corrections

They prevent the same mistake from recurring

Team workflow expectations

They help Claude align with how the project is maintained

·····

Persistent instructions in Claude Code are hierarchical rather than flat.

Anthropic’s documentation describes several scopes for persistent instructions, which means Claude Code does not rely on one universal memory file but instead works with a layered hierarchy that can include organization-managed policies, project-level files, and user-level preferences.

At the project level, Anthropic documents ./CLAUDE.md and ./.claude/CLAUDE.md as standard locations, while user-level preferences live in ~/.claude/CLAUDE.md, allowing developers to carry personal working preferences across repositories without placing those preferences into every project.

Anthropic also documents broader configuration scopes such as managed, user, project, and local, which shows that persistent guidance in Claude Code is designed as a stack of instruction layers rather than as one monolithic prompt file.

This hierarchy matters because it lets organizations define broad policy, repositories define shared project guidance, and individuals define their own cross-project preferences without collapsing all of those concerns into a single instruction surface.

........

How Persistent Instruction Scope Is Structured

Scope

Typical Location or Form

Main Purpose

Managed

Organization-controlled configuration

Defines shared policy and broader guardrails

Project

./CLAUDE.md or ./.claude/CLAUDE.md

Stores repository-level instructions shared with the team

User

~/.claude/CLAUDE.md

Stores personal preferences across projects

Local

Local repository-specific settings

Keeps machine-specific or private behavior out of shared project files

·····

Project context is loaded in stages rather than injected all at once.

Anthropic says that CLAUDE.md and CLAUDE.local.md files in the directory hierarchy above the working directory are loaded in full at launch, while files in deeper subdirectories are loaded on demand when Claude begins reading or working inside those parts of the repository.

That implementation detail is important because it shows Claude Code does not treat the entire instruction surface of a large repository as one static initial prompt, since some context is present immediately while narrower path-specific guidance only enters context when it becomes relevant to the work being done.

Anthropic also recommends using .claude/rules/ in larger repositories when instructions need to be scoped to certain directories or file types, which reinforces the idea that project context is supposed to become more specific as Claude moves into more specialized parts of the codebase.

This staged loading model makes Claude Code’s context system more selective than a single giant memory block, because broad instructions are available early while fine-grained project rules arrive when the file path or task actually calls for them.

........

How Claude Code Loads Project Context

Context Layer

When It Loads

What It Does

Parent-directory CLAUDE.md files

At session launch

Provides broad instructions immediately

Working-directory project instructions

At session launch

Defines shared local project context

Subdirectory instruction files

On demand

Adds path-specific guidance when relevant

Live repository context

During active work

Comes from files, searches, commands, and tool use

·····

Auto memory is different from CLAUDE.md even though both shape future sessions.

Anthropic explicitly separates CLAUDE.md from auto memory, describing CLAUDE.md as user-written persistent instruction and auto memory as Claude-written learned memory based on corrections, preferences, and repeated patterns observed across work in the same working tree.

That difference matters because CLAUDE.md is intentional and editorial, while auto memory is learned and accumulative, which means one is a place where the developer states what Claude should know and the other is a place where Claude retains what it has been taught repeatedly over time.

Anthropic also notes that both are treated as context rather than enforced configuration, which means they strongly influence behavior but do not operate as hard-coded policy rules in the same way a deterministic enforcement mechanism would.

The documentation further states that only the first 200 lines or 25 KB of auto memory are loaded into each conversation, which makes auto memory a compact learned layer rather than an unlimited archive of everything ever observed in the repository.

........

CLAUDE.md and Auto Memory Serve Different Roles

Dimension

Auto Memory

Who writes it

The user or team

Claude

Main purpose

Stores explicit instructions and stable rules

Stores learned preferences and repeated corrections

Scope

Can exist at organization, project, or user level

Scoped per working tree

Behavior type

Intentional persistent guidance

Learned cross-session context

Loading limit

Instruction-file based

First 200 lines or 25 KB loaded into conversation

·····

Project context in Claude Code extends beyond memory files and includes tools, workflows, and repository exploration.

Anthropic’s Claude Code documentation describes the product as an agentic coding system that reads the codebase, edits files, runs commands, and integrates with development tools, which means project context is not limited to what is stored in CLAUDE.md or auto memory.

Anthropic also distinguishes CLAUDE.md from other reusable mechanisms such as skills, hooks, subagents, and MCP integrations, showing that Claude Code’s broader context model is modular rather than concentrated in one memory feature.

That modular design is important because it prevents CLAUDE.md from becoming a catch-all system for every project behavior, since long reusable procedures may fit better into skills, deterministic automation belongs in hooks, and external system access belongs in MCP-connected tooling.

A repository therefore shapes Claude through several channels at once, including persistent instruction files, learned memory, current file content, directory structure, search results, command output, and any additional tools or integrations enabled in the session.

........

Project Context in Claude Code Comes From More Than Memory Alone

Context Source

Role in the Session

Provides persistent instructions and stable working guidance

Auto memory

Carries learned preferences and prior corrections across sessions

Repository files

Supplies the actual code and documentation being edited

Search and command output

Adds live operational and structural context

Skills, hooks, and subagents

Add reusable procedures, automation, and specialized execution context

MCP integrations

Bring in connected external systems and services

·····

Claude Code memory is best understood as a layered context system rather than a single recall feature.

The most accurate way to describe Claude Code memory is as a system in which CLAUDE.md provides persistent working instructions, auto memory preserves learned preferences and repeated corrections, and project context expands during the session as Claude reads files, searches the repository, runs commands, and engages the tools available in the development environment.

That framing matters because it captures the real structure of the product without collapsing several distinct mechanisms into one vague idea of memory, and it also explains why Claude Code can feel consistent across sessions while still adapting dynamically to the part of the repository it is currently exploring.

Anthropic’s own documentation supports this layered interpretation directly, and even its CLI reference reinforces the same point by noting that --bare mode skips auto-discovery of hooks, skills, plugins, MCP servers, auto memory, and CLAUDE.md, which shows that these memory and context layers are deliberately loaded components of the normal Claude Code environment rather than invisible background behavior.

In practical terms, CLAUDE.md tells Claude how to work in the repository, auto memory helps Claude carry forward learned preferences, and live project context comes from the files, structure, and tools Claude interacts with while doing the actual development work.

That is the real logic behind Claude Code memory.

·····

FOLLOW US FOR MORE.

·····

DATA STUDIOS

·····

·····