Repository navigation
Expand file tree
/
Copy pathtaskfile.yml
More file actions
44 lines (38 loc) · 2.51 KB
/
Copy pathtaskfile.yml
File metadata and controls
44 lines (38 loc) · 2.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Tasks contributed by the claude-code Feature (namespace: claude-code).
version: '3'
tasks:
version:
dir: '{{.USER_WORKING_DIR}}'
desc: 'Show which claude binary runs and its version (updates come from rebuilding; the auto-updater is off).'
cmds:
- command -v claude
- claude --version
host:
dir: '{{.USER_WORKING_DIR}}'
desc: 'Deprecated (claude-code 2.0 removes it): use task agents -- <name> (the agents Feature). Start or resume the host session with claude-host: the session named by HOST_SESSION (a UUID) is resumed, or created under that UUID the first time; unset, a plain new session. Extra arguments after --, e.g. task claude-code:host -- --model sonnet. From the host machine use task devcontainer:claude instead.'
interactive: true
cmds:
- claude-host {{.CLI_ARGS}}
fleet:
dir: '{{.USER_WORKING_DIR}}'
desc: 'Deprecated (claude-code 2.0 removes it): use the agent list and task agents:up (the agents Feature). Several sessions in one terminal, never a second copy: claude-fleet reads SESSIONS from the environment (one line per session, name|session-variable|dir|extra claude args), starts the ones not running in the background (a session counts as running when its id or its folder is in `claude agents --json`) and opens `claude agents`. Before reconciling it waits until the restored sessions are stable (-- --no-wait skips that). Duplicates (several live sessions for one agent) are reported, and -- --stop-duplicates stops the extras with `claude stop` (never rm). Ids are read from .devcontainer/.env first, then the environment. -- --plan prints what it would do and starts nothing; -- --no-view leaves the view out. From the host machine use task devcontainer:claude:fleet.'
interactive: true
cmds:
- claude-fleet {{.CLI_ARGS}}
doctor:
dir: '{{.USER_WORKING_DIR}}'
desc: 'Run Claude Code''s self-check (installation, auth, config dir).'
interactive: true
cmds:
- claude doctor
config:
dir: '{{.USER_WORKING_DIR}}'
desc: 'Show where Claude Code keeps its state in this container (CLAUDE_CONFIG_DIR), what backs it (volume, bind, image), whether it is writable and holds a login, and whether HOST_SESSION is set.'
silent: true
cmds:
- claude-code-setup
setup:
dir: '{{.USER_WORKING_DIR}}'
desc: 'Re-run the post-create setup: create CLAUDE_CONFIG_DIR (by default the Feature''s named volume) and hand it to the current user (what the Feature does on every create). Idempotent.'
cmds:
- claude-code-setup