Skip to main content

Overview

The Claude agent wraps the Claude Code CLI via ClaudeAgentModel. 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

The permission-mode property overrides yolo when set. Available modes:

Tool Filtering

Control which tools Claude can use:
allowed-tools and disallowed-tools are mutually exclusive in practice. If both are set, allowed-tools takes precedence.

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:
Each 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:
Or via the builder API:
Trace files are flushed per event during parsing, so you can 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