Skip to content

Claude Code

CLI name: claude · Status: supported

Install Claude Code so claude is on PATH. Sign in the way Anthropic documents for headless use.

cli = "claude"
model = "sonnet" # or opus, haiku, or a full model id
profile = "edit"

extra_args are appended after adapter flags (see Agent TOML).

Each turn is roughly:

claude -p <prompt> --output-format stream-json --verbose [--model …] [--resume <id> | --append-system-prompt <role>] …
  • First turn: role text from roles/<role>.md goes in --append-system-prompt.
  • Later turns: --resume <session_id> from state.json.
  • Output: JSONL on stdout. Session id from any event; assistant text from the final result event; context from the last top-level assistant usage.

Turn logs: .wteam/<slug>/logs/<agent>-<turn>.log.

Claude is the reference implementation for profiles: rules map to --settings JSON and a permission mode. dontAsk denies anything not explicitly allowed.

Run wteam permissions --profile edit --cli claude before your first real run. Matrix detail: Permissions.

Variable Effect
WTEAM_CLAUDE_USER_SETTINGS=1 Allow user hooks, skills and permission rules (default: project + local only, slash commands off)