Skip to content

Commit eae5cb5

Browse files
committed
update README
1 parent 64e7103 commit eae5cb5

File tree

1 file changed

+4
-31
lines changed

1 file changed

+4
-31
lines changed

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

Lines changed: 4 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Run the [Claude Code](https://docs.anthropic.com/en/docs/agents-and-tools/claude
1414
```tf
1515
module "claude-code" {
1616
source = "registry.coder.com/coder/claude-code/coder"
17-
version = "1.4.0"
17+
version = "2.0.0"
1818
agent_id = coder_agent.example.id
1919
folder = "/home/coder"
2020
install_claude_code = true
@@ -30,7 +30,6 @@ module "claude-code" {
3030
## Prerequisites
3131

3232
- Node.js and npm must be installed in your workspace to install Claude Code
33-
- Either `screen` or `tmux` must be installed in your workspace to run Claude Code in the background
3433
- You must add the [Coder Login](https://registry.coder.com/modules/coder-login) module to your template
3534

3635
The `codercom/oss-dogfood:latest` container image can be used for testing on container-based workspaces.
@@ -48,8 +47,6 @@ The `codercom/oss-dogfood:latest` container image can be used for testing on con
4847
> Join our [Discord channel](https://discord.gg/coder) or
4948
> [contact us](https://coder.com/contact) to get help or share feedback.
5049
51-
Your workspace must have either `screen` or `tmux` installed to use this.
52-
5350
```tf
5451
variable "anthropic_api_key" {
5552
type = string
@@ -88,49 +85,25 @@ resource "coder_agent" "main" {
8885
module "claude-code" {
8986
count = data.coder_workspace.me.start_count
9087
source = "registry.coder.com/coder/claude-code/coder"
91-
version = "1.4.0"
88+
version = "2.0.0"
9289
agent_id = coder_agent.example.id
9390
folder = "/home/coder"
9491
install_claude_code = true
9592
claude_code_version = "0.2.57"
9693
9794
# Enable experimental features
98-
experiment_use_screen = true # Or use experiment_use_tmux = true to use tmux instead
9995
experiment_report_tasks = true
10096
}
10197
```
10298

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-
12699
## Run standalone
127100

128-
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.
101+
Run Claude Code as a standalone app in your workspace. This will install Claude Code and run it without any task reporting to the Coder UI.
129102

130103
```tf
131104
module "claude-code" {
132105
source = "registry.coder.com/coder/claude-code/coder"
133-
version = "1.4.0"
106+
version = "2.0.0"
134107
agent_id = coder_agent.example.id
135108
folder = "/home/coder"
136109
install_claude_code = true

0 commit comments

Comments
 (0)