chenbhao commited on
Commit
ee39dae
·
1 Parent(s): 88db542

fix: auto-compact env in settings.json

Browse files
Files changed (1) hide show
  1. README.md +25 -1
README.md CHANGED
@@ -70,7 +70,14 @@ docker compose up -d
70
  # check in every browser
71
  firefox http://localhost:8080
72
 
73
- # allow tool search in ~/.bashrc
 
 
 
 
 
 
 
74
  export ENABLE_TOOL_SEARCH=true
75
  ```
76
 
@@ -110,6 +117,11 @@ nvim ~/.claude/settings.json
110
  "autoMemoryEnabled": true,
111
  "autoDreamEnabled": true
112
  }
 
 
 
 
 
113
  ```
114
 
115
  ## 5. Telegram - Interactive Config
@@ -126,8 +138,20 @@ nvim ~/.claude/settings.json
126
  ## 6. Auto Compact
127
 
128
  ```bash
 
 
 
 
 
 
 
 
 
129
  echo 'export CLAUDE_CODE_AUTO_COMPACT_WINDOW=57344' >> ~/.bashrc
130
  echo 'export CLAUDE_CODE_MAX_CONTEXT_TOKENS=61440' >> ~/.bashrc
 
 
 
131
  ```
132
 
133
  # Legacy Python Version
 
70
  # check in every browser
71
  firefox http://localhost:8080
72
 
73
+ # set tool_search env in ~/.claude/settings.json
74
+ {
75
+ "env": {
76
+ "ENABLE_TOOL_SEARCH": "true"
77
+ }
78
+ }
79
+
80
+ # or allow tool search in ~/.bashrc
81
  export ENABLE_TOOL_SEARCH=true
82
  ```
83
 
 
117
  "autoMemoryEnabled": true,
118
  "autoDreamEnabled": true
119
  }
120
+
121
+ # eg:
122
+ # ● Improved 1 memory fold
123
+ # ⎿ user_profile.md
124
+ # cd ~/.claude/projects
125
  ```
126
 
127
  ## 5. Telegram - Interactive Config
 
138
  ## 6. Auto Compact
139
 
140
  ```bash
141
+ # set env in ~/.claude/settings.json
142
+ {
143
+ "env": {
144
+ "CLAUDE_CODE_AUTO_COMPACT_WINDOW": "57344",
145
+ "CLAUDE_CODE_MAX_CONTEXT_TOKENS": "61440"
146
+ }
147
+ }
148
+
149
+ # or via bash set env
150
  echo 'export CLAUDE_CODE_AUTO_COMPACT_WINDOW=57344' >> ~/.bashrc
151
  echo 'export CLAUDE_CODE_MAX_CONTEXT_TOKENS=61440' >> ~/.bashrc
152
+
153
+ # effective = 108K - effectiveContextWindow - used for auto-compact summary
154
+ # threshold = 95K - autoCompactThreshold - buffer to avoid failed
155
  ```
156
 
157
  # Legacy Python Version