Overview
The Claude agent wraps the Claude Code CLI viaClaudeAgentModel. Configure it through Spring properties under agent-client.claude.*.
Configuration Properties
Prefix:agent-client.claude
Advanced Options
These options provide full parity with the Claude Code Python SDK:Permission Modes
Thepermission-mode property overrides yolo when set. Available modes:
Tool Filtering
Control which tools Claude can use:Budget Controls
Limit agent execution costs and turns:Structured Output
Request structured JSON output using a JSON schema:Trace Files
Enable JSONL trace output to capture tool calls, thinking blocks, and result metrics per invocation:call() writes one file like agent-run-20260528-143000-123-a1b2c3d4.jsonl containing Claude-specific events (tool_use, tool_result, text, thinking, result). The file path is available in the response metadata:
tail -f them during long-running sessions. When used with Agent Workflow, trace paths propagate automatically through the workflow journal.
These are Claude-specific JSONL traces, not provider-neutral journal events. See Agent Journal for the portable event layer.
Authentication
- Session Auth (Recommended)
- API Key