CLAUDE_CODE

An integration for Claude Code, Anthropic's terminal coding agent, in Coder Eval, a system that tests coding agents on prepared tasks. It covers authentication, model settings, permissions, isolation, skills, plugins, stopping rules, and token measurements.

In plain words
What is it for?
Use it to select the backend and credentials, set the agent's permissions and sandbox, enable skills or plugins, run evaluation tasks, and collect usage data.
Why use it?
It removes uncertainty about configuring Claude Code consistently and safely when running automated evaluations.

Agent

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/uipath/coder_eval/claude_code
Clone the repo
git clone --depth 1 https://github.com/UiPath/coder_eval
Per session 42 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,424 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00042 $0.03424
Opus 5 $0.00021 $0.01712
Sonnet 5 $0.00008 $0.00685
Haiku 4.5 $0.00004 $0.00342

Measured yesterday against content hash d31ecafeacee, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

CLAUDE_CODE scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

docs/agents/CLAUDE_CODE.md · 249 lines

How it starts

The opening of the file, as written. The whole thing — 249 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Running Claude Code in Coder Eval

Overview

Claude Code is the default agent in Coder Eval — agent.type: claude-code. It ships in the base install (no extra needed; the claude-agent-sdk is a core dependency), and most tasks and tutorials assume it. This guide is the reference for its config surface, authentication, and telemetry; for the agent-agnostic task schema see the Task Definition Guide.

Because agent.type defaults to claude-code in experiments/default.yaml, you can omit the type field entirely.

Setup

Nothing beyond the base install:

uv tool install coder-eval        # or: pip install coder-eval

Provide model credentials (see Authentication) and you're ready:

coder-eval run tasks/hello_date.yaml     # claude-code is the default

Authentication

Claude Code routing follows the --backend flag (or API_BACKEND env var):

Direct (default)

--backend direct calls the Anthropic API. The SDK picks its own credential, in order:

  1. ANTHROPIC_API_KEY in the environment / .env, or
  2. a cached claude login (subscription) session.

No key is validated at startup — the SDK fails with a clear error if none is found. The llm_judge / agent_judge criteria also need ANTHROPIC_API_KEY under the direct backend (they call api.anthropic.com).

AWS Bedrock

--backend bedrock routes through Bedrock with bearer-token auth. Set in .env:

Variable Purpose
AWS_BEARER_TOKEN_BEDROCK Bedrock bearer token (required)
AWS_REGION Bedrock region, e.g. eu-north-1 (required)
BEDROCK_MODEL Cross-region model id, e.g. eu.anthropic.claude-sonnet-5 (required)
BEDROCK_SMALL_MODEL Small/fast model id (falls back to the main model)

The agent sets CLAUDE_CODE_USE_BEDROCK=1 and forwards these into the SDK subprocess. BEDROCK_MODEL is the route-level default; an explicit --model / -D agent.model=… / task agent.model always wins over it, and bare aliases are auto-qualified to a regional inference profile (eu. / us. / apac. / global.).

Read the full file on GitHub · 249 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 249 lines · 42 tokens per session scan A d31ecafeacee

Subscribe to this mod's changes

CLAUDE_CODE is an agent published in the GitHub repository UiPath/coder_eval (119 stars, last pushed 3d ago), licensed Apache-2.0. It adds 42 tokens to every session and 3,424 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.