Claude Code: Claude apps gateway admin API adds a cost report
The Claude apps gateway admin API has a cost report for reading past spend over a date range in total, per developer, per day or per IdP group.
- Event type
- Feature
- Version
- v2.1.317
- Published by vendor
- Compiled here
What changed
5 points
The Claude apps gateway admin API gained a cost report for reading past spend over a date range in total, per developer, per day or per IdP group.
Official wording · c1
Added a cost report to the Claude apps gateway admin API, `GET /v1/organizations/analytics/cost`, for reading past spend over a date range in total, per developer, per day or per IdP group
Official wording · c1 Claude apps gateways with admin: set now keep a daily record of each developer's IdP groups for admin.identity_retention_days, and the cost report groups by it.
Official wording · c2
Added a daily record of each developer's IdP groups on Claude apps gateways with `admin:` set, kept for `admin.identity_retention_days`, which the cost report groups by
Official wording · c2 Agent SDK hook callbacks gained onFailure: "block", so a callback that fails blocks the action instead of letting it run.
Official wording · c3
Added `onFailure: "block"` for Agent SDK hook callbacks, so a callback that fails blocks the action instead of letting it run
Official wording · c3 The Read tool's "file unchanged since your last Read" stub was removed, so reading an unchanged file again returns its content.
Official wording · c5
Removed the Read tool's "file unchanged since your last Read" stub: reading an unchanged file again returns its content
Official wording · c5 claude -p no longer exits 0 when a full disk or quota loses its transcript or ~/.claude.json writes; it now prints an error and, in text and json output, exits 1, but full NFS exports may be missed.
Official wording · c6
Fixed `claude -p` exiting 0 when a full disk or quota lost its transcript or ~/.claude.json writes; it now prints an error and, in text and json output, exits 1. Full NFS exports may be missed
Official wording · c6
Change details
Fields in this table are taken verbatim from the official text.
| ID | Subject | Action | Object | Scope | Values |
|---|---|---|---|---|---|
| c1 | Claude apps gateway admin API | added | cost report for reading past spend over a date range in total, per developer, per day or per IdP group | Claude apps gateway admin API | |
| c2 | Claude apps gateways with admin: set | added | daily record of each developer's IdP groups, kept for admin.identity_retention_days, which the cost report groups by | Claude apps gateways with `admin:` set | |
| c3 | Agent SDK hook callbacks | added | onFailure: "block" so a failing callback blocks the action instead of letting it run | Agent SDK | |
| c5 | Read tool | removed | "file unchanged since your last Read" stub, so reading an unchanged file again returns its content | ||
| c6 | claude -p | fixed exiting 0 when a full disk or quota lost its transcript or ~/.claude.json writes | now prints an error and, in text and json output, exits 1; full NFS exports may be missed | text and json output | exactly 1 |
Version timeline
Published updates for this tool on this site, newest official date first.
- CurrentClaude apps gateway admin API adds a cost report
- Added sandbox.allowNestedUserNamespaces for sandboxed Linux commands
- Cache write token fields added to OpenTelemetry api_request event
About this tool
Claude Code
Claude Code is Anthropic's coding agent for reading codebase context, editing files, running commands and assisting development work.
CategoriesAI Coding
View Claude Code detailsRelated guides
- AI coding tools: choose by workflow, sign-in and costsChoose an AI coding tool by IDE or terminal workflow, sign-in method and billing limits. Compare six listed tools using official sources; no performance tests.
- AGENTS.md vs CLAUDE.md: which one Claude Code reads and how to share one fileBy default Claude Code reads AGENTS.md only when no CLAUDE.md exists; an @AGENTS.md import in CLAUDE.md shares one file. Not tested; check the official docs.
- Claude Code code-review plugin (a plugin command, not a Skill)Official Anthropic code-review plugin: /code-review runs multi-agent PR review, needs the gh CLI, not tested
- frontend-design: avoiding templated defaults in UI designAnthropic's frontend-design skill: plan the visual direction, check it against the brief, avoid templated defaults. Not tested; follow the official text.
- Splitting agent instructions by directory in a monorepoPer-directory AGENTS.md and CLAUDE.md in a monorepo: an example tree, then load scope, nesting and conflict rules per tool. Per official docs, not tested.
- skill-creator: Anthropic's skill for writing, editing and evaluating skillsAnthropic's skill-creator skill: draft a skill, run evals, revise it and tune its trigger description. Not tested here; follow the official text and docs.
- webapp-testing Skill: drive local web apps with PlaywrightOfficial Anthropic webapp-testing Skill: Python Playwright scripts for local web apps, not tested
Source and notes
Official source · github.com/anthropics/claude-code/releases/tag/v2.1.317
About this AI summary
This entry was compiled by AI from official sources and automatically checked. Found a mistake? Please send feedback.