Description
Environment
- Platform (select one):
- Anthropic API
- AWS Bedrock
- Google Vertex AI
- Other:
- Claude CLI version: 1.0.6 (Claude Code)
- Operating System: Ubuntu 22.04 (Linux 5.15.0-139-generic x86_64)
- Terminal: xterm-256color (VSCode)
Bug Description
Claude Code repeatedly asks to run list
and read
commands for directories and files it has already accessed during long coding sessions, even though it clearly has this information from earlier in the same session.
Steps to Reproduce
- Start a coding session in a project directory using Claude Code
- Work for an extended period (typically after 30+ minutes of active coding)
- Notice Claude Code asking to run
list
commands for directories it has already listed - Also occurs with
read
commands for files it has already accessed
Expected Behavior
Claude Code should remember directory contents and file contents from earlier in the same session without repeatedly requesting the same information.
Actual Behavior
Claude Code asks to re-run list
and read
commands for directories and files it has already processed, interrupting the coding workflow and creating redundant operations.
Additional Context
This appears to be a context/memory management issue where Claude Code loses track of what information it has already gathered during longer coding sessions. The behavior interrupts productivity as it repeatedly requests information it already possesses.
Current settings.json configuration:
{
"permissions": {
"allow": [
"*",
"Agent(*)",
"Agent",
"Bash(*)",
"Bash",
"Edit(*)",
"Edit",
"Find(*)",
"Glob(*)",
"Glob",
"Grep(*)",
"Grep",
"LS(*)",
"LS",
"List(*)",
"List",
"NotebookEdit(*)",
"NotebookEdit",
"NotebookRead(*)",
"NotebookRead",
"Read(*)",
"Read",
"Search",
"Search(*)",
"WebFetch(*)",
"WebFetch",
"WebFetch(domain:docs.anthropic.com)",
"WebFetch(domain:github.com)",
"WebFetch(domain:gitlab.com)",
"Write(*)",
"Write"
],
"deny": []
}
}
What is the right settings.json format to not have this problem anymore?