Commit 2669f30
committed
docs(claude-code): add unattended-mode example for template admins
The most common template-admin use case is 'make Claude just work for
an agent or headless workspace without human interaction.' The existing
README shows envs, MCP, and a one-liner pre_install_script, but never
walks through how to skip the first-run wizard and the bypass-mode
consent banner.
Add a dedicated section documenting:
- settings.json with permissions.defaultMode = bypassPermissions,
permissions.deny allowlist, and skipDangerousModePermissionPrompt
(verified live against Claude Code CLI v2.1.117 on a workspace).
- ~/.claude.json hasCompletedOnboarding merged via jq so installer
keys (userID, firstStartTime, installMethod, autoUpdates,
migrationVersion) are preserved.
- A runtime-flag alternative for one-off 'claude -p' runs.
Verified the complete example end-to-end on dev.coder.com: fresh
workspace lands with the expected settings.json keys, onboarding
skipped, and installer-managed state intact.1 parent 615d41a commit 2669f30
1 file changed
Lines changed: 65 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
228 | 293 | | |
229 | 294 | | |
230 | 295 | | |
| |||
0 commit comments