Skip to content

Commit 65320be

Browse files
docs: add session persistence section to claude-code README
1 parent 293f579 commit 65320be

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

registry/coder/modules/claude-code/README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,29 @@ module "claude-code" {
100100
}
101101
```
102102

103+
## Session Persistence (Experimental)
104+
105+
Enable automatic session persistence to maintain Claude Code sessions across workspace restarts:
106+
107+
```tf
108+
module "claude-code" {
109+
count = data.coder_workspace.me.start_count
110+
source = "registry.coder.com/coder/claude-code/coder"
111+
version = "1.4.0"
112+
agent_id = coder_agent.example.id
113+
folder = "/home/coder"
114+
install_claude_code = true
115+
116+
# Enable tmux with session persistence
117+
experiment_use_tmux = true
118+
experiment_tmux_session_persistence = true
119+
experiment_tmux_session_save_interval = "10" # Save every 10 minutes
120+
experiment_report_tasks = true
121+
}
122+
```
123+
124+
Session persistence automatically saves and restores your Claude Code environment, including working directory and command history.
125+
103126
## Run standalone
104127

105128
Run Claude Code as a standalone app in your workspace. This will install Claude Code and run it directly without using screen or any task reporting to the Coder UI.

0 commit comments

Comments
 (0)