Skip to content

Commit 4446321

Browse files
chaodu-agent超渡法師
andauthored
fix(config): correct working_dir for non-Kiro agents in example (#756)
Only kiro-cli and cursor-agent use /home/agent (their Dockerfiles create an agent user). All other backends (codex, gemini, copilot, claude, opencode) use Node.js base images with /home/node as the home directory. Co-authored-by: 超渡法師 <chaodu@openab.dev>
1 parent 01ecac2 commit 4446321

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

config.toml.example

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ working_dir = "/home/agent"
5353
# [agent]
5454
# command = "claude"
5555
# args = ["--acp"]
56-
# working_dir = "/home/agent"
56+
# working_dir = "/home/node"
5757
# ⚠️ SECURITY WARNING: Any env var listed here is accessible to the agent.
5858
# A user could trick the agent into leaking these values via prompt injection.
5959
# All supported backends support OAuth login — prefer that over env var API keys.
@@ -71,19 +71,19 @@ working_dir = "/home/agent"
7171
# [agent]
7272
# command = "codex"
7373
# args = ["--acp"]
74-
# working_dir = "/home/agent"
74+
# working_dir = "/home/node"
7575
# env = { OPENAI_API_KEY = "${OPENAI_API_KEY}" }
7676

7777
# [agent]
7878
# command = "gemini"
7979
# args = ["--acp"]
80-
# working_dir = "/home/agent"
80+
# working_dir = "/home/node"
8181
# env = { GEMINI_API_KEY = "${GEMINI_API_KEY}" }
8282

8383
# [agent]
8484
# command = "copilot"
8585
# args = ["--acp", "--stdio"]
86-
# working_dir = "/home/agent"
86+
# working_dir = "/home/node"
8787
# env = {} # Auth via: kubectl exec -it <pod> -- gh auth login -p https -w
8888

8989
# [agent]

docs/config-reference.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,28 +107,28 @@ working_dir = "/home/agent"
107107
[agent]
108108
command = "claude"
109109
args = ["--acp"]
110-
working_dir = "/home/agent"
110+
working_dir = "/home/node"
111111
env = { ANTHROPIC_API_KEY = "${ANTHROPIC_API_KEY}" }
112112

113113
# Codex
114114
[agent]
115115
command = "codex"
116116
args = ["--acp"]
117-
working_dir = "/home/agent"
117+
working_dir = "/home/node"
118118
env = { OPENAI_API_KEY = "${OPENAI_API_KEY}" }
119119

120120
# Gemini CLI
121121
[agent]
122122
command = "gemini"
123123
args = ["--acp"]
124-
working_dir = "/home/agent"
124+
working_dir = "/home/node"
125125
env = { GEMINI_API_KEY = "${GEMINI_API_KEY}" }
126126

127127
# GitHub Copilot
128128
[agent]
129129
command = "copilot"
130130
args = ["--acp", "--stdio"]
131-
working_dir = "/home/agent"
131+
working_dir = "/home/node"
132132

133133
# opencode
134134
[agent]

0 commit comments

Comments
 (0)