diff --git a/content/.metadata.json b/content/.metadata.json
index 8b7e66b147..87d247f6ff 100644
--- a/content/.metadata.json
+++ b/content/.metadata.json
@@ -1,7 +1,7 @@
{
"metadata": {
"version": "2.0",
- "fetch_date": "2026-11-25T00:28:34.510305Z",
+ "fetch_date": "2026-11-25T09:32:18.113345Z",
"section": "all"
},
"items": [
@@ -37,8 +37,8 @@
"url": "https://platform.claude.com/docs/en/manage-claude/authentication",
"status": "success",
"path": "en/manage-claude/authentication.md",
- "sha256": "8f891267444ef5454dd38448df0faf4defb537ff4cad2d58be0d8039ed5a070c",
- "size": 25209
+ "sha256": "af2ae671199986742ca008e35daacc8d63133ea2a700a3109122e6fde6fd1c18",
+ "size": 25518
},
{
"url": "https://platform.claude.com/docs/en/build-with-claude/overview",
@@ -51,15 +51,15 @@
"url": "https://platform.claude.com/docs/en/build-with-claude/working-with-messages",
"status": "success",
"path": "en/build-with-claude/working-with-messages.md",
- "sha256": "a4578eafae6b0acf3fd93f8f3d60387aa103f20bad5478f18d9e22d87223968e",
- "size": 38217
+ "sha256": "ddf373615acf1ed54f30b2a5f5edeeeaef927b28e243aadb2100b64fece0cd5c",
+ "size": 38855
},
{
"url": "https://platform.claude.com/docs/en/build-with-claude/handling-stop-reasons",
"status": "success",
"path": "en/build-with-claude/handling-stop-reasons.md",
- "sha256": "329f8a0f6a1d9aefab41e31f6ad6b5f143e29df10a982dcac87c1ab031f21713",
- "size": 125082
+ "sha256": "e73bc3d6dcb8b8593f3fe4d192d2dd573ab0704df82f66fb7ad3d609acff0f4c",
+ "size": 124121
},
{
"url": "https://platform.claude.com/docs/en/build-with-claude/refusals-and-fallback",
@@ -114,8 +114,8 @@
"url": "https://platform.claude.com/docs/en/build-with-claude/streaming",
"status": "success",
"path": "en/build-with-claude/streaming.md",
- "sha256": "3dee260fd841855f56a2dceba1e85dffdefe2f7709f3136fa7c4f9d3a2060bb6",
- "size": 53349
+ "sha256": "5f2e4d3559649aec8d41e0a9b85e1e218f6dcb61748ff32ebfc6954811564123",
+ "size": 53411
},
{
"url": "https://platform.claude.com/docs/en/build-with-claude/batch-processing",
@@ -156,8 +156,8 @@
"url": "https://platform.claude.com/docs/en/build-with-claude/effort",
"status": "success",
"path": "en/build-with-claude/effort.md",
- "sha256": "4872b07f34ce1dfd6c966a747e300522e0cde076f256070b066968f24b3f41d8",
- "size": 36440
+ "sha256": "97b187fef4549c13ccfe79465e9d70bd0f1820c6107a0bb4dabca4521fea1b5a",
+ "size": 36912
},
{
"url": "https://platform.claude.com/docs/en/build-with-claude/effort-per-message",
@@ -170,8 +170,8 @@
"url": "https://platform.claude.com/docs/en/build-with-claude/thinking",
"status": "success",
"path": "en/build-with-claude/thinking.md",
- "sha256": "9c0234af4b4f646bdb041a26fac57d2585009604398d2b6d4023433d3099b3a9",
- "size": 84732
+ "sha256": "94f8320b7612865d3a6df5a5cfe9166501fda01548f2b411959b8664e6094d82",
+ "size": 84795
},
{
"url": "https://platform.claude.com/docs/en/build-with-claude/thinking-steering-and-cost",
@@ -191,15 +191,15 @@
"url": "https://platform.claude.com/docs/en/build-with-claude/thinking-troubleshooting",
"status": "success",
"path": "en/build-with-claude/thinking-troubleshooting.md",
- "sha256": "8a4a3f2fbce174657e67e9fdcd660149e31ee942875b7117e586423e19a4fb1e",
- "size": 23212
+ "sha256": "651e8d10c0dadc6e4b62b1dbf1b8682bdc7589ac4ea3305e7c6f3a917f186421",
+ "size": 23232
},
{
"url": "https://platform.claude.com/docs/en/build-with-claude/extended-thinking",
"status": "success",
"path": "en/build-with-claude/extended-thinking.md",
- "sha256": "c6474317a705b3cc655a2e65cd3ba98b4917a5383c3d719773f0baf7a29a176b",
- "size": 23300
+ "sha256": "f903c483f854852ff93e40673836250b297686b7c9780b862d94e90ce07fcae3",
+ "size": 23760
},
{
"url": "https://platform.claude.com/docs/en/build-with-claude/preserved-thinking",
@@ -324,8 +324,8 @@
"url": "https://platform.claude.com/docs/en/agents-and-tools/tool-use/tool-search-tool",
"status": "success",
"path": "en/agents-and-tools/tool-use/tool-search-tool.md",
- "sha256": "487814c28867e468992b8ee37148e4dc7340476826174d472fb6475b0fbc554d",
- "size": 38849
+ "sha256": "64c07aca04a715f99511f5344ce016f0386179353cff58951e7769eee393a24a",
+ "size": 39281
},
{
"url": "https://platform.claude.com/docs/en/agents-and-tools/tool-use/memory-tool",
@@ -359,8 +359,8 @@
"url": "https://platform.claude.com/docs/en/agents-and-tools/tool-use/computer-use-tool",
"status": "success",
"path": "en/agents-and-tools/tool-use/computer-use-tool.md",
- "sha256": "9d25b5f6b2c2481e2f12a16b00c76e6b69af5fabe9abdc0573b9e3efd1ca5c3b",
- "size": 115929
+ "sha256": "d6532bd5ce23ada0a338728b0591b82d7fdab504932d5a6ef8a9acd0f77d8210",
+ "size": 116122
},
{
"url": "https://platform.claude.com/docs/en/agents-and-tools/tool-use/browser-use-tool",
@@ -422,22 +422,22 @@
"url": "https://platform.claude.com/docs/en/build-with-claude/context-windows",
"status": "success",
"path": "en/build-with-claude/context-windows.md",
- "sha256": "aa289e55ec1ee55ec7c1fc3d609372707bd09e5fc4d5c0b11f5fd816ce7382cc",
- "size": 16210
+ "sha256": "91878fe2fc5458456ab8b17e0dbc36bc5384a9336f7c509a812f586767c29f2d",
+ "size": 16375
},
{
"url": "https://platform.claude.com/docs/en/build-with-claude/context-editing",
"status": "success",
"path": "en/build-with-claude/context-editing.md",
- "sha256": "5e1b8ab78143f476053dccd0b3c9d6866fcb3538250379f07697ce6a135eb1c0",
- "size": 102314
+ "sha256": "edaa1ff4fda6b795c2d3238947cd110d527fcf10a64a97400ae3408f54d5ca28",
+ "size": 102250
},
{
"url": "https://platform.claude.com/docs/en/build-with-claude/prompt-caching",
"status": "success",
"path": "en/build-with-claude/prompt-caching.md",
- "sha256": "cbcba50751b133ed9f9ace7dbcb6d93b78312f7bf15136e4e9b0e4b1387c2ced",
- "size": 155653
+ "sha256": "00a0361bd0ec83b56f73cae233b56a0b292e52b60e0edf923a1bd2ba1f0ba26f",
+ "size": 155553
},
{
"url": "https://platform.claude.com/docs/en/build-with-claude/message-threads",
@@ -674,15 +674,15 @@
"url": "https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws",
"status": "success",
"path": "en/build-with-claude/claude-platform-on-aws.md",
- "sha256": "ebf212c87cac0a1fb17f8f961fb519abb8273706f32c7115a8ad1c70bb082473",
- "size": 87931
+ "sha256": "32d0891d3a6661457ac178efbbdd82e219183954fe134c40998c766e79562f47",
+ "size": 88107
},
{
"url": "https://platform.claude.com/docs/en/build-with-claude/claude-in-microsoft-foundry",
"status": "success",
"path": "en/build-with-claude/claude-in-microsoft-foundry.md",
- "sha256": "4da1ae6dc6c71f4cc5f2c25642f249eab5fe421550834a8458aa0fb592d5e1ca",
- "size": 35566
+ "sha256": "ad7a692a425893a15b98ada1d665114e6b3fd2201a2943120aa03b4d8c1f0299",
+ "size": 35608
},
{
"url": "https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/overview",
@@ -702,8 +702,8 @@
"url": "https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/google-managed",
"status": "success",
"path": "en/build-with-claude/claude-models-on-google-cloud/google-managed.md",
- "sha256": "ed4c1d031253c5d89e081479b9b4f9c5a2b5ad19955df79228fa3060ba389fc9",
- "size": 31768
+ "sha256": "48512742272e70a266361a67aa50afc5076d5d879c7e96b07f76dba115ab3c4d",
+ "size": 31622
},
{
"url": "https://platform.claude.com/docs/en/managed-agents/overview",
@@ -730,15 +730,15 @@
"url": "https://platform.claude.com/docs/en/managed-agents/migration",
"status": "success",
"path": "en/managed-agents/migration.md",
- "sha256": "63b71d1212a4d031c9d271263b47b3a515c6916517a502790763192f2b6c4d93",
- "size": 49407
+ "sha256": "58ed947607ed53114780effa0f90c91a46d65d3aaaf356e5129a9590d58cb282",
+ "size": 51378
},
{
"url": "https://platform.claude.com/docs/en/managed-agents/agent-setup",
"status": "success",
"path": "en/managed-agents/agent-setup.md",
- "sha256": "39d340a9a71b1f53914ee3ac55f38509d044e5c7a5bdc4e7f12be5c6fa4c1b43",
- "size": 38843
+ "sha256": "5919c4bab49522d4f15ac01f7f61d3ad2dcc6a245948ca7188e0675290d456f0",
+ "size": 38579
},
{
"url": "https://platform.claude.com/docs/en/managed-agents/tools",
@@ -968,8 +968,8 @@
"url": "https://platform.claude.com/docs/en/managed-agents/scheduled-deployments",
"status": "success",
"path": "en/managed-agents/scheduled-deployments.md",
- "sha256": "0197f9a1f8f3639c28c9af7bd88e9cdcdded4c08b0765ab0e5557810f0f992b3",
- "size": 32122
+ "sha256": "ef5d5b6a1f8f6e2374a01430b4956ab20e86cec4f603c467c5c5df1ba5f8f8d4",
+ "size": 32806
},
{
"url": "https://platform.claude.com/docs/en/managed-agents/self-hosted",
@@ -1087,8 +1087,8 @@
"url": "https://platform.claude.com/docs/en/manage-claude/admin-api",
"status": "success",
"path": "en/manage-claude/admin-api.md",
- "sha256": "4f8fb2fe066c282c1251f8e735e871c14e7b125d3599284951f26816f7a2c6aa",
- "size": 60236
+ "sha256": "4f0d19a323a0588988c1b601817f1db82f3fffa302ac48d264cc71a4700fadd1",
+ "size": 60132
},
{
"url": "https://platform.claude.com/docs/en/manage-claude/user-management",
@@ -1220,8 +1220,8 @@
"url": "https://platform.claude.com/docs/en/manage-claude/admin-api-keys",
"status": "success",
"path": "en/manage-claude/admin-api-keys.md",
- "sha256": "a31f67ad5046a7e3578a35f16a53f1a2571d2202a2fc706d82183768b303fdea",
- "size": 14896
+ "sha256": "4d66eaa007ced69227d6995b30fd0977b0df6b0c9f687c7c1245bf429e3656ff",
+ "size": 14674
},
{
"url": "https://platform.claude.com/docs/en/manage-claude/app-attest",
@@ -1332,8 +1332,8 @@
"url": "https://platform.claude.com/docs/en/manage-claude/analytics-api",
"status": "success",
"path": "en/manage-claude/analytics-api.md",
- "sha256": "f84b28be21f6ee53ea940ce8113c4cefa25a954905fe7851d12653a33d6cc8e8",
- "size": 16391
+ "sha256": "1f8c474a78c305f46ac41bc7c0c2955d587937b9b798034839d9b6aa6a4f429e",
+ "size": 16289
},
{
"url": "https://platform.claude.com/docs/en/manage-claude/claude-code-analytics-api",
@@ -1346,8 +1346,8 @@
"url": "https://platform.claude.com/docs/en/manage-claude/spend-limits-api",
"status": "success",
"path": "en/manage-claude/spend-limits-api.md",
- "sha256": "cd2ab7da7968acbf9affecf9ac9e3384cce13c980ff3f6b68d9d292c94053388",
- "size": 85480
+ "sha256": "ba567b89ceb4993b6a2a2ec6722ca58426d38433ad065dd096e05defe6ce613e",
+ "size": 85815
},
{
"url": "https://platform.claude.com/docs/en/manage-claude/opentelemetry",
@@ -1374,22 +1374,22 @@
"url": "https://platform.claude.com/docs/en/manage-claude/data-residency",
"status": "success",
"path": "en/manage-claude/data-residency.md",
- "sha256": "6f0350f5409a6f2541880d140506e805eb789be8f855185c0330b21da53474c4",
- "size": 25347
+ "sha256": "227983663e7edd1cf9e0f4f9874d44ee61cc5d5ec2a3ee3cc1dc01ed06dcea56",
+ "size": 25277
},
{
"url": "https://platform.claude.com/docs/en/manage-claude/api-and-data-retention",
"status": "success",
"path": "en/manage-claude/api-and-data-retention.md",
- "sha256": "3cbdc28c50fab3baa42c0832d6235303cc44407db78ddc7f9430fabc63fc1a53",
- "size": 43545
+ "sha256": "c1a30917a611d6462fa704fc2bf249d515994ac74efdaca7386e54025fe98891",
+ "size": 43746
},
{
"url": "https://platform.claude.com/docs/en/manage-claude/access-transparency",
"status": "success",
"path": "en/manage-claude/access-transparency.md",
- "sha256": "fe6cf46dd0b9f89b5be08b7b3134232ecb36745d3d67eb690d862515a3ec6450",
- "size": 25795
+ "sha256": "7f62be8670117b0ff21070f65d416af0ca6e662b9bebde91a5cf084ad6e0a830",
+ "size": 25809
},
{
"url": "https://platform.claude.com/docs/en/manage-claude/access-transparency-log",
@@ -1416,8 +1416,8 @@
"url": "https://platform.claude.com/docs/en/manage-claude/cmek-data-retention",
"status": "success",
"path": "en/manage-claude/cmek-data-retention.md",
- "sha256": "4d86dc5172e1b9749bba65539d25713a0dd47248cd6bef531ca099ed8cc913a2",
- "size": 3890
+ "sha256": "a9f9c4374150a338aab6729093609a9877e3efa7fbb47cffc52256b92bdb3fb7",
+ "size": 3932
},
{
"url": "https://platform.claude.com/docs/en/manage-claude/cmek-coverage-claude-platform",
@@ -1430,29 +1430,29 @@
"url": "https://platform.claude.com/docs/en/manage-claude/cmek-coverage-claude-enterprise",
"status": "success",
"path": "en/manage-claude/cmek-coverage-claude-enterprise.md",
- "sha256": "03abb43111b87586523aea11cf28d518d2670b554a45970af27c976415191812",
- "size": 5930
+ "sha256": "f43c217231c08fb8c9ca32f212f64eb4bc469ee352bac4962f1ce07e51e53721",
+ "size": 6274
},
{
"url": "https://platform.claude.com/docs/en/manage-claude/cmek-aws-kms",
"status": "success",
"path": "en/manage-claude/cmek-aws-kms.md",
- "sha256": "ed2463f466c756d749deffe5a33ea683882365162a445e6d2e2b3a446f2f7122",
- "size": 11703
+ "sha256": "945a03b03124efb21d1d6dcb65a8d5f3226a328ff458eaa546f6157de46dd2ab",
+ "size": 11745
},
{
"url": "https://platform.claude.com/docs/en/manage-claude/cmek-google-cloud-kms",
"status": "success",
"path": "en/manage-claude/cmek-google-cloud-kms.md",
- "sha256": "e7dc9f9790376767f17c9ecd8b299c3044998382776288c364f5fbfcb4526594",
- "size": 13816
+ "sha256": "17534d7c186fff678f83e7191167d8ad55a6bc8cb5c0f4e05ac9cc0ddc3772f9",
+ "size": 13858
},
{
"url": "https://platform.claude.com/docs/en/manage-claude/cmek-azure-key-vault",
"status": "success",
"path": "en/manage-claude/cmek-azure-key-vault.md",
- "sha256": "093e1cddae597cf4908810cf1709779b37c583b9e542353c0d944cfc1701d387",
- "size": 13644
+ "sha256": "8740a00260dc8cee36304d2ca5ff4cd111b8ffcd83fbd47e879179f425ebfcf9",
+ "size": 13686
},
{
"url": "https://platform.claude.com/docs/en/manage-claude/cmek-claude-platform-on-aws",
@@ -1486,8 +1486,8 @@
"url": "https://platform.claude.com/docs/en/manage-claude/cmek-troubleshooting",
"status": "success",
"path": "en/manage-claude/cmek-troubleshooting.md",
- "sha256": "50f70bc2c6a8e3d9ab972d5624d31874e1ca17272b85d4702c74e365f8075c50",
- "size": 10341
+ "sha256": "5d22d4cacbcbeddea796ac07c763bbb0fcffed3de898e7722a06584becd8482e",
+ "size": 10362
},
{
"url": "https://platform.claude.com/docs/en/manage-claude/inference-hooks",
@@ -1521,29 +1521,29 @@
"url": "https://platform.claude.com/docs/en/manage-claude/compliance-api-access",
"status": "success",
"path": "en/manage-claude/compliance-api-access.md",
- "sha256": "e276509dd21b1dc7e11ac0f49b68151de97f402f2c829b7bd5337f2cb6a7b3da",
- "size": 21421
+ "sha256": "9895aad6deccc39a4fc05b5890c3e9d974a448a2ed25d4afe05fc9bdb9d23bce",
+ "size": 20951
},
{
"url": "https://platform.claude.com/docs/en/manage-claude/compliance-activity-feed",
"status": "success",
"path": "en/manage-claude/compliance-activity-feed.md",
- "sha256": "5cbb084f330f53f0b6e3de4459bd14eaec17841b6454f803db13f8c08f84c83c",
- "size": 15207
+ "sha256": "f4ddf94757d7591d7ec8395920edc0109dd25834d3abce836e37de9d265fb610",
+ "size": 15796
},
{
"url": "https://platform.claude.com/docs/en/manage-claude/compliance-content-data",
"status": "success",
"path": "en/manage-claude/compliance-content-data.md",
- "sha256": "cb8117122e083fb7eca5d33bc6d2f7727cc6c0862a4744e1fd9cf148629e1d10",
- "size": 28919
+ "sha256": "5b75ef069ec0e9111a18ee89ec07dcad831d0b4b5a1f526ecb69e2ba0880210a",
+ "size": 30834
},
{
"url": "https://platform.claude.com/docs/en/manage-claude/compliance-sessions",
"status": "success",
"path": "en/manage-claude/compliance-sessions.md",
- "sha256": "6b6b0a01eae854e48b5cca5d9e329a670d4d277601e8a7131972a2116878d87d",
- "size": 50383
+ "sha256": "0fdd27cef9ed5c6a76ba3cf42a423268090d836e1f97e33c6fb62d92c9711820",
+ "size": 50836
},
{
"url": "https://platform.claude.com/docs/en/manage-claude/compliance-org-data",
@@ -1612,8 +1612,8 @@
"url": "https://platform.claude.com/docs/en/manage-claude/compliance-errors",
"status": "success",
"path": "en/manage-claude/compliance-errors.md",
- "sha256": "6461c60d4b64f188d3aa6a696b74f9d0e18062886ef77e3362c8f4c02b9bb504",
- "size": 52354
+ "sha256": "40715dc345236ea1b47facc06e3a679f714db28c95e4568c9c8c8c5d2a717379",
+ "size": 52462
},
{
"url": "https://platform.claude.com/docs/en/manage-claude/compliance-faq",
@@ -1675,8 +1675,8 @@
"url": "https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices",
"status": "success",
"path": "en/build-with-claude/prompt-engineering/claude-prompting-best-practices.md",
- "sha256": "e2eb2735d5364e88c262519476f64a5f5e5faaf57dc219b81b86c286a2b5a267",
- "size": 79317
+ "sha256": "f10184ae3290220ecbb2463bb484332da856ef725123b5e4819b3e32339cccf3",
+ "size": 79668
},
{
"url": "https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/prompting-claude-fable-5-2",
@@ -1808,22 +1808,22 @@
"url": "https://platform.claude.com/docs/en/models/fable-5-2/overview",
"status": "success",
"path": "en/models/fable-5-2/overview.md",
- "sha256": "c47ef77538f7ac423092c0c360a50169988eda6f408871b976347b355860a82d",
- "size": 10398
+ "sha256": "4786688504a7c7ca7b8af108954734b5cabc09d3f4fb10234b82f199068502b8",
+ "size": 10418
},
{
"url": "https://platform.claude.com/docs/en/models/fable-5-2/whats-new-fable-5-2",
"status": "success",
"path": "en/models/fable-5-2/whats-new-fable-5-2.md",
- "sha256": "0e8e79ec2c7668dc6ffe13dd0787fca25f8a561df33accd33dcd434c0b8fba8d",
- "size": 28308
+ "sha256": "dfecabf91142e40ed8ef4e8abf01c4a93d92f98798e19dade95643ec27f56cd0",
+ "size": 28328
},
{
"url": "https://platform.claude.com/docs/en/models/fable-5-2/migration-guide",
"status": "success",
"path": "en/models/fable-5-2/migration-guide.md",
- "sha256": "354ce2ce6660768e3e2af871793d40896baac40cfd2a54e785f331054ae184ce",
- "size": 72193
+ "sha256": "0e44e9c16f64b2f230dd435f287b305b8f6ba5929e5d2b3bbc808013d88cfbd8",
+ "size": 72478
},
{
"url": "https://platform.claude.com/docs/en/models/opus-5-5/overview",
@@ -1843,8 +1843,8 @@
"url": "https://platform.claude.com/docs/en/models/opus-5-5/migration-guide",
"status": "success",
"path": "en/models/opus-5-5/migration-guide.md",
- "sha256": "dab58cdf8d441f4d1f4955f73360cf765ae8b8bc52e7e78b16885d6d7fe6b6e7",
- "size": 91254
+ "sha256": "eb69aae4424820031dac9eb477a5fe0b1a0374f3e7dba0eb4b347a986befd734",
+ "size": 91448
},
{
"url": "https://platform.claude.com/docs/en/models/sonnet-5-5/overview",
@@ -1864,8 +1864,8 @@
"url": "https://platform.claude.com/docs/en/models/sonnet-5-5/migration-guide",
"status": "success",
"path": "en/models/sonnet-5-5/migration-guide.md",
- "sha256": "06a5c20e22984e37e07e3e0adcba8d44a6efc23411da00d8e2ecb8c17946b002",
- "size": 54263
+ "sha256": "4c2ea4b296417555fbf4951975edeb4f3b222847027aa8e0d510326add8aaf36",
+ "size": 54457
},
{
"url": "https://platform.claude.com/docs/en/models/haiku-5-5/overview",
@@ -1885,8 +1885,8 @@
"url": "https://platform.claude.com/docs/en/models/haiku-5-5/migration-guide",
"status": "success",
"path": "en/models/haiku-5-5/migration-guide.md",
- "sha256": "7779889c2352654d95ab8e07387d3f4a58a04f0cdfefcf2de65ee8fddb67149f",
- "size": 18542
+ "sha256": "53c18833d1bb30d598369d3ee7211f460a47446d7c176800c3824fa20af56466",
+ "size": 18736
},
{
"url": "https://platform.claude.com/docs/en/models/mythos-5-2/overview",
@@ -2011,15 +2011,15 @@
"url": "https://platform.claude.com/docs/en/about-claude/models/model-ids-and-versions",
"status": "success",
"path": "en/about-claude/models/model-ids-and-versions.md",
- "sha256": "821abd1b54ba7704c07c9fc7337e42c58f53da2fbd9956fd1fce3f307a3958bf",
- "size": 4923
+ "sha256": "b8f46160fcb350fa5501e04278fd5b2319571659e8fa3474ca6978e098858c50",
+ "size": 5684
},
{
"url": "https://platform.claude.com/docs/en/about-claude/model-deprecations",
"status": "success",
"path": "en/about-claude/model-deprecations.md",
- "sha256": "0289ee368d522d984505015751c7ddddb394d05a12caa205253e38f40606f4e3",
- "size": 13278
+ "sha256": "a52e76b027c0bda9f10828baa9a2a987193c11abac54799db0dbee176ec5132e",
+ "size": 13896
},
{
"url": "https://platform.claude.com/docs/en/resources/overview",
@@ -2032,8 +2032,8 @@
"url": "https://platform.claude.com/docs/en/about-claude/pricing",
"status": "success",
"path": "en/about-claude/pricing.md",
- "sha256": "488e03e9cc17c794593348133aa9869d650964d599af58604a9838a0ae47e816",
- "size": 40637
+ "sha256": "0f6deb28aacef431995b73e5eb024c86823df8189750045a86f9846e2dcaa2df",
+ "size": 40471
},
{
"url": "https://platform.claude.com/docs/en/about-claude/api-credits-for-subscribers",
@@ -2270,50 +2270,50 @@
"url": "https://platform.claude.com/docs/en/cli-sdks-libraries/sdks/python",
"status": "success",
"path": "en/cli-sdks-libraries/sdks/python.md",
- "sha256": "ff9a4533d2e5f09a7411f63dcd69fc89b446f4f3872c14b797114f7a50a910af",
- "size": 28312
+ "sha256": "e9a5c331665fa379fd5409d8a672e865da3020c1bd3eac92a12fb6e1202b0fce",
+ "size": 28120
},
{
"url": "https://platform.claude.com/docs/en/cli-sdks-libraries/sdks/typescript",
"status": "success",
"path": "en/cli-sdks-libraries/sdks/typescript.md",
- "sha256": "bb6bf567fc7bf89fcbb88d30aaed0e92282e7dc005f08620d2ef83e06d2cabe8",
- "size": 31886
+ "sha256": "8d10234931c329a4f1f606246a5717a5375b798318303971b5b20237bb4bcda9",
+ "size": 32218
},
{
"url": "https://platform.claude.com/docs/en/cli-sdks-libraries/sdks/csharp",
"status": "success",
"path": "en/cli-sdks-libraries/sdks/csharp.md",
- "sha256": "a1c71838ecff3d6bcf2905854753df2674f7aec52a2c14f68b25c6c9ead29574",
- "size": 17095
+ "sha256": "cc4b55c46617ddf6f32df6aa6141b6b2f609295c5304f255690508d1af9f01e2",
+ "size": 16580
},
{
"url": "https://platform.claude.com/docs/en/cli-sdks-libraries/sdks/go",
"status": "success",
"path": "en/cli-sdks-libraries/sdks/go.md",
- "sha256": "868544704f2f2d490dc4dc116665f23eebe95d398b03591774ce418ac7b12753",
- "size": 27726
+ "sha256": "5b92c6e71f05c2f3c75bbebc0a6f82450b609a0015b0e7f958b11cc8093de89c",
+ "size": 28956
},
{
"url": "https://platform.claude.com/docs/en/cli-sdks-libraries/sdks/java",
"status": "success",
"path": "en/cli-sdks-libraries/sdks/java.md",
- "sha256": "def5972dd97500fed68d3ea189fbdae6f25cde85dbbfe24198f2b27470fd9999",
- "size": 51021
+ "sha256": "b02680e81f931512f6e127e0cabfa5cb93712e8e2326de6459bbf505c40d48e9",
+ "size": 50358
},
{
"url": "https://platform.claude.com/docs/en/cli-sdks-libraries/sdks/php",
"status": "success",
"path": "en/cli-sdks-libraries/sdks/php.md",
- "sha256": "79533486941360598a5d12ee1600ac9ca10d7748beea7aaccbf263383b681846",
- "size": 13847
+ "sha256": "97545fdc4dcda14bd6f59828e23fef83d267d226432f7271c36eb924b0a039c9",
+ "size": 13050
},
{
"url": "https://platform.claude.com/docs/en/cli-sdks-libraries/sdks/ruby",
"status": "success",
"path": "en/cli-sdks-libraries/sdks/ruby.md",
- "sha256": "581583a7cecc4ae0c20e3af4b4475b3f248cd902f2e3a336e10bf85905523730",
- "size": 16748
+ "sha256": "67898fd751e8e2232fac659cc46808902a2c0f545bea1d81d868b91054918084",
+ "size": 16134
},
{
"url": "https://platform.claude.com/docs/en/cli-sdks-libraries/libraries/apple-foundation-models",
@@ -2347,8 +2347,8 @@
"url": "https://platform.claude.com/docs/en/api/errors",
"status": "success",
"path": "en/api/errors.md",
- "sha256": "b4d21321dd003f02ecde246521fb6c20d522c88a8c78db2591e3708bccb61db7",
- "size": 36076
+ "sha256": "d529d3de38d3daeb123c3386d127bf4fe06d15b8341188e8ffb883da4ae1cb90",
+ "size": 50266
},
{
"url": "https://platform.claude.com/docs/en/api/opentelemetry/spans",
@@ -2361,8 +2361,8 @@
"url": "https://platform.claude.com/docs/en/api/rate-limits",
"status": "success",
"path": "en/api/rate-limits.md",
- "sha256": "ee9398324908dde08908b49c7d6ff53a522e6757c17aaf45294abbdb10d3c4ef",
- "size": 28241
+ "sha256": "f2786a94c71b8c3da397e945291d328026f7404cf374f49b43f95aaa3aaa6948",
+ "size": 28300
},
{
"url": "https://platform.claude.com/docs/en/api/service-tiers",
@@ -2375,8 +2375,8 @@
"url": "https://platform.claude.com/docs/en/api/claude-platform-on-aws-iam-actions",
"status": "success",
"path": "en/api/claude-platform-on-aws-iam-actions.md",
- "sha256": "d5b5d598220681a97975559b55255eb51a4118ca988865b7f5ebf5be6092b116",
- "size": 42700
+ "sha256": "2e91255f3bcc8bb88ba98afa5f01788c6bc2e69864a752f5daf67ed20885a302",
+ "size": 42702
},
{
"url": "https://platform.claude.com/docs/en/api/claude-models-on-google-cloud-anthropic-managed-iam-permissions",
@@ -2431,8 +2431,8 @@
"url": "https://platform.claude.com/docs/en/release-notes/overview",
"status": "success",
"path": "en/release-notes/overview.md",
- "sha256": "1d3fb48bc2ac8490f4d465c93a101a7a1b7d3ba469c4ee31807d40f86270ba80",
- "size": 148590
+ "sha256": "0a05a304ac6278e8fa22f87e3615e7f5a438fe891250a21bb756c48a79921bc8",
+ "size": 155139
},
{
"url": "https://platform.claude.com/docs/en/api/messages",
@@ -6645,15 +6645,22 @@
"url": "https://platform.claude.com/docs/en/claude_api_primer",
"status": "success",
"path": "en/claude_api_primer.md",
- "sha256": "b2fcff3437bd4fa5a7294fee83abebb6e5cb8bd4de0628b4380c486d6c9dbdd9",
- "size": 31201
+ "sha256": "c4ddf616114b0811e8a2381847e986760c5761268a987d21da02b6649b53cc45",
+ "size": 32004
+ },
+ {
+ "url": "https://platform.claude.com/docs/en/api/handle-errors",
+ "status": "success",
+ "path": "en/api/handle-errors.md",
+ "sha256": "c9922ad8262208da64213e7df1b7baabd2af075bd6d224e7d8929aa34dc34797",
+ "size": 19410
},
{
"url": "https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/customer-managed-keys",
"status": "success",
"path": "en/manage-claude/enterprise-frontier-safeguards/customer-managed-keys.md",
- "sha256": "11cb57db3d514b43e1fd949b9289efe9c74d26fb1041fb6cc25dd33a8850bade",
- "size": 11087
+ "sha256": "5d920a6ccae463c88cd63699f5d2abd8ad47b04e6bb10aa6341347f5fe398769",
+ "size": 11303
},
{
"url": "https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/customer-owned-storage",
@@ -6680,8 +6687,8 @@
"url": "https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/faq",
"status": "success",
"path": "en/manage-claude/enterprise-frontier-safeguards/faq.md",
- "sha256": "71f0231bc47a4177416199110f656c973f470c937bd8976007235f8cb5c5bee6",
- "size": 22158
+ "sha256": "c0e2b066ea972ce266f259dfdb7c2095668dffcca2af6aec60e5fcbc61047382",
+ "size": 23187
},
{
"url": "https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/flagged-cases",
@@ -6701,8 +6708,8 @@
"url": "https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/overview",
"status": "success",
"path": "en/manage-claude/enterprise-frontier-safeguards/overview.md",
- "sha256": "43fe2630c62d78bbec04d26c0ad6ab168b1c0d3487c42043e79d280790824050",
- "size": 5920
+ "sha256": "30088c7980a043cdd34367ecbbb347a68eeb60bd683cda4c28e21e222a96299a",
+ "size": 6886
},
{
"url": "https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/safety-case-files",
@@ -6715,8 +6722,8 @@
"url": "https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/safety-cases-api",
"status": "success",
"path": "en/manage-claude/enterprise-frontier-safeguards/safety-cases-api.md",
- "sha256": "d403cb14c3409045e8bd72376704e76b854887a52d28b05177db1a5b16339ba1",
- "size": 17173
+ "sha256": "367ef446c80a45a95bcdf8cd41de9443163538c4641933e7e153e0e343dcd545",
+ "size": 17232
},
{
"url": "https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/setup-amazon-bedrock",
@@ -6729,15 +6736,15 @@
"url": "https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/setup-claude-models-on-google-cloud-anthropic-managed",
"status": "success",
"path": "en/manage-claude/enterprise-frontier-safeguards/setup-claude-models-on-google-cloud-anthropic-managed.md",
- "sha256": "66b1e82390de9cdd7293ed211863aa3d55f1fe7e7dae6406a22127236991abbe",
- "size": 17559
+ "sha256": "51dc98a578258d57f1181eaeab386ef5d88609be580cd321778bee676c5de746",
+ "size": 18209
},
{
"url": "https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/setup-claude-platform-on-aws",
"status": "success",
"path": "en/manage-claude/enterprise-frontier-safeguards/setup-claude-platform-on-aws.md",
- "sha256": "81f5f12e262fd4c2641c64d10ae5c4b29148777a348b0741129c3637a7d5e278",
- "size": 26036
+ "sha256": "2e09112ea0f537398a64c4a39f6b0187bafdd71228a98b06ace9cb87f3a1adc7",
+ "size": 25987
},
{
"url": "https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/setup-console",
@@ -6750,50 +6757,50 @@
"url": "https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/setup-google-cloud-agent-platform",
"status": "success",
"path": "en/manage-claude/enterprise-frontier-safeguards/setup-google-cloud-agent-platform.md",
- "sha256": "1eb85f1d9f652ee7a92bdd631e330faa9db07ec5e3918ea53c280fd2e2b38936",
- "size": 1059
+ "sha256": "e6632c2dad3b7df26bfd7a02d33d02dc6233e23889aea09032f8cafbe625aae5",
+ "size": 1415
},
{
"url": "https://code.claude.com/docs/en/overview",
"status": "success",
"path": "en/docs/claude-code/overview.md",
- "sha256": "966993397d19e6a81a2d36bb562b0a3c99fbc7198ff618b9fe1cfdd99f4f1427",
- "size": 17484
+ "sha256": "c7a21c8546eabeca62c8650a6029aaaed7e60b749bdb9ce408a9898f5269ce2c",
+ "size": 17554
},
{
"url": "https://code.claude.com/docs/en/quickstart",
"status": "success",
"path": "en/docs/claude-code/quickstart.md",
- "sha256": "a03b7b51866f1832cc982c804c08b31eb4351e28312d25b9a50a950659ea7c71",
- "size": 12822
+ "sha256": "db50a4785ade1e8037bac1118a51d17289867142a1e7e36eeff2ce876ad83d8d",
+ "size": 12768
},
{
"url": "https://code.claude.com/docs/en/changelog",
"status": "success",
"path": "en/docs/claude-code/changelog.md",
- "sha256": "ed4af84e73b69bfa9946be0a42f726eadb3761c3455b481e8831e2fc6d6a944f",
- "size": 1423491
+ "sha256": "beacac96daa7b0f701390f350acd6153012185b4f2ed6bd58369aaff9f0ac8a0",
+ "size": 1445423
},
{
"url": "https://code.claude.com/docs/en/how-claude-code-works",
"status": "success",
"path": "en/docs/claude-code/how-claude-code-works.md",
- "sha256": "f4db25ce5155b1b313a8b485edb528b6025754fe91a656cdfbcd9781ee80d74a",
- "size": 19880
+ "sha256": "0542e1d7bd66e6a2a22b2d590dff1db8bbbffe878f21278d2037f926b99b41ef",
+ "size": 19718
},
{
"url": "https://code.claude.com/docs/en/features-overview",
"status": "success",
"path": "en/docs/claude-code/features-overview.md",
- "sha256": "cf27c8f13d5ad56752541702ff79de34a201cfade3c81caffe3b37e150811b4e",
- "size": 29548
+ "sha256": "d7608d5adefaf75bc4c6479a18d883bb45d4aafb68b6a320f565ef0dfb8d7346",
+ "size": 29475
},
{
"url": "https://code.claude.com/docs/en/claude-directory",
"status": "success",
"path": "en/docs/claude-code/claude-directory.md",
- "sha256": "f58fe203bac365757c68879a3ab3518d6f4bb6fe5e5eabaf435a7fbdc3fe0b5a",
- "size": 46005
+ "sha256": "8302bad7d41c2a7cab0693b221c8eee7dd3ec8c136cca193469198948652bf8a",
+ "size": 45991
},
{
"url": "https://code.claude.com/docs/en/context-window",
@@ -6813,8 +6820,8 @@
"url": "https://code.claude.com/docs/en/memory",
"status": "success",
"path": "en/docs/claude-code/memory.md",
- "sha256": "9fbde66337b06f8bd8b448394da1c8f237f4a59eb24a0716d519d7336894ca88",
- "size": 55452
+ "sha256": "7e52db857de441b381a3ee7ce1182a4267f6bbddee08000574e61e54fc335eac",
+ "size": 55421
},
{
"url": "https://code.claude.com/docs/en/sessions",
@@ -6841,36 +6848,36 @@
"url": "https://code.claude.com/docs/en/best-practices",
"status": "success",
"path": "en/docs/claude-code/best-practices.md",
- "sha256": "d7649bd1fd76696865dd7e0527c92744f3d196e7bfad5be4c514ff65aaaa4fda",
- "size": 52243
+ "sha256": "37be345e32beaaa7866eb84a7f2c3a91f27158ed39718a5c9abf56bde0baf2d1",
+ "size": 52225
},
{
"url": "https://code.claude.com/docs/en/platforms",
"status": "success",
"path": "en/docs/claude-code/platforms.md",
- "sha256": "9ad9b8367594a90d7d2a0dd5edae923af96e1095d324dead862cc77221e8fd13",
- "size": 10234
+ "sha256": "cf2211e9a39fbc7a5ff052a3fae67bad056d22985b2d91a7370cae4fce7d8353",
+ "size": 9489
},
{
"url": "https://code.claude.com/docs/en/remote-control",
"status": "success",
"path": "en/docs/claude-code/remote-control.md",
- "sha256": "046308342d8a1fd6d7795bc70bff97f8611c2c1c3e91958b3d14d88730b29202",
- "size": 68090
+ "sha256": "6ccf4d662dd14305b02d42c27ded6dac3ad0e24d29afd9319cad84a55e3b6039",
+ "size": 67720
},
{
"url": "https://code.claude.com/docs/en/claude-projects",
"status": "success",
"path": "en/docs/claude-code/claude-projects.md",
- "sha256": "5bb767bacdc146169fb4e59f2d16750d16c08445c7e84ba4130f993dc80c54b4",
- "size": 62633
+ "sha256": "bb001025ad31826102295f48c7f08ae68f7560834511163e29f6e6b6d604c893",
+ "size": 62524
},
{
"url": "https://code.claude.com/docs/en/mobile",
"status": "success",
"path": "en/docs/claude-code/mobile.md",
- "sha256": "c58cd96c297d33d9168bac3cabc45857b38c9570b06ac12789fcefbd91825e0f",
- "size": 9080
+ "sha256": "06880f66d1c7e2b8e2a619183d0eb80c4d97f0c41b2d04d936d9042c5381222f",
+ "size": 8971
},
{
"url": "https://code.claude.com/docs/en/chrome",
@@ -6890,8 +6897,8 @@
"url": "https://code.claude.com/docs/en/vs-code",
"status": "success",
"path": "en/docs/claude-code/vs-code.md",
- "sha256": "b3b547d5f0cddd0408801efbde1d98183d5be4a8d06a827dbdb68f7c6ec3f2c4",
- "size": 108234
+ "sha256": "1d16ab5e234c4492426869eed76cde418299ad3a2d4ca4e8f5c6c2e87940eb35",
+ "size": 108169
},
{
"url": "https://code.claude.com/docs/en/jetbrains",
@@ -6904,36 +6911,36 @@
"url": "https://code.claude.com/docs/en/slack",
"status": "success",
"path": "en/docs/claude-code/slack.md",
- "sha256": "32bc604d9a6694fd0f0a9c52cbfffdc0ccc87bd6159feb5fcfc48687676b16e1",
- "size": 15585
+ "sha256": "588c3948b8791b141c97cfa48946bcc7c2525e372b506778109755d7ec418f11",
+ "size": 1099
},
{
"url": "https://code.claude.com/docs/en/web-quickstart",
"status": "success",
"path": "en/docs/claude-code/web-quickstart.md",
- "sha256": "6af1a45c08b310fb173394900a2150aa00dfa9b02fa86a0478d8e55148d5cd25",
- "size": 26676
+ "sha256": "9f663b0fc547e5b540be4d7f5e1c1570790ffd2677cd4bf8c67cbda834a0c4ae",
+ "size": 26623
},
{
"url": "https://code.claude.com/docs/en/claude-code-on-the-web",
"status": "success",
"path": "en/docs/claude-code/claude-code-on-the-web.md",
- "sha256": "8d7f501e1810d373f315cd08701a1f70c66345f01c0721d10584f0e73a9e750c",
- "size": 47671
+ "sha256": "7b934fc27f3b6d36679e41bf2867f359de2680603f8625cfe09128246dd6e27f",
+ "size": 47859
},
{
"url": "https://code.claude.com/docs/en/share-sessions",
"status": "success",
"path": "en/docs/claude-code/share-sessions.md",
- "sha256": "711ad7430b2acf8f32847d2bec40b023c1fe154cc7bfcb7ab0cde1eba4522958",
- "size": 8700
+ "sha256": "0104dc0c3c142ff3a52bd71c366078d163fc69d82f204b49e3487e69a81ef2fa",
+ "size": 8680
},
{
"url": "https://code.claude.com/docs/en/routines",
"status": "success",
"path": "en/docs/claude-code/routines.md",
- "sha256": "50f4e606ce1cd7960ed944140669d270cdadbf34bc45345166dfb0edc099e463",
- "size": 50106
+ "sha256": "dc0e388ab27fd45e1421989a9ce7cb4af726b0ecd6fea165ad0966b2ed146182",
+ "size": 50210
},
{
"url": "https://code.claude.com/docs/en/desktop-quickstart",
@@ -6946,8 +6953,8 @@
"url": "https://code.claude.com/docs/en/desktop",
"status": "success",
"path": "en/docs/claude-code/desktop.md",
- "sha256": "265d24c53d3db19fe2c847738e20b8da9a5b795b43d6871ed0404a4223011280",
- "size": 230181
+ "sha256": "325175a43f4c3422a98213b46dceeb1aaed0484aa93091dfe7b4b2418a4b4054",
+ "size": 231399
},
{
"url": "https://code.claude.com/docs/en/desktop-linux",
@@ -6974,8 +6981,8 @@
"url": "https://code.claude.com/docs/en/desktop-ios-simulator",
"status": "success",
"path": "en/docs/claude-code/desktop-ios-simulator.md",
- "sha256": "54ef0dbb48a74bc3259a89f754e28000b1ff847082f0e398ec73c541792ffbaf",
- "size": 15469
+ "sha256": "184a9fe9f2b7b087ed3bf2ad828b5f275affd6ef7a23a4cd87a829fc6e372302",
+ "size": 15493
},
{
"url": "https://code.claude.com/docs/en/claude-ship",
@@ -6995,15 +7002,15 @@
"url": "https://code.claude.com/docs/en/code-review",
"status": "success",
"path": "en/docs/claude-code/code-review.md",
- "sha256": "f10d8b83116869878b8a430b0c2695a7454308b2742a40cc9a33937527285bb6",
- "size": 10772
+ "sha256": "61855844dc0bb13f197f1c3c6ee14abfbf4d1514de19e35da986fa41920b65f1",
+ "size": 10758
},
{
"url": "https://code.claude.com/docs/en/code-review-setup",
"status": "success",
"path": "en/docs/claude-code/code-review-setup.md",
- "sha256": "9f8c9e67dc7e2fcd2dfaa1dca9a4f5d3020a786caf95fae6391f49db7e106553",
- "size": 16663
+ "sha256": "7958b28942681866acced2db8242a782d6701a65547be05601ad4636d3fff924",
+ "size": 16664
},
{
"url": "https://code.claude.com/docs/en/code-review-customize",
@@ -7100,8 +7107,8 @@
"url": "https://code.claude.com/docs/en/approvals-policy",
"status": "success",
"path": "en/docs/claude-code/approvals-policy.md",
- "sha256": "f5d56ff921b14b0614332c3af6fb83bb8ca5d230e91b0d05d02b9571283eb147",
- "size": 32320
+ "sha256": "af7707bd90fdda555454a3bb955223ed4d6a4c7da5a215cb5e1b50d8caca0ffe",
+ "size": 32947
},
{
"url": "https://code.claude.com/docs/en/approvals-classifiers",
@@ -7114,8 +7121,8 @@
"url": "https://code.claude.com/docs/en/approvals-troubleshooting",
"status": "success",
"path": "en/docs/claude-code/approvals-troubleshooting.md",
- "sha256": "4df6b3987b93731a9f6d538184a86fce1156bd36a4a65e86c3f48653aea88037",
- "size": 8939
+ "sha256": "9a284a13f3ee2faedbf410b31fa87ff9b974a8c13ae919ce79d47ba56bf963a5",
+ "size": 9285
},
{
"url": "https://code.claude.com/docs/en/ship-command",
@@ -7128,15 +7135,15 @@
"url": "https://code.claude.com/docs/en/ship-command-troubleshooting",
"status": "success",
"path": "en/docs/claude-code/ship-command-troubleshooting.md",
- "sha256": "27880632e452a2a377cc266253d242394688bcd6d5f7b9499200a787466882e5",
- "size": 25227
+ "sha256": "70fd1de274f45e02d7e0daa688b2706d880a552a5a8eeac2077657db78b02f07",
+ "size": 26433
},
{
"url": "https://code.claude.com/docs/en/code-review-local",
"status": "success",
"path": "en/docs/claude-code/code-review-local.md",
- "sha256": "092b76076a9fad31f02a4054ae6f601d6b864ffc07030e90ef3991e7e30ec6f5",
- "size": 14272
+ "sha256": "69708d348024fb5a7b80a681a27ba02ab60da8a651bee36df940cd8d2881a7c6",
+ "size": 14275
},
{
"url": "https://code.claude.com/docs/en/ultrareview",
@@ -7191,22 +7198,22 @@
"url": "https://code.claude.com/docs/en/sub-agents",
"status": "success",
"path": "en/docs/claude-code/sub-agents.md",
- "sha256": "a751a8e69f618d15d4a5a6c66075fd4306b0cced42e7c411039890ae70c594ef",
- "size": 114706
+ "sha256": "9e223cb6656a18c9244ce019fdd1635871f1dd96ba0425dcff64a965978f1e5a",
+ "size": 114798
},
{
"url": "https://code.claude.com/docs/en/agent-view",
"status": "success",
"path": "en/docs/claude-code/agent-view.md",
- "sha256": "09e4870a39d9f4bb01b04bae641cbdd139f7ae9717aeecd161b876489a52f5c6",
- "size": 146664
+ "sha256": "12c79547e5ac5cbd0d554ac98ddbea6e8c4bf3903bb7247f65eff1b5d14abac1",
+ "size": 146753
},
{
"url": "https://code.claude.com/docs/en/agent-teams",
"status": "success",
"path": "en/docs/claude-code/agent-teams.md",
- "sha256": "d5ebbeeb8925b0a9ef4fb02ad2beba79e16410b1d2b30365e9049daf37770bb9",
- "size": 44281
+ "sha256": "742a5e15697d90b09c48f85b83c61a1acf1d5fe88680c1bf36cd69ad9d5b5c9a",
+ "size": 44265
},
{
"url": "https://code.claude.com/docs/en/cross-session-messaging",
@@ -7219,15 +7226,15 @@
"url": "https://code.claude.com/docs/en/workflows",
"status": "success",
"path": "en/docs/claude-code/workflows.md",
- "sha256": "2c54dee952d49103a93fa36a218cce57e43c2a9b1b5b0d3af579cbb319fbc7c4",
- "size": 45739
+ "sha256": "c9c492efe2a00956c94c8237803b91734e79dc866b604c86c215e9bc25cad83d",
+ "size": 45722
},
{
"url": "https://code.claude.com/docs/en/worktrees",
"status": "success",
"path": "en/docs/claude-code/worktrees.md",
- "sha256": "ab3125062341999ec3cc5d4beaa0359ace849677763967afad11e797a48e38a7",
- "size": 45886
+ "sha256": "1b3eac588abbe62de80f6f6d4275c80de00d989883007cddcf9cdb773b373f20",
+ "size": 45969
},
{
"url": "https://code.claude.com/docs/en/mcp-quickstart",
@@ -7240,36 +7247,36 @@
"url": "https://code.claude.com/docs/en/mcp",
"status": "success",
"path": "en/docs/claude-code/mcp.md",
- "sha256": "c3cf54941780f151ab5f6405b1633a546b01c86705faa3ac5f1deca6f20202ad",
- "size": 178397
+ "sha256": "785996c216e026b162e398212c49d72b27e11cda3893ef5abb18216fd1813681",
+ "size": 178384
},
{
"url": "https://code.claude.com/docs/en/skills",
"status": "success",
"path": "en/docs/claude-code/skills.md",
- "sha256": "537004c08aad82555e5abc166d39bdcae46efd68372f08b06a65c528f2d795fd",
- "size": 120971
+ "sha256": "3de6c6acc4b9a446307c112a90fe40a8739b1d28796595952cd146f37483509d",
+ "size": 121182
},
{
"url": "https://code.claude.com/docs/en/artifacts",
"status": "success",
"path": "en/docs/claude-code/artifacts.md",
- "sha256": "3fb736364a655bfda27f5a040a0ba1006b8d24638ee0aa0c059ea343643ed0c2",
- "size": 43589
+ "sha256": "652edf7de4a41902bbbb9f41f4a487451298355ce3a0e781692dd0df4bfc8e87",
+ "size": 42615
},
{
"url": "https://code.claude.com/docs/en/hooks-guide",
"status": "success",
"path": "en/docs/claude-code/hooks-guide.md",
- "sha256": "b3139b7a8e1e8057122ee300f8e907667856b43dd97f5e8de862724be9cd19a1",
- "size": 66719
+ "sha256": "ac8da89e572e2fb9051b75483f1f874099eb68d2aff27f5030be062c1a4e7bb4",
+ "size": 66983
},
{
"url": "https://code.claude.com/docs/en/channels",
"status": "success",
"path": "en/docs/claude-code/channels.md",
- "sha256": "5869e37fca1da097cb678b0c7471048479643367a6ed04c854dd4e72ec80301e",
- "size": 23358
+ "sha256": "2b3fba96b91e0004cd9694db24fb725349f2c19b5a58100419590d64eef04c04",
+ "size": 23356
},
{
"url": "https://code.claude.com/docs/en/scheduled-tasks",
@@ -7303,15 +7310,15 @@
"url": "https://code.claude.com/docs/en/large-codebases",
"status": "success",
"path": "en/docs/claude-code/large-codebases.md",
- "sha256": "cb93dfcc2bb8cbefdecab2b4e1c1464de20449a2e89d47c459d9ed7fa68587e1",
- "size": 35574
+ "sha256": "672c530f0ba7e26782daf13f7e51d0f7aa065da7351cf341ec29f49e8c9438d6",
+ "size": 35518
},
{
"url": "https://code.claude.com/docs/en/troubleshoot-install",
"status": "success",
"path": "en/docs/claude-code/troubleshoot-install.md",
- "sha256": "e37daa530b1646bccad27e2c3bf3239e5851d155f0d8c8e4959cca44b0bff092",
- "size": 82233
+ "sha256": "49e94c86f96d7ea5519a4d034327ad3967c3b561526a6e2a5ed641f8e0858787",
+ "size": 82304
},
{
"url": "https://code.claude.com/docs/en/troubleshooting",
@@ -7324,22 +7331,22 @@
"url": "https://code.claude.com/docs/en/debug-your-config",
"status": "success",
"path": "en/docs/claude-code/debug-your-config.md",
- "sha256": "39eccc7f88f52f10d32b66f05d49076f08d6302ab290c10431e902953d2748ae",
- "size": 18619
+ "sha256": "f23dd2450f7d010818c0ab74078e5a054c9b1c79cbd7ba06cf2144f9b49aec4e",
+ "size": 18644
},
{
"url": "https://code.claude.com/docs/en/errors",
"status": "success",
"path": "en/docs/claude-code/errors.md",
- "sha256": "4f01b691d34a7168130973e19bedb312d5d07e56d2d115b4da41656f2e0b8364",
- "size": 647428
+ "sha256": "e4d74f5e0dc5453ab6b522faabb541e3062722a6ff93912a2fb1cf3944a7a83c",
+ "size": 651339
},
{
"url": "https://code.claude.com/docs/en/plugins/overview",
"status": "success",
"path": "en/docs/claude-code/plugins/overview.md",
- "sha256": "5b2e2a96004dcad154766249daaed46d8b6e47cb6e385f7bfcd4d5623ddd9b0a",
- "size": 14479
+ "sha256": "36825b056a315733a83b41da39b12c331cfe23f2f0bcd91ed1457ec5b0f8f9b1",
+ "size": 14453
},
{
"url": "https://code.claude.com/docs/en/plugins/install",
@@ -7373,8 +7380,8 @@
"url": "https://code.claude.com/docs/en/plugins/create",
"status": "success",
"path": "en/docs/claude-code/plugins/create.md",
- "sha256": "d3cf342ac0441cb170005622e14dce855cba843e81c5cede58cbcb8679883d66",
- "size": 26125
+ "sha256": "19edb3aa48d1c06edc451741d17ec2c0fdc8d3e27043f1a035ea9edd12f66039",
+ "size": 26119
},
{
"url": "https://code.claude.com/docs/en/plugins/components",
@@ -7394,15 +7401,15 @@
"url": "https://code.claude.com/docs/en/plugin-evals",
"status": "success",
"path": "en/docs/claude-code/plugin-evals.md",
- "sha256": "f612b7a35aa589f2beeeded25d8143492fde96a41688bf016856679a58211a98",
- "size": 65271
+ "sha256": "998e3a9072a39a3c4349b443f2cf0df391449d7db2e92446bd8bc07531f59543",
+ "size": 66572
},
{
"url": "https://code.claude.com/docs/en/plugins/publish",
"status": "success",
"path": "en/docs/claude-code/plugins/publish.md",
- "sha256": "83da0dae13e713af29ed56401dd5dd955ffe72b15232d7552d6e9efd613562f0",
- "size": 17178
+ "sha256": "8ae2bb906582cce46190d9807edadb7e44a793fe48be32be47d020c01fbac719",
+ "size": 17220
},
{
"url": "https://code.claude.com/docs/en/plugins/measure",
@@ -7422,29 +7429,29 @@
"url": "https://code.claude.com/docs/en/plugins/mods/overview",
"status": "success",
"path": "en/docs/claude-code/plugins/mods/overview.md",
- "sha256": "5a4b5ffd892271c876daa765db19730aa0fba35bed0c5a703c1be096bf60713c",
- "size": 26078
+ "sha256": "f21a6c66135d091594be096e5810e4935c69c0c575e00ca0c5d422c40f0c59ad",
+ "size": 26036
},
{
"url": "https://code.claude.com/docs/en/plugins/mods/create",
"status": "success",
"path": "en/docs/claude-code/plugins/mods/create.md",
- "sha256": "d75d7e3fa6eb90bffc6697baa373ba8fa2ac2376f7afa8a3a11e5995b4561bc6",
- "size": 25931
+ "sha256": "89dd52f97b5e246ce98ff5a177c8d66e0b15c5889cb8808ef4ccdcb6d13a9a41",
+ "size": 26291
},
{
"url": "https://code.claude.com/docs/en/plugins/mods/reference",
"status": "success",
"path": "en/docs/claude-code/plugins/mods/reference.md",
- "sha256": "a654a17c7e618c0ca7a74aa01160a3ddba3095454c1a9992c0e295d90d875522",
- "size": 56175
+ "sha256": "0e053e7b33af029f1ec67d540527521531a79ff8815b2da02268149796f89d6f",
+ "size": 58075
},
{
"url": "https://code.claude.com/docs/en/plugins/mods/interface",
"status": "success",
"path": "en/docs/claude-code/plugins/mods/interface.md",
- "sha256": "4e9d17ced69ccc569a57d3d5bb8099be1175ed32017fb81e8b1e5fedc12567fd",
- "size": 65813
+ "sha256": "99215e525ffd0089756c73058f4e22ed5a70f0033e0093693a24e31ad061e0cc",
+ "size": 88657
},
{
"url": "https://code.claude.com/docs/en/plugins/mods/gallery",
@@ -7457,8 +7464,8 @@
"url": "https://code.claude.com/docs/en/plugins/mods/events",
"status": "success",
"path": "en/docs/claude-code/plugins/mods/events.md",
- "sha256": "b33b13f1aa7b6adf01430a3b64c6bd9ed5143accbb1e4642373dcbe082813a1d",
- "size": 38245
+ "sha256": "114410d09eabe34302864f1898f896a75efe2b7a6c8bca1a8a3b29beb82ac12a",
+ "size": 38508
},
{
"url": "https://code.claude.com/docs/en/plugins/mods/api",
@@ -7471,15 +7478,15 @@
"url": "https://code.claude.com/docs/en/plugins/mods/test",
"status": "success",
"path": "en/docs/claude-code/plugins/mods/test.md",
- "sha256": "ecd103b6b851eaaf887c3b26c34f4cfdb9d547bcbe6d8b2df147bd32c788bd5e",
- "size": 28177
+ "sha256": "fab0d9574a4c7f59651b389816de3e4c6f0a4e8f7663ce893b6bfc8678e908d2",
+ "size": 28302
},
{
"url": "https://code.claude.com/docs/en/plugins/mods/troubleshoot",
"status": "success",
"path": "en/docs/claude-code/plugins/mods/troubleshoot.md",
- "sha256": "4e73e2142a109e215d6a2af1445947833bf9fc270b001cda613a37ce8ceae693",
- "size": 40109
+ "sha256": "6a78f334afcd5fe2c9cc094348e2042ff7f53e0292fe8a2ac8119f5555c5d010",
+ "size": 41391
},
{
"url": "https://code.claude.com/docs/en/plugins/create-marketplace",
@@ -7492,8 +7499,8 @@
"url": "https://code.claude.com/docs/en/plugins/host-marketplace",
"status": "success",
"path": "en/docs/claude-code/plugins/host-marketplace.md",
- "sha256": "3171e4023e590b260ff641a0ef9c916c959f679761309dfc4e5fcaf663cb26eb",
- "size": 39774
+ "sha256": "cf6cf7eaf1822de7ec7a5319a47aeb5f88ce3fd6e98f2947e7b415d79bf8c26e",
+ "size": 39817
},
{
"url": "https://code.claude.com/docs/en/plugins/relevance",
@@ -7527,8 +7534,8 @@
"url": "https://code.claude.com/docs/en/plugins/loading",
"status": "success",
"path": "en/docs/claude-code/plugins/loading.md",
- "sha256": "204eaf089d2eaaf0b03bb1a9625860ccc67510c47a65abe61aa8840c71f2ffb1",
- "size": 47481
+ "sha256": "c5b2e5677ba0d322cea98e825b916f6685d08b3c9a7fdbb9044aac156fa0052e",
+ "size": 47490
},
{
"url": "https://code.claude.com/docs/en/plugins/manifest-reference",
@@ -7548,15 +7555,15 @@
"url": "https://code.claude.com/docs/en/plugins/cli-reference",
"status": "success",
"path": "en/docs/claude-code/plugins/cli-reference.md",
- "sha256": "b20242c4f98eb8f3d7d0cb63c8f4ebd7b5f63552c741a03fc3a1e99ec0652316",
- "size": 70940
+ "sha256": "776414e2dd12d7356f427b9ee951a313bc88b556354cb0e575ec7b01ae078a44",
+ "size": 70932
},
{
"url": "https://code.claude.com/docs/en/admin-setup",
"status": "success",
"path": "en/docs/claude-code/admin-setup.md",
- "sha256": "39595e60c97fdee3e209b8ad724f80c9fa528d84e02524bb6cd95e73761ffcf0",
- "size": 33872
+ "sha256": "7edfa2c3218f37426beb3a98208246bc808089df800ec2c41b853fa63c5cb8ce",
+ "size": 34060
},
{
"url": "https://code.claude.com/docs/en/setup",
@@ -7569,22 +7576,22 @@
"url": "https://code.claude.com/docs/en/authentication",
"status": "success",
"path": "en/docs/claude-code/authentication.md",
- "sha256": "4aa31cb81c1cc1509f87635bda9587e0b4e68346d18b7d314b244d91ce051310",
- "size": 38032
+ "sha256": "b7f53a69dadcbea9010e802460e34782074fac94a42dbfcd5ce5a70d62be0fc0",
+ "size": 37977
},
{
"url": "https://code.claude.com/docs/en/managed-settings",
"status": "success",
"path": "en/docs/claude-code/managed-settings.md",
- "sha256": "7132f52b628914befc6f9d76344694b4d976901fe6bd86eb5255767176c02536",
- "size": 66581
+ "sha256": "7a54e72aee8a05d8cd9134fc07dcf6e93774bffdb25b6aff36ac524eea601489",
+ "size": 66636
},
{
"url": "https://code.claude.com/docs/en/server-managed-settings",
"status": "success",
"path": "en/docs/claude-code/server-managed-settings.md",
- "sha256": "10149940c1f16b657b60d2caee19f0ce37e29d2ad67fd8c8380faa60d1a283e3",
- "size": 55305
+ "sha256": "f3d794983224ecc5590e6160dfb3a09dabfb3b89d5a22e93e76e2c15dd130b19",
+ "size": 55360
},
{
"url": "https://code.claude.com/docs/en/managed-mcp",
@@ -7611,8 +7618,8 @@
"url": "https://code.claude.com/docs/en/feature-availability",
"status": "success",
"path": "en/docs/claude-code/feature-availability.md",
- "sha256": "156a2eb8d13fbeb31abeef993a645ae6837ed82e6c23d89e2bb1479702ee5c9c",
- "size": 29811
+ "sha256": "e204ca3451fe2b5eb0bd8ab57e4244c746eefa78bc7d3ce8eafa960d6fe32ee0",
+ "size": 29717
},
{
"url": "https://code.claude.com/docs/en/amazon-bedrock",
@@ -7653,8 +7660,8 @@
"url": "https://code.claude.com/docs/en/network-config",
"status": "success",
"path": "en/docs/claude-code/network-config.md",
- "sha256": "97dafaee4c121b77ee87b852cfd19d35fc7a9b8e059dfeca83092ff705732e26",
- "size": 36649
+ "sha256": "f3a8a3a2562d38b8e324389f0f1b67b2476632489c298e63103ea40c31141ede",
+ "size": 36646
},
{
"url": "https://code.claude.com/docs/en/corporate-launcher",
@@ -7730,8 +7737,8 @@
"url": "https://code.claude.com/docs/en/llm-gateway-connect",
"status": "success",
"path": "en/docs/claude-code/llm-gateway-connect.md",
- "sha256": "66a220c65179fe2601bf9e9fe4f1516d2a7f63ad4a0b22ff0c45b602f572ac30",
- "size": 46634
+ "sha256": "cf561ea099b6611d0590e564535133f7e16a2649ec86532fccafa2cf0958e4d3",
+ "size": 46531
},
{
"url": "https://code.claude.com/docs/en/llm-gateway-rollout",
@@ -7751,15 +7758,15 @@
"url": "https://code.claude.com/docs/en/monitoring-usage",
"status": "success",
"path": "en/docs/claude-code/monitoring-usage.md",
- "sha256": "92d730e29fa952ac7cb8f72c522cc0f69a5f7d64d260b68dbcb1ed170bb55212",
- "size": 182577
+ "sha256": "3d2acf52a057c903a308047771f1bec4e10b3ff9340c46e8acb643c5dca61a4b",
+ "size": 183788
},
{
"url": "https://code.claude.com/docs/en/costs",
"status": "success",
"path": "en/docs/claude-code/costs.md",
- "sha256": "944ba153970b73ef824aff8d8498da154e354778e65a3d86871f7962b32ac543",
- "size": 46789
+ "sha256": "a77557a9985a8e59d982e7b97a592a61fdc30a37957e9f7af091c37c731b3dd2",
+ "size": 46791
},
{
"url": "https://code.claude.com/docs/en/analytics",
@@ -7807,43 +7814,43 @@
"url": "https://code.claude.com/docs/en/champion-kit",
"status": "success",
"path": "en/docs/claude-code/champion-kit.md",
- "sha256": "d69c906d4eeadefa85e833eff305715bfbcd0e935c0082776c5c331cab5cae8f",
- "size": 16522
+ "sha256": "8ebc927881e15bc476c13b2fabc188cfa7b6146ffec176189d49c1b3eaf7185e",
+ "size": 16487
},
{
"url": "https://code.claude.com/docs/en/settings",
"status": "success",
"path": "en/docs/claude-code/settings.md",
- "sha256": "db27bceb64784e9431eef99c2c7cdf64c5e70ff948bcabecba15e246c5754e13",
- "size": 46754
+ "sha256": "7587a3251756cd151948718b70fff20fd26e3a4b545858d172d0941d57ab8f10",
+ "size": 46708
},
{
"url": "https://code.claude.com/docs/en/settings-reference",
"status": "success",
"path": "en/docs/claude-code/settings-reference.md",
- "sha256": "b1c11e0e008f0f2ef2f5f2e75017dd079e08072a91788276293cc8a136dd2e40",
- "size": 462356
+ "sha256": "f87b28f014d323f1d99655f4dd8f329693e8295eec0f1cecf8af0bcc534a5249",
+ "size": 462577
},
{
"url": "https://code.claude.com/docs/en/settings-example",
"status": "success",
"path": "en/docs/claude-code/settings-example.md",
- "sha256": "cac911d94631e3a20a0b720d43f6f71c3c90af796a2ff823b389e79de82aee51",
- "size": 15447
+ "sha256": "9b76b3d42abb3cb0a46232ce39a2ee2399022dfb712b4bc08be4442bc20bbdea",
+ "size": 15449
},
{
"url": "https://code.claude.com/docs/en/permissions",
"status": "success",
"path": "en/docs/claude-code/permissions.md",
- "sha256": "632480530539f2bd206317f93e2079283c2d756d4a7aec454d3d38a97eb057f3",
- "size": 93863
+ "sha256": "687a80f8ae55138a03648fbd54fa1c109291656a512a8ed28c1c3f2825460615",
+ "size": 94797
},
{
"url": "https://code.claude.com/docs/en/permission-modes",
"status": "success",
"path": "en/docs/claude-code/permission-modes.md",
- "sha256": "ab3f652c58048d8e75ac129a79d06dfd9d0e1b0f3e3d908a64531ff1d342f179",
- "size": 122029
+ "sha256": "a0a9337806f1cc91a103bf6c7e39b0c9dccf1b01ac5a6f3c1d6ca3aa28fb5dc7",
+ "size": 121942
},
{
"url": "https://code.claude.com/docs/en/auto-mode-classifier-billing",
@@ -7870,8 +7877,8 @@
"url": "https://code.claude.com/docs/en/cloud-environments",
"status": "success",
"path": "en/docs/claude-code/cloud-environments.md",
- "sha256": "fe6eecbd603f6c424fe6d0916cb93af263358d0bf97137a5c34d7dd9682d816b",
- "size": 67170
+ "sha256": "31e38896dbbeb74ebc5471b05bfd8f3d57134d2e2d7063945466032849a15720",
+ "size": 67124
},
{
"url": "https://code.claude.com/docs/en/self-hosted-environments",
@@ -7898,8 +7905,8 @@
"url": "https://code.claude.com/docs/en/self-hosted-environments-configuration",
"status": "success",
"path": "en/docs/claude-code/self-hosted-environments-configuration.md",
- "sha256": "8e8fba8f4b44154477d08356262187a15a11d5448cc1a3744275dd38f7bfe7e7",
- "size": 106672
+ "sha256": "ac98c78146986c3ab14e895b711c395842b265a37f4902bd2ca8f56f2542af45",
+ "size": 106366
},
{
"url": "https://code.claude.com/docs/en/self-hosted-environments-testing",
@@ -7926,22 +7933,22 @@
"url": "https://code.claude.com/docs/en/model-config",
"status": "success",
"path": "en/docs/claude-code/model-config.md",
- "sha256": "1cdaf31e2e7f32a13ab3d6ed3ece595d6018959d3588d4b5c949f4d5439f1c8d",
- "size": 134651
+ "sha256": "5af716d1c4a3db4f932fc9dd5400403f50f335d67a737ff1134dac8757eab0da",
+ "size": 134668
},
{
"url": "https://code.claude.com/docs/en/fast-mode",
"status": "success",
"path": "en/docs/claude-code/fast-mode.md",
- "sha256": "d465037ac1c7ba585208daa2aa412f34e9369792e807c99989b486931d0728fd",
- "size": 24790
+ "sha256": "6a4f16862f23c7333513f05c5c8d9547ee4d6fe5c0ba43732a7cb8110ae1f2fc",
+ "size": 24770
},
{
"url": "https://code.claude.com/docs/en/advisor",
"status": "success",
"path": "en/docs/claude-code/advisor.md",
- "sha256": "37dad77df876763c46d676d951e915b90e93df69fd501550f1774f92f1afd1a7",
- "size": 18577
+ "sha256": "148b72ab9dea292f1597af6a363f1a8f2079a2b469cb2f4479e9a3a73cb348fa",
+ "size": 18560
},
{
"url": "https://code.claude.com/docs/en/code-mode",
@@ -7982,8 +7989,8 @@
"url": "https://code.claude.com/docs/en/voice-dictation",
"status": "success",
"path": "en/docs/claude-code/voice-dictation.md",
- "sha256": "44356543ccc5cc86661883c39e3309633da2ebf535126abe3e5cad1f64067d4e",
- "size": 18863
+ "sha256": "87a15cabf43071927fe9b3d6988ce695761b733a3e3799ecc1b3973eed11bbff",
+ "size": 22158
},
{
"url": "https://code.claude.com/docs/en/statusline",
@@ -8010,22 +8017,22 @@
"url": "https://code.claude.com/docs/en/commands",
"status": "success",
"path": "en/docs/claude-code/commands.md",
- "sha256": "625e4bf89701ed30f21454cb28f914f6e225f9ea773628491c83a181bac8316f",
- "size": 60336
+ "sha256": "5a93368682edf9e360ca714723adae0de52b976d2b3258fb4f24078552462fe0",
+ "size": 60251
},
{
"url": "https://code.claude.com/docs/en/env-vars",
"status": "success",
"path": "en/docs/claude-code/env-vars.md",
- "sha256": "126e4a1f848303a8c2b82ac765cac340837bee45dd30a87c3c2c8630628c0bcb",
- "size": 194724
+ "sha256": "30cd22fe95a40ced8d175d368d5e915441014255f40965e681d2a3dcbdff317e",
+ "size": 194781
},
{
"url": "https://code.claude.com/docs/en/tools-reference",
"status": "success",
"path": "en/docs/claude-code/tools-reference.md",
- "sha256": "43d1fb02bb8ac3f886a575bd31fe1a799f37cdeb107ed2b1d2e4892eebb9aacf",
- "size": 99740
+ "sha256": "fed5908233528b94f388ac06eef60268158aa6ec775b5943d7c1c26fc3bfb2f2",
+ "size": 99807
},
{
"url": "https://code.claude.com/docs/en/interactive-mode",
@@ -8045,8 +8052,8 @@
"url": "https://code.claude.com/docs/en/hooks",
"status": "success",
"path": "en/docs/claude-code/hooks.md",
- "sha256": "d9698600d0fc1fd6b9c80a2eccf43f383c07218aaaeb74a44d6b44f7ee6dd676",
- "size": 293845
+ "sha256": "d16003851f60562eaa793e6270316b17550f8e24691214d7d798e5a503537c79",
+ "size": 301732
},
{
"url": "https://code.claude.com/docs/en/channels-reference",
@@ -15500,15 +15507,15 @@
"url": "https://claude.com/docs/third-party/claude-desktop/extensions",
"status": "success",
"path": "claude/third-party/claude-desktop/extensions.md",
- "sha256": "de9cde6fe56889f1e85cc0d0ed199bdbebfe8bb7fa6df36b7b95b2c7326597ff",
- "size": 101440
+ "sha256": "a3c9b51b6afc969206fff11deb212ca5f7bf4ce62910ba5c0b80e21f24867508",
+ "size": 101937
},
{
"url": "https://claude.com/docs/third-party/claude-desktop/feature-matrix",
"status": "success",
"path": "claude/third-party/claude-desktop/feature-matrix.md",
- "sha256": "f7bef40e988f18c773a6d32b942a416065328ae9f4ce3172484b5f1ceba0f064",
- "size": 9194
+ "sha256": "37208d2ec46a7e1b8afefd4091fc6b1e566615633d8569311664810450acca3e",
+ "size": 9629
},
{
"url": "https://claude.com/docs/third-party/claude-desktop/foundry",
@@ -15528,8 +15535,8 @@
"url": "https://claude.com/docs/third-party/claude-desktop/import",
"status": "success",
"path": "claude/third-party/claude-desktop/import.md",
- "sha256": "5b5bca47e4c5a338e60ab2139c33c106e7b0492ae9e8c177f4527a189b80e320",
- "size": 56130
+ "sha256": "a3218e9df5ae4f53617f0a59eb47aa8ca6df4d92f1ec2fec287bc0b7a26f6aaa",
+ "size": 56991
},
{
"url": "https://claude.com/docs/third-party/claude-desktop/in-app-configuration",
@@ -15612,8 +15619,8 @@
"url": "https://claude.com/docs/third-party/claude-desktop/scheduled-tasks",
"status": "success",
"path": "claude/third-party/claude-desktop/scheduled-tasks.md",
- "sha256": "8288b409afc9d7707328fd4952ade5dfe9e91068507314d1739f6c19b80d3034",
- "size": 6805
+ "sha256": "13aa546f5035676f9001715dc904701ca6e6617d5918a67177462d8abcb72426",
+ "size": 7439
},
{
"url": "https://claude.com/docs/third-party/claude-desktop/ssh-remote-sessions",
@@ -32430,67 +32437,39 @@
"size": 4749
},
{
- "url": "https://www.anthropic.com/legal/archive/79dbc8c6-7f64-43d6-8101-207cede59a4d",
+ "url": "https://www.anthropic.com/legal/archive/63888185-843f-445e-abe3-4f0cb047d118",
"status": "success",
"path": "legal/consumer-terms/2025-10-08.md",
- "sha256": "400ef51aacda9fee0c89a230a6f3680973355a4aa487dd0bd8a279c48539a59e",
- "size": 30187
+ "sha256": "a9b3fda5fbc9a20bbb227f1bbb2e689dba495c0a8395443eb19b111c3d6aeeb4",
+ "size": 28125
},
{
- "url": "https://www.anthropic.com/legal/archive/80e847ae-5c9e-4a7b-b2cb-88895aa972d5",
+ "url": "https://www.anthropic.com/legal/archive/86f776c8-c9ba-4ca3-a016-43bbeb7fbeb0",
"status": "success",
"path": "legal/consumer-terms/2025-05-01.md",
- "sha256": "18eabe74702caf2fc87818d457178fc25065794541eb2ebfc9815b221d77c377",
- "size": 27979
+ "sha256": "0ec4b1811aad0d0476712c1b1fc0c3dc19b2d751833d1170c12a18ed3f6070b4",
+ "size": 27918
},
{
- "url": "https://www.anthropic.com/legal/archive/99a99900-9830-4383-85ab-47896850d1e5",
- "status": "success",
- "path": "legal/consumer-terms/2025-04-15.md",
- "sha256": "37784515ca0397ef27ed33e6e05366ee152185da4d05af01084158c8b2d447a2",
- "size": 27543
- },
- {
- "url": "https://www.anthropic.com/legal/archive/df08d2e9-1a7d-4f92-8d52-ea57c42712d7",
+ "url": "https://www.anthropic.com/legal/archive/a8fad402-75fc-429f-95e7-019f83d4879c",
"status": "success",
"path": "legal/consumer-terms/2025-02-19.md",
- "sha256": "8ed868bbe9e58be932df17230913b2d1caa53f6b6354ed9f15baeb516c914c82",
- "size": 26835
- },
- {
- "url": "https://www.anthropic.com/legal/archive/90113ac5-6846-4777-84d8-edde3719ac06",
- "status": "success",
- "path": "legal/consumer-terms/2024-06-13.md",
- "sha256": "49a8aa6cada3e9e23141a19ba178bd13107795216c30d1d4b68b25a5dd66822a",
- "size": 26052
- },
- {
- "url": "https://www.anthropic.com/legal/archive/d1642ca5-a466-4326-ac3d-a9de6e60e627",
- "status": "success",
- "path": "legal/consumer-terms/2024-05-01.md",
- "sha256": "39ecf4dff43adca35400c9bb57e8fa8f2f480a9dd6b5b00660ba8932ce6338c1",
- "size": 26375
- },
- {
- "url": "https://www.anthropic.com/legal/archive/60422e4b-4c80-462d-af4a-7ddd10289cf4",
- "status": "success",
- "path": "legal/consumer-terms/2024-04-15.md",
- "sha256": "fba9bf784c2a28a36cef15eeb175d69562c0581681a1afad022ac37b3b47e719",
- "size": 25549
+ "sha256": "333b7cab6fb4d312e289ee7e0b7acc64eef9ca32bd070619cfe99a981f5b381b",
+ "size": 26015
},
{
- "url": "https://www.anthropic.com/legal/archive/71085c3c-857c-464d-8075-ae918f0e5555",
+ "url": "https://www.anthropic.com/legal/archive/521a6551-d42f-4977-a454-f3c9f74375e0",
"status": "success",
- "path": "legal/consumer-terms/2024-02-03.md",
- "sha256": "200b18842e482cc2a612f935f3520e3b7521fffddd58b76ff1b35a1bbd30ac7c",
- "size": 24740
+ "path": "legal/consumer-terms/2024-06-05.md",
+ "sha256": "95b12bb414d031ab88f2ed2069a94fc1833d6c344553f72becd5f2eb7d2ebc42",
+ "size": 25147
},
{
"url": "https://www.anthropic.com/legal/consumer-terms",
"status": "success",
"path": "legal/consumer-terms.md",
- "sha256": "062ded16a5967a5f66165086f310bb264b7ac8ccc3b24e22dc3dae5123cdd862",
- "size": 30858
+ "sha256": "1d3a390bd50a9689ca94bf18bdd3bfcc0c3480fae985a919a6332189ecda7324",
+ "size": 28496
},
{
"url": "https://www.anthropic.com/legal/archive/5c7ecf37-e2e1-4788-b718-a0d914fead48",
@@ -32964,20 +32943,24 @@
],
"failures": [
{
- "url": "https://platform.claude.com/docs/en/manage-claude/oauth-apps/app-review",
- "error": "moved to https://platform.claude.com/docs/en/manage-claude/oauth-apps/linked-billing/test-and-publish.md"
+ "url": "https://www.anthropic.com/legal/archive/71085c3c-857c-464d-8075-ae918f0e5555",
+ "error": "dropped from versionHistory"
},
{
- "url": "https://platform.claude.com/docs/en/manage-claude/oauth-apps/branding-samples",
- "error": "moved to https://platform.claude.com/docs/en/manage-claude/oauth-apps/linked-billing/link-button.md"
+ "url": "https://www.anthropic.com/legal/archive/60422e4b-4c80-462d-af4a-7ddd10289cf4",
+ "error": "dropped from versionHistory"
},
{
- "url": "https://platform.claude.com/docs/en/manage-claude/oauth-apps/organization-billing-connections",
- "error": "moved to https://platform.claude.com/docs/en/manage-claude/oauth-apps/linked-billing.md"
+ "url": "https://www.anthropic.com/legal/archive/d1642ca5-a466-4326-ac3d-a9de6e60e627",
+ "error": "dropped from versionHistory"
},
{
- "url": "https://platform.claude.com/docs/en/manage-claude/oauth-apps/oauth-reference",
- "error": "moved to https://platform.claude.com/docs/en/manage-claude/oauth-apps/endpoints-and-parameters.md"
+ "url": "https://www.anthropic.com/legal/archive/90113ac5-6846-4777-84d8-edde3719ac06",
+ "error": "dropped from versionHistory"
+ },
+ {
+ "url": "https://www.anthropic.com/legal/archive/99a99900-9830-4383-85ab-47896850d1e5",
+ "error": "dropped from versionHistory"
}
],
"dead": [
@@ -33009,6 +32992,22 @@
"url": "https://platform.claude.com/docs/en/agent-sdk/stop-reasons",
"reason": "moved -> https://code.claude.com/docs/en/agent-sdk/agent-loop"
},
+ {
+ "url": "https://platform.claude.com/docs/en/manage-claude/oauth-apps/app-review",
+ "reason": "moved -> https://platform.claude.com/docs/en/manage-claude/oauth-apps/linked-billing/test-and-publish"
+ },
+ {
+ "url": "https://platform.claude.com/docs/en/manage-claude/oauth-apps/branding-samples",
+ "reason": "moved -> https://platform.claude.com/docs/en/manage-claude/oauth-apps/linked-billing/link-button"
+ },
+ {
+ "url": "https://platform.claude.com/docs/en/manage-claude/oauth-apps/organization-billing-connections",
+ "reason": "moved -> https://platform.claude.com/docs/en/manage-claude/oauth-apps/linked-billing"
+ },
+ {
+ "url": "https://platform.claude.com/docs/en/manage-claude/oauth-apps/oauth-reference",
+ "reason": "moved -> https://platform.claude.com/docs/en/manage-claude/oauth-apps/endpoints-and-parameters"
+ },
{
"url": "https://code.claude.com/docs/en/plugin-relevance",
"reason": "moved -> https://code.claude.com/docs/en/plugins/relevance"
@@ -34323,11 +34322,11 @@
}
],
"summary": {
- "total": 5047,
- "downloaded": 4708,
+ "total": 5049,
+ "downloaded": 4705,
"skipped": 0,
"failed": 0,
- "dead": 339,
+ "dead": 344,
"success_rate": 100.0
}
}
\ No newline at end of file
diff --git a/content/CHANGELOG.md b/content/CHANGELOG.md
index 401835bb85..df2a2fe3c9 100644
--- a/content/CHANGELOG.md
+++ b/content/CHANGELOG.md
@@ -1,5 +1,158 @@
# Changelog
+## 2.1.332
+
+- Added skills from MCP servers (beta). They show as `server:skill` in the `/` menu; other skills keep their names
+- Added a `PreSkillShellCommand` hook event that can refuse a skill or command's inline shell commands as it loads; on 2.1.331 and older, a settings file naming it opens a dialog at start
+- Added "Always deliver" to the prompt for held messages from other sessions
+- Added a footer line that stays while a flagged message has your session on a different model, until you pick one with `/model`
+- Added an OpenTelemetry `assistant_response` event for text Claude sends through SendUserMessage or Cowork's message tool, when response logging is on
+- Added a warning in VS Code and Desktop's Code tab when part of a session couldn't be saved, saying how to save it with `/compact`
+- Added a notice in VS Code and Desktop's Code tab when a resumed session's earlier messages weren't loaded, as the terminal already shows
+- Added your Cyber Verification Program access tier to the startup header, beside the model name when your tier applies to that model and you're signed in with a claude.ai account
+- Fixed `claude auth login` reporting `Login successful.` when a claude.ai login could not be saved: it now exits 1 and says what to check, such as a leftover lock file or a full disk
+- Fixed Read, @-mentions and compaction hanging on a named pipe that nothing writes to, such as a `.env` mounted by a locked secrets manager; the read now fails after 20 seconds
+- Fixed turns ending in "Prompt is too long" after repeated auto-compaction failures when one more compaction at the context limit could have kept them going
+- Fixed compaction failing when a summary kept running past the output limit: after three cut-off replies, the last try now asks for a shorter summary
+- Fixed a freeze when a permission rule or hook condition with several wildcards was checked against a long command
+- Fixed freezes and runaway memory use in most cases while a hook prints output without end
+- Fixed a freeze and context overflow when a hook blocks or fails during a turn, or after `/compact`, with a very large log; text over about 50,000 characters is now shortened
+- Fixed the terminal freezing, and ignoring Ctrl+C, while a local MCP server floods its standard output
+- Fixed a freeze when a prompt or piped input holds an `@` followed by a very long unbroken string, such as minified CSS with an embedded font
+- Fixed a long freeze when opening a rewind point after a large tracked file was rewritten
+- Fixed SSE MCP servers hanging or refusing every tool call after their event stream was cut and came back on a new endpoint or not at all, until reconnected by hand
+- Fixed Remote Control showing a session in the desktop app, VS Code or the Agent SDK as running while it waited there on a dialog or an MCP server's question
+- Fixed a usage limit being reported as reached to Remote Control, IDE and SDK clients after it had already reset
+- Fixed CLAUDE.md and rules files being sent to the model a second time, in most cases, after a session moves into a worktree under `.claude/worktrees` with EnterWorktree or is resumed there
+- Fixed tool calls that never ran being counted as done in a claude.ai chat's summary line after you declined a permission prompt in a session that had restarted
+- Linux: Fixed the Bash edit diff showing an unchanged symlink as edited after Claude had read the file through it
+- Fixed resuming a session and `/stats` freezing for seconds when a transcript holds many damaged lines
+- Fixed a family name such as `sonnet` in `--fallback-model` being dropped when `availableModels` allows only an older version of it
+- Fixed keys lagging for seconds while `/stats` reads large session transcripts, also after the dialog is closed, and with debug logging on while a language server floods its stderr
+- Fixed a session failing when the cloud refused its default model and an `availableModels` list that isn't enforced named neither it nor an older model of that family
+- Fixed an enforced list of older models failing on Google Cloud's Agent Platform and Foundry when the first is refused: it now steps down to the next in that family, if listed newest first
+- Fixed `opus` failing on Bedrock, Google Cloud's Agent Platform and Foundry behind a gateway that refuses a model in its own words: it now steps down to an older model that answers
+- Fixed the start-up model upgrade offer on Bedrock and Google Cloud's Agent Platform naming a model that your `availableModels` list leaves out
+- Fixed Bedrock sub-agents failing when your account lists no profile for their model in the parent's region: they now use the model's own profile, which can be outside that region
+- Fixed Foundry sessions leaving a model family when an admin's list blocks the version `sonnet`, `opus` or `haiku` points to: they now use its newest allowed version under a built-in or mapped name
+- Fixed the `sonnet` alias on Bedrock Mantle resolving to Haiku 4.5: it now means Sonnet 5, not Sonnet 5.5, and an account without Sonnet 5 gets an error, so enable it first
+- Fixed Ctrl+C at the prompt starting a new turn, and a double Ctrl+C not exiting, when a background agent it stopped had an unread subagent report
+- Fixed `/install-github-app` ticking a workflow again after going back with Esc
+- Fixed dictated text past 10,000 characters being lost
+- Fixed raw "JSON Parse error" and "The operation was aborted." API errors when the non-streaming retry got a broken response or was interrupted
+- Fixed Esc not stopping computer use between actions on macOS when Claude Code's window or an app you allowed is in front; an Esc meant for that app's popup now stops computer use instead
+- Fixed a rare hang when a helper command, such as an API key helper, ran past its time limit
+- Fixed selecting text in fullscreen pushing the footer's right-hand label onto a second row, which moved the text under the mouse and could copy the wrong line
+- Fixed a PreToolUse hook's reason for asking not showing on terminal Read, Grep, Glob, Edit and Write prompts (anthropics/claude-code#102892, anthropics/claude-code#105343)
+- Fixed `temp_*` folders piling up in `~/.claude/plugins/cache` when a downloaded plugin couldn't be copied into place
+- Fixed `--effort` being ignored when starting an interactive session with `--environment` while `CLAUDE_CODE_EFFORT_LEVEL` is set to the same level
+- Fixed headless and cloud sessions reporting a foreground fork's Agent call as finished the moment the fork started
+- Fixed local MCP servers seeing a new session ID after a Remote Control session's process restarts
+- Fixed idle compaction being skipped for subscribers still well under their weekly limit
+- Fixed an @-mentioned text file with an extension being silently dropped when even its first 2,000 lines exceed the read limit; Claude is now told its size and how to read it
+- Fixed the plugin "not cached" error pointing to `/plugin` instead of `/reload-plugins`, the command that reloads plugins
+- Fixed self-hosted runner sessions failing their first clone under Anthropic-managed git when the machine's git config has an `includeIf "gitdir:"` or (git 2.44 to 2.46) `"onbranch:"` section
+- Fixed replies that start with phrases like "You've used" or "You've hit your" showing as a red usage limit error
+- Fixed a resumed conversation sometimes missing its last messages after a crash or kill on Bedrock, Google Cloud's Agent Platform, Foundry and other third-party providers
+- Fixed NotebookEdit saving an invalid notebook when an edit changes a cell's type; turning a cell with attachments into code is now refused
+- Fixed a long README in a design system moved from standalone Claude Design losing its list of files to load when Claude starts a deck or design
+- Fixed MCP tool calls failing with "malformed task handle" when the server's task ID is longer than 128 characters; IDs of up to 1,024 characters now work
+- Self-hosted runner: Fixed `--configure-git` sometimes reporting a hung `git --version` as a git that isn't on PATH
+- Fixed task ids being reused and deleted tasks coming back when several tasks were deleted or updated at once, and TaskGet listing completed tasks as blockers
+- Fixed stale and repeated rows in the fullscreen Ctrl+R history picker when prompts share a timestamp
+- Fixed Code Mode silently skipping a tool call whose input has a list of over 4,096 items, and freezing on a very large typed array in a tool's input, which is now refused
+- Fixed Code Mode leaving a message unanswered when it was typed during a command and Esc was pressed before Claude replied; the message now starts a new turn, which a second Esc stops
+- Fixed Code Mode not telling Claude when a slow command moved to the background and left its script with empty output, or of the time limit on background commands in `claude -p` and the Agent SDK
+- Fixed Code Mode sometimes waiting for minutes on a command that had already been stopped
+- Fixed a typed slash command's inline shell commands not running in Code Mode after a background script's output arrived
+- Fixed Code Mode sessions in the Agent SDK and `claude -p` sometimes losing Claude's last reply on resume after being stopped while a script was running
+- Remote Control: Fixed sessions hosted by the desktop app or VS Code showing as idle while /compact runs
+- Fixed a session sometimes losing its "needs input" status after a background task's report in Claude Desktop
+- Fixed Grep: -o missing an empty match at the end of a file with no last newline, -o with multiline adding an empty line or misnumbering lines in non-UTF-8 files, and -A and -B ignored beside a zero -C
+- Fixed unbinding a chord in `keybindings.json` still leaving its first key waiting for a second when it was spelled `meta` and bound as `alt`, or the reverse
+- Fixed moving an empty session to the background sometimes failing with "Couldn't load transcript from file"
+- Fixed OpenTelemetry reporting a failed `mcp_server_connection` event at each start for a built-in server that isn't turned on for the account
+- Fixed Esc not stopping a Bash command while it waited for its file diff in large or slow git repositories, which held the next message
+- Fixed pasted links and relative paths ending in an image file name appearing late and swallowing an Enter pressed right after
+- Fixed `/mcp reconnect all` and `/mcp disable all` counting a built-in server that isn't turned on for the account
+- Fixed interrupting a turn while a mod's `turn.step` hook was waiting showing "user-cancel" as an error instead of "Interrupted"
+- Fixed `~/.claude.json` being reported as corrupted when another session was in the middle of saving it
+- Fixed web searches failing with an API error when Claude's list of allowed or blocked domains was empty or had duplicates
+- Fixed resuming a paused workflow in Code Mode waiting for minutes while other background work was running
+- Fixed subagents in Code Mode failing with "Agent stalled" and losing their command when a script ran for more than 10 minutes
+- Improved `claude plugin marketplace add` on Windows to wait and try again in some cases when another program, such as a virus scanner, briefly holds the downloaded files
+- Windows: Improved stability on some company PCs, where Claude Code could exit with no output shortly after start
+- Improved computer use setup: the Screen Recording permission prompt can now restart Claude Code and resume the chat
+- Improved computer use to take less context until Claude uses it
+- Improved the error when a proxy or gateway cuts or damages a compressed response: a turn now ends in plain words instead of raw "ZlibError fetching" text
+- Improved `/context`: shorter output in fullscreen, so the total is less likely to scroll off in a short window, and the legend names its unit once
+- Improved peak memory use and speed of `/usage` on machines with many recent sessions
+- Improved `/permissions` to refuse a rule that would be skipped at the next start, such as `rm -rf` with no tool name, and to show the reason
+- Improved resuming a session in Code Mode: Claude is now told up front that its earlier script variables are gone
+- Improved Claude in Code Mode to confirm before discarding worktree changes, to read artifact files before publishing them, and to update an existing artifact instead of creating a second one
+- Improved Code Mode's tool search to show long MCP tool descriptions whole where they fit, as a cut description could lead to wrong calls
+- Linux: Improved the Ctrl+V message to name the package to install (`wl-clipboard` or `xclip`) when images can't be read from the clipboard
+- Improved recovery for long conversations behind a proxy or gateway with a request size limit, where every message and `/compact` failed with a 413
+- Improved Glob speed in large local folders on Windows machines with 6 or more CPUs: folders are walked in parallel, and a search stopped at its time limit now lists what it found
+- Improved memory use when resuming a long conversation
+- Improved memory use at startup with MCP servers that list many tools
+- Improved memory use of `claude -p` and SDK-hosted sessions at the start of a conversation
+- Updated computer use on macOS to newer safety rules, so some actions are refused and typing can be slower
+- Changed terminal and VS Code sessions moved to Sonnet 5 or 5.5 on Bedrock Mantle, Agent Platform and Foundry to start in auto mode if no mode is set; set `disableAutoMode` to `"disable"` to stop it
+- Changed the `sonnet` model alias on Google Cloud's Agent Platform and Microsoft Foundry to Sonnet 5.5, and Foundry's `opus` alias to Opus 5.5; `sonnet` on Amazon Bedrock stays at Sonnet 4.5
+- Changed the default model on Microsoft Foundry to Sonnet 5.5: deploy `claude-sonnet-5-5`, or set `ANTHROPIC_DEFAULT_SONNET_MODEL` to a model you have deployed
+- Changed `sonnet` and background requests on Google Cloud's Agent Platform to read `VERTEX_REGION_CLAUDE_5_5_SONNET`; with only the `4_5` variable set they go to `CLOUD_ML_REGION` or `us-east5`
+- Changed `--model default` and a Default pick to move to an older model when that model isn't available, instead of stopping with an error; in auto mode, only to a model auto mode accepts
+- Changed Microsoft Foundry: Claude Sonnet 4, Opus 4 and Opus 4.1 now count as retired, so step-downs stop above them and a pin to one warns that it was retired
+- Changed the Claude apps gateway's built-in model list: Sonnet 5.5 replaces Sonnet 4.5 as its second model, and Claude Desktop starts on it where a policy allows no Opus 4.6
+- Changed SDK and `claude -p` mid-turn messages to count as the user's where feature flags aren't fetched, as on clouds or with telemetry off, from Opus 4.8 on; mark relayed text `isSynthetic: true`
+- Changed `computer-use` to a reserved skill name on Macs with computer use on: your own skill or command of that name stops loading, and a start-up notice says to rename it
+- Changed the default OpenTelemetry `service.name` of desktop Code tab sessions to `claude-code-desktop`; update filters keyed on `claude-code`, or set `OTEL_SERVICE_NAME` to keep the old name
+- Changed OpenTelemetry `tool_input` to show only the length of text sent through SendUserMessage or Cowork's message tool, unless response logging is on (`OTEL_LOG_ASSISTANT_RESPONSES=1`)
+- Self-hosted runner: Changed `CLAUDE_CODE_OAUTH_TOKEN`: its prefix can now end in `oat02-` as well as `oat01-`. Update proxy rules and log scrubbers that match `oat01-`, and mask the whole value
+- Changed `claude self-hosted-runner setup` with no arguments on macOS and Linux to ask for the environment key in the terminal before Claude starts, and to hide it as you paste
+- Changed Claude Desktop's Code tab on Anthropic's API to ignore default, side-request, alias and subagent model ids not starting with `claude` in your own settings beside a gateway address
+- Changed Claude Desktop's Code tab on Anthropic's API to ignore a `CLAUDE_CODE_AUTO_COMPACT_WINDOW` under 200K in your own settings beside a gateway address; use `/autocompact` instead
+- Changed plan mode in the desktop app's Code tab and VS Code to ask for approval instead of refusing when no auto mode safety check can judge a command, for plans entered from Manual or Accept edits
+- Changed PgUp and Home to go to No on destructive questions, such as `/clear` from an agent's view
+- Changed `/feedback` drafts in the terminal to open on Not now, above separate rows to send the report alone or with the transcript
+- Changed tap-mode voice dictation to keep the microphone on until 60 seconds without new words or 10 minutes, up from 15 seconds and 2 minutes, then keep the text unsent; the next tap adds to it
+- Changed tap-mode voice dictation to stop when you send the prompt, and to stop and say why when you edit it, a panel covers it, or the connection or a separate recorder program is lost
+- Changed `/schedule`, permission prompts and `/loop`'s cloud offer to say "cloud scheduled task" instead of "routine" or "cloud schedule"; `/routines` still works
+- Changed model switches from the Claude mobile app or claude.ai to keep the effort level you saved for the previous model when none is saved for the new one
+- Changed the `hint` a mod's `PromptHint` hook receives to leave out the hint for selected text when the fullscreen footer has a label on its right
+- Changed `awsCredentialExport` to time out after 10 minutes instead of waiting forever
+- [VSCode] Added a notification in more cases when closing a proposed diff leaves the edit unapplied, and stopped the diff notifications on a split copy of an answered diff
+- [VSCode] Added a warning when restoring a conversation with `/rewind` in the side bar stops a self-paced `/loop`
+- [VSCode] Added the installed version to the rows of Manage plugins
+- [VSCode] Fixed Rewind staying on "Checking code changes…" while Claude's process hung at its start
+- [VSCode] Fixed the model picker's arrow keys starting from the wrong row right after it opens, and screen readers not announcing its highlighted model when opened with `/model` or the command menu
+- [VSCode] Fixed the diff view's "Copy deleted line" and "Copy changed line" copying a different line than they name, and a double-click near the bottom copying unasked
+- [VSCode] Fixed the blocked microphone's tooltip being cut off, long addresses running out of Web Fetch rows, usage bars looking full in High Contrast, and a Thinking row jumping away when clicked
+- [VSCode] Fixed a second Logout in the same window reporting success while the first was still running, and added a Show logs button to the error when logout fails
+- [VSCode] Fixed the chat showing no notice when a background command, agent, workflow or monitor finished while Claude was idle
+- [VSCode] Fixed forking a conversation, opening and saving memories, and creating project output styles failing on NTFS drives in VS Code 1.101 and 1.102 on Windows 11 24H2 and later
+- [VSCode] Fixed Web Fetch showing "Fetched from" with a success dot when the site returned an error or a redirect that wasn't followed
+- [VSCode] Fixed the compaction summary showing as your own prompt, and in Rewind and prompt history, after reloading, resuming or forking a compacted conversation
+- [VSCode] Fixed `spinnerVerbs` from Claude Code user and managed settings being ignored
+- [VSCode] Fixed right-to-left text from mods showing its punctuation on the wrong side, and a mod's band or pane filling only part of its width when the panel font has no box-drawing characters
+- [VSCode] Fixed an empty, locked editor pane staying beside the next file or Claude tab after the last Claude tab was closed
+- [VSCode] Fixed a session rename that cannot be saved reverting silently, and screen readers not hearing a session's status, which session is open or which groups are collapsed
+- [VSCode] Fixed a hidden panel's notice not naming the waiting session, Hebrew and Arabic questions reading out of order, and a question cut off when Claude's process ended showing only a red dot
+- [VSCode] Fixed a sign-in that failed with no error message returning to the sign-in screen with nothing shown, and an authentication error still looking current after you signed in again in that tab
+- [VSCode] Fixed the chat moving when a menu opened over some banners, and an agent's tool call count shrinking in long sessions; it now shows how many of the calls are listed
+- [VSCode] Fixed most links to files without an extension, to folders, and with a line and column doing nothing
+- [VSCode] Fixed queued messages and attached files showing in reverse order after a conversation was reopened
+- [VSCode] Fixed a question that ended in an error showing "Something went wrong" when its stored result had no text
+- [VSCode] Fixed redacted thinking showing as "Unsupported content type"
+- [VSCode] Fixed the message box not underlining the word that an input method (IME) is composing
+- [VSCode] Fixed a held Up key replacing an unsent message with an earlier prompt, and Down not bringing the message back after the recalled prompt got a new line or was cleared
+- [VSCode] Fixed `/model` completed with Tab sometimes switching the model, and closing the model picker right away when nothing is running
+- [VSCode] Improved the time it takes to open the Claude panel and long sessions, performance while long replies stream, and the speed of reading diagnostics in very large workspaces
+- [VSCode] Improved commands and one-line output opened in a plain text tab: they now wrap
+- [VSCode] Changed voice dictation to stop by itself after 60 seconds without recognized speech or 10 minutes, up from 15 seconds and 2 minutes, so the microphone can stay on longer
+- [VSCode] Changed voice dictation to stop, and say why, when the microphone stops sending audio or the panel stays hidden
+
## 2.1.331
- Added Code Mode support in terminal sessions on Amazon Bedrock, Google Cloud's Agent Platform, Microsoft Foundry and Claude Platform on AWS
diff --git a/content/claude-code-manifest.json b/content/claude-code-manifest.json
index 3962ca0cbd..0c2ffce2a6 100644
--- a/content/claude-code-manifest.json
+++ b/content/claude-code-manifest.json
@@ -6,17 +6,17 @@
"url": "https://github.com/anthropics/claude-code/issues"
},
"dist": {
- "shasum": "51af974bc419b5a9458b4b5e67f8244268fb3d2d",
- "tarball": "https://registry.npmjs.org/@anthropic-ai/claude-code/-/claude-code-2.1.331.tgz",
+ "shasum": "9d0558c9bd8d8db49dcd73592f339cfc76ba30fd",
+ "tarball": "https://registry.npmjs.org/@anthropic-ai/claude-code/-/claude-code-2.1.332.tgz",
"fileCount": 7,
- "integrity": "sha512-E6IE7pon8YAtlzIBB0yhhQgopGvsYuSjnCaoP9ATw64T/f3I4ZfwVcj5jWV9yD7XkrSQZCwO7PgS+qMcP817gA==",
+ "integrity": "sha512-tvSh6bLvEbd97APD31AnojOrRC3AmcRj5R8sF8QIQitu3x2ucOb1kKmTkGDw41kjva+CGJfpkt+wYouk6yv56Q==",
"signatures": [
{
- "sig": "MEUCIHgG4lMdHnzuKdOg8OjOgzGWVuC9BZ+fmWQzsYlwYnj+AiEAvFv/IQOjyP5aTc42PUpQx6bS/h5Ea7/JL2oLoqjWm5g=",
+ "sig": "MEQCIAwT0LFetcnbnOVOCbxHPIAZcJCL/NB4iR9jCSnfbxRKAiAf7C22rvlAXdXOKwSjyXVElZTOej0nBmTYc00CSi2wzg==",
"keyid": "SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"
},
{
- "sig": "MEUCICMCeJeZ9fc+l7W7ZOn6qUpBi2BDufJistUgyLHXL9bbAiEAq+ZS8C1Qy+kzm5s4km0zv5FE0JUsCJhr3lU3TUqbp/M=",
+ "sig": "MEYCIQCsBKw7f4L8J/wINHaNqjMoTqT2qfCXgvMDfsD0MqGEEgIhAKtMm1lJ3okE+NmX06y3wX4RnImgMqNIBn0fhh9curwc",
"keyid": "SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"
}
],
@@ -24,7 +24,7 @@
},
"name": "@anthropic-ai/claude-code",
"type": "module",
- "_from": "file:staged-npm/anthropic-ai-claude-code-2.1.331.tgz",
+ "_from": "file:staged-npm/anthropic-ai-claude-code-2.1.332.tgz",
"author": {
"name": "Anthropic",
"email": "support@anthropic.com"
@@ -46,8 +46,8 @@
}
},
"homepage": "https://github.com/anthropics/claude-code",
- "_resolved": "/home/runner/work/apps/apps/staged-npm/anthropic-ai-claude-code-2.1.331.tgz",
- "_integrity": "sha512-E6IE7pon8YAtlzIBB0yhhQgopGvsYuSjnCaoP9ATw64T/f3I4ZfwVcj5jWV9yD7XkrSQZCwO7PgS+qMcP817gA==",
+ "_resolved": "/home/runner/work/apps/apps/staged-npm/anthropic-ai-claude-code-2.1.332.tgz",
+ "_integrity": "sha512-tvSh6bLvEbd97APD31AnojOrRC3AmcRj5R8sF8QIQitu3x2ucOb1kKmTkGDw41kjva+CGJfpkt+wYouk6yv56Q==",
"_npmVersion": "11.19.1",
"description": "Use Claude, Anthropic's AI assistant, right from your terminal. Claude can understand your codebase, edit files, run terminal commands, and handle entire workflows for you.",
"directories": {},
@@ -116,20 +116,21 @@
"_nodeVersion": "24.22.3",
"dependencies": {},
"_hasShrinkwrap": false,
+ "readmeFilename": "README.md",
"optionalDependencies": {
- "@anthropic-ai/claude-code-linux-x64": "2.1.331",
- "@anthropic-ai/claude-code-win32-x64": "2.1.331",
- "@anthropic-ai/claude-code-darwin-x64": "2.1.331",
- "@anthropic-ai/claude-code-linux-arm64": "2.1.331",
- "@anthropic-ai/claude-code-win32-arm64": "2.1.331",
- "@anthropic-ai/claude-code-darwin-arm64": "2.1.331",
- "@anthropic-ai/claude-code-linux-x64-musl": "2.1.331",
- "@anthropic-ai/claude-code-linux-arm64-musl": "2.1.331"
+ "@anthropic-ai/claude-code-linux-x64": "2.1.332",
+ "@anthropic-ai/claude-code-win32-x64": "2.1.332",
+ "@anthropic-ai/claude-code-darwin-x64": "2.1.332",
+ "@anthropic-ai/claude-code-linux-arm64": "2.1.332",
+ "@anthropic-ai/claude-code-win32-arm64": "2.1.332",
+ "@anthropic-ai/claude-code-darwin-arm64": "2.1.332",
+ "@anthropic-ai/claude-code-linux-x64-musl": "2.1.332",
+ "@anthropic-ai/claude-code-linux-arm64-musl": "2.1.332"
},
"_npmOperationalInternal": {
- "tmp": "tmp/claude-code_2.1.331_1795458986386_0.5504706927894867",
+ "tmp": "tmp/claude-code_2.1.332_1795557997992_0.14981074228416724",
"host": "s3://npm-registry-packages-npm-production"
},
- "_id": "@anthropic-ai/claude-code@2.1.331",
- "version": "2.1.331"
+ "_id": "@anthropic-ai/claude-code@2.1.332",
+ "version": "2.1.332"
}
\ No newline at end of file
diff --git a/content/claude/third-party/claude-desktop/extensions.md b/content/claude/third-party/claude-desktop/extensions.md
index 78775094b3..79ff7dd77d 100644
--- a/content/claude/third-party/claude-desktop/extensions.md
+++ b/content/claude/third-party/claude-desktop/extensions.md
@@ -350,7 +350,14 @@ Move a marketplace this way when the new source contains the same marketplace. A
| macOS | `/Library/Application Support/Claude/org-plugins/` |
| Windows | `C:\Program Files\Claude\org-plugins\` |
-On Windows, the directory is under `Program Files` (not `ProgramData`) so that only administrators can create or modify it. Claude Desktop treats the presence of this directory as an admin-provisioned source. On Linux, Claude Desktop reads no organization plugins directory, so use a [plugin marketplace](#plugin-marketplaces-admin) there.
+On Linux, Claude Desktop reads no organization plugins directory, so use a [plugin marketplace](#plugin-marketplaces-admin) there.
+
+Claude Desktop treats this directory, when it exists, as a source that an admin provisioned, so only administrators should be able to create or modify it:
+
+* **macOS**: make `root` the owner of the directory, everything in it, and the `Claude` folder above it. Give group and others no write access to any of them.
+* **Windows**: Claude Desktop reads the directory from `Program Files` (not `ProgramData`) so that only administrators can create or modify it
+
+A plugin's local MCP server runs as the user, so have the server keep its caches and logs outside this directory, such as in the user's home folder.
### Plugin structure
@@ -390,7 +397,7 @@ See the [plugins reference](https://code.claude.com/docs/en/plugins) for the ful
> [!NOTE]
>
-> Symlinks inside a plugin are followed as long as the target resolves to a path inside the plugin directory. Symlinks that point outside the plugin (for example, `skills/foo/SKILL.md → /etc/hosts`) are skipped. A symlinked top-level plugin directory (for example, `org-plugins/my-plugin → /opt/shared/my-plugin`) is also followed.
+> Symlinks inside a plugin are followed as long as the target resolves to a path inside the plugin directory. Symlinks that point outside the plugin (for example, `skills/foo/SKILL.md → /etc/hosts`) are skipped. A symlinked top-level plugin directory (for example, `org-plugins/my-plugin → /opt/shared/my-plugin`) is also followed, so make sure that only administrators can modify the link's target and the folders that hold it.
> [!NOTE]
>
diff --git a/content/claude/third-party/claude-desktop/feature-matrix.md b/content/claude/third-party/claude-desktop/feature-matrix.md
index fd1db1129c..e7555ce706 100644
--- a/content/claude/third-party/claude-desktop/feature-matrix.md
+++ b/content/claude/third-party/claude-desktop/feature-matrix.md
@@ -94,7 +94,7 @@ Claude Desktop on 3P is administered from the web-based [admin console](https://
> | Memory | [Memory](https://claude.com/docs/third-party/claude-desktop/data-storage.md#memory) in Claude Desktop on 3P is stored on the device, not on Anthropic infrastructure. Chat-history search and nightly summary generation are not available in Chat on 3P. |
> | Web search | Amazon Bedrock deployments and gateways that do not forward Anthropic server tools need a [web search provider](https://claude.com/docs/third-party/claude-desktop/web-tools.md#web-search-options) configured first. |
> | Claude in Chrome | Claude in Chrome works with Claude Desktop on 3P only in organizations managed from the [Enterprise Admin Console](https://claude.com/docs/third-party/claude-desktop/admin-console.md). |
-> | Automatically approve in Cowork | Cowork offers the **Automatically approve** mode when an administrator sets [`autoModeEnabled`](https://claude.com/docs/third-party/claude-desktop/configuration#automodeenabled) to `true`. |
+> | Automatically approve in Cowork | Cowork offers the **Automatically approve** mode, which needs a [model that supports it](https://code.claude.com/docs/en/permission-modes#eliminate-prompts-with-auto-mode), when an administrator sets [`autoModeEnabled`](https://claude.com/docs/third-party/claude-desktop/configuration#automodeenabled) to `true`. Cowork then starts a new session in the mode that the user last picked on the device, or in **Manually approve** if the user hasn't picked one. Scheduled tasks have [their own permission mode](https://claude.com/docs/third-party/claude-desktop/scheduled-tasks.md#permission-mode-of-a-scheduled-task-in-cowork). |
> | User management via UI and RBAC | With the [Enterprise Admin Console](https://claude.com/docs/third-party/claude-desktop/admin-console.md), administrators add users and groups, connect single sign-on and SCIM, assign administrator roles, and set per-group permission policies from **Organization settings** on claude.ai. Deployments configured through MDM or a bootstrap server manage access through those channels. |
> | Monitoring | Many capabilities of the Compliance API and Analytics API can be achieved via [OpenTelemetry export](https://claude.com/docs/third-party/claude-desktop/telemetry.md#sending-telemetry-to-your-own-collector) to your own collector. In organizations managed from the [Enterprise Admin Console](https://claude.com/docs/third-party/claude-desktop/admin-console.md), you can turn on the Compliance API and [read administrator activity](https://claude.com/docs/third-party/claude-desktop/admin-console.md#audit-administrator-changes) from its Activity Feed. |
> | Telemetry | Claude Desktop on 3P sends [crash reports and product analytics](https://claude.com/docs/third-party/claude-desktop/telemetry.md#telemetry-categories) to Anthropic by default. This telemetry contains no prompt or response content, and you can fully disable it via managed configuration. |
diff --git a/content/claude/third-party/claude-desktop/import.md b/content/claude/third-party/claude-desktop/import.md
index 9612b618a9..706a30468d 100644
--- a/content/claude/third-party/claude-desktop/import.md
+++ b/content/claude/third-party/claude-desktop/import.md
@@ -394,7 +394,7 @@ If the message is still there, ask your administrator to follow [Cowork workspac
If a [move to another device](#move-your-data-to-another-device) goes wrong, find the message or the problem that you see:
* **Settings > Import & export has no Export… button.** Ask your administrator to [turn on export and import](https://claude.com/docs/third-party/claude-desktop/data-storage.md#turn-on-export-and-import).
-* **This export is over the import limit of 20 GB or 5,000,000 files.** If the dialog offers **Shorten date range**, click it, select a shorter range, and click **Export**. If it doesn't, delete sessions from the last 30 days that you no longer need and export again. To move all your sessions, ask your administrator to [copy your data](https://claude.com/docs/third-party/claude-desktop/data-storage.md#copy-the-data-to-the-new-device).
+* **This export is over the import limit of 20 GB or 5,000,000 files.** If the dialog offers **Shorten date range**, click it, select a shorter range, and click **Export**. If it doesn't, delete sessions from the last 30 days that you no longer need and export again. Deleting a chat also deletes the live artifacts, designs, and slide decks made in that chat, so first save a copy of each live artifact, design, or deck that you need, as step 2 of [Get files that an earlier export left out](#get-files-that-an-earlier-export-left-out) explains. To move all your sessions, ask your administrator to [copy your data](https://claude.com/docs/third-party/claude-desktop/data-storage.md#copy-the-data-to-the-new-device).
* **The export stopped before it finished, and no file was saved.** Click **Try again**. If it stops again, ask your administrator to [copy your data](https://claude.com/docs/third-party/claude-desktop/data-storage.md#copy-the-data-to-the-new-device).
* **The export's last screen lists Code sessions resumed from an SSH host.** Each of these sessions continues a conversation that you selected with `/resume`. An export doesn't move these sessions, but their conversations are saved on the SSH host. To continue one of these sessions on the new device, see [Resume a session that is saved on the host](https://claude.com/docs/third-party/claude-desktop/ssh-remote-sessions.md#resume-a-session-that-is-saved-on-the-host). Your other sessions on an SSH host [don't move](#what-a-claude-desktop-export-moves) either.
* **The export's last screen lists items that you need.** On Windows, close other programs and export again, because the export can leave out a file that another program has open. If the old device runs a version before 6.6395.0, update it and export again, because earlier versions have a [100 MB limit](#what-a-claude-desktop-export-moves) on some files. If the items are still listed, ask your administrator to [copy your data](https://claude.com/docs/third-party/claude-desktop/data-storage.md#copy-the-data-to-the-new-device).
@@ -421,7 +421,7 @@ Use these steps only if an earlier [Claude Desktop export](#move-your-data-to-an
A later import doesn't add files to a session that's already there. To get the files, make a new export. Then delete the sessions that are missing files on the new device. When you import the new file, it brings them back with their files. If many sessions are missing files, read [Remove the whole earlier import instead](#remove-the-whole-earlier-import-instead) before you export.
1. Update both devices to Claude Desktop 6.6395.0 or later. Then [export again](#export-your-data-from-the-old-device) on the old device. Select a date range that covers the sessions that are missing files. If the export's last screen lists items that you need, stop here and see [Problems when you move to another device](#problems-when-you-move-to-another-device).
-2. On the new device, delete each chat or Cowork task that's missing files. This also deletes anything that you added to it since the import.
+2. On the new device, delete each chat or Cowork task that's missing files. This also deletes anything that you added to it since the import. Deleting a chat also deletes the live artifacts, [designs, and slide decks](https://claude.com/docs/third-party/claude-desktop/design-and-slides.md) made in that chat, and importing the new file doesn't bring them back. Before you delete a chat, save a copy of each live artifact, design, or deck that you need. [Export a design or deck to a file](https://claude.com/docs/third-party/claude-desktop/design-and-slides.md#use-design-and-slides). For a live artifact, open it, click **⋯**, and click **Download as PDF**. The PDF shows the page as it looks now and isn't interactive.
3. [Import the new file](#import-your-data-on-the-new-device) and click **Import as my own**.
These steps don't delete your other sessions, your projects, or your scheduled tasks.
diff --git a/content/claude/third-party/claude-desktop/scheduled-tasks.md b/content/claude/third-party/claude-desktop/scheduled-tasks.md
index 647e666c83..2393321c08 100644
--- a/content/claude/third-party/claude-desktop/scheduled-tasks.md
+++ b/content/claude/third-party/claude-desktop/scheduled-tasks.md
@@ -37,6 +37,12 @@ Each run is a new session, so an approval for that run alone ends with it. For a
The task's page lists these approvals under **Always allowed**, where the user can remove them. An **Allow for all tasks** approval for a [plugin's own server](https://claude.com/docs/third-party/claude-desktop/extensions.md#approvals-that-users-keep-for-a-plugin-server) can also answer a run. The plugin's page lists it, not the task's page.
+### Permission mode of a scheduled task in Cowork
+
+By default, a new scheduled task in Cowork runs in **Manually approve**, whether Claude creates the task or the user creates it on the **Scheduled** page. The task doesn't take the mode that the user last picked for Cowork sessions.
+
+Where [`autoModeEnabled`](https://claude.com/docs/third-party/claude-desktop/configuration#automodeenabled) is `true`, the user can choose **Automatically approve** under **Permissions** when creating or editing the task. The mode needs a [model that supports it](https://code.claude.com/docs/en/permission-modes#eliminate-prompts-with-auto-mode).
+
## Where users see what ran
Users can see how each task's latest run went without opening the run:
diff --git a/content/en/about-claude/model-deprecations.md b/content/en/about-claude/model-deprecations.md
index ab73018e15..1817ccb15a 100644
--- a/content/en/about-claude/model-deprecations.md
+++ b/content/en/about-claude/model-deprecations.md
@@ -25,7 +25,7 @@ The dates on this page apply to Anthropic-operated platforms: the Claude API, [C
## Migrating to replacements
-Once a model is deprecated, migrate all usage to a suitable replacement before the retirement date. Once the model is retired, requests to it fail.
+Once a model is deprecated, migrate all usage to its [recommended replacement](https://platform.claude.com/docs/en/about-claude/model-deprecations#deprecation-history) or another active model before the retirement date. Once the model is retired, requests to it fail. On the Claude API, the Messages API returns a [404 `not_found_error`](https://platform.claude.com/docs/en/api/errors#http-errors).
To help measure the performance of replacement models on your tasks, consider thorough testing of your applications with the new models well before the retirement date.
@@ -122,6 +122,10 @@ On September 30, 2026, Anthropic notified developers using Claude Sonnet 4.5 of
This retirement includes `claude-sonnet-4-5`, the same model’s ID without a date.
+To migrate, see [Migrating from Claude Sonnet 4.5 or earlier](https://platform.claude.com/docs/en/models/sonnet-5-5/migration-guide#migrating-from-sonnet-45) in the Claude Sonnet 5.5 migration guide.
+
+If you use a platform other than the Claude API, see [Overview](https://platform.claude.com/docs/en/about-claude/model-deprecations#overview) for which dates apply.
+
### 2026-06-05: Claude Opus 4.1 model
diff --git a/content/en/about-claude/models/model-ids-and-versions.md b/content/en/about-claude/models/model-ids-and-versions.md
index 26472f3489..e7ff43f017 100644
--- a/content/en/about-claude/models/model-ids-and-versions.md
+++ b/content/en/about-claude/models/model-ids-and-versions.md
@@ -44,15 +44,19 @@ Models before the 4.6 generation include a snapshot date in the ID:
claude-{name}-{major}-{minor}-{YYYYMMDD}
```
-For example: `claude-sonnet-4-5-20250929`, `claude-haiku-4-5-20251001`
+For example: `claude-haiku-4-5-20251001`
-On Amazon Bedrock, these use the format:
+On the Claude API, the Claude 4.5 models also have shorter aliases, such as `claude-haiku-4-5`. Each alias points to the most recent dated snapshot for its minor version.
+
+On Amazon Bedrock (`bedrock-runtime`), dated IDs use the format:
```text wrap
anthropic.claude-{name}-{major}-{minor}-{YYYYMMDD}-v1:0
```
-For example: `anthropic.claude-sonnet-4-5-20250929-v1:0`
+For example: `anthropic.claude-haiku-4-5-20251001-v1:0`
+
+To call these models, add an inference profile prefix, such as `global.` or `us.`, to the ID. For details, see [API model IDs](https://platform.claude.com/docs/en/build-with-claude/claude-on-amazon-bedrock-legacy#api-model-ids) on the Amazon Bedrock (`bedrock-runtime`) page.
On [Claude Models on Google Cloud (Anthropic managed)](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/anthropic-managed#api-model-ids), the format matches the Claude API.
@@ -64,7 +68,7 @@ claude-{name}-{major}-{minor}@{YYYYMMDD}
For example: `claude-haiku-4-5@20251001`
-On the Claude API, these models also have shorter aliases (for example, `claude-sonnet-4-5`) that point to the most recent dated snapshot for that minor version.
+[Amazon Bedrock (`bedrock-mantle`)](https://platform.claude.com/docs/en/build-with-claude/claude-in-amazon-bedrock#supported-models), [Claude Platform on AWS](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws#available-models), and [Microsoft Foundry](https://platform.claude.com/docs/en/build-with-claude/claude-in-microsoft-foundry#api-model-ids-and-deployments) list these models by an ID without the date. Each link opens that platform’s model table, which has the ID to use.
## Dateless IDs are pinned snapshots
@@ -72,7 +76,7 @@ A common misconception is that dateless model IDs such as `claude-sonnet-4-6` be
For the 4.6 generation and later, the dateless ID is the canonical model ID for that release. It maps to a single, fixed model snapshot. Anthropic does not update the weights or configuration of an existing model ID. When an updated version is available, it ships under a new model ID.
-This differs from the dateless aliases that exist on the Claude API for earlier models. An alias such as `claude-sonnet-4-5` is a convenience pointer that resolves to the most recent dated snapshot for that minor version. A 4.6-generation ID such as `claude-sonnet-4-6` is not an alias. It is the snapshot.
+An ID from the 4.6 generation or later, such as `claude-sonnet-4-6`, looks like the aliases in [Before the 4.6 generation](https://platform.claude.com/docs/en/about-claude/models/model-ids-and-versions#before-the-4-6-generation). However, it is not an alias. It is the snapshot.
Every model ID, whether dated or dateless, has its own distinct deprecation and retirement schedule.
diff --git a/content/en/about-claude/pricing.md b/content/en/about-claude/pricing.md
index 2985c708b5..2ecf48f973 100644
--- a/content/en/about-claude/pricing.md
+++ b/content/en/about-claude/pricing.md
@@ -73,8 +73,6 @@ For official pricing on [Claude Models on Google Cloud (Google managed)](https:/
Regional and multi-region endpoints include a 10 percent premium over global endpoints. The Claude API (first-party) is global by default; for first-party data residency options and pricing, see [Data residency pricing](https://platform.claude.com/docs/en/about-claude/pricing#data-residency-pricing).
- **Scope:** This pricing structure applies to Claude Sonnet 4.5 (deprecated), Haiku 4.5, Opus 4.5, and later models. It doesn’t apply to earlier models (Claude Opus 4.1 and prior releases).
-
For implementation details and code examples:
* Amazon Bedrock global versus regional endpoints: [Claude in Amazon Bedrock (`bedrock-mantle`)](https://platform.claude.com/docs/en/build-with-claude/claude-in-amazon-bedrock#regions) or [Claude on Amazon Bedrock (`bedrock-runtime`)](https://platform.claude.com/docs/en/build-with-claude/claude-on-amazon-bedrock-legacy#global-vs-regional-endpoints), depending on whether you call `bedrock-mantle` or `bedrock-runtime`
@@ -489,19 +487,19 @@ A 1-hour coding session using Claude Opus 5.5 that consumes 50,000 input tokens
| Line item | Calculation | Cost |
| ----- | ----- | ----- |
-| Input tokens | 50,000 × $4 / 1,000,000 | $0.20 USD |
-| Output tokens | 15,000 × $20 / 1,000,000 | $0.30 USD |
-| Session runtime | 1.0 hour × $0.08 | $0.08 USD |
+| Input tokens | 50,000 × $4 USD / 1,000,000 | $0.20 USD |
+| Output tokens | 15,000 × $20 USD / 1,000,000 | $0.30 USD |
+| Session runtime | 1.0 hour × $0.08 USD | $0.08 USD |
| **Total** | | **$0.58 USD** |
If prompt caching is active and 40,000 of the input tokens are cache reads:
| Line item | Calculation | Cost |
| ----- | ----- | ----- |
-| Uncached input tokens | 10,000 × $4 / 1,000,000 | $0.04 USD |
-| Cache read tokens | 40,000 × $4 × 0.05 / 1,000,000 | $0.008 USD |
-| Output tokens | 15,000 × $20 / 1,000,000 | $0.30 USD |
-| Session runtime | 1.0 hour × $0.08 | $0.08 USD |
+| Uncached input tokens | 10,000 × $4 USD / 1,000,000 | $0.04 USD |
+| Cache read tokens | 40,000 × $4 USD × 0.05 / 1,000,000 | $0.008 USD |
+| Output tokens | 15,000 × $20 USD / 1,000,000 | $0.30 USD |
+| Session runtime | 1.0 hour × $0.08 USD | $0.08 USD |
| **Total** | | **$0.428 USD** |
## Additional pricing considerations
diff --git a/content/en/agents-and-tools/tool-use/computer-use-tool.md b/content/en/agents-and-tools/tool-use/computer-use-tool.md
index 849d235f41..e46c9b8949 100644
--- a/content/en/agents-and-tools/tool-use/computer-use-tool.md
+++ b/content/en/agents-and-tools/tool-use/computer-use-tool.md
@@ -2187,7 +2187,11 @@ Two earlier versions of the computer use tool are available in beta. Each requir
| Tool version | Beta header | Use with | Parameters |
| ----- | ----- | ----- | ----- |
| `computer_20251124` | `computer-use-2025-11-24` | Claude Fable 5.1, Claude Mythos 5.1, Claude Fable 5, Claude Mythos 5, Claude Opus 5, Claude Sonnet 5, Claude Opus 4.8, Claude Opus 4.7, Claude Opus 4.6, Claude Sonnet 4.6, and Claude Opus 4.5 | [API reference](https://platform.claude.com/docs/en/api/beta/messages/create) |
-| `computer_20250124` | `computer-use-2025-01-24` | Claude Sonnet 4.5 ([deprecated](https://platform.claude.com/docs/en/about-claude/model-deprecations)), Claude Haiku 4.5, Claude Opus 4.1 ([retired, except on Claude Models on Google Cloud (Google managed) and Bedrock](https://platform.claude.com/docs/en/about-claude/model-deprecations)), Claude Sonnet 4 ([retired, except on Claude Models on Google Cloud (Google managed) and Bedrock](https://platform.claude.com/docs/en/about-claude/model-deprecations)), and Claude Opus 4 ([retired, except on Claude Models on Google Cloud (Google managed)](https://platform.claude.com/docs/en/about-claude/model-deprecations)) | [API reference](https://platform.claude.com/docs/en/api/beta/messages/create) |
+| `computer_20250124` | `computer-use-2025-01-24` | Claude Sonnet 4.5, Claude Haiku 4.5, Claude Opus 4.1, Claude Sonnet 4, and Claude Opus 4 | [API reference](https://platform.claude.com/docs/en/api/beta/messages/create) |
+
+Claude Opus 4.1, Claude Sonnet 4, and Claude Opus 4 are retired on [Anthropic-operated platforms](https://platform.claude.com/docs/en/about-claude/model-deprecations#overview).
+
+Claude Opus 4.5 is deprecated on [Anthropic-operated platforms](https://platform.claude.com/docs/en/about-claude/model-deprecations#overview). Claude Sonnet 4.5 is deprecated on the same platforms. For retirement dates and recommended replacements, see [Deprecation history](https://platform.claude.com/docs/en/about-claude/model-deprecations#deprecation-history) on the Model deprecations page. [Partner-operated platforms](https://platform.claude.com/docs/en/about-claude/model-deprecations#overview) set their own retirement schedules.
On Amazon Bedrock, Claude Fable 5.2, Claude Mythos 5.2, Claude Opus 5.5, Claude Sonnet 5.5, and Claude Haiku 5.5 also accept the `computer_20251124` tool with the `computer-use-2025-11-24` beta header. With Amazon Bedrock’s InvokeModel API, send `computer-use-2025-11-24` in the `anthropic_beta` array of the request body instead of in a header. For that API, see [Claude on Amazon Bedrock (`bedrock-runtime`)](https://platform.claude.com/docs/en/build-with-claude/claude-on-amazon-bedrock-legacy).
diff --git a/content/en/agents-and-tools/tool-use/tool-search-tool.md b/content/en/agents-and-tools/tool-use/tool-search-tool.md
index 3f673f1c1f..df6d64cb50 100644
--- a/content/en/agents-and-tools/tool-use/tool-search-tool.md
+++ b/content/en/agents-and-tools/tool-use/tool-search-tool.md
@@ -80,11 +80,13 @@ Both tool search variants are available on the following models:
| Claude Opus 4.6 (claude-opus-4-6) | `tool_search_tool_regex_20251119`, `tool_search_tool_bm25_20251119` |
| Claude Sonnet 4.6 (claude-sonnet-4-6) | `tool_search_tool_regex_20251119`, `tool_search_tool_bm25_20251119` |
| Claude Opus 4.5 (claude-opus-4-5-20251101) | `tool_search_tool_regex_20251119`, `tool_search_tool_bm25_20251119` |
-| Claude Sonnet 4.5 (claude-sonnet-4-5-20250929) (deprecated; see [Model deprecations](https://platform.claude.com/docs/en/about-claude/model-deprecations)) | `tool_search_tool_regex_20251119`, `tool_search_tool_bm25_20251119` |
+| Claude Sonnet 4.5 (claude-sonnet-4-5-20250929) | `tool_search_tool_regex_20251119`, `tool_search_tool_bm25_20251119` |
| Claude Haiku 4.5 (claude-haiku-4-5-20251001) | `tool_search_tool_regex_20251119`, `tool_search_tool_bm25_20251119` |
Claude Opus 4.1 and earlier models don’t support the tool search tool.
+Claude Opus 4.5 is deprecated on [Anthropic-operated platforms](https://platform.claude.com/docs/en/about-claude/model-deprecations#overview). Claude Sonnet 4.5 is deprecated on the same platforms. For retirement dates and recommended replacements, see [Deprecation history](https://platform.claude.com/docs/en/about-claude/model-deprecations#deprecation-history) on the Model deprecations page. [Partner-operated platforms](https://platform.claude.com/docs/en/about-claude/model-deprecations#overview) set their own retirement schedules.
+
## How tool search works
There are two tool search variants:
diff --git a/content/en/api/claude-platform-on-aws-iam-actions.md b/content/en/api/claude-platform-on-aws-iam-actions.md
index 60d438151b..a90df86c4f 100644
--- a/content/en/api/claude-platform-on-aws-iam-actions.md
+++ b/content/en/api/claude-platform-on-aws-iam-actions.md
@@ -298,7 +298,7 @@ Actions follow the AWS `VerbNoun` convention and use verb discipline so that `Ge
| ----- | ----- |
| `AssumeConsole` | (none) |
-`AssumeConsole` authorizes a principal to open the Claude Console for its Claude Platform on AWS organization through the AWS Console federation flow. It does not map to a route or bind to a workspace ARN, so a statement that grants it needs `Resource: "*"`. Grant it to principals who should be able to click **Open Claude Console** on the Claude Platform on AWS service page in the AWS Console. See [Using the Claude Console](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws#using-the-claude-console) for the sign-in flow and what each Claude Console role (Admin or Developer) can do.
+`AssumeConsole` authorizes a principal to open the Claude Console for its Claude Platform on AWS organization through the AWS Console federation flow. It does not map to a route or bind to a workspace ARN, so a statement that grants it needs `Resource: "*"`. Grant it to principals who should be able to sign in to the Claude Console from the Claude Platform on AWS service page in the AWS Console. See [Using the Claude Console](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws#using-the-claude-console) for the sign-in flow and what each Claude Console role (Admin or Developer) can do.
A Claude Console session covers the whole organization, not one workspace, and some Claude Console pages bypass IAM action checks. On those pages, a principal with either Claude Console role can see the whole organization’s usage, cost, and rate limits, whatever its IAM policies allow. With the Admin role, it can also see request metadata on the **Logs** page. An Admin session can also change settings outside IAM, such as spend limits for the organization and each workspace. Grant `AssumeConsole` only to principals who may see and act on the whole organization. [Claude Console pages available on Claude Platform on AWS](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws#available-pages) shows which pages check IAM actions and which bypass them.
diff --git a/content/en/api/errors.md b/content/en/api/errors.md
index 8b66a6317a..339acf2dbb 100644
--- a/content/en/api/errors.md
+++ b/content/en/api/errors.md
@@ -4,6 +4,8 @@ url: https://platform.claude.com/docs/en/api/errors
description: Understand the HTTP status codes, error response shape, and request IDs the Claude API returns, and handle errors with the SDK's typed exceptions.
---
+To find the SDK error that an API error becomes, see [SDK error types](https://platform.claude.com/docs/en/api/errors#sdk-error-types). To catch it in your code, see [Handle errors](https://platform.claude.com/docs/en/api/handle-errors).
+
## HTTP errors
The API follows a predictable HTTP error code format:
@@ -14,7 +16,7 @@ The API follows a predictable HTTP error code format:
On Claude Models on Google Cloud (Anthropic managed), a 401 can mean a problem with your [Google Cloud credentials](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/anthropic-managed#authentication).
- A 401 whose message begins `CORS requests are not allowed for this Organization` is not a problem with your API key. The request included an `Origin` header, which browsers add, and your organization cannot call the Claude API directly from a browser. The message continues `because of custom retention settings` or `because of its settings`. The first appears only for data retention arrangements such as zero data retention (ZDR); the second is the general case, which includes the Compliance API. No change to the browser request fixes it, so send the request from your own back end; see [Browser-based applications](https://platform.claude.com/docs/en/manage-claude/authentication#browser-based-applications).
+ A 401 whose message begins `CORS requests are not allowed for this Organization` is not a problem with your API key. The request included an `Origin` header, which browsers add, and your organization cannot call the Claude API directly from a browser. The message continues `because of custom retention settings` or `because of its settings`. The first appears only for data retention arrangements such as zero data retention (ZDR); the second is the general case. No change to the browser request fixes it, so send the request from your own back end; see [Browser-based applications](https://platform.claude.com/docs/en/manage-claude/authentication#browser-based-applications).
* 402 - `billing_error`: There’s an issue with your billing or payment information. Check your payment details in the [Claude Console](https://platform.claude.com), or in AWS Marketplace if you’re using Claude Platform on AWS.
@@ -34,7 +36,9 @@ The API follows a predictable HTTP error code format:
* 429 - `rate_limit_error`: Your organization has hit a [rate limit](https://platform.claude.com/docs/en/api/rate-limits), reached its usage tier’s monthly spend cap, or reached a spend limit on the Claude Code workspace. A tier spend-cap 429 has no `retry-after` header and keeps failing until access resumes; see [Reaching your spend cap](https://platform.claude.com/docs/en/api/rate-limits#reaching-your-spend-cap) for how to recognize it. A sharp increase in usage can also cause a 429 even while you’re under your rate limits; see [Ramp limits](https://platform.claude.com/docs/en/api/rate-limits#ramp-limits).
-* 500 - `api_error`: An unexpected error has occurred internal to Anthropic’s systems. Retry the request with exponential backoff; if the error persists, contact support with the [request ID](https://platform.claude.com/docs/en/api/errors#request-id). If the error type is `timeout_error` instead, see the 504 entry.
+ To tell the spend cap from a rate limit in code, check the [error code](https://platform.claude.com/docs/en/api/errors#error-codes).
+
+* 500 - `api_error`: An unexpected error has occurred internal to Anthropic’s systems. Retry only if the response’s `x-should-retry` header isn’t `false` (see [Retries](https://platform.claude.com/docs/en/api/errors#retries)). If the error persists, contact support with the [request ID](https://platform.claude.com/docs/en/api/errors#request-id). If the error type is `timeout_error` instead, see the 504 entry.
* 504 - `timeout_error`: The request timed out while processing. The API also returns `timeout_error` with other status codes, such as a 500 when a request reaches the server’s time limit before the response starts. For long-running Messages API requests, use the [streaming Messages API](https://platform.claude.com/docs/en/build-with-claude/streaming). See [Long requests](https://platform.claude.com/docs/en/api/errors#long-requests) for more options.
@@ -44,10 +48,23 @@ The API follows a predictable HTTP error code format:
A 529 error can occur when the API experiences high traffic across all users.
-The official SDK automatically retries transient failures (such as connection errors, rate limits, and 5xx server errors) with exponential backoff, twice by default, honoring the `retry-after` header when present. The SDK client accepts `max_retries` (typescript, php: `maxRetries`; java: `.maxRetries()`; csharp: `MaxRetries`; go: `option.WithMaxRetries()`) to configure or disable this behavior.
-
When receiving a [streaming](https://platform.claude.com/docs/en/build-with-claude/streaming) response over server-sent events (SSE), an error can occur after the API returns a 200 response. In that case, error handling doesn’t follow these standard mechanisms. See [Error events](https://platform.claude.com/docs/en/build-with-claude/streaming#error-events) for the shape of mid-stream errors.
+The SDK doesn’t retry an error in a stream. To catch one, see [Handle an error in a stream](https://platform.claude.com/docs/en/api/handle-errors#handle-an-error-in-a-stream).
+
+### Retries
+
+By default, the SDK retries a failed request up to two times (three attempts in all). To change the number of retries, set `max_retries` (typescript, php: `maxRetries`; java: `.maxRetries()`; csharp: `MaxRetries`; go: `option.WithMaxRetries()`) on the client. A value of `0` turns retries off.
+
+For each failed attempt, the SDK determines two things:
+
+* **Whether the SDK retries:** If the response has an `x-should-retry` header (`true` or `false`), the SDK follows it. Otherwise, the SDK retries connection errors, timeouts, and the statuses 408, 409, 429, and 500 and above.
+* **How long the SDK waits:** If the response has a `retry-after` header, the SDK waits as long as the header says. Otherwise, it uses exponential backoff from 0.5 to 8 seconds.
+
+The Go SDK retries some create methods in fewer cases. See [Retries for create methods in the Go SDK](https://platform.claude.com/docs/en/cli-sdks-libraries/sdks/go#retries-for-create-methods).
+
+Without the SDK, follow `x-should-retry` and `retry-after` in your own code and use backoff and a retry limit.
+
## Request size limits
The first-party Claude API enforces these request size limits. For other platforms, see the [API overview](https://platform.claude.com/docs/en/api/overview#request-size-limits).
@@ -78,11 +95,233 @@ The API always returns errors as JSON, with a top-level `error` object that alwa
Under the [API versioning policy](https://platform.claude.com/docs/en/api/versioning), the values within these objects can expand, and new `type` values can appear.
-## SDK error types
+### Error codes
+
+Some errors also have an error code in `error.details.error_code`. One `type` can cover several causes, and a code names one of them.
+
+For example, hitting a rate limit and reaching your [monthly spend cap](https://platform.claude.com/docs/en/api/rate-limits#reaching-your-spend-cap) both cause a 429 `rate_limit_error`. On the Messages API, the spend-cap response adds a code:
-The official SDK raises typed exceptions for these errors instead of returning raw JSON. For example, a 404 surfaces as `anthropic.NotFoundError` (typescript: `Anthropic.NotFoundError`; ruby: `Anthropic::Errors::NotFoundError`; java: `com.anthropic.errors.NotFoundException`; csharp: `AnthropicNotFoundException`; php: `Anthropic\Core\Exceptions\NotFoundException`; go: `*anthropic.Error`). The Go SDK has one error type for every status, `*anthropic.Error`: branch on `StatusCode`. Catch the SDK’s typed classes rather than string-matching error messages, handling the most specific classes first. Your SDK’s page documents the full exception hierarchy:
+```json JSON
+{
+ "type": "error",
+ "error": {
+ "type": "rate_limit_error",
+ "message": "You have reached your API usage limits: ...",
+ "details": { "error_code": "enforced_spend_limit_reached" }
+ },
+ "request_id": "req_018EeWyXxfu5pfWkrYcMdjWG"
+}
+```
-* [Python](https://platform.claude.com/docs/en/cli-sdks-libraries/sdks/python#handling-errors) · [TypeScript](https://platform.claude.com/docs/en/cli-sdks-libraries/sdks/typescript#handling-errors) · [C#](https://platform.claude.com/docs/en/cli-sdks-libraries/sdks/csharp#error-handling) · [Go](https://platform.claude.com/docs/en/cli-sdks-libraries/sdks/go#error-handling) · [Java](https://platform.claude.com/docs/en/cli-sdks-libraries/sdks/java#error-handling) · [PHP](https://platform.claude.com/docs/en/cli-sdks-libraries/sdks/php#error-handling) · [Ruby](https://platform.claude.com/docs/en/cli-sdks-libraries/sdks/ruby#handling-errors)
+Other APIs that return this 429, such as Claude Managed Agents, don’t add the code. There, only the `message` tells the two causes apart, and you shouldn’t match it in code. A spend-cap 429 keeps failing until access resumes, so limit your retries after a 429.
+
+The set of codes can grow. If an error has no code or has a code that you don’t recognize, handle it by its `type` or HTTP status.
+
+For the full list of codes, see [`ErrorDetails`](https://platform.claude.com/docs/en/api/$shared#error_details) in the API reference. To find the codes that a method can return, see [Handle a specific error code](https://platform.claude.com/docs/en/api/handle-errors#handle-a-specific-error-code).
+
+## SDK error types
+
+This section lists what to catch or check in the SDK for each kind of error. To write a handler, see [Handle errors](https://platform.claude.com/docs/en/api/handle-errors).
+
+
+
+ These classes are in the `anthropic` package unless a row names another. A class also catches its subclasses, so put the narrower class first. For example, `RateLimitError` also catches `EnforcedSpendLimitReachedError`.
+
+ | To handle | Catch |
+ | ----- | ----- |
+ | One [error code](https://platform.claude.com/docs/en/api/errors#error-codes) | Its own class, such as `anthropic.EnforcedSpendLimitReachedError` (see [Handle a specific error code](https://platform.claude.com/docs/en/api/handle-errors#handle-a-specific-error-code)) |
+ | 400 | `BadRequestError` |
+ | 401 | `AuthenticationError` |
+ | 403 | `PermissionDeniedError` |
+ | 404 | `NotFoundError` |
+ | 409 | `ConflictError` |
+ | 413 | `ContentTooLargeError` |
+ | 422 | `UnprocessableEntityError` |
+ | 429 | `RateLimitError` |
+ | 504 | `GatewayTimeoutError` |
+ | 529 | `OverloadedError` |
+ | Every 5xx, such as 500, 504, and 529 | `InternalServerError` |
+ | Every error response | `APIStatusError` |
+ | An error event in a stream | `APIStatusError` |
+ | A client timeout (the SDK stopped waiting) | `APITimeoutError` |
+ | Every connection failure before a response arrives (including a client timeout) | `APIConnectionError` |
+ | A connection that drops or stalls in mid-stream | `httpx2.TransportError` (`httpx2` is the SDK’s HTTP library) |
+ | Every error in this table except a dropped stream | `APIError` |
+
+ For a status that has no row, such as 402, catch `APIStatusError` and compare its `status_code`.
+
+ To reach the underlying exception or the raw response, see [Handling errors in Python](https://platform.claude.com/docs/en/cli-sdks-libraries/sdks/python#handling-errors).
+
+
+
+ These classes are properties of `Anthropic` unless a row says otherwise. A class also catches its subclasses, so put the narrower class first. For example, `RateLimitError` also catches `EnforcedSpendLimitReachedError`.
+
+ | To handle | Catch |
+ | ----- | ----- |
+ | One [error code](https://platform.claude.com/docs/en/api/errors#error-codes) | Its own class, such as `Anthropic.EnforcedSpendLimitReachedError` (see [Handle a specific error code](https://platform.claude.com/docs/en/api/handle-errors#handle-a-specific-error-code)) |
+ | 400 | `BadRequestError` |
+ | 401 | `AuthenticationError` |
+ | 403 | `PermissionDeniedError` |
+ | 404 | `NotFoundError` |
+ | 409 | `ConflictError` |
+ | 413 | `ContentTooLargeError` |
+ | 422 | `UnprocessableEntityError` |
+ | 429 | `RateLimitError` |
+ | 504 | `GatewayTimeoutError` |
+ | 529 | `OverloadedError` |
+ | Every 5xx, such as 500, 504, and 529 | `InternalServerError` |
+ | A client timeout (the SDK stopped waiting) | `APIConnectionTimeoutError` |
+ | Every connection failure before a response arrives (including a client timeout) | `APIConnectionError` |
+ | A connection that drops in mid-stream | `AnthropicError` from `client.messages.stream()`. With `stream: true`, catch the runtime’s own error, such as `TypeError`. |
+ | An error event in a stream | `APIError` |
+ | Every error in this table except a dropped stream | `APIError` |
+
+ For a status that has no row, such as 402, catch `APIError` and compare its `status`.
+
+ To read the response headers, see [Handling errors in TypeScript](https://platform.claude.com/docs/en/cli-sdks-libraries/sdks/typescript#handling-errors).
+
+
+
+ These classes are in the `Anthropic.Exceptions` namespace unless a row names another. A class also catches its subclasses, so put the narrower class first. For example, `AnthropicRateLimitException` also catches `AnthropicEnforcedSpendLimitReachedException`.
+
+ | To handle | Catch |
+ | ----- | ----- |
+ | One [error code](https://platform.claude.com/docs/en/api/errors#error-codes) | Its own class, such as `Anthropic.Models.AnthropicEnforcedSpendLimitReachedException` (see [Handle a specific error code](https://platform.claude.com/docs/en/api/handle-errors#handle-a-specific-error-code)) |
+ | 400 | `AnthropicBadRequestException` |
+ | 401 | `AnthropicUnauthorizedException` |
+ | 403 | `AnthropicForbiddenException` |
+ | 404 | `AnthropicNotFoundException` |
+ | 409 | `AnthropicConflictException` |
+ | 413 | `AnthropicContentTooLargeException` |
+ | 422 | `AnthropicUnprocessableEntityException` |
+ | 429 | `AnthropicRateLimitException` |
+ | 504 | `AnthropicGatewayTimeoutException` |
+ | 529 | `AnthropicOverloadedException` |
+ | Every 4xx | `Anthropic4xxException` |
+ | Every 5xx, such as 500, 504, and 529 | `Anthropic5xxException` |
+ | Every error response | `AnthropicApiException` |
+ | An error event in a stream | `AnthropicSseException` |
+ | Every error response and every error event in a stream | `AnthropicServiceException` |
+ | A connection failure before a response arrives | `AnthropicIOException` |
+ | A connection that drops in mid-stream | .NET’s own `IOException` in `System.IO` |
+ | A client timeout (the SDK stopped waiting) | .NET’s own `TaskCanceledException` in `System.Threading.Tasks` |
+ | Every error in this table except a client timeout and a dropped stream | `AnthropicException` |
+
+ For a status that has no row of its own, such as 402, catch `Anthropic4xxException` and compare its `StatusCode`.
+
+
+
+ The Go SDK has one error type, `*anthropic.Error`. You compare its fields instead of catching a class. In this table, `apierr` is a `*anthropic.Error` variable that `errors.As()` fills.
+
+ | To handle | Check |
+ | ----- | ----- |
+ | One [error code](https://platform.claude.com/docs/en/api/errors#error-codes) | `apierr.ErrorCode() == anthropic.ErrorCodeEnforcedSpendLimitReached` |
+ | One HTTP status | `apierr.StatusCode == http.StatusTooManyRequests` |
+ | Every error response | `errors.As(err, &apierr)` |
+ | An error event in a stream | `errors.As(stream.Err(), &apierr)` |
+ | A connection failure, a client timeout, or a connection that drops in mid-stream | Any other `err` that isn’t `nil` |
+
+ Each error code has its own constant (see [Handle a specific error code](https://platform.claude.com/docs/en/api/handle-errors#handle-a-specific-error-code)).
+
+ To print the raw request and response of a `*anthropic.Error`, see [Error handling in Go](https://platform.claude.com/docs/en/cli-sdks-libraries/sdks/go#error-handling).
+
+
+
+ These classes are in the `com.anthropic.errors` package unless a row names another. A class also catches its subclasses, so put the narrower class first. For example, `RateLimitException` also catches `EnforcedSpendLimitReachedException`.
+
+ | To handle | Catch |
+ | ----- | ----- |
+ | One [error code](https://platform.claude.com/docs/en/api/errors#error-codes) | Its own class, such as `com.anthropic.models.EnforcedSpendLimitReachedException` (see [Handle a specific error code](https://platform.claude.com/docs/en/api/handle-errors#handle-a-specific-error-code)) |
+ | 400 | `BadRequestException` |
+ | 401 | `UnauthorizedException` |
+ | 403 | `PermissionDeniedException` |
+ | 404 | `NotFoundException` |
+ | 409 | `ConflictException` |
+ | 413 | `ContentTooLargeException` |
+ | 422 | `UnprocessableEntityException` |
+ | 429 | `RateLimitException` |
+ | 504 | `GatewayTimeoutException` |
+ | 529 | `OverloadedException` |
+ | Every 5xx, such as 500, 504, and 529 | `InternalServerException` |
+ | An error event in a stream | `SseException` |
+ | Every error response and every error event in a stream | `AnthropicServiceException` |
+ | A connection failure, a client timeout, or a connection that drops in mid-stream | `AnthropicIoException` |
+ | Every error in this table | `AnthropicException` |
+
+ For a status that has no row, such as 402, catch `AnthropicServiceException` and compare its `statusCode()`.
+
+ The error’s `errorCode()` and `type()` each return an `Optional`.
+
+ To read the response headers, see [Error handling in Java](https://platform.claude.com/docs/en/cli-sdks-libraries/sdks/java#error-handling).
+
+
+
+ These classes are in the `Anthropic\Core\Exceptions` namespace unless a row names another. A class also catches its subclasses, so put the narrower class first. For example, `RateLimitException` also catches `EnforcedSpendLimitReachedException`.
+
+ | To handle | Catch |
+ | ----- | ----- |
+ | One [error code](https://platform.claude.com/docs/en/api/errors#error-codes) | Its own class, such as `Anthropic\EnforcedSpendLimitReachedException` (see [Handle a specific error code](https://platform.claude.com/docs/en/api/handle-errors#handle-a-specific-error-code)) |
+ | 400 | `BadRequestException` |
+ | 401 | `AuthenticationException` |
+ | 403 | `PermissionDeniedException` |
+ | 404 | `NotFoundException` |
+ | 409 | `ConflictException` |
+ | 413 | `ContentTooLargeException` |
+ | 422 | `UnprocessableEntityException` |
+ | 429 | `RateLimitException` |
+ | 504 | `GatewayTimeoutException` |
+ | 529 | `OverloadedException` |
+ | Every 5xx, such as 500, 504, and 529 | `InternalServerException` |
+ | Every error response | `APIStatusException` |
+ | An error event in a stream | `APIStatusException` |
+ | A connection failure before a response arrives or a client timeout | `APIConnectionException` |
+ | A connection that drops in mid-stream | The HTTP client’s own exception or none (see the paragraph after this table). With Guzzle 7, a connection reset raises PHP’s `\RuntimeException`. |
+ | Every error in this table except a dropped stream | `APIException` |
+
+ If the server closes the connection in mid-stream, the stream ends with no error. Check that a `message_stop` event arrived.
+
+ For a status that has no row, such as 402, catch `APIStatusException` and compare its `status`.
+
+ To reach the underlying exception, see [Error handling in PHP](https://platform.claude.com/docs/en/cli-sdks-libraries/sdks/php#error-handling).
+
+
+
+ These classes are in the `Anthropic::Errors` module unless a row names another. A class also catches its subclasses, so put the narrower class first. For example, `RateLimitError` also catches `EnforcedSpendLimitReachedError`.
+
+ | To handle | Catch |
+ | ----- | ----- |
+ | One [error code](https://platform.claude.com/docs/en/api/errors#error-codes) | Its own class, such as `Anthropic::EnforcedSpendLimitReachedError` (see [Handle a specific error code](https://platform.claude.com/docs/en/api/handle-errors#handle-a-specific-error-code)) |
+ | 400 | `BadRequestError` |
+ | 401 | `AuthenticationError` |
+ | 403 | `PermissionDeniedError` |
+ | 404 | `NotFoundError` |
+ | 409 | `ConflictError` |
+ | 413 | `ContentTooLargeError` |
+ | 422 | `UnprocessableEntityError` |
+ | 429 | `RateLimitError` |
+ | 504 | `GatewayTimeoutError` |
+ | 529 | `OverloadedError` |
+ | Every 5xx, such as 500, 504, and 529 | `InternalServerError` |
+ | Every error response | `APIStatusError` |
+ | An error event in a stream | `APIStatusError` |
+ | A client timeout (the SDK stopped waiting) | `APITimeoutError` |
+ | Every connection failure (including a client timeout and a connection that drops in mid-stream) | `APIConnectionError` |
+ | Every error in this table | `APIError` |
+
+ For a status that has no row, such as 402, catch `APIStatusError` and compare its `status`.
+
+ The error’s `error_code` and `type` are symbols.
+
+ To reach the underlying exception, see [Handling errors in Ruby](https://platform.claude.com/docs/en/cli-sdks-libraries/sdks/ruby#handling-errors).
+
+
+
+The table goes by HTTP status and error code, not by `error.type`:
+
+* A 503 with `overloaded_error` counts as a 5xx, not as a 529.
+* An error event in a stream never matches a status row or a code’s class. Its HTTP status is the stream’s 200 or is missing.
+
+To go by `error.type` instead, check the error’s `type` (csharp: `Type`; go: `Type()`; java: `type()`; php: `getType()`) as in [Handle an error in a stream](https://platform.claude.com/docs/en/api/handle-errors#handle-an-error-in-a-stream).
## Request ID
@@ -90,6 +329,8 @@ Every API response includes a unique `request-id` header. This header contains a
On [Claude Platform on AWS](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws), responses include two request IDs: the AWS request ID (`x-amzn-requestid`, primary, indexed in CloudTrail) and the Anthropic request ID (`request-id`, secondary). Use the AWS request ID for CloudTrail lookups and the Anthropic request ID for Anthropic support tickets.
+When the API returns an error response, read the ID from the SDK error in `request_id` (typescript: `requestID`; csharp, go: `RequestID`; java: `requestId()`; php: `getRequestID()`). For a sample, see [Catch errors by kind](https://platform.claude.com/docs/en/api/handle-errors#catch-errors-by-kind). When a request succeeds, read the ID from the response.
+
The Python and TypeScript SDKs expose the request ID as a `_request_id` property on top-level response objects. The C#, Go, Java, and PHP SDKs expose it through their raw-response accessors, and the Ruby SDK through [middleware](https://platform.claude.com/docs/en/cli-sdks-libraries/middleware). In every SDK except Ruby, use `with_raw_response` (typescript: `.withResponse()`; java: `.withRawResponse()`; csharp: `WithRawResponse`; go: `option.WithResponseInto()`; php: `->raw`) to read any other [response header](https://platform.claude.com/docs/en/api/overview#response-headers), such as `anthropic-organization-id` and [`anthropic-workspace-id`](https://platform.claude.com/docs/en/manage-claude/workspaces#identify-the-workspace-behind-an-api-response). In Ruby, use the same middleware. On Claude Platform on AWS, use the raw-response accessor to read the AWS request ID (`x-amzn-requestid`) as well:
@@ -586,7 +827,7 @@ If every request to [Claude Platform on AWS](https://platform.claude.com/docs/en
To mitigate misuse and manage capacity on the API, limits are in place on how much an organization can use the Claude API.
-
- Stream Messages API responses incrementally with server-sent events, including text, tool use, and extended thinking deltas.
+
+ Use the SDK to catch Claude API errors by error code, HTTP status, or connection failure and to handle an error that arrives in a stream.
diff --git a/content/en/api/handle-errors.md b/content/en/api/handle-errors.md
new file mode 100644
index 0000000000..afa111e917
--- /dev/null
+++ b/content/en/api/handle-errors.md
@@ -0,0 +1,495 @@
+---
+title: Handle errors
+url: https://platform.claude.com/docs/en/api/handle-errors
+description: Use the SDK to catch Claude API errors by error code, HTTP status, or connection failure and to handle an error that arrives in a stream.
+---
+
+Use the SDK to catch Claude API errors by error code, HTTP status, or connection failure and to handle an error that arrives in a stream. To learn what each error means or to call the API without the SDK, see [Claude API errors](https://platform.claude.com/docs/en/api/errors).
+
+
+ The examples on this page need the [latest version of the SDK](https://platform.claude.com/docs/en/cli-sdks-libraries/overview#latest-versions).
+
+
+## Catch errors by kind
+
+This example handles one [error code](https://platform.claude.com/docs/en/api/errors#error-codes), one HTTP status, a connection failure, and every other error response:
+
+
+ ```python Python
+ client = anthropic.Anthropic()
+
+ try:
+ client.messages.create(
+ model="claude-opus-5-5",
+ max_tokens=1024,
+ messages=[{"role": "user", "content": "Hello, Claude"}],
+ )
+ except anthropic.EnforcedSpendLimitReachedError as e:
+ # One error code: enforced_spend_limit_reached
+ print("Monthly spend cap reached:", e.api_message)
+ except anthropic.RateLimitError as e:
+ # One HTTP status: any other 429
+ print("Rate limited. Request ID:", e.request_id)
+ except anthropic.APIConnectionError:
+ # An error with no response, such as a network failure or a timeout
+ print("Connection failed")
+ except anthropic.APIStatusError as e:
+ # Every other error response
+ print(e.status_code) # HTTP status
+ print(e.type) # error.type
+ print(e.api_message) # error.message
+ print(e.error_code) # error.details.error_code if any
+ print(e.details) # error.details if any
+ print(e.request_id) # request_id
+ ```
+
+ ```typescript TypeScript
+ const client = new Anthropic();
+
+ try {
+ await client.messages.create({
+ model: "claude-opus-5-5",
+ max_tokens: 1024,
+ messages: [{ role: "user", content: "Hello, Claude" }]
+ });
+ } catch (err) {
+ if (err instanceof Anthropic.EnforcedSpendLimitReachedError) {
+ // One error code: enforced_spend_limit_reached
+ console.log("Monthly spend cap reached:", err.apiMessage);
+ } else if (err instanceof Anthropic.RateLimitError) {
+ // One HTTP status: any other 429
+ console.log("Rate limited. Request ID:", err.requestID);
+ } else if (err instanceof Anthropic.APIConnectionError) {
+ // An error with no response, such as a network failure or a timeout
+ console.log("Connection failed");
+ } else if (err instanceof Anthropic.APIError) {
+ // Every other error response
+ console.log(err.status); // HTTP status
+ console.log(err.type); // error.type
+ console.log(err.apiMessage); // error.message
+ console.log(err.errorCode); // error.details.error_code if any
+ console.log(err.details); // error.details if any
+ console.log(err.requestID); // request_id
+ } else {
+ throw err;
+ }
+ }
+ ```
+
+ ```csharp C#
+ using Anthropic.Exceptions;
+ using Anthropic.Models;
+ using Anthropic.Models.Messages;
+
+ AnthropicClient client = new();
+
+ try
+ {
+ await client.Messages.Create(new MessageCreateParams
+ {
+ Model = Model.ClaudeOpus5_5,
+ MaxTokens = 1024,
+ Messages = [new UserMessageParam { Content = "Hello, Claude" }]
+ });
+ }
+ catch (AnthropicEnforcedSpendLimitReachedException e)
+ {
+ // One error code: enforced_spend_limit_reached
+ Console.WriteLine($"Monthly spend cap reached: {e.ApiMessage}");
+ }
+ catch (AnthropicRateLimitException e)
+ {
+ // One HTTP status: any other 429
+ Console.WriteLine($"Rate limited. Request ID: {e.RequestID}");
+ }
+ catch (Exception e) when (e is AnthropicIOException or TaskCanceledException)
+ {
+ // An error with no response, such as a network failure or a timeout
+ Console.WriteLine("Connection failed");
+ }
+ catch (AnthropicApiException e)
+ {
+ // Every other error response
+ Console.WriteLine((int)e.StatusCode); // HTTP status
+ Console.WriteLine(e.Type?.Raw()); // error.type
+ Console.WriteLine(e.ApiMessage); // error.message
+ Console.WriteLine(e.ErrorCode); // error.details.error_code if any
+ Console.WriteLine(e.Details); // error.details if any
+ Console.WriteLine(e.RequestID); // request_id
+ }
+ ```
+
+ ```go Go
+ client := anthropic.NewClient()
+
+ _, err := client.Messages.New(context.TODO(), anthropic.MessageNewParams{
+ Model: anthropic.ModelClaudeOpus5_5,
+ MaxTokens: 1024,
+ Messages: []anthropic.MessageParam{
+ anthropic.NewUserMessage(anthropic.NewTextBlock("Hello, Claude")),
+ },
+ })
+
+ // The Go SDK has one error type. Branch on the error's code and status.
+ var apierr *anthropic.Error
+ if errors.As(err, &apierr) {
+ switch {
+ case apierr.ErrorCode() == anthropic.ErrorCodeEnforcedSpendLimitReached:
+ // One error code: enforced_spend_limit_reached
+ fmt.Println("Monthly spend cap reached:", apierr.Message)
+ case apierr.StatusCode == http.StatusTooManyRequests:
+ // One HTTP status: any other 429
+ fmt.Println("Rate limited. Request ID:", apierr.RequestID)
+ default:
+ // Every other error response
+ fmt.Println(apierr.StatusCode) // HTTP status
+ fmt.Println(apierr.Type()) // error.type
+ fmt.Println(apierr.Message) // error.message
+ fmt.Println(apierr.ErrorCode()) // error.details.error_code if any
+ fmt.Println(apierr.Details.RawJSON()) // error.details if any
+ fmt.Println(apierr.RequestID) // request_id
+ }
+ } else if err != nil {
+ // Any other error, such as a network failure or a timeout
+ fmt.Println("Connection failed")
+ }
+ ```
+
+ ```java Java
+ import com.anthropic.client.AnthropicClient;
+ import com.anthropic.client.okhttp.AnthropicOkHttpClient;
+ import com.anthropic.errors.AnthropicIoException;
+ import com.anthropic.errors.AnthropicServiceException;
+ import com.anthropic.errors.RateLimitException;
+ import com.anthropic.models.EnforcedSpendLimitReachedException;
+ import com.anthropic.models.messages.MessageCreateParams;
+ import com.anthropic.models.messages.Model;
+
+ void main() {
+ AnthropicClient client = AnthropicOkHttpClient.fromEnv();
+
+ MessageCreateParams params = MessageCreateParams.builder()
+ .model(Model.CLAUDE_OPUS_5_5)
+ .maxTokens(1024L)
+ .addUserMessage("Hello, Claude")
+ .build();
+
+ try {
+ client.messages().create(params);
+ } catch (EnforcedSpendLimitReachedException e) {
+ // One error code: enforced_spend_limit_reached
+ IO.println("Monthly spend cap reached: " + e.apiMessage().orElse(""));
+ } catch (RateLimitException e) {
+ // One HTTP status: any other 429
+ IO.println("Rate limited. Request ID: " + e.requestId().orElse(""));
+ } catch (AnthropicIoException e) {
+ // An error with no response, such as a network failure or a timeout
+ IO.println("Connection failed");
+ } catch (AnthropicServiceException e) {
+ // Every other error response
+ IO.println(e.statusCode()); // HTTP status
+ IO.println(e.type().orElse(null)); // error.type
+ IO.println(e.apiMessage().orElse(null)); // error.message
+ IO.println(e.errorCode().orElse(null)); // error.details.error_code if any
+ IO.println(e.errorDetails().orElse(null)); // error.details if any
+ IO.println(e.requestId().orElse(null)); // request_id
+ }
+ }
+ ```
+
+ ```php PHP
+ use Anthropic\Core\Exceptions\APIConnectionException;
+ use Anthropic\Core\Exceptions\APIStatusException;
+ use Anthropic\Core\Exceptions\RateLimitException;
+ use Anthropic\EnforcedSpendLimitReachedException;
+ use Anthropic\Messages\Model;
+
+ $client = new Client();
+
+ try {
+ $client->messages->create(
+ model: Model::CLAUDE_OPUS_5_5,
+ maxTokens: 1024,
+ messages: [['role' => 'user', 'content' => 'Hello, Claude']],
+ );
+ } catch (EnforcedSpendLimitReachedException $e) {
+ // One error code: enforced_spend_limit_reached
+ echo 'Monthly spend cap reached: ', $e->getAPIMessage(), PHP_EOL;
+ } catch (RateLimitException $e) {
+ // One HTTP status: any other 429
+ echo 'Rate limited. Request ID: ', $e->getRequestID(), PHP_EOL;
+ } catch (APIConnectionException) {
+ // An error with no response, such as a network failure or a timeout
+ echo 'Connection failed', PHP_EOL;
+ } catch (APIStatusException $e) {
+ // Every other error response
+ echo $e->status, PHP_EOL; // HTTP status
+ echo $e->getType(), PHP_EOL; // error.type
+ echo $e->getAPIMessage(), PHP_EOL; // error.message
+ echo $e->getErrorCode(), PHP_EOL; // error.details.error_code if any
+ echo json_encode($e->getDetails()), PHP_EOL; // error.details if any
+ echo $e->getRequestID(), PHP_EOL; // request_id
+ }
+ ```
+
+ ```ruby Ruby
+ client = Anthropic::Client.new
+
+ begin
+ client.messages.create(
+ model: Anthropic::Model::CLAUDE_OPUS_5_5,
+ max_tokens: 1024,
+ messages: [{ role: "user", content: "Hello, Claude" }]
+ )
+ rescue Anthropic::EnforcedSpendLimitReachedError => e
+ # One error code: enforced_spend_limit_reached
+ puts "Monthly spend cap reached: #{e.api_message}"
+ rescue Anthropic::Errors::RateLimitError => e
+ # One HTTP status: any other 429
+ puts "Rate limited. Request ID: #{e.request_id}"
+ rescue Anthropic::Errors::APIConnectionError
+ # An error with no response, such as a network failure or a timeout
+ puts "Connection failed"
+ rescue Anthropic::Errors::APIStatusError => e
+ # Every other error response
+ puts e.status # HTTP status
+ puts e.type # error.type as a symbol
+ puts e.api_message # error.message
+ puts e.error_code # error.details.error_code as a symbol if any
+ puts e.details # error.details if any
+ puts e.request_id # request_id
+ end
+ ```
+
+
+An error reaches your code after the SDK’s own retries, if any, have failed (see [Retries](https://platform.claude.com/docs/en/api/errors#retries)). For what each status means, see [HTTP errors](https://platform.claude.com/docs/en/api/errors#http-errors).
+
+Keep a narrow case before a broad one. The Messages API returns `enforced_spend_limit_reached`, the code for the [monthly spend cap](https://platform.claude.com/docs/en/api/rate-limits#reaching-your-spend-cap), with a 429. If the branch for a 429 came first, it would catch that code too.
+
+To handle another case, such as a 404, see [SDK error types](https://platform.claude.com/docs/en/api/errors#sdk-error-types).
+
+## Handle a specific error code
+
+To handle another error code, add its branch to [Catch errors by kind](https://platform.claude.com/docs/en/api/handle-errors#catch-errors-by-kind) before any broader branch.
+
+Each code has its own class or constant named after the code, such as `anthropic.EnforcedSpendLimitReachedError` (typescript: `Anthropic.EnforcedSpendLimitReachedError`; ruby: `Anthropic::EnforcedSpendLimitReachedError`; java: `com.anthropic.models.EnforcedSpendLimitReachedException`; php: `Anthropic\EnforcedSpendLimitReachedException`; csharp: `Anthropic.Models.AnthropicEnforcedSpendLimitReachedException`; go: `anthropic.ErrorCodeEnforcedSpendLimitReached`). Classes for other codes might sit in other namespaces. To find one, search the SDK’s source for the class name. A method’s doc comment lists the class or constant for each code that the method can return.
+
+For the full list of codes, see [`ErrorDetails`](https://platform.claude.com/docs/en/api/$shared#error_details) in the API reference.
+
+## Handle an error in a stream
+
+After a stream starts, the API has already returned a 200, so it sends an error as an [error event](https://platform.claude.com/docs/en/build-with-claude/streaming#error-events). The SDK doesn’t retry the request.
+
+Every error event reaches you as `APIStatusError` (typescript: `APIError`; csharp: `AnthropicSseException`; java: `SseException`; php: `APIStatusException`; go: `*anthropic.Error`). Its HTTP status is the stream’s 200 or is missing. So a branch for one status or for one code’s class doesn’t catch it. Instead, check its `error.type` for one of the types in [HTTP errors](https://platform.claude.com/docs/en/api/errors#http-errors):
+
+
+ ```python Python
+ client = anthropic.Anthropic()
+
+ try:
+ with client.messages.stream(
+ model="claude-opus-5-5",
+ max_tokens=1024,
+ messages=[{"role": "user", "content": "Hello, Claude"}],
+ ) as stream:
+ for text in stream.text_stream:
+ print(text, end="", flush=True)
+ except anthropic.APIStatusError as e:
+ if e.type == "overloaded_error":
+ # One error.type: overloaded_error
+ print("\nOverloaded:", e.api_message)
+ else:
+ raise
+ ```
+
+ ```typescript TypeScript
+ const client = new Anthropic();
+
+ try {
+ await client.messages
+ .stream({
+ model: "claude-opus-5-5",
+ max_tokens: 1024,
+ messages: [{ role: "user", content: "Hello, Claude" }]
+ })
+ .on("text", (text) => {
+ process.stdout.write(text);
+ })
+ .finalMessage();
+ } catch (err) {
+ if (err instanceof Anthropic.APIError && err.type === "overloaded_error") {
+ // One error.type: overloaded_error
+ console.log("\nOverloaded:", err.apiMessage);
+ } else {
+ throw err;
+ }
+ }
+ ```
+
+ ```csharp C#
+ using Anthropic.Exceptions;
+ using Anthropic.Models.Messages;
+
+ AnthropicClient client = new();
+
+ var parameters = new MessageCreateParams
+ {
+ Model = Model.ClaudeOpus5_5,
+ MaxTokens = 1024,
+ Messages = [new UserMessageParam { Content = "Hello, Claude" }]
+ };
+
+ try
+ {
+ await foreach (var streamEvent in client.Messages.CreateStreaming(parameters))
+ {
+ if (
+ streamEvent.TryPickContentBlockDelta(out var deltaEvent)
+ && deltaEvent.Delta.TryPickText(out var textDelta)
+ )
+ {
+ Console.Write(textDelta.Text);
+ }
+ }
+ }
+ // The base class of AnthropicSseException (error events)
+ // and AnthropicApiException (error responses)
+ catch (AnthropicServiceException e) when (e.Type?.Raw() == "overloaded_error")
+ {
+ // One error.type: overloaded_error
+ Console.WriteLine($"\nOverloaded: {e.ApiMessage}");
+ }
+ ```
+
+ ```go Go
+ client := anthropic.NewClient()
+
+ stream := client.Messages.NewStreaming(context.TODO(), anthropic.MessageNewParams{
+ Model: anthropic.ModelClaudeOpus5_5,
+ MaxTokens: 1024,
+ Messages: []anthropic.MessageParam{
+ anthropic.NewUserMessage(anthropic.NewTextBlock("Hello, Claude")),
+ },
+ })
+
+ for stream.Next() {
+ event := stream.Current()
+ switch eventVariant := event.AsAny().(type) {
+ case anthropic.ContentBlockDeltaEvent:
+ switch deltaVariant := eventVariant.Delta.AsAny().(type) {
+ case anthropic.TextDelta:
+ fmt.Print(deltaVariant.Text)
+ }
+ }
+ }
+
+ err := stream.Err()
+ var apierr *anthropic.Error
+ if errors.As(err, &apierr) && apierr.Type() == anthropic.ErrorTypeOverloadedError {
+ // One error.type: overloaded_error
+ fmt.Println("\nOverloaded:", apierr.Message)
+ } else if err != nil {
+ log.Fatal(err)
+ }
+ ```
+
+ ```java Java
+ import com.anthropic.client.AnthropicClient;
+ import com.anthropic.client.okhttp.AnthropicOkHttpClient;
+ import com.anthropic.errors.AnthropicServiceException;
+ import com.anthropic.models.ErrorType;
+ import com.anthropic.models.messages.MessageCreateParams;
+ import com.anthropic.models.messages.Model;
+
+ void main() {
+ AnthropicClient client = AnthropicOkHttpClient.fromEnv();
+
+ MessageCreateParams params = MessageCreateParams.builder()
+ .model(Model.CLAUDE_OPUS_5_5)
+ .maxTokens(1024L)
+ .addUserMessage("Hello, Claude")
+ .build();
+
+ try (var streamResponse = client.messages().createStreaming(params)) {
+ streamResponse.stream().forEach(event -> {
+ event.contentBlockDelta().ifPresent(deltaEvent ->
+ deltaEvent.delta().text().ifPresent(textDelta ->
+ IO.print(textDelta.text())
+ )
+ );
+ });
+ } catch (AnthropicServiceException e) {
+ // Catches error events (SseException) and error responses
+ if (ErrorType.OVERLOADED_ERROR.equals(e.type().orElse(null))) {
+ // One error.type: overloaded_error
+ IO.println("\nOverloaded: " + e.apiMessage().orElse(""));
+ } else {
+ throw e;
+ }
+ }
+ }
+ ```
+
+ ```php PHP
+ use Anthropic\Core\Exceptions\APIStatusException;
+ use Anthropic\Messages\Model;
+ use Anthropic\Messages\RawContentBlockDeltaEvent;
+ use Anthropic\Messages\TextDelta;
+
+ $client = new Client();
+
+ try {
+ $stream = $client->messages->createStream(
+ model: Model::CLAUDE_OPUS_5_5,
+ maxTokens: 1024,
+ messages: [['role' => 'user', 'content' => 'Hello, Claude']],
+ );
+
+ foreach ($stream as $event) {
+ if (
+ $event instanceof RawContentBlockDeltaEvent
+ && $event->delta instanceof TextDelta
+ ) {
+ echo $event->delta->text;
+ }
+ }
+ } catch (APIStatusException $e) {
+ if ($e->getType() === 'overloaded_error') {
+ // One error.type: overloaded_error
+ echo PHP_EOL, 'Overloaded: ', $e->getAPIMessage(), PHP_EOL;
+ } else {
+ throw $e;
+ }
+ }
+ ```
+
+ ```ruby Ruby
+ client = Anthropic::Client.new
+
+ begin
+ stream = client.messages.stream(
+ model: Anthropic::Model::CLAUDE_OPUS_5_5,
+ max_tokens: 1024,
+ messages: [{ role: "user", content: "Hello, Claude" }]
+ )
+
+ stream.text.each { |text| print(text) }
+ rescue Anthropic::Errors::APIStatusError => e
+ if e.type == :overloaded_error
+ # One error.type: overloaded_error
+ puts "\nOverloaded: #{e.api_message}"
+ else
+ raise
+ end
+ end
+ ```
+
+
+An error event can also have an [error code](https://platform.claude.com/docs/en/api/errors#error-codes). Read it from `error_code` (typescript: `errorCode`; csharp: `ErrorCode`; java: `errorCode().orElse(null)`; php: `getErrorCode()`; go: `ErrorCode()`) and compare it with the code that you want to handle, such as `"enforced_spend_limit_reached"` (ruby: `:enforced_spend_limit_reached`; go: `anthropic.ErrorCodeEnforcedSpendLimitReached`).
+
+A stream can fail in two other ways:
+
+* **The request fails before the stream starts:** You get the errors in [Catch errors by kind](https://platform.claude.com/docs/en/api/handle-errors#catch-errors-by-kind).
+* **The connection drops in mid-stream:** No error event arrives, and the connection branch in [Catch errors by kind](https://platform.claude.com/docs/en/api/handle-errors#catch-errors-by-kind) might not catch the error. To find what does, see [SDK error types](https://platform.claude.com/docs/en/api/errors#sdk-error-types).
+
+To continue the response after a stream fails, see [Error recovery](https://platform.claude.com/docs/en/build-with-claude/streaming#error-recovery).
diff --git a/content/en/api/rate-limits.md b/content/en/api/rate-limits.md
index 17719096f8..0df8966479 100644
--- a/content/en/api/rate-limits.md
+++ b/content/en/api/rate-limits.md
@@ -183,7 +183,7 @@ Each row in the following tables has its own RPM, ITPM, and OTPM limits. Some ro
*2 Opus rate limit is a total limit that applies to combined traffic across Claude Opus 4.8, Opus 4.7, Opus 4.6, and Opus 4.5. Claude Opus 4.5 is deprecated on the Claude API. For other platforms, see [Model deprecations](https://platform.claude.com/docs/en/about-claude/model-deprecations). Claude Opus 5.5 and Claude Opus 5 each have a separate rate limit and are not part of this combined bucket.*
-*3 Sonnet 4.x rate limit is a total limit that applies to combined traffic across Sonnet 4.6 and Sonnet 4.5 (deprecated; see [Model deprecations](https://platform.claude.com/docs/en/about-claude/model-deprecations)). Claude Sonnet 5.5 and Claude Sonnet 5 each have a separate rate limit and are not part of this combined bucket.*
+*3 Sonnet 4.x rate limit is a total limit that applies to combined traffic across Sonnet 4.6 and Sonnet 4.5. Claude Sonnet 4.5 is deprecated on the Claude API. For other platforms, see [Model deprecations](https://platform.claude.com/docs/en/about-claude/model-deprecations). Claude Sonnet 5.5 and Claude Sonnet 5 each have a separate rate limit and are not part of this combined bucket.*
### Ramp limits
diff --git a/content/en/build-with-claude/claude-in-microsoft-foundry.md b/content/en/build-with-claude/claude-in-microsoft-foundry.md
index 7c6576c0ac..3d0149f5fd 100644
--- a/content/en/build-with-claude/claude-in-microsoft-foundry.md
+++ b/content/en/build-with-claude/claude-in-microsoft-foundry.md
@@ -618,7 +618,11 @@ Claude in Microsoft Foundry supports most Claude features. [Features overview](h
### Context window
-All [available models](https://platform.claude.com/docs/en/build-with-claude/claude-in-microsoft-foundry#api-model-ids-and-deployments) have a [1M-token context window](https://platform.claude.com/docs/en/build-with-claude/context-windows) on Microsoft Foundry except Claude Opus 4.5, Claude Sonnet 4.5 (deprecated), and Claude Haiku 4.5. These three models have a 200k-token context window.
+On Microsoft Foundry, all [available models](https://platform.claude.com/docs/en/build-with-claude/claude-in-microsoft-foundry#api-model-ids-and-deployments) have a [1M-token context window](https://platform.claude.com/docs/en/build-with-claude/context-windows) except the models in the following list. These models have a 200k-token context window:
+
+* Claude Opus 4.5 (deprecated)
+* Claude Sonnet 4.5 (deprecated)
+* Claude Haiku 4.5
### Claude features not supported for Claude in Microsoft Foundry
diff --git a/content/en/build-with-claude/claude-models-on-google-cloud/google-managed.md b/content/en/build-with-claude/claude-models-on-google-cloud/google-managed.md
index 51b002bc1c..317f401d52 100644
--- a/content/en/build-with-claude/claude-models-on-google-cloud/google-managed.md
+++ b/content/en/build-with-claude/claude-models-on-google-cloud/google-managed.md
@@ -351,7 +351,7 @@ Multi-region and regional endpoints cost 10 percent more than global endpoints.
Regional endpoints serve Claude Sonnet 4.6 and earlier models only. For newer models, use a global or multi-region endpoint.
- The premium for multi-region and regional endpoints applies only to Claude Sonnet 4.5 (deprecated) and later models. For the models that keep their earlier pricing, see [Cloud platform pricing](https://platform.claude.com/docs/en/about-claude/pricing#cloud-platform-pricing). For regional endpoints, the premium reflects infrastructure costs for dedicated regional capacity.
+ The premium for multi-region and regional endpoints applies only to Claude 4.5 and later models (see [Cloud platform pricing](https://platform.claude.com/docs/en/about-claude/pricing#cloud-platform-pricing)). For regional endpoints, the premium reflects infrastructure costs for dedicated regional capacity.
The following examples use the `us` multi-region endpoint. The highlighted lines set the region. For a full request on the global endpoint, see [Making requests](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/google-managed#accessing-vertex-ai).
@@ -519,7 +519,7 @@ Claude Models on Google Cloud (Google managed) offers a [1M-token context window
* Claude Sonnet 4.6
* Claude Haiku 5.5
-Other Claude models have a 200k-token context window. These include Claude Sonnet 4.5 (deprecated) and Claude Sonnet 4 (deprecated).
+Other Claude models have a 200k-token context window.
Agent Platform limits request payloads to 30 MB. When you send large documents or many images, you might reach this limit before the token limit.
diff --git a/content/en/build-with-claude/claude-platform-on-aws.md b/content/en/build-with-claude/claude-platform-on-aws.md
index 2050177cdb..67a2249b54 100644
--- a/content/en/build-with-claude/claude-platform-on-aws.md
+++ b/content/en/build-with-claude/claude-platform-on-aws.md
@@ -40,7 +40,7 @@ If you need AWS-operated Claude, see [Claude in Amazon Bedrock](https://platform
[AWS PrivateLink](https://docs.aws.amazon.com/vpc/latest/privatelink/what-is-privatelink.html) is supported for connecting your VPC to the Claude Platform on AWS endpoint (see [Connect through AWS PrivateLink](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws#connect-through-aws-privatelink)).
-**When to choose Bedrock:** Organizations in regulated industries that require FedRAMP High, IL4, IL5, or HIPAA readiness, or that need AWS to be the sole data processor, should use [Claude in Amazon Bedrock](https://platform.claude.com/docs/en/build-with-claude/claude-in-amazon-bedrock). Bedrock runs entirely on AWS-controlled infrastructure with AWS as the operating party.
+**When to choose Bedrock:** Organizations in regulated industries that require FedRAMP High or HIPAA readiness, or that need AWS to be the sole data processor, should use [Claude in Amazon Bedrock](https://platform.claude.com/docs/en/build-with-claude/claude-in-amazon-bedrock). Bedrock runs entirely on AWS-controlled infrastructure with AWS as the operating party.
**Which offering are you using?** Claude is available through several distinct products:
@@ -95,8 +95,7 @@ Setting up Claude Platform on AWS takes four phases: sign up on the AWS Console
Access to the Claude Console is federated through AWS IAM:
1. Assume an IAM role with the `aws-external-anthropic:AssumeConsole` permission. See [Console access](https://platform.claude.com/docs/en/api/claude-platform-on-aws-iam-actions#console-access).
- 2. From the **Claude Platform on AWS** service page, click **Open Claude Console**. The AWS Console issues a JWT and redirects you to `platform.claude.com`.
- 3. On first sign-in, you’re prompted for an email address. Enter your work email. The platform provisions your Claude Console user just-in-time.
+ 2. On the **Claude Platform on AWS** service page, select **Admin** or **Developer** and click **Sign in**. The AWS Console issues a JWT and redirects you to `platform.claude.com`. On first sign-in, the platform provisions your Claude Console user just-in-time.
When you’re signed in through the AWS Console, the Claude Console scopes to your Claude Platform on AWS organization. An **Account managed by AWS** indicator appears in the bottom-left of the Claude Console sidebar.
@@ -628,10 +627,6 @@ Claude Platform on AWS supports the following inference geographies:
Set the inference geography for each request with the `inference_geo` parameter:
-
- The `inference_geo` parameter is supported on Claude 4.6 and later models. Requests with `inference_geo` on Claude Opus 4.5, Claude Sonnet 4.5 (deprecated), or Claude Haiku 4.5 return a 400 error. See [Data residency](https://platform.claude.com/docs/en/manage-claude/data-residency) for model availability details.
-
-
```bash cURL
# Replace us-west-2 with your AWS region in both the URL and --aws-sigv4
@@ -792,6 +787,8 @@ Set the inference geography for each request with the `inference_geo` parameter:
If you omit `inference_geo`, the request uses the workspace’s `default_inference_geo` if one is configured, otherwise `global`.
+The `inference_geo` parameter is supported on Claude 4.6 and later models. Requests with `inference_geo` on earlier models return a 400 error. See [Data residency](https://platform.claude.com/docs/en/manage-claude/data-residency#model-availability) for model availability details.
+
Workspace-level inference geography controls (`allowed_inference_geos` and `default_inference_geo`) are also available on Claude Platform on AWS. See [Workspace-level restrictions](https://platform.claude.com/docs/en/manage-claude/data-residency#workspace-level-restrictions).
## Workspaces
@@ -830,10 +827,9 @@ Access to the Claude Console is federated through AWS IAM. See [Set up your acco
1. Assume an IAM role with the `aws-external-anthropic:AssumeConsole` permission. See [Console access](https://platform.claude.com/docs/en/api/claude-platform-on-aws-iam-actions#console-access).
2. Navigate to the Claude Platform on AWS page in the [AWS Console](https://console.aws.amazon.com/).
-3. Click **Open Claude Console**. The AWS Console issues a JWT and redirects you to `platform.claude.com`.
-4. On first sign-in, you’re prompted for an email address. Enter your work email. The platform provisions your Claude Console user just-in-time.
+3. Select **Admin** or **Developer** and click **Sign in**. The AWS Console issues a JWT and redirects you to `platform.claude.com`. On first sign-in, the platform provisions your Claude Console user just-in-time.
-Two Claude Console roles are available: **Admin** and **Developer**. The Admin role grants access to all Claude Console pages and settings available for Claude Platform on AWS. The Developer role grants read access to usage, cost, rate limit, and workspace information. Contact your Anthropic account representative to assign the Admin or Developer role to a principal.
+Two Claude Console roles are available: **Admin** and **Developer**. The Admin role grants access to all Claude Console pages and settings available for Claude Platform on AWS. The Developer role grants read access to usage, cost, and rate limit information. On pages such as **Workspaces**, **Agents**, and **Credential vaults**, what either role can view and manage depends on the principal’s IAM policies. To limit which role a principal can select, allow `AssumeConsole` only in an IAM statement that has a condition on `aws-external-anthropic:Capability` (`admin` or `developer`). Any other statement that allows it, such as one that allows `aws-external-anthropic:*`, allows both roles.
### Available pages
diff --git a/content/en/build-with-claude/context-editing.md b/content/en/build-with-claude/context-editing.md
index 3402fd2382..0aa6eecfe9 100644
--- a/content/en/build-with-claude/context-editing.md
+++ b/content/en/build-with-claude/context-editing.md
@@ -73,18 +73,16 @@ When activated, the API automatically clears the oldest tool results in chronolo
The `clear_thinking_20251015` strategy manages `thinking` blocks from earlier assistant turns. This strategy gives you control over thinking preservation: you can choose to keep more thinking blocks to maintain reasoning continuity, or clear them more aggressively to save context space.
-
- **Default behavior:** When a request doesn’t include the `clear_thinking_20251015` strategy, the default varies by model class.
-
- | Model class | Keep all prior thinking | Keep thinking only for the turn in progress |
- | ----- | ----- | ----- |
- | Opus | Claude Opus 4.5 and later | Claude Opus 4.1 and earlier |
- | Sonnet | Claude Sonnet 4.6 and later | Claude Sonnet 4.5 (deprecated) and earlier |
- | Haiku | Claude Haiku 5.5 and later | Claude Haiku 4.5 and earlier |
- | Fable and Mythos | All models | (none) |
-
- Use this strategy to override the default. If your code runs across multiple model classes, include this strategy and set `keep` explicitly rather than relying on the per-model default.
-
+When a request doesn’t include the `clear_thinking_20251015` strategy, the default varies by model class.
+
+| Model class | Keep all prior thinking | Keep thinking only for the turn in progress |
+| ----- | ----- | ----- |
+| Opus | Claude Opus 4.5 and later | Claude Opus 4.1 and earlier |
+| Sonnet | Claude Sonnet 4.6 and later | Claude Sonnet 4.5 and earlier |
+| Haiku | Claude Haiku 5.5 and later | Claude Haiku 4.5 and earlier |
+| Fable and Mythos | All models | (none) |
+
+Use this strategy to override the default. If your code runs across multiple model classes, include this strategy and set `keep` explicitly rather than relying on the per-model default.
An assistant conversation turn might include multiple content blocks (for example, when using tools) and multiple thinking blocks (for example, with [interleaved thinking](https://platform.claude.com/docs/en/build-with-claude/thinking#interleaved-thinking)).
diff --git a/content/en/build-with-claude/context-windows.md b/content/en/build-with-claude/context-windows.md
index cea35ffc09..31816740fc 100644
--- a/content/en/build-with-claude/context-windows.md
+++ b/content/en/build-with-claude/context-windows.md
@@ -35,13 +35,23 @@ Everything in the request counts toward the context window: the system prompt, e
## Context window sizes by model
-Claude Fable 5.2, Claude Mythos 5.2, Claude Fable 5.1, Claude Mythos 5.1, Claude Fable 5, Claude Mythos 5, Claude Opus 5.5, Claude Opus 5, Claude Opus 4.8, Claude Opus 4.7, Claude Opus 4.6, Claude Sonnet 5.5, Claude Sonnet 5, Claude Sonnet 4.6, Claude Haiku 5.5, and [Claude Mythos Preview](https://anthropic.com/glasswing) have a 1M-token context window. A single request to any of them can generate up to 128k output tokens (`max_tokens`). Other Claude models, including Claude Sonnet 4.5 (deprecated), have a 200k-token context window.
+These models have a 1M-token context window:
+
+* Claude Fable 5.2, Claude Fable 5.1, and Claude Fable 5
+* Claude Mythos 5.2, Claude Mythos 5.1, Claude Mythos 5, and [Claude Mythos Preview](https://anthropic.com/glasswing)
+* Claude Opus 5.5, Claude Opus 5, Claude Opus 4.8, Claude Opus 4.7, and Claude Opus 4.6
+* Claude Sonnet 5.5, Claude Sonnet 5, and Claude Sonnet 4.6
+* Claude Haiku 5.5
+
+Other Claude models have a 200k-token context window.
+
+A single Messages API request to a model with a 1M-token context window can generate up to 128k output tokens (`max_tokens`).
For every model with a 1M-token context window, 1M is the default: you don’t need a beta header, and long-context requests are billed at [standard pricing](https://platform.claude.com/docs/en/about-claude/pricing#long-context-pricing), except on Claude Haiku 5.5, where prompts over 100,000 tokens cost more.
A single request can include up to 600 images or PDF pages (100 for models with a 200k-token context window). If you send many images or large documents, you might reach [request size limits](https://platform.claude.com/docs/en/api/overview#request-size-limits) before the token limit.
-See the [All models](https://platform.claude.com/docs/en/models/overview#all-models) table for a list of context window sizes by model.
+See the [All models](https://platform.claude.com/docs/en/models/overview#all-models) table for context window sizes and output limits by model.
## The context window with thinking
@@ -108,16 +118,20 @@ The following diagram illustrates how tokens are managed when you combine thinki
* The API uses cryptographic signatures to verify thinking block authenticity.
- Most current Claude models support [interleaved thinking](https://platform.claude.com/docs/en/build-with-claude/thinking#interleaved-thinking), which lets Claude think between tool calls, including after it receives tool results. It is automatic on models with adaptive thinking; Claude Opus 4.5, Claude Sonnet 4.5 (deprecated), and earlier Claude 4 models require the `interleaved-thinking-2025-05-14` beta header, and Claude Haiku 4.5 does not support it.
-
- For more information about using tools with thinking, see [Thinking with tool use](https://platform.claude.com/docs/en/build-with-claude/thinking#thinking-with-tool-use).
+ [Interleaved thinking](https://platform.claude.com/docs/en/build-with-claude/thinking#interleaved-thinking) lets Claude think between tool calls, including after it receives tool results. It is automatic when a request uses adaptive thinking. With manual extended thinking, support depends on the model: see [Interleaved thinking in manual mode](https://platform.claude.com/docs/en/build-with-claude/extended-thinking#interleaved-thinking).
+For more information about using tools with thinking, see [Thinking with tool use](https://platform.claude.com/docs/en/build-with-claude/thinking#thinking-with-tool-use).
+
To reduce the context consumed by the tool definitions themselves, see [Manage tool context](https://platform.claude.com/docs/en/agents-and-tools/tool-use/manage-tool-context), or defer tool definitions with the [tool search tool](https://platform.claude.com/docs/en/agents-and-tools/tool-use/tool-search-tool).
## Context awareness
-Claude Sonnet 5, Claude Sonnet 4.6, Claude Sonnet 4.5 (deprecated), and Claude Haiku 4.5 have **context awareness:** these models track their remaining context window (their “token budget”) throughout a conversation. This lets the model manage long-running tasks against the space that remains rather than guess how many tokens are left. Context awareness is automatic: there is nothing for you to enable, and you never send the tags shown in this section yourself. The API injects them.
+Only Claude Sonnet 4.5 and Claude Haiku 4.5 have **context awareness:** these models track their remaining context window throughout a conversation. This lets the model manage long-running tasks against the space that remains rather than guess how many tokens are left. Context awareness is automatic: there is nothing for you to enable, and you never send the tags shown in this section yourself. The API injects them.
+
+No other model receives these tags. To give a model an explicit budget, use [task budgets](https://platform.claude.com/docs/en/build-with-claude/task-budgets) on a [model that supports them](https://platform.claude.com/docs/en/build-with-claude/task-budgets#feature-support). Task budgets are in beta.
+
+Claude Sonnet 4.5 is deprecated on [Anthropic-operated platforms](https://platform.claude.com/docs/en/about-claude/model-deprecations#overview). For its retirement date and recommended replacement, see [Model deprecations](https://platform.claude.com/docs/en/about-claude/model-deprecations#2026-09-30-claude-sonnet-4-5-model). [Partner-operated platforms](https://platform.claude.com/docs/en/about-claude/model-deprecations#overview) set their own retirement schedules.
### How it works
@@ -127,7 +141,7 @@ In the system prompt of every request, the API gives Claude its total context wi
200000
```
-The budget matches the context window available to your request: 1M tokens for Claude Sonnet 5 and Claude Sonnet 4.6, and 200k tokens for Claude Sonnet 4.5 (deprecated) and Claude Haiku 4.5. The examples in this section show a model with a 200k-token context window.
+This token budget matches the context window available to your request: 200k tokens on both models.
After each tool call, the API gives Claude an update on its remaining capacity:
@@ -137,8 +151,6 @@ After each tool call, the API gives Claude an update on its remaining capacity:
Image tokens are included in these budgets.
-Claude Opus 4.7 and later Opus models, Claude Sonnet 5.5, Claude Fable 5.2, Claude Mythos 5.2, Claude Fable 5.1, Claude Mythos 5.1, Claude Fable 5, Claude Mythos 5, and Claude Haiku 5.5 don’t receive these injected tags. On these models, you can give the model an explicit budget with [task budgets](https://platform.claude.com/docs/en/build-with-claude/task-budgets), which are in beta.
-
For agents that span multiple sessions, design your state artifacts so that context recovery is fast when a new session starts. The [memory tool’s multisession pattern](https://platform.claude.com/docs/en/agents-and-tools/tool-use/memory-tool#multisession-software-development-pattern) walks through a concrete approach. See also [Effective harnesses for long-running agents](https://www.anthropic.com/engineering/effective-harnesses-for-long-running-agents).
diff --git a/content/en/build-with-claude/effort.md b/content/en/build-with-claude/effort.md
index 4729311c85..4e5284cc32 100644
--- a/content/en/build-with-claude/effort.md
+++ b/content/en/build-with-claude/effort.md
@@ -431,6 +431,8 @@ At higher effort levels, Claude thinks more readily and at greater length. In a
On Claude Opus 4.5, the only extended-thinking-only model that supports effort, it works alongside [`budget_tokens`](https://platform.claude.com/docs/en/build-with-claude/extended-thinking): set the effort level for your task, then set the thinking token budget based on how much reasoning depth the task needs.
+Claude Opus 4.5 is deprecated on [Anthropic-operated platforms](https://platform.claude.com/docs/en/about-claude/model-deprecations#overview). For the retirement date and the recommended replacement, see [Model deprecations](https://platform.claude.com/docs/en/about-claude/model-deprecations#2026-11-23-claude-opus-4-5-model). [Partner-operated platforms](https://platform.claude.com/docs/en/about-claude/model-deprecations#overview) set their own retirement schedules.
+
For per-model thinking availability, see the [per-model configuration table](https://platform.claude.com/docs/en/build-with-claude/thinking-troubleshooting#supported-models). Effort works with or without thinking. See [How effort works](https://platform.claude.com/docs/en/build-with-claude/effort#how-effort-works).
## Change effort mid-conversation
diff --git a/content/en/build-with-claude/extended-thinking.md b/content/en/build-with-claude/extended-thinking.md
index 407283667e..f8bd3cb462 100644
--- a/content/en/build-with-claude/extended-thinking.md
+++ b/content/en/build-with-claude/extended-thinking.md
@@ -301,15 +301,13 @@ When you are ready to move off manual budgets, see [Migrating to adaptive thinki
Interleaved thinking lets Claude think between tool calls within a single assistant turn, reasoning about each tool result before determining what to do next. For the concept, the turn structure, and how it behaves on adaptive-thinking models, see [interleaved thinking](https://platform.claude.com/docs/en/build-with-claude/thinking#interleaved-thinking) in the thinking overview. This section covers how to enable it when you use manual `type: "enabled"` thinking.
-On Claude Opus 4.5, Claude Sonnet 4.5 (deprecated), and earlier Claude 4 models, add the `interleaved-thinking-2025-05-14` [beta header](https://platform.claude.com/docs/en/api/beta-headers) to your API request.
+On Claude Opus 4.5, Claude Sonnet 4.5, Claude Haiku 4.5, Claude Opus 4.1, Claude Sonnet 4, and Claude Opus 4, add the `interleaved-thinking-2025-05-14` [beta header](https://platform.claude.com/docs/en/api/beta-headers) to your request. With Amazon Bedrock’s InvokeModel API, put the beta in the `anthropic_beta` array of the request body instead of in a header.
The 4.6 generation splits in manual mode:
* **Claude Sonnet 4.6**: the beta header with manual `type: "enabled"` is still functional but deprecated. Prefer [adaptive thinking](https://platform.claude.com/docs/en/build-with-claude/thinking), which interleaves automatically with no header.
* **Claude Opus 4.6**: manual mode has no interleaved thinking at all. Only its adaptive mode interleaves, so switch to `thinking: {type: "adaptive"}` if you need reasoning between tool calls on this model.
-Claude Haiku 4.5 does not support interleaved thinking. On the Claude API, the beta header is accepted but ignored.
-
Two more considerations for interleaved thinking in manual mode:
* `budget_tokens` can exceed `max_tokens` here; the [budget rules](https://platform.claude.com/docs/en/build-with-claude/extended-thinking#budget-rules-and-tuning) explain this exception.
@@ -358,14 +356,16 @@ Most thinking behavior is mode neutral and documented once on the [Thinking](htt
## Migrating to adaptive thinking
-If your model supports only extended thinking, no action is needed. These models are Claude Sonnet 4.5 (deprecated), Claude Opus 4.5, Claude Haiku 4.5, and earlier Claude 4 models. Adaptive thinking is not available on them, and `type: "adaptive"` [returns a 400 error](https://platform.claude.com/docs/en/build-with-claude/thinking-troubleshooting#error-thinking-type-adaptive). Keep `budget_tokens` until you move to a model that supports adaptive thinking, then apply the mapping that follows.
-
You need to migrate off `type: "enabled"` if:
* You use Claude Opus 4.6 or Claude Sonnet 4.6, where `budget_tokens` is deprecated.
* You use a model numbered 4.7 or higher, where `type: "enabled"` returns a 400 error. Examples include Claude Opus 5.5, Claude Sonnet 5, Claude Sonnet 5.5, Claude Fable 5.2, Claude Fable 5.1, and Claude Haiku 5.5.
-The mapping is small: remove `budget_tokens`, set `thinking: {type: "adaptive"}`, and control reasoning depth with `output_config: {effort: ...}` instead of a token budget.
+Claude Opus 4.5, Claude Sonnet 4.5, Claude Haiku 4.5, Claude Opus 4.1, Claude Sonnet 4, and Claude Opus 4 support only extended thinking. On these models, `type: "adaptive"` [returns a 400 error](https://platform.claude.com/docs/en/build-with-claude/thinking-troubleshooting#error-thinking-type-adaptive). Keep `budget_tokens` until you move to a model that supports adaptive thinking.
+
+Claude Opus 4.5 is deprecated on [Anthropic-operated platforms](https://platform.claude.com/docs/en/about-claude/model-deprecations#overview). Claude Sonnet 4.5 is deprecated on the same platforms. For retirement dates and recommended replacements, see [Deprecation history](https://platform.claude.com/docs/en/about-claude/model-deprecations#deprecation-history) on the Model deprecations page. [Partner-operated platforms](https://platform.claude.com/docs/en/about-claude/model-deprecations#overview) set their own retirement schedules.
+
+To migrate, remove `budget_tokens`, set `thinking: {type: "adaptive"}`, and control reasoning depth with `output_config: {effort: ...}` instead of a token budget.
```json
{
@@ -395,7 +395,11 @@ becomes:
`effort: "high"` is the default on Claude Sonnet 4.6, so omitting it here produces identical behavior; it appears only to show where the depth control lives in adaptive mode. Claude Opus 5.5 and Claude Haiku 5.5 default to `"medium"`, and other models that support effort default to `"high"` (see [Effort levels](https://platform.claude.com/docs/en/build-with-claude/effort#effort-levels)).
-Expect a behavioral difference, not only a syntax change. With a fixed budget, Claude thinks on every request. With adaptive thinking, Claude determines whether and how much to think on each request, and at lower [effort](https://platform.claude.com/docs/en/build-with-claude/effort) settings it might skip thinking entirely on easy inputs. You can also remove the `interleaved-thinking-2025-05-14` beta header after migrating: adaptive thinking interleaves automatically, and the Claude API ignores the header on these models. Thinking block preservation changes too. Claude Opus 4.5 and models numbered 4.6 and higher keep prior turns’ thinking blocks in context and bill them as input. Claude Sonnet 4.5 (deprecated), Claude Haiku 4.5, and earlier models strip them. See [thinking block preservation by model](https://platform.claude.com/docs/en/build-with-claude/thinking#thinking-block-preservation-by-model).
+Expect a behavioral difference, not only a syntax change. With a fixed budget, Claude thinks at the start of each assistant turn that you don’t prefill. With adaptive thinking, Claude determines whether and how much to think on each request. At lower [effort](https://platform.claude.com/docs/en/build-with-claude/effort) settings, it might skip thinking entirely on easy inputs.
+
+You can also remove the `interleaved-thinking-2025-05-14` beta header after migrating because adaptive thinking interleaves automatically.
+
+If you also change models, thinking block preservation can change. Claude Opus 4.5 and Claude 4.6 and later models keep prior turns’ thinking blocks in context and bill them as input. Claude Sonnet 4.5, Claude Haiku 4.5, and earlier models strip them. See [Thinking block preservation by model](https://platform.claude.com/docs/en/build-with-claude/thinking#thinking-block-preservation-by-model).
Switching modes is a thinking-configuration change, so the first request after the switch invalidates cache breakpoints, as described in [Prompt caching in manual mode](https://platform.claude.com/docs/en/build-with-claude/extended-thinking#extended-thinking-with-prompt-caching).
diff --git a/content/en/build-with-claude/handling-stop-reasons.md b/content/en/build-with-claude/handling-stop-reasons.md
index e707169b5b..87698de676 100644
--- a/content/en/build-with-claude/handling-stop-reasons.md
+++ b/content/en/build-with-claude/handling-stop-reasons.md
@@ -1922,10 +1922,6 @@ Claude declined to generate a response. Safety classifiers return this stop reas
```
-
- If you encounter `refusal` stop reasons frequently while using Claude Sonnet 4.5 ([deprecated](https://platform.claude.com/docs/en/about-claude/model-deprecations)) or Claude Opus 4.1 (the latter [retired, except on Claude Models on Google Cloud (Google managed) and Amazon Bedrock](https://platform.claude.com/docs/en/about-claude/model-deprecations)), you can try updating your API calls to use Claude Haiku 4.5 (`claude-haiku-4-5-20251001`), which has different usage restrictions. Learn more about [understanding Sonnet 4.5’s API safety filters](https://support.claude.com/en/articles/12449294-understanding-sonnet-4-5-s-api-safety-filters).
-
-
On a refusal, the [`stop_details`](https://platform.claude.com/docs/en/api/messages/create#message.stop_details) object identifies the policy category that triggered it. The categories and the full refusal response shape are covered in [What a refusal looks like](https://platform.claude.com/docs/en/build-with-claude/refusals-and-fallback#refusal-response). `stop_details` is `null` for all stop reasons other than `refusal`.
You can usually get a response to a refused request by retrying it on another Claude model. This works for Claude Fable 5.2, Claude Fable 5.1, Claude Fable 5, Claude Opus 5.5, Claude Opus 5, Claude Sonnet 5.5, and Claude Haiku 5.5. [Refusals and fallback](https://platform.claude.com/docs/en/build-with-claude/refusals-and-fallback) shows how to set up that retry, server-side or in your client. Claude Haiku 5.5 has no server-side fallback, so set up its retry with [client-side fallback](https://platform.claude.com/docs/en/build-with-claude/refusals-and-fallback#client-side-fallback). If you build the retry yourself from any of these models except Claude Haiku 5.5, [Fallback credit](https://platform.claude.com/docs/en/build-with-claude/fallback-credit) covers how to avoid paying the prompt-cache cost twice.
@@ -1936,9 +1932,7 @@ A `reasoning_extraction` refusal is an exception: change the prompt instead of r
Claude stopped because it reached the model’s context window limit. This lets you request the maximum possible tokens without knowing the exact input size.
-
- This stop reason is currently typed only in the SDK’s `beta` (csharp, go: `Beta`; java: `beta()`) namespace, so the following examples call `client.beta.messages` (csharp, go: `client.Beta.Messages`; java: `client.beta().messages()`; php: `$client->beta->messages`) and use the `Beta`-prefixed types. On Sonnet 4.5 (deprecated) and newer models, the API returns this value without a beta header. For earlier models, add the `model-context-window-exceeded-2025-08-26` beta header to enable it.
-
+On Claude 4.5 and later models, the API can return this value. On earlier models, add the `model-context-window-exceeded-2025-08-26` [beta header](https://platform.claude.com/docs/en/api/beta-headers) to enable it.
```bash cURL
diff --git a/content/en/build-with-claude/prompt-caching.md b/content/en/build-with-claude/prompt-caching.md
index 5766debd43..0d8a124712 100644
--- a/content/en/build-with-claude/prompt-caching.md
+++ b/content/en/build-with-claude/prompt-caching.md
@@ -615,12 +615,11 @@ Adding more `cache_control` breakpoints doesn’t increase your costs; you still
On the Claude API, [Claude Platform on AWS](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws), [Claude Models on Google Cloud (Google managed)](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/google-managed), and [Microsoft Foundry](https://platform.claude.com/docs/en/build-with-claude/claude-in-microsoft-foundry), the minimum cacheable prompt length is:
* 512 tokens for Claude Fable 5.2, [Claude Mythos 5.2](https://platform.claude.com/docs/en/models/mythos-5-2/overview), Claude Fable 5.1, [Claude Mythos 5.1](https://platform.claude.com/docs/en/models/mythos-5-1/overview), Claude Opus 5.5, Claude Opus 5, Claude Sonnet 5.5, Claude Fable 5, [Claude Mythos 5](https://platform.claude.com/docs/en/models/mythos-5/overview), and Claude Haiku 5.5
+* 1,024 tokens for Claude Opus 4.8, Claude Sonnet 5, Claude Sonnet 4.6, Claude Sonnet 4.5 ([deprecated on Anthropic-operated platforms](https://platform.claude.com/docs/en/about-claude/model-deprecations#overview)), Claude Opus 4.1, Claude Opus 4, and Claude Sonnet 4
* 2,048 tokens for [Claude Mythos Preview](https://anthropic.com/glasswing) and Claude Opus 4.7
-* 4,096 tokens for Claude Opus 4.6 and Claude Opus 4.5
-* 1,024 tokens for Claude Opus 4.8, Claude Sonnet 5, Claude Sonnet 4.6, Claude Sonnet 4.5 ([deprecated](https://platform.claude.com/docs/en/about-claude/model-deprecations)), Claude Opus 4.1 ([retired, except on Claude Models on Google Cloud (Google managed) and Bedrock](https://platform.claude.com/docs/en/about-claude/model-deprecations)), Claude Opus 4 ([retired, except on Claude Models on Google Cloud (Google managed)](https://platform.claude.com/docs/en/about-claude/model-deprecations)), and Claude Sonnet 4 ([retired, except on Claude Models on Google Cloud (Google managed) and Bedrock](https://platform.claude.com/docs/en/about-claude/model-deprecations))
-* 4,096 tokens for Claude Haiku 4.5
+* 4,096 tokens for Claude Opus 4.6, Claude Opus 4.5 ([deprecated on Anthropic-operated platforms](https://platform.claude.com/docs/en/about-claude/model-deprecations#overview)), and Claude Haiku 4.5
-These minimums apply on each of these platforms where the model is available.
+These minimums apply to each model on each of these platforms where that model is available. Claude Opus 4.1, Claude Sonnet 4, and Claude Opus 4 are retired on [Anthropic-operated platforms](https://platform.claude.com/docs/en/about-claude/model-deprecations#overview).
Shorter prompts cannot be cached, even if marked with `cache_control`. Any requests to cache fewer than this number of tokens are processed without caching, and no error is returned. To check whether a prompt was cached, look at the [response usage fields](https://platform.claude.com/docs/en/build-with-claude/prompt-caching#tracking-cache-performance): if both `cache_creation_input_tokens` and `cache_read_input_tokens` are 0, the prompt was not cached (likely because it did not meet the minimum length requirement).
diff --git a/content/en/build-with-claude/prompt-engineering/claude-prompting-best-practices.md b/content/en/build-with-claude/prompt-engineering/claude-prompting-best-practices.md
index 2f80a956a8..47f284aa1c 100644
--- a/content/en/build-with-claude/prompt-engineering/claude-prompting-best-practices.md
+++ b/content/en/build-with-claude/prompt-engineering/claude-prompting-best-practices.md
@@ -799,7 +799,9 @@ Claude’s latest models handle long-horizon reasoning tasks with strong state t
#### Context awareness and multiwindow workflows
-Claude Sonnet 5, Claude Sonnet 4.6, Claude Sonnet 4.5 (deprecated), and Claude Haiku 4.5 feature [context awareness](https://platform.claude.com/docs/en/build-with-claude/context-windows#context-awareness), which lets the model track its remaining context window (that is, its “token budget”) throughout a conversation. This allows Claude to run tasks and manage context more effectively based on how much space it has to work.
+Only Claude Sonnet 4.5 and Claude Haiku 4.5 have [context awareness](https://platform.claude.com/docs/en/build-with-claude/context-windows#context-awareness). These models track their remaining context window (their “token budget”) throughout a conversation and manage tasks against the space that remains.
+
+Claude Sonnet 4.5 is deprecated on [Anthropic-operated platforms](https://platform.claude.com/docs/en/about-claude/model-deprecations#overview). For its retirement date and recommended replacement, see [Model deprecations](https://platform.claude.com/docs/en/about-claude/model-deprecations#2026-09-30-claude-sonnet-4-5-model). [Partner-operated platforms](https://platform.claude.com/docs/en/about-claude/model-deprecations#overview) set their own retirement schedules.
**Managing context limits:**
diff --git a/content/en/build-with-claude/streaming.md b/content/en/build-with-claude/streaming.md
index 93d052463a..728cbab5c1 100644
--- a/content/en/build-with-claude/streaming.md
+++ b/content/en/build-with-claude/streaming.md
@@ -347,6 +347,8 @@ event: error
data: {"type": "error", "error": {"type": "overloaded_error", "message": "Overloaded"}}
```
+If you use the SDK, your code doesn’t receive this event. The SDK ends the stream, and the code that reads the stream gets an error instead. To handle it, see [Handle an error in a stream](https://platform.claude.com/docs/en/api/handle-errors#handle-an-error-in-a-stream).
+
### Other events
In accordance with the [versioning policy](https://platform.claude.com/docs/en/api/versioning), new event types may be added, and your code should handle unknown event types gracefully.
@@ -1554,10 +1556,6 @@ For Claude 4.6 and later models, the same capture-and-resume strategy applies, b
Stream thinking output with `thinking_delta` and `signature_delta` events.
-
- Use the official SDKs, which handle streaming, accumulation, and reconnection for you.
-
-
Process large volumes of requests asynchronously when you don’t need real-time responses.
diff --git a/content/en/build-with-claude/thinking-troubleshooting.md b/content/en/build-with-claude/thinking-troubleshooting.md
index 994485546d..28b607e9d7 100644
--- a/content/en/build-with-claude/thinking-troubleshooting.md
+++ b/content/en/build-with-claude/thinking-troubleshooting.md
@@ -46,7 +46,7 @@ The table lists what each model supports, what it defaults to, and which `thinki
Models marked `Always on` cannot turn thinking off. Models marked `On` default to thinking. Claude Opus 5, Claude Sonnet 5, and Claude Haiku 5.5 accept `thinking: {type: "disabled"}`. On Claude Sonnet 5.5, send `thinking: {type: "between_tools"}` to turn off up-front thinking.
-Earlier Claude 4 models (Claude Opus 4.1, Claude Sonnet 4, and Claude Opus 4) support extended thinking only. See [Model deprecations](https://platform.claude.com/docs/en/about-claude/model-deprecations) for their availability. Claude Fable 5.2, Claude Mythos 5.2, Claude Fable 5.1, Claude Mythos 5.1, Claude Fable 5, and Claude Mythos 5 are not available under [zero data retention](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#model-specific-data-retention-requirements) unless expressly authorized by Anthropic.
+Earlier Claude 4 models (Claude Opus 4.1, Claude Sonnet 4, and Claude Opus 4) support extended thinking only. See [Model deprecations](https://platform.claude.com/docs/en/about-claude/model-deprecations) for their availability. Claude Fable 5.2, Claude Mythos 5.2, Claude Fable 5.1, Claude Mythos 5.1, Claude Fable 5, and Claude Mythos 5 are not available under [legacy zero data retention (Legacy ZDR)](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#model-specific-data-retention-requirements) unless expressly authorized by Anthropic.
## A 400 error says `"thinking.type.enabled"` is not supported
diff --git a/content/en/build-with-claude/thinking.md b/content/en/build-with-claude/thinking.md
index 5ef1518939..7f703755b5 100644
--- a/content/en/build-with-claude/thinking.md
+++ b/content/en/build-with-claude/thinking.md
@@ -1004,7 +1004,22 @@ Interleaved thinking lets Claude think between tool calls, reasoning about each
Consecutive tool calls do not require interleaved thinking. Claude can chain tool calls with or without interleaved thinking. Interleaving changes where thinking blocks appear between tool calls, not whether tool calls can chain.
-With adaptive thinking, interleaved thinking is automatic on every model that supports adaptive thinking. On Claude Fable 5.2, Claude Mythos 5.2, Claude Fable 5.1, Claude Mythos 5.1, Claude Fable 5, Claude Mythos 5, Claude Mythos Preview, Claude Opus 5.5, Claude Opus 5, Claude Sonnet 5.5, Claude Opus 4.8, and Claude Opus 4.7, reasoning between tool calls always appears in thinking blocks. Claude Haiku 4.5 does not support interleaved thinking. On models using manual extended thinking, interleaving requires a beta header and changes how the thinking budget is counted. [Interleaved thinking in manual mode](https://platform.claude.com/docs/en/build-with-claude/extended-thinking#interleaved-thinking) covers the per-model rules and platform-specific header behavior.
+With adaptive thinking, interleaved thinking is automatic on [every model that supports adaptive thinking](https://platform.claude.com/docs/en/build-with-claude/thinking#configuring-thinking). On the following models, reasoning between tool calls always appears in thinking blocks:
+
+* Claude Fable 5.2
+* Claude Mythos 5.2
+* Claude Fable 5.1
+* Claude Mythos 5.1
+* Claude Fable 5
+* Claude Mythos 5
+* Claude Mythos Preview
+* Claude Opus 5.5
+* Claude Opus 5
+* Claude Sonnet 5.5
+* Claude Opus 4.8
+* Claude Opus 4.7
+
+On models using manual extended thinking, interleaving requires a beta header and changes how the thinking budget is counted. [Interleaved thinking in manual mode](https://platform.claude.com/docs/en/build-with-claude/extended-thinking#interleaved-thinking) covers the per-model rules and platform-specific header behavior.
With interleaved thinking, the thinking allocation can span the entire assistant turn rather than a single response. Interleaved thinking is only supported for [tools used through the Messages API](https://platform.claude.com/docs/en/agents-and-tools/tool-use/overview).
diff --git a/content/en/build-with-claude/working-with-messages.md b/content/en/build-with-claude/working-with-messages.md
index c621cc85b1..adc78777e9 100644
--- a/content/en/build-with-claude/working-with-messages.md
+++ b/content/en/build-with-claude/working-with-messages.md
@@ -371,6 +371,10 @@ Whether the API accepts a prefill depends on the model, not on the API version:
* **Claude 4.5 and earlier models:** The API accepts a prefill unless the model is retired on the platform that you use. All requests to a retired model fail. To check a model’s status, see [Model deprecations](https://platform.claude.com/docs/en/about-claude/model-deprecations).
* **All other models:** The API returns a 400 error (see the [Prefill not supported](https://platform.claude.com/docs/en/api/errors#prefill-not-supported) section of the Claude API errors page). Use one of the [alternatives to a prefill](https://platform.claude.com/docs/en/build-with-claude/working-with-messages#alternatives-to-a-prefill) instead.
+Claude Opus 4.5 is deprecated on [Anthropic-operated platforms](https://platform.claude.com/docs/en/about-claude/model-deprecations#overview). Claude Sonnet 4.5 is deprecated on the same platforms. For retirement dates and recommended replacements, see [Deprecation history](https://platform.claude.com/docs/en/about-claude/model-deprecations#deprecation-history) on the Model deprecations page. [Partner-operated platforms](https://platform.claude.com/docs/en/about-claude/model-deprecations#overview) set their own retirement schedules.
+
+The recommended replacements for Claude Opus 4.5 and Claude Sonnet 4.5 don’t accept a prefill.
+
The following example runs on Claude Opus 4.5 and sets the format of a multiple-choice answer. The prefill, `The answer is (`, ends right before the answer’s letter so that Claude writes the letter first. Because the answer is one letter, the example also sets `max_tokens` to `1`. For a longer answer, set a higher `max_tokens`.
diff --git a/content/en/claude_api_primer.md b/content/en/claude_api_primer.md
index c52da51880..d76c1fa8c0 100644
--- a/content/en/claude_api_primer.md
+++ b/content/en/claude_api_primer.md
@@ -113,6 +113,10 @@ Whether the API accepts a prefill depends on the model:
* **Claude 4.5 and earlier models:** The API accepts a prefill unless the model is retired on the platform that you use. All requests to a retired model fail. To check a model’s status, see [Model deprecations](https://platform.claude.com/docs/en/about-claude/model-deprecations).
* **All other models:** The API returns a 400 error (see the [Prefill not supported](https://platform.claude.com/docs/en/api/errors#prefill-not-supported) section of the Claude API errors page). Use one of the [alternatives to a prefill](https://platform.claude.com/docs/en/claude_api_primer#alternatives-to-a-prefill) instead.
+Claude Opus 4.5 is deprecated on [Anthropic-operated platforms](https://platform.claude.com/docs/en/about-claude/model-deprecations#overview). Claude Sonnet 4.5 is deprecated on the same platforms. For retirement dates and recommended replacements, see [Deprecation history](https://platform.claude.com/docs/en/about-claude/model-deprecations#deprecation-history) on the Model deprecations page. [Partner-operated platforms](https://platform.claude.com/docs/en/about-claude/model-deprecations#overview) set their own retirement schedules.
+
+The recommended replacements for Claude Opus 4.5 and Claude Sonnet 4.5 don’t accept a prefill.
+
The following example runs on Claude Opus 4.5 and sets the format of a multiple-choice answer. The prefill, `The answer is (`, ends right before the answer’s letter so that Claude writes the letter first. Because the answer is one letter, the example also sets `max_tokens` to `1`. For a longer answer, set a higher `max_tokens`.
@@ -315,8 +319,8 @@ Thinking is supported in the following models:
* Claude Opus 4.7 (`claude-opus-4-7`, adaptive thinking only)
* Claude Opus 4.6 (`claude-opus-4-6`, adaptive or legacy manual thinking)
* Claude Sonnet 4.6 (`claude-sonnet-4-6`, adaptive or legacy manual thinking)
-* Claude Opus 4.5 (`claude-opus-4-5-20251101`, legacy manual thinking only)
-* Claude Sonnet 4.5 (`claude-sonnet-4-5-20250929`, [deprecated](https://platform.claude.com/docs/en/about-claude/model-deprecations), legacy manual thinking only)
+* Claude Opus 4.5 (`claude-opus-4-5-20251101`, [deprecated on Anthropic-operated platforms](https://platform.claude.com/docs/en/about-claude/model-deprecations#overview), legacy manual thinking only)
+* Claude Sonnet 4.5 (`claude-sonnet-4-5-20250929`, [deprecated on Anthropic-operated platforms](https://platform.claude.com/docs/en/about-claude/model-deprecations#overview), legacy manual thinking only)
* Claude Haiku 4.5 (`claude-haiku-4-5-20251001`, legacy manual thinking only)
diff --git a/content/en/cli-sdks-libraries/sdks/csharp.md b/content/en/cli-sdks-libraries/sdks/csharp.md
index 2f2c40462e..849ffb8358 100644
--- a/content/en/cli-sdks-libraries/sdks/csharp.md
+++ b/content/en/cli-sdks-libraries/sdks/csharp.md
@@ -138,44 +138,21 @@ await foreach (var message in client.Messages.CreateStreaming(parameters))
## Error handling
-The SDK throws custom unchecked exception types:
-
-* `AnthropicApiException`: Base class for API errors. See this table for which exception subclass is thrown for each HTTP status code:
-
-| Status | Exception |
-| ----- | ----- |
-| 400 | `AnthropicBadRequestException` |
-| 401 | `AnthropicUnauthorizedException` |
-| 403 | `AnthropicForbiddenException` |
-| 404 | `AnthropicNotFoundException` |
-| 422 | `AnthropicUnprocessableEntityException` |
-| 429 | `AnthropicRateLimitException` |
-| 5xx | `Anthropic5xxException` |
-| others | `AnthropicUnexpectedStatusCodeException` |
-
-Additionally, all 4xx errors inherit from `Anthropic4xxException`.
-
-* `AnthropicSseException`: Errors encountered during SSE streaming after a successful initial HTTP response.
-
-* `AnthropicIOException`: I/O networking errors.
-
-* `AnthropicInvalidDataException`: Failure to interpret successfully parsed data. For example, when accessing a property that’s supposed to be required, but the API unexpectedly omitted it from the response.
-
-* `AnthropicException`: Base class for all exceptions.
+The SDK throws `AnthropicApiException` when the API returns an error response and `AnthropicIOException` when the SDK can’t connect to the API. These and the SDK’s other exceptions extend `AnthropicException`. [SDK error types](https://platform.claude.com/docs/en/api/errors#sdk-error-types) lists the cases (including errors in a stream), and [Handle errors](https://platform.claude.com/docs/en/api/handle-errors) shows how to catch these exceptions.
## Retries
-The SDK automatically retries 2 times by default, with a short exponential backoff between requests.
+By default, the SDK retries certain errors up to two times (three attempts in all).
-Only the following error types are retried:
+The SDK retries the following error types:
-* Connection errors (for example, because of a network connectivity problem)
+* Connection errors and timeouts
* 408 Request Timeout
* 409 Conflict
-* 429 Rate Limit
-* 5xx Internal
+* 429 Too Many Requests
+* 5xx server errors
-The API might also explicitly instruct the SDK to retry or not retry a request.
+If a response has an `x-should-retry` header (`true` or `false`), the SDK follows it instead of the status. Between attempts, the SDK waits as long as the `retry-after` header says, or it uses a short exponential backoff.
To set a custom number of retries, configure the client using the `MaxRetries` property:
diff --git a/content/en/cli-sdks-libraries/sdks/go.md b/content/en/cli-sdks-libraries/sdks/go.md
index 81227040f3..8d6fa63d2c 100644
--- a/content/en/cli-sdks-libraries/sdks/go.md
+++ b/content/en/cli-sdks-libraries/sdks/go.md
@@ -474,13 +474,19 @@ if err != nil {
}
```
+To branch on the error code and the HTTP status, see [Handle errors](https://platform.claude.com/docs/en/api/handle-errors).
+
When other errors occur, they are returned unwrapped; for example, if HTTP transport fails, you might receive `*url.Error` wrapping `*net.OpError`.
## Retries
-Certain errors are automatically retried 2 times by default, with a short exponential backoff. The SDK retries by default all connection errors, 408 Request Timeout, 409 Conflict, 429 Rate Limit, and >=500 Internal errors.
+By default, the SDK retries certain errors up to two times (three attempts in all). It retries [some create methods](https://platform.claude.com/docs/en/cli-sdks-libraries/sdks/go#retries-for-create-methods) in fewer cases.
+
+For most methods, such as `client.Messages.New()`, the SDK retries connection errors, timeouts, 408 Request Timeout, 409 Conflict, 429 Too Many Requests, and 5xx server errors.
-You can use the `WithMaxRetries` option to configure or disable this:
+For these methods, if a response has an `x-should-retry` header (`true` or `false`), the SDK follows it instead of the status. Between attempts, the SDK waits as long as the `retry-after` header says, or it uses a short exponential backoff.
+
+Use `option.WithMaxRetries()` to configure or disable retries:
```go
// Configure the default for all requests:
@@ -503,6 +509,17 @@ client := anthropic.NewClient(
)
```
+### Retries for create methods
+
+To avoid duplicate resources, the SDK retries some create methods, such as `client.Beta.Agents.New()`, in only two cases:
+
+* The API returns a 429 Too Many Requests response.
+* The SDK can’t connect to the API, so it never sends the request.
+
+In both cases, the API hasn’t processed the request, so a retry can’t create a second resource.
+
+These methods return any other error without a retry even if the response has `x-should-retry: true`. The API might have created the resource if a server error occurred or if the connection dropped or timed out after the SDK sent the request. Check whether the resource exists before you call the method again.
+
## Timeouts
Non-streaming Messages requests time out after 10 minutes by default; other requests have no default timeout. Use context to configure a timeout for a request lifecycle.
diff --git a/content/en/cli-sdks-libraries/sdks/java.md b/content/en/cli-sdks-libraries/sdks/java.md
index 994a08e83f..cfe68565b0 100644
--- a/content/en/cli-sdks-libraries/sdks/java.md
+++ b/content/en/cli-sdks-libraries/sdks/java.md
@@ -596,44 +596,9 @@ try (HttpResponse response = client.files().download(params)) {
## Error handling
-The SDK throws custom unchecked exception types:
+The SDK throws a subclass of `AnthropicException` when a request fails. Causes include a connection failure and an error response from the API. These exceptions are unchecked. [SDK error types](https://platform.claude.com/docs/en/api/errors#sdk-error-types) lists the cases (including errors in a stream), and [Handle errors](https://platform.claude.com/docs/en/api/handle-errors) shows how to catch these exceptions.
-* `AnthropicServiceException` - Base class for HTTP errors
-* `AnthropicIoException` - I/O networking errors
-* `AnthropicRetryableException` - Generic error indicating a failure that could be retried
-* `AnthropicInvalidDataException` - Failure to interpret successfully parsed data (for example, when accessing a property that’s supposed to be required, but the API unexpectedly omitted it)
-* `AnthropicException` - Base class for all exceptions
-
-### Status code mapping
-
-| Status | Exception |
-| ----- | ----- |
-| 400 | `BadRequestException` |
-| 401 | `UnauthorizedException` |
-| 403 | `PermissionDeniedException` |
-| 404 | `NotFoundException` |
-| 422 | `UnprocessableEntityException` |
-| 429 | `RateLimitException` |
-| 5xx | `InternalServerException` |
-| others | `UnexpectedStatusCodeException` |
-
-`SseException` is thrown for errors encountered during SSE streaming after a successful initial HTTP response.
-
-```java
-import com.anthropic.errors.*;
-
-try {
- Message message = client.messages().create(params);
-} catch (RateLimitException e) {
- IO.println("Rate limited, retry after: " + e.headers());
-} catch (UnauthorizedException e) {
- IO.println("Invalid API key");
-} catch (AnthropicServiceException e) {
- IO.println("API error: " + e.statusCode());
-} catch (AnthropicIoException e) {
- IO.println("Network error: " + e.getMessage());
-}
-```
+Each exception for an error response extends `AnthropicServiceException`. To read the response’s headers, catch that class and call `headers()`. For example, `e.headers().values("retry-after")` returns that header’s values as a list.
## Request IDs
@@ -652,17 +617,17 @@ This can be used to log failing requests and report them back to Anthropic. For
## Retries
-The SDK automatically retries 2 times by default, with a short exponential backoff between requests.
+By default, the SDK retries certain errors up to two times (three attempts in all).
-Only the following error types are retried:
+The SDK retries the following error types:
-* Connection errors (for example, because of a network connectivity problem)
+* Connection errors and timeouts
* 408 Request Timeout
* 409 Conflict
-* 429 Rate Limit
-* 5xx Internal
+* 429 Too Many Requests
+* 5xx server errors
-The API might also explicitly instruct the SDK to retry or not retry a request.
+If a response has an `x-should-retry` header (`true` or `false`), the SDK follows it instead of the status. Between attempts, the SDK waits as long as the `retry-after` header says, or it uses a short exponential backoff.
To set a custom number of retries, configure the client using the `maxRetries` method:
diff --git a/content/en/cli-sdks-libraries/sdks/php.md b/content/en/cli-sdks-libraries/sdks/php.md
index 19947fe7ec..8ac4e78db2 100644
--- a/content/en/cli-sdks-libraries/sdks/php.md
+++ b/content/en/cli-sdks-libraries/sdks/php.md
@@ -75,56 +75,17 @@ $client = new Client(
## Error handling
-When the library is unable to connect to the API, or if the API returns a non-success status code (that is, a 4xx or 5xx response), a subclass of `Anthropic\Core\Exceptions\APIException` is thrown:
+The SDK throws a subclass of `Anthropic\Core\Exceptions\APIException` when it can’t connect to the API or when the API returns an error response (4xx or 5xx). [SDK error types](https://platform.claude.com/docs/en/api/errors#sdk-error-types) lists the classes, and [Handle errors](https://platform.claude.com/docs/en/api/handle-errors) shows how to catch them.
-```php
-messages->create(
- maxTokens: 1024,
- messages: [['role' => 'user', 'content' => 'Hello, Claude']],
- model: Model::CLAUDE_OPUS_5_5,
- );
-} catch (APIConnectionException $e) {
- echo 'The server could not be reached', PHP_EOL;
- echo $e->getPrevious()?->getMessage(), PHP_EOL;
-} catch (RateLimitException $_) {
- echo 'A 429 status code was received; we should back off a bit.', PHP_EOL;
-} catch (APIStatusException $e) {
- echo 'Another non-200-range status code was received', PHP_EOL;
- echo $e->getMessage();
-}
-```
-
-Error codes are as follows:
-
-| Cause | Error type |
-| ----- | ----- |
-| HTTP 400 | `BadRequestException` |
-| HTTP 401 | `AuthenticationException` |
-| HTTP 403 | `PermissionDeniedException` |
-| HTTP 404 | `NotFoundException` |
-| HTTP 409 | `ConflictException` |
-| HTTP 422 | `UnprocessableEntityException` |
-| HTTP 429 | `RateLimitException` |
-| HTTP >= 500 | `InternalServerException` |
-| Other HTTP error | `APIStatusException` |
-| Timeout | `APITimeoutException` |
-| Network error | `APIConnectionException` |
+To see why a connection failed or timed out, call `getPrevious()` on the `Anthropic\Core\Exceptions\APIConnectionException`. The method returns the underlying exception or `null` if there isn’t one.
## Retries
-Certain errors are automatically retried two times by default, with a short exponential backoff.
+By default, the SDK retries certain errors up to two times (three attempts in all). It retries connection errors, timeouts, 408 Request Timeout, 409 Conflict, 429 Too Many Requests, and 5xx server errors.
-Connection errors (for example, because of a network connectivity problem), 408 Request Timeout, 409 Conflict, 429 Rate Limit, >=500 Internal errors, and timeouts are all retried by default.
+If a response has an `x-should-retry` header (`true` or `false`), the SDK follows it instead of the status. Between attempts, the SDK waits as long as the `retry-after` header says, or it uses a short exponential backoff.
-You can use the `maxRetries` option to configure or disable this:
+Use the `maxRetries` request option to configure or disable retries:
```php
use Anthropic\Messages\Model;
diff --git a/content/en/cli-sdks-libraries/sdks/python.md b/content/en/cli-sdks-libraries/sdks/python.md
index 3179be6a08..9e762a44fb 100644
--- a/content/en/cli-sdks-libraries/sdks/python.md
+++ b/content/en/cli-sdks-libraries/sdks/python.md
@@ -349,46 +349,14 @@ The async client uses the exact same interface. If you pass a `PathLike` instanc
## Handling errors
-The SDK raises a subclass of `APIError` when it can’t connect to the API or when the API returns a 4xx or 5xx status code:
+The SDK raises a subclass of `anthropic.APIError` when it can’t connect to the API or when the API returns an error response (4xx or 5xx). [SDK error types](https://platform.claude.com/docs/en/api/errors#sdk-error-types) lists the classes, and [Handle errors](https://platform.claude.com/docs/en/api/handle-errors) shows how to catch them.
-```python
-import anthropic
-# ...
-try:
- message = client.messages.create(
- max_tokens=1024,
- messages=[
- {
- "role": "user",
- "content": "Hello, Claude",
- }
- ],
- model="claude-opus-5-5",
- )
-except anthropic.APIConnectionError as e:
- print("The server could not be reached")
- print(e.__cause__) # an underlying Exception, likely raised within httpx2
-except anthropic.RateLimitError as e:
- print("A 429 status code was received; wait before retrying.")
-except anthropic.APIStatusError as e:
- print("Another non-200-range status code was received")
- print(e.status_code)
- print(e.response)
-```
-
-Error codes are as follows:
-
-| Status code | Error type |
-| ----- | ----- |
-| 400 | `BadRequestError` |
-| 401 | `AuthenticationError` |
-| 403 | `PermissionDeniedError` |
-| 404 | `NotFoundError` |
-| 409 | `ConflictError` |
-| 422 | `UnprocessableEntityError` |
-| 429 | `RateLimitError` |
-| >=500 | `InternalServerError` |
-| N/A | `APIConnectionError` |
+Two of the classes hold more detail on a failure:
+
+| Class | Raised when | Where the detail is |
+| ----- | ----- | ----- |
+| `APIConnectionError` | The SDK can’t reach the API, or the request times out (the subclass `APITimeoutError`) | `__cause__` holds the underlying exception |
+| `APIStatusError` | The API returns an error response | `status_code` holds the status, and `response` holds the raw `httpx2.Response` with its headers |
## Request IDs
@@ -411,9 +379,11 @@ print(message._request_id) # for example, req_018EeWyXxfu5pfWkrYcMdjWG
## Retries
-By default, the SDK retries certain errors twice, with a short exponential backoff. It retries connection errors (for example, a network problem), 408 Request Timeout, 409 Conflict, 429 Rate Limit, and >=500 Internal errors.
+By default, the SDK retries certain errors up to two times (three attempts in all). It retries connection errors, timeouts, 408 Request Timeout, 409 Conflict, 429 Too Many Requests, and 5xx server errors.
+
+If a response has an `x-should-retry` header (`true` or `false`), the SDK follows it instead of the status. Between attempts, the SDK waits as long as the `retry-after` header says, or it uses a short exponential backoff.
-You can use the `max_retries` option to configure or disable this:
+Use the `max_retries` option to configure or disable retries:
```python
# Configure the default for all requests:
diff --git a/content/en/cli-sdks-libraries/sdks/ruby.md b/content/en/cli-sdks-libraries/sdks/ruby.md
index c921819e58..e4cc79636c 100644
--- a/content/en/cli-sdks-libraries/sdks/ruby.md
+++ b/content/en/cli-sdks-libraries/sdks/ruby.md
@@ -113,50 +113,17 @@ For complete structured outputs documentation including Ruby examples, see [Stru
## Handling errors
-When the library is unable to connect to the API, or if the API returns a non-success status code (that is, a 4xx or 5xx response), a subclass of `Anthropic::Errors::APIError` is raised:
+The SDK raises a subclass of `Anthropic::Errors::APIError` when it can’t connect to the API or when the API returns an error response (4xx or 5xx). [SDK error types](https://platform.claude.com/docs/en/api/errors#sdk-error-types) lists the classes, and [Handle errors](https://platform.claude.com/docs/en/api/handle-errors) shows how to rescue them.
-```ruby
-anthropic = Anthropic::Client.new
-begin
- message = anthropic.messages.create(
- max_tokens: 1024,
- messages: [{role: "user", content: "Hello, Claude"}],
- model: Anthropic::Model::CLAUDE_OPUS_5_5
- )
-rescue Anthropic::Errors::APIConnectionError => e
- puts("The server could not be reached")
- puts(e.cause) # an underlying Exception, likely raised within `net/http`
-rescue Anthropic::Errors::RateLimitError => e
- puts("A 429 status code was received; we should back off a bit.")
-rescue Anthropic::Errors::APIStatusError => e
- puts("Another non-200-range status code was received")
- puts(e.status)
-end
-```
-
-Error codes are as follows:
-
-| Cause | Error type |
-| ----- | ----- |
-| HTTP 400 | `BadRequestError` |
-| HTTP 401 | `AuthenticationError` |
-| HTTP 403 | `PermissionDeniedError` |
-| HTTP 404 | `NotFoundError` |
-| HTTP 409 | `ConflictError` |
-| HTTP 422 | `UnprocessableEntityError` |
-| HTTP 429 | `RateLimitError` |
-| HTTP >= 500 | `InternalServerError` |
-| Other HTTP error | `APIStatusError` |
-| Timeout | `APITimeoutError` |
-| Network error | `APIConnectionError` |
+To see why a connection failed or timed out, read `cause` on the `Anthropic::Errors::APIConnectionError` or its subclass `APITimeoutError`. `cause` holds the underlying exception.
## Retries
-Certain errors are automatically retried 2 times by default, with a short exponential backoff.
+By default, the SDK retries certain errors up to two times (three attempts in all). It retries connection errors, timeouts, 408 Request Timeout, 409 Conflict, 429 Too Many Requests, and 5xx server errors.
-Connection errors (for example, because of a network connectivity problem), 408 Request Timeout, 409 Conflict, 429 Rate Limit, >=500 Internal errors, and timeouts are all retried by default.
+If a response has an `x-should-retry` header (`true` or `false`), the SDK follows it instead of the status. Between attempts, the SDK waits as long as the `retry-after` header says, or it uses a short exponential backoff.
-You can use the `max_retries` option to configure or disable this:
+Use the `max_retries` option to configure or disable retries:
```ruby
# Configure the default for all requests:
diff --git a/content/en/cli-sdks-libraries/sdks/typescript.md b/content/en/cli-sdks-libraries/sdks/typescript.md
index e04bb2cb28..fe095ff96e 100644
--- a/content/en/cli-sdks-libraries/sdks/typescript.md
+++ b/content/en/cli-sdks-libraries/sdks/typescript.md
@@ -374,39 +374,14 @@ await client.files.upload({
## Handling errors
-When the library is unable to connect to the API, or if the API returns a non-success status code (that is, a 4xx or 5xx response), a subclass of `APIError` is thrown:
+The SDK throws a subclass of `Anthropic.APIError` when it can’t connect to the API or when the API returns an error response (4xx or 5xx). [SDK error types](https://platform.claude.com/docs/en/api/errors#sdk-error-types) lists the classes, and [Handle errors](https://platform.claude.com/docs/en/api/handle-errors) shows how to catch them.
-```typescript
-const message = await client.messages
- .create({
- max_tokens: 1024,
- messages: [{ role: "user", content: "Hello, Claude" }],
- model: "claude-opus-5-5"
- })
- .catch(async (err) => {
- if (err instanceof Anthropic.APIError) {
- console.log(err.status); // 400
- console.log(err.name); // BadRequestError
- console.log(err.headers); // {server: 'nginx', ...}
- } else {
- throw err;
- }
- });
-```
+The error’s `status` and `headers` properties hold the response’s status and headers (for example, `err.headers?.get("retry-after")`). Both are `undefined` if there was no response.
-Error codes are as follows:
+Two errors don’t come from a failed connection or an error response. A check for `APIError` matches the first but not the second:
-| Status code | Error type |
-| ----- | ----- |
-| 400 | `BadRequestError` |
-| 401 | `AuthenticationError` |
-| 403 | `PermissionDeniedError` |
-| 404 | `NotFoundError` |
-| 409 | `ConflictError` |
-| 422 | `UnprocessableEntityError` |
-| 429 | `RateLimitError` |
-| >=500 | `InternalServerError` |
-| N/A | `APIConnectionError` |
+* **`APIUserAbortError`:** You aborted a request with the `signal` request option (an `AbortSignal`) or called `abort()` on a [`client.messages.stream()` stream](https://platform.claude.com/docs/en/cli-sdks-libraries/sdks/typescript#streaming-helpers).
+* **`AnthropicError`:** The SDK itself failed. For example, it refused a long non-streaming request (see [Long requests](https://platform.claude.com/docs/en/cli-sdks-libraries/sdks/typescript#long-requests)). `AnthropicError` is the parent class of `APIError`.
## Request IDs
@@ -425,9 +400,11 @@ console.log(message._request_id); // req_018EeWyXxfu5pfWkrYcMdjWG
## Retries
-Certain errors are automatically retried 2 times by default, with a short exponential backoff. Connection errors (for example, because of a network connectivity problem), 408 Request Timeout, 409 Conflict, 429 Rate Limit, and >=500 Internal errors are all retried by default.
+By default, the SDK retries certain errors up to two times (three attempts in all). It retries connection errors, timeouts, 408 Request Timeout, 409 Conflict, 429 Too Many Requests, and 5xx server errors.
+
+If a response has an `x-should-retry` header (`true` or `false`), the SDK follows it instead of the status. Between attempts, the SDK waits as long as the `retry-after` header says, or it uses a short exponential backoff.
-You can use the `maxRetries` option to configure or disable this:
+Use the `maxRetries` option to configure or disable retries:
```typescript
// Configure the default for all requests:
@@ -767,7 +744,7 @@ const response = await client.beta.messages.create({
* **Internal tools:** If the application is used solely within a controlled internal environment where the users are trusted, the risk of credential exposure can be mitigated.
* **Development or debugging purpose:** Enabling this feature temporarily might be acceptable, provided the credentials are short-lived, aren’t also used in production environments, or are frequently rotated.
- Even in these cases, browser support works only if your organization can call the Claude API directly from a browser. Organizations with zero data retention (ZDR) or the Compliance API enabled cannot, and their browser requests fail with a 401 error. See [Browser-based applications](https://platform.claude.com/docs/en/manage-claude/authentication#browser-based-applications).
+ Even in these cases, browser support works only if your organization can call the Claude API directly from a browser. Organizations with zero data retention (ZDR) cannot, and their browser requests fail with a 401 error. See [Browser-based applications](https://platform.claude.com/docs/en/manage-claude/authentication#browser-based-applications).
## Platform integrations
diff --git a/content/en/docs/claude-code/admin-setup.md b/content/en/docs/claude-code/admin-setup.md
index d2368501c3..87f4af3e95 100644
--- a/content/en/docs/claude-code/admin-setup.md
+++ b/content/en/docs/claude-code/admin-setup.md
@@ -53,7 +53,7 @@ Managed settings define organization policy. Claude Code checks the four sources
Claude Code fetches server-managed settings at startup and refreshes them hourly during the session, with no endpoint infrastructure to deploy. Delivery through the claude.ai admin console requires a Claude for Teams or Enterprise plan. Deployments on Amazon Bedrock, Google Cloud's Agent Platform, or Microsoft Foundry can get the same remote delivery by running a [Claude apps gateway](https://code.claude.com/docs/en/claude-apps-gateway), or use one of the file-based or OS-level mechanisms instead.
-If you set your provider or gateway at claude.ai under **Organization settings > Desktop 3P**, see [which settings take priority](https://claude.com/docs/third-party/claude-desktop/admin-console-claude-code#which-settings-take-priority) in the Enterprise Admin Console guide.
+If you set your provider or gateway at claude.ai under [**Organization settings > Desktop 3P**](https://claude.ai/admin-settings/desktop-deployment), see [which settings take priority](https://claude.com/docs/third-party/claude-desktop/admin-console-claude-code#which-settings-take-priority) in the Enterprise Admin Console guide.
If your organization mixes providers, configure [server-managed settings](https://code.claude.com/docs/en/server-managed-settings.md) for claude.ai users plus a [file-based or plist/registry fallback](https://code.claude.com/docs/en/managed-settings.md#delivery-mechanisms) so other users still receive managed policy.
@@ -158,7 +158,7 @@ When an account is linked, Claude can act on its repositories as the Claude GitH
**1. Allow organizations**
-As an Owner on a Team or Enterprise plan, open the GitHub section of [**Organization settings > Git providers**](https://claude.ai/admin-settings/source-control) in your browser and click **Choose organizations**. Select the organizations you approve in the table and click **Allow**. Include ones that are already linked, because they aren't allowed automatically.
+On a Team or Enterprise plan, an [Owner](https://code.claude.com/docs/en/server-managed-settings.md#access-control) can set this up. Open the GitHub section of [**Organization settings > Git providers**](https://claude.ai/admin-settings/source-control) in your browser and click **Choose organizations**. Select the organizations you approve in the table and click **Allow**. Include ones that are already linked, because they aren't allowed automatically.
**2. Allow other accounts by name**
@@ -189,7 +189,7 @@ Choose monitoring based on what you need to report on. The dashboards, APIs, and
| Usage monitoring | OpenTelemetry export of sessions, tools, and tokens | All providers | [Monitoring usage](https://code.claude.com/docs/en/monitoring-usage.md) |
| Analytics dashboard | Adoption and contribution metrics with a leaderboard on Teams / Enterprise; per-user usage and spend metrics on Console | Teams / Enterprise at [claude.ai/analytics](https://claude.ai/analytics/claude-code), Console at [platform.claude.com/claude-code](https://platform.claude.com/claude-code) | [Analytics](https://code.claude.com/docs/en/analytics.md) |
| Programmatic reporting | Per-user usage and cost data over an API | [Enterprise Analytics API](https://platform.claude.com/docs/en/api/admin/analytics) for Enterprise, [Claude Code Analytics API](https://platform.claude.com/docs/en/build-with-claude/claude-code-analytics-api) for Console | [Costs](https://code.claude.com/docs/en/costs.md#manage-costs-for-your-organization) |
-| Spend controls | Spend limits and rate limits | Organization settings for Teams / Enterprise, workspace limits for Console; on third-party clouds, cloud budget controls or a [Claude apps gateway](https://code.claude.com/docs/en/claude-apps-gateway) with per-user [spend limits](https://code.claude.com/docs/en/claude-apps-gateway-spend-limits.md) | [Costs](https://code.claude.com/docs/en/costs.md#manage-costs-for-your-organization) |
+| Spend controls | Spend limits and rate limits | [Organization settings](https://claude.ai/admin-settings/usage) for Teams / Enterprise, workspace limits for Console; on third-party clouds, cloud budget controls or a [Claude apps gateway](https://code.claude.com/docs/en/claude-apps-gateway) with per-user [spend limits](https://code.claude.com/docs/en/claude-apps-gateway-spend-limits.md) | [Costs](https://code.claude.com/docs/en/costs.md#manage-costs-for-your-organization) |
On Teams and Enterprise, per-user usage and spend numbers come from the [spend report](https://support.claude.com/en/articles/12883420-view-usage-analytics-for-team-and-enterprise-plans) in your organization's analytics settings, not the analytics dashboard. Cloud providers expose spend through AWS Cost Explorer, GCP Billing, or Azure Cost Management. For planning enterprise budgets across Claude chat, Claude Code, and Cowork, see the [Claude Enterprise consumption guide](https://support.claude.com/en/articles/14782391-claude-enterprise-consumption-guide).
diff --git a/content/en/docs/claude-code/advisor.md b/content/en/docs/claude-code/advisor.md
index 247e5a3852..f5108c04b4 100644
--- a/content/en/docs/claude-code/advisor.md
+++ b/content/en/docs/claude-code/advisor.md
@@ -50,7 +50,7 @@ The command also works where there is no terminal picker: in [non-interactive mo
* Run `/advisor` with a model, such as `/advisor opus`, to set it.
* Run `/advisor off` to turn it off.
-Claude Code doesn't invoke a saved advisor that your organization's [`availableModels`](https://code.claude.com/docs/en/model-config#restrict-model-selection) allowlist excludes. To use the advisor, pick an allowed model with `/advisor`.
+Claude Code doesn't invoke a saved advisor that an [`availableModels`](https://code.claude.com/docs/en/model-config#restrict-model-selection) allowlist in your settings excludes. To use the advisor, pick an allowed model with `/advisor`.
Claude Code still saves an advisor that your current main model doesn't support. That advisor activates after you switch to a [compatible main model](#choose-an-advisor-model) with [`/model`](https://code.claude.com/docs/en/model-config#setting-your-model). If the API already refused the saved advisor in the current conversation, it stays off until `/clear` or `/compact`, even after you switch models.
@@ -78,7 +78,7 @@ Claude Code uses the flag instead of the `advisorModel` setting for that session
* The session's main model doesn't support the advisor
* The requested model, such as Haiku 4.5, can't act as an advisor
-* Your organization's [`availableModels`](https://code.claude.com/docs/en/model-config#restrict-model-selection) allowlist excludes the requested model
+* An [`availableModels`](https://code.claude.com/docs/en/model-config#restrict-model-selection) allowlist excludes the requested model
* You requested Fable and your account still requires the [usage-credits consent](#fable-advisor-and-usage-credits)
If you start a [background session](https://code.claude.com/docs/en/agent-view.md) with `--advisor` and one of these applies, Claude Code starts the session without the advisor instead of exiting.
diff --git a/content/en/docs/claude-code/agent-teams.md b/content/en/docs/claude-code/agent-teams.md
index 375b5a446f..ba6ce56893 100644
--- a/content/en/docs/claude-code/agent-teams.md
+++ b/content/en/docs/claude-code/agent-teams.md
@@ -170,7 +170,7 @@ Before v2.1.251, `CLAUDE_CODE_SUBAGENT_MODEL` came first in this order.
>
> `teammateDefaultModel` was removed in v2.1.234; Claude Code ignores a leftover value. Name the model in your prompt instead.
-Claude Code checks the model it selects for a teammate against your organization's [`availableModels`](https://code.claude.com/docs/en/model-config#restrict-model-selection) allowlist. When the allowlist blocks a value, Claude Code substitutes another model:
+Claude Code checks the model it selects for a teammate against any [`availableModels`](https://code.claude.com/docs/en/model-config#restrict-model-selection) allowlist. When the allowlist blocks a value, Claude Code substitutes another model:
* **Family alias such as `opus`**: On the Anthropic API and Claude Platform on AWS, Claude Code runs the teammate on the newest version of that family the allowlist permits. On providers with provider-specific model IDs, where the [substitution doesn't operate](https://code.claude.com/docs/en/model-config.md#restrict-model-selection), a blocked alias falls back like any other blocked value per the next bullet
* **Any other blocked value, including a family alias on providers where the substitution doesn't operate, or one whose family has no permitted version**: Claude Code runs the teammate on the lead's model instead. If you set `CLAUDE_CODE_SUBAGENT_MODEL`, Claude Code tries that model first, under these same rules
diff --git a/content/en/docs/claude-code/agent-view.md b/content/en/docs/claude-code/agent-view.md
index 0be9b16772..a8920c1738 100644
--- a/content/en/docs/claude-code/agent-view.md
+++ b/content/en/docs/claude-code/agent-view.md
@@ -849,7 +849,7 @@ Each session is its own Claude Code process under the supervisor, and what happe
* **Working, paused on a permission prompt or other dialog, or attached**: the process keeps running. A running subagent, workflow, or monitor counts as working, and so does a pending [session-scoped scheduled task](https://code.claude.com/docs/en/scheduled-tasks.md), such as a `/loop` wakeup.
* **Finished or waiting for your next message, and unattached for about an hour**: the supervisor stops the process to free resources. A session that ended its turn by asking you a question counts as waiting for your next message. The conversation stays on disk, and the next time you attach or reply, the session resumes where it left off. Pin a session with `Ctrl+T` to keep its process running.
-* **Exited unexpectedly while the supervisor is running**: the supervisor restarts the process. Ending a session you backgrounded yourself with `←` or `/background`, for example with `kill`, marks it stopped instead of restarting it. For sessions that ended with a shutdown, see [Sessions show as failed or stopped after shutdown](#sessions-show-as-failed-after-shutdown).
+* **Exited unexpectedly while the supervisor is running**: the supervisor can restart the process. Ending a session you backgrounded yourself with `←` or `/background`, for example with `kill`, marks it stopped instead of restarting it. If the session's row shows `∙`, select it and press `Enter` to restart the session. For sessions that ended with a shutdown, see [Sessions show as failed or stopped after shutdown](#sessions-show-as-failed-after-shutdown).
* **After an auto-update**: the supervisor restarts itself onto the new version and moves idle sessions over in the background. Sessions that are working, waiting on you, or attached aren't interrupted.
* **The supervisor itself stops**, for example because its process was ended from outside Claude Code: on macOS and Linux, your sessions stop unless a new supervisor connects within about a minute. To start one, run `claude agents` in your shell. After that minute, see [Keep sessions running after the supervisor stops](#keep-sessions-running-after-the-supervisor-stops).
diff --git a/content/en/docs/claude-code/approvals-policy.md b/content/en/docs/claude-code/approvals-policy.md
index f218886991..fb739f8030 100644
--- a/content/en/docs/claude-code/approvals-policy.md
+++ b/content/en/docs/claude-code/approvals-policy.md
@@ -76,11 +76,16 @@ For each changed file, Approvals walks up from that file's directory. The first
* **Each policy file has its own `mode`**: while the root policy file observes, none of its rules count under a directory's enforcing policy file, the `nested: inherit` rules included
* **Some custom classifiers go only under `advisory`**: that's a classifier whose [`tools`](https://code.claude.com/docs/en/approvals-classifiers#tools) list `reviewers` or `labels`, or that has an [input](https://code.claude.com/docs/en/approvals-classifiers.md#inputs) with no `merge`. List it in an enforced rule with no `if`. If a rule reads its result, the check on pull requests under a directory's policy file can read **Cannot evaluate: classifier outside advisory**
-## Top-level keys
+## Rules for the whole file
+
+Follow these rules in every part of the file:
-Approvals refuses a file that has an unknown key. Write keys, and fixed words such as `observe` and `approves`, in lower case. Put double quotes around every purpose, pattern, condition, and `"!"` item.
+* **Keys and fixed values**: write keys, and fixed values such as `observe` and `approves`, in lower case. Approvals refuses a file that has an unknown key
+* **Purposes, patterns, and conditions**: put double quotes around every purpose, `paths` pattern, and condition
+* **`!` items**: put double quotes around each `"!"` item outside a condition. Inside a condition, a `!` item takes single quotes. Approvals refuses a file that has an unquoted `!` item
+* **YAML**: keep the file to one YAML document, or Approvals refuses the file. Indent with spaces. Anchors, aliases, and `!!` tags draw at least a warning
-Keep the file to one YAML document, quote each `!` item, and indent with spaces, or Approvals refuses the file. Anchors, aliases, and `!!` tags draw a warning.
+## Top-level keys
Write these keys at the top level of the file:
@@ -123,7 +128,7 @@ Write each pattern as a path from the directory that holds the `.claude` folder.
| `*` | Any characters within one folder |
| `**` | Any number of folders, dot folders too. It has to be a whole segment, as in `**/*.go` |
| `{a,b}`, `[ab]`, `?` | Alternatives, one character of a set, and any one character |
-| `infra/**` | Every file in the folder. A bare `infra` matches no file in it |
+| `infra/**` | Every file in the folder. A bare `infra` matches no file in it, and `infra/` is refused |
| `*.md` | Markdown files beside the policy file's `.claude` folder. For any depth, write `**/*.md` |
| `"!docs/**"` | Takes the files out of this rule only. A rule needs at least one pattern with no `!` |
@@ -133,8 +138,8 @@ Write a condition as `true`, `false`, or one double-quoted string with a fact's
* **Operators**: `=`, `!=`, `<`, `<=`, `>`, `>=`
* **Joining**: `AND` and `OR` in capitals. Use parentheses to mix the two.
-* **Lists**: write `ANY` or `ALL` before `pr/authors` and `pr/approved_by`. Where the condition leads to a lighter verdict, use `ALL`: with `ANY`, one listed author relaxes the rule for everyone else's commits. Where it leads to a stricter one, use `ANY`: with `ALL`, one unlisted author switches it off.
-* **Quotes**: single quotes around a login or a branch pattern, and none around a team, a `bot:` name, or a fact, as in `"ALL pr/authors = ['ana-acme', acme/payments]"`
+* **Lists**: write `ANY` or `ALL` before `pr/authors` and `pr/approved_by`. Where the condition leads to a lighter verdict, use `ALL`: with `ANY`, one listed author relaxes the rule for everyone else's commits. Where it leads to a stricter one, use `ANY`: with `ALL`, one unlisted author switches it off. To test for an empty list, write neither, as in `"pr/approved_by = empty"`.
+* **Quotes**: single quotes around a login, a branch pattern, or a whole `!` item in a [list of people](#people-lists), as in `"ANY pr/authors = [humans, '!acme/interns']"`. No quotes around a team, a `bot:` name, or a fact without a `!`, as in `"ALL pr/authors = ['ana-acme', acme/payments]"`
* **Classifiers**: `claude/code_review = pass`, `repo/change_risk <= medium`, and the other forms under [Read a classifier's answer from a rule](https://code.claude.com/docs/en/approvals-classifiers.md#read-a-classifier’s-answer-from-a-rule)
A fact comes from the pull request itself:
@@ -146,7 +151,7 @@ A fact comes from the pull request itself:
| `rule/files_changed`, `rule/files_added`, `rule/files_removed` | `"rule/files_changed = pr/files_changed"` | Counts among the files that this rule's `paths` match |
| `pr/authors` | `"ALL pr/authors = bot:dependabot"` | Accounts that wrote or pushed a commit, and the account that opened the pull request |
| `pr/opened_by` | `"pr/opened_by = acme/release"` | The account that opened the pull request. After someone else pushes to a bot's pull request, an override on `pr/opened_by = bot:dependabot` stops lowering what the rule asks for |
-| `pr/approved_by` | `"ANY pr/approved_by = acme/security"` | People with write access who approved the current diff. Authors and bots aren't among them. Also takes `= empty` and `!= empty` |
+| `pr/approved_by` | `"ANY pr/approved_by = acme/security"` | People with write access who approved the current diff. Authors and bots aren't among them. Also takes `= empty` and `!= empty`, with no `ANY` or `ALL` |
| `pr/base` | `"pr/base = 'release/**'"` | The branch that the pull request targets |
### `verdict`
@@ -175,7 +180,7 @@ A people list names accounts. Write one as a set's `from` under [`seats`](#verdi
| `acme/payments` | A team of the repository's GitHub organization |
| `bot:dependabot` | One bot, with no `[bot]` suffix. `bot:claude` means Claude's apps |
| `pr/authors`, `pr/opened_by` | The accounts that the fact holds |
-| `"!pr/authors"` | Takes accounts away. Quote it, and put it beside an item with no `!` |
+| `"!pr/authors"` | Takes accounts away. Quote it, with single quotes in a condition, and put it beside an item with no `!` |
If a set's `from` admits Claude, for example through `bots`, `everyone`, or `bot:claude`, and every rule that applies says `approves`, Approvals counts a seat in that set as filled before Claude approves. The **Claude Approvals** check can then pass with no person's approval.
@@ -357,7 +362,7 @@ Where a rule covers a changed file, Approvals normally [asks for a person](#who-
* **Git files**: `.gitmodules`, `.gitattributes`, symlinks, and submodule pointers
* **Code owners**: any file named `CODEOWNERS`
-Don't rely on other files being protected. Write a rule for the ones that matter to you, such as `.github/`, `CLAUDE.md`, `AGENTS.md`, `.mcp.json`, and the rest of `.claude/`.
+Don't rely on other files being protected. Write a rule for the ones that matter to you, such as the `.github` folder, `CLAUDE.md`, `AGENTS.md`, `.mcp.json`, and the rest of the `.claude` folder.
### Who has to approve a change to a protected file
diff --git a/content/en/docs/claude-code/approvals-troubleshooting.md b/content/en/docs/claude-code/approvals-troubleshooting.md
index ba5031c35e..217bfb49be 100644
--- a/content/en/docs/claude-code/approvals-troubleshooting.md
+++ b/content/en/docs/claude-code/approvals-troubleshooting.md
@@ -84,12 +84,16 @@ Find the beginning of your message here:
| "no key of this name is read at this place" | Check the key's spelling and its level against [Top-level keys](https://code.claude.com/docs/en/approvals-policy.md#top-level-keys) and [Rule keys](https://code.claude.com/docs/en/approvals-policy.md#rule-keys) |
| "this names no fact and no usable classifier" | Check the name against the [facts](https://code.claude.com/docs/en/approvals-policy.md#if). For `repo/`, check that `.claude/classifiers//def.yml` loads, beside the policy file or in a directory above it |
| "a condition has no NOT" | Write the opposite operator |
+| "a login goes in single quotes inside a condition" | If the word is a login, put it in single quotes, as in `"pr/opened_by = 'ana-acme'"`. For a bot, write `bot:` and its name with no quotes, as in `"pr/opened_by = bot:dependabot"` |
| "no local has this name" | Define the local in this file or a policy file above it. Write a login or a team with no `@` |
| "this is not YAML" | Look near the line that the message names for a quote or bracket that doesn't close, or a tab. Indent with spaces |
## A classifier gave no answer or its definition is refused
-To see each [classifier](https://code.claude.com/docs/en/approvals-classifiers.md) run's state and the reason for a missing answer, open **Classifier results** in Claude's comment on the pull request. If a run reached its budget, split the pull request, or raise a `time` or `cost` that is under its [maximum](https://code.claude.com/docs/en/approvals-classifiers.md#budget).
+To see each [classifier](https://code.claude.com/docs/en/approvals-classifiers.md) run's state and the reason for a missing answer, open **Classifier results** in Claude's comment on the pull request:
+
+* **A run reached its budget**: split the pull request, or raise a `time` or `cost` that is under its [maximum](https://code.claude.com/docs/en/approvals-classifiers.md#budget)
+* **A run had more to read than one run can handle**, for example a large diff: try a smaller pull request
Then find the **Claude Approvals** check's title here:
diff --git a/content/en/docs/claude-code/artifacts.md b/content/en/docs/claude-code/artifacts.md
index 28fe213f16..e47478f966 100644
--- a/content/en/docs/claude-code/artifacts.md
+++ b/content/en/docs/claude-code/artifacts.md
@@ -43,7 +43,7 @@ Make an artifact that walks through this PR with the diff annotated inline.
Build a dashboard artifact of last week's deploy failures by service and keep it updated as you investigate.
```
-Unless you name a location, Claude writes the page to an HTML or Markdown file in a temporary directory outside your project, then publishes it. The artifact stays private to you until you [share it](#share-an-artifact).
+The artifact stays private to you until you [share it](#share-an-artifact).
After the first publish, Claude prints the URL, and your browser opens to the new page.
@@ -58,7 +58,9 @@ If Claude responds that it can't publish, or writes a local HTML file without a
### When Claude Code asks before publishing
-A new artifact that Claude publishes in response to a prompt you type goes through without a permission prompt or classifier review. In these cases Claude Code asks you first, or in [auto mode](https://code.claude.com/docs/en/permission-modes.md#eliminate-prompts-with-auto-mode) has the classifier review the publish:
+A new artifact that Claude publishes in response to a prompt you type can go through without a permission prompt or classifier review.
+
+Outside `bypassPermissions` mode, the publish needs your approval in cases such as these, or the classifier's review in [auto mode](https://code.claude.com/docs/en/permission-modes.md#eliminate-prompts-with-auto-mode):
| When | What Claude Code does |
| :- | :- |
@@ -66,16 +68,16 @@ A new artifact that Claude publishes in response to a prompt you type goes throu
| The publish declares runtime capabilities for the page, such as [connector calls](#pull-live-data-with-mcp-connectors) or [file downloads](#offer-a-file-download) | Asks before that publish |
| You shared the artifact publicly | Asks at least once per conversation before changing it, and before each reply to a comment on it |
| Claude publishes in a turn that a [session-scoped scheduled task](https://code.claude.com/docs/en/scheduled-tasks.md) firing in your session started, rather than a prompt you typed | Asks before the first publish of each artifact |
-| Claude can't read the file without your approval | Asks before publishing it. An allow rule for the `Artifact` tool doesn't skip this prompt |
+| Claude publishes from a file it can't read without your approval | Asks before publishing, or refuses the file. An allow rule for the `Artifact` tool doesn't count as approval |
| In [Manual](https://code.claude.com/docs/en/permission-modes.md) or `acceptEdits` mode, Claude makes a small change to an artifact's file it can't edit without your approval, such as a project file in Manual mode | Asks before publishing the change. You're asked even if an allow rule covers the `Artifact` tool, because the edit to the file needs your approval |
-To let Claude read a file outside your [working directories](https://code.claude.com/docs/en/permissions.md#working-directories) without your approval, add its folder as a working directory with [`--add-dir`](https://code.claude.com/docs/en/cli-reference#cli-flags) at launch or `/add-dir` during the session. Claude already reads files in those directories, and in the temporary directory it writes pages to, without asking.
+To let Claude read a file outside your [working directories](https://code.claude.com/docs/en/permissions.md#working-directories) without your approval, add its folder as a working directory with [`--add-dir`](https://code.claude.com/docs/en/cli-reference#cli-flags) at launch or `/add-dir` during the session.
If a publish prompt includes a sentence such as `Also makes 1 edit to that file on disk.`, Claude is changing the artifact's file and publishing it in one step. When you approve the prompt, Claude Code publishes the page, then writes the change to your file.
## Update an artifact
-Ask Claude to revise the page, or let a long-running task republish as it makes progress. Claude edits the underlying file and publishes again to the same URL.
+Ask Claude to revise the page, or let a long-running task republish as it makes progress. Claude publishes again to the same URL.
```text wrap theme={null}
Add a per-region breakdown below the summary chart and republish.
@@ -150,12 +152,12 @@ If an editor publishes while Claude holds an older copy of the page, Claude Code
When someone shares an artifact with you, you can have Claude read it: give Claude its URL, or attach it from [`/artifacts`](#find-an-artifact-again).
-Claude reads a page someone else wrote the way it reads a web page with [WebFetch](https://code.claude.com/docs/en/tools-reference.md#webfetch-tool-behavior): it gets a summary of what it asked about rather than the raw page, and the summary reports instructions written into the page instead of relaying them. Claude Code also saves the page's full source to a local file, which Claude can open when it needs the exact content, such as to republish the artifact as an [editor](#let-someone-edit-with-you).
+Claude Code can save the page's full source to a local file, which Claude can open.
-Claude Code asks for your approval before Claude reads the artifact in these cases, in addition to any prompt your permission mode or rules call for:
+Claude Code can ask for your approval before the [Artifact tool](https://code.claude.com/docs/en/tools-reference.md) reads an artifact in these cases, in addition to any prompt your permission mode or rules call for:
* **Cloud session without network access**: for a [cloud environment](https://code.claude.com/docs/en/cloud-environments.md#access-levels), that's the **None** level. In [auto mode](https://code.claude.com/docs/en/permission-modes.md#eliminate-prompts-with-auto-mode), the classifier can approve instead; in a [Cowork](https://claude.com/product/cowork) session, the approval is yours alone.
-* **Another organization's public artifact**: Claude Code asks you first, even in auto mode. Where Claude Code can't ask you, such as in `bypassPermissions` mode, Claude can't read the artifact. Claude can read these artifacts only while [feature-flag fetching](https://code.claude.com/docs/en/env-vars.md#features-that-need-feature-flag-fetching) is on.
+* **Another organization's public artifact**: the tool asks you first, even in auto mode. Where Claude Code can't ask you, such as in `bypassPermissions` mode, the tool can't read one you haven't approved in this conversation. The tool can read these artifacts only while [feature-flag fetching](https://code.claude.com/docs/en/env-vars.md#features-that-need-feature-flag-fetching) is on.
* **Unconfirmed owner or network setting**: when Claude Code can't confirm who made the artifact, or can't confirm a cloud session's network setting, it asks, and your approval covers that one request. In [auto mode](https://code.claude.com/docs/en/permission-modes.md#eliminate-prompts-with-auto-mode), the classifier can approve or block the read instead of asking you.
* **Plan mode**: in [plan mode](https://code.claude.com/docs/en/permission-modes.md#analyze-before-you-edit-with-plan-mode), Claude Code asks before the Artifact tool reads an artifact someone else in your organization made.
@@ -165,7 +167,7 @@ When Claude reads the artifact with WebFetch, WebFetch's own [prompting rules](h
When you share an artifact within your organization, the people you share it with can leave comments on the page, and you can have Claude read those comments and reply to them. You need Claude Code v2.1.221 or later. Claude reads the comments in two cases:
-* **You ask Claude to read them**: give Claude the artifact's URL and ask for the comments. Claude lists each thread and marks the comments someone who can edit the artifact sent to it.
+* **You ask Claude to read them**: give Claude the artifact's URL and ask for the comments.
* **Someone who can edit the artifact sends a comment to Claude**: in a thread on the page, they send a comment with **Send to Claude**, or mention `@claude` in one. Either way, they activate the thread.
Claude can reply to or resolve only an activated thread. Other threads stay open until a person resolves them on the page. Viewers see each reply attributed to Claude, via you.
@@ -188,7 +190,7 @@ You need Claude Code v2.1.228 or later.
Your [permission mode](https://code.claude.com/docs/en/permission-modes.md) decides what Claude does when a sent comment arrives:
-* **Claude replies on its own**: if you're in a permission mode that lets Claude post the reply without asking you, Claude reads the thread and replies. You see `Auto-replied to comment thread on Artifact: `.
+* **Claude replies on its own**: if you're in a permission mode that lets Claude post the reply without asking you, Claude reads the thread and replies. You see a notice such as `Auto-replied to comment thread on Artifact: `.
* **Claude waits for you**: outside plan mode, when posting the reply [would need your approval](#when-claude-code-asks-before-publishing), you see `Comments are waiting on Artifact: `. Claude then asks you for approval to read the thread, and again to post the reply.
* **Claude pauses in plan mode**: you see `Comments are waiting on Artifact: `, and Claude doesn't reply until you leave plan mode and ask it to read and reply.
@@ -202,9 +204,7 @@ You can stop Claude from replying on its own in any of these ways:
* **Stop the task in `/tasks`**: Claude stops replying on that artifact until you ask it to resume replies there. Publishing the artifact again doesn't start replies again, and the stop still applies when you resume the session later.
* **Press `Ctrl+X Ctrl+K` twice within 3 seconds**: the chord that [stops every running background subagent](https://code.claude.com/docs/en/interactive-mode.md#general-controls) also stops Claude from replying on every artifact for the rest of the session. Asking Claude to resume replies doesn't undo this stop.
-A watch that Claude Code started on its own can end after the artifact goes several hours without activity. You see `Stopped watching Artifact: (idle)`. To start the watch again, publish the artifact again or ask Claude to watch it. If you see `(made room for a newer watch)` in place of `(idle)`, your session reached its limit of 25 watches. Publish again to restart that watch.
-
-If the service that delivers comments becomes unavailable or stops answering, Claude Code keeps trying to reconnect for a while, then stops watching each artifact your session was watching.
+If you see `Stopped watching Artifact: ` followed by `(idle)`, `(connection lost)`, or `(made room for a newer watch)`, ask Claude to republish the artifact to restart the watch. A watch that Claude Code started on its own can end after several hours without activity.
## Pull live data with MCP connectors
@@ -328,7 +328,7 @@ The [artifact templates](https://support.claude.com/en/articles/17153992-what-ar
To use a template from Claude Code, you need:
* A session where [artifacts are available](#availability)
-* On Team and Enterprise plans, the template turned on for your organization. If it's off, ask an Owner to [turn the template on](https://support.claude.com/en/articles/16994751-artifacts-admin-guide-for-team-and-enterprise-plans#h_6e06d8f1a8) under **Organization settings > Artifacts** on claude.ai.
+* On Team and Enterprise plans, the template turned on for your organization. If it's off, ask an Owner to [turn the template on](https://support.claude.com/en/articles/16994751-artifacts-admin-guide-for-team-and-enterprise-plans#h_6e06d8f1a8) under [**Organization settings > Artifacts**](https://claude.ai/admin-settings/artifacts) on claude.ai.
* On Enterprise plans with custom roles, a role that [includes the template](https://support.claude.com/en/articles/16994751-artifacts-admin-guide-for-team-and-enterprise-plans#h_d830917488)
* For the Docs and Sheets templates, the [Claude Docs connector](#write-a-document-with-claude-docs), which Claude uses to write the content of both. If you [turned the connector off](https://code.claude.com/docs/en/mcp.md#disable-claude-ai-connectors), turn it back on first.
* Claude Code v2.1.265 or later, if you start the Design template with its [`/design` command](#draft-a-design-canvas)
@@ -355,7 +355,7 @@ A document that belongs in the codebase, such as a README, stays a file. To get
## Page constraints
-Each artifact is one self-contained page. Claude Code wraps the file you publish in an HTML document shell and serves it under a strict Content Security Policy (CSP), which shapes what the page can do.
+Each artifact is served under a strict Content Security Policy (CSP) that limits what the page can do.
| Constraint | Effect |
| :- | :- |
@@ -386,7 +386,7 @@ Artifacts require every condition below. When one is not met, Claude writes a lo
Whether artifacts are allowed for your organization comes from your organization's policy, which Claude Code loads from `api.anthropic.com`. When Claude Code can't load the policy, artifacts are unavailable. When you ask for one, Claude says why.
-If a proxy, VPN, or web filter is involved, ask your IT admin to let `api.anthropic.com` through. Claude Code keeps retrying in the background, and artifacts become available once the policy loads and allows them.
+If a proxy, VPN, or web filter is involved, ask whoever runs it to let `api.anthropic.com` through. Claude Code keeps retrying in the background, and artifacts become available once the policy loads and allows them.
## Disable artifacts
diff --git a/content/en/docs/claude-code/authentication.md b/content/en/docs/claude-code/authentication.md
index 602d98f7a2..11c4a80868 100644
--- a/content/en/docs/claude-code/authentication.md
+++ b/content/en/docs/claude-code/authentication.md
@@ -25,8 +25,8 @@ You can authenticate with any of these account types:
* **Claude Pro, Max, or Ultra subscription**: log in with your claude.ai account. Subscribe at [claude.com/pricing](https://claude.com/pricing?utm_source=claude_code\&utm_medium=docs\&utm_content=authentication_pro_max).
* **Claude for Teams or Enterprise**: log in with the claude.ai account your team admin invited you to.
-* **Claude Console**: log in with your Console credentials. Your admin must have [invited you](#claude-console-authentication) first. You can sign in with or without [creating an API key](#sign-in-without-an-api-key).
-* **Cloud providers**: if your organization uses [Amazon Bedrock](https://code.claude.com/docs/en/amazon-bedrock.md), [Google Cloud's Agent Platform](https://code.claude.com/docs/en/google-vertex-ai.md), or [Microsoft Foundry](https://code.claude.com/docs/en/microsoft-foundry.md), set the required environment variables before running `claude`. You can also select **3rd-party platform** at the login prompt, which launches an interactive setup wizard for Bedrock and Agent Platform.
+* **Claude Console**: log in with your [Console credentials](#claude-console-authentication). You can sign in with or without [creating an API key](#sign-in-without-an-api-key).
+* **Cloud providers**: if you use [Amazon Bedrock](https://code.claude.com/docs/en/amazon-bedrock.md), [Google Cloud's Agent Platform](https://code.claude.com/docs/en/google-vertex-ai.md), or [Microsoft Foundry](https://code.claude.com/docs/en/microsoft-foundry.md), set the required environment variables before running `claude`. You can also select **3rd-party platform** at the login prompt, which launches an interactive setup wizard for Bedrock and Agent Platform.
* **Cloud gateway**: if your organization runs a self-hosted [Claude apps gateway](https://code.claude.com/docs/en/claude-apps-gateway), sign in with corporate SSO through `/login` or [from VS Code](https://code.claude.com/docs/en/vs-code.md#sign-in-to-a-claude-apps-gateway). The gateway-issued token is the session's only credential.
* **Enterprise Admin Console**: if an Owner [turned on this sign-in](https://claude.com/docs/third-party/claude-desktop/admin-console-claude-code#turn-on-sign-in-from-claude-code) for your organization's provider or gateway, run `claude auth login` in your shell and select your organization in the browser. To confirm, look for `Signed in to the organization` in the terminal. For the Claude Code version you need, see [Before you start](https://claude.com/docs/third-party/claude-desktop/admin-console-claude-code#before-you-start).
diff --git a/content/en/docs/claude-code/best-practices.md b/content/en/docs/claude-code/best-practices.md
index 5956f8df6f..219bedcb22 100644
--- a/content/en/docs/claude-code/best-practices.md
+++ b/content/en/docs/claude-code/best-practices.md
@@ -40,7 +40,7 @@ When a session doesn't go the way you expected, it's almost always one of these:
Every instruction you give Claude Code is one of these:
-1. Non-deterministic: you write the instruction, and Claude (the model) reads it. This can be your prompt, `CLAUDE.md`, or a skill. The model then decides what to do with this information. It usually follows your commands, and current models are good at understanding your intent without much context, but there's no *guarantee* that it'll follow your instructions. It can still decide not to do things, or do other things.
+1. Non-deterministic: you write the instruction, and Claude (the model) reads it. This can be your prompt, `CLAUDE.md`, or a skill. The model then decides what to do with this information. It usually follows your commands, and current models are good at understanding your intent without much context, but there's no *guarantee* that it'll follow your instructions.
2. Deterministic: you configure the instruction, and Claude Code (the harness) *has* to execute this. This can be a hook, a deny rule, or a managed setting. Claude Code applies this every time, no matter what the model decided to do.
Most things in Claude Code come in both forms:
@@ -596,8 +596,7 @@ Keep it to small files: it copies rather than links, so `node_modules` in there
You rarely have to clean any of this up yourself:
* When you exit an unnamed worktree session, Claude Code [removes a worktree it created with git](https://code.claude.com/docs/en/worktrees.md#clean-up-worktrees) if there's nothing in it. For a named session, or one with changes, it asks what to do.
-* Subagent worktrees disappear when the subagent finishes without changes.
-* Subagent and background-session worktrees that do get left behind are swept once they're older than `cleanupPeriodDays` and hold no work.
+* Subagent and background-session worktrees that get left behind [can be removed automatically](https://code.claude.com/docs/en/worktrees.md#clean-up-subagent-and-background-session-worktrees) once they're older than `cleanupPeriodDays` and hold no work.
> [!NOTE]
>
diff --git a/content/en/docs/claude-code/champion-kit.md b/content/en/docs/claude-code/champion-kit.md
index f0f8a2bb40..77a07f63ce 100644
--- a/content/en/docs/claude-code/champion-kit.md
+++ b/content/en/docs/claude-code/champion-kit.md
@@ -130,7 +130,7 @@ The objective is to establish a small number of lightweight habits that allow mo
### Thirty-day playbook
-If a loose plan is helpful, the sequence below reflects what tends to work across most teams. Adjust freely to fit your context.
+If a loose plan is helpful, the sequence below reflects what tends to work across most teams.
**1. Week 1: Seed the channel**
diff --git a/content/en/docs/claude-code/changelog.md b/content/en/docs/claude-code/changelog.md
index defff76860..006bd224a3 100644
--- a/content/en/docs/claude-code/changelog.md
+++ b/content/en/docs/claude-code/changelog.md
@@ -10,6 +10,172 @@ This page is generated from the [CHANGELOG.md on GitHub](https://github.com/anth
Run `claude --version` to check your installed version.
+**2.1.332**
+
+November 25, 2026
+
+**Added**
+
+* Added skills from MCP servers (beta). They show as `server:skill` in the `/` menu; other skills keep their names
+* Added a `PreSkillShellCommand` hook event that can refuse a skill or command's inline shell commands as it loads; on 2.1.331 and older, a settings file naming it opens a dialog at start
+* Added "Always deliver" to the prompt for held messages from other sessions
+* Added a footer line that stays while a flagged message has your session on a different model, until you pick one with `/model`
+* Added an OpenTelemetry `assistant_response` event for text Claude sends through SendUserMessage or Cowork's message tool, when response logging is on
+* Added a warning in VS Code and Desktop's Code tab when part of a session couldn't be saved, saying how to save it with `/compact`
+* Added a notice in VS Code and Desktop's Code tab when a resumed session's earlier messages weren't loaded, as the terminal already shows
+* Added your Cyber Verification Program access tier to the startup header, beside the model name when your tier applies to that model and you're signed in with a claude.ai account
+* \[VSCode] Added a notification in more cases when closing a proposed diff leaves the edit unapplied, and stopped the diff notifications on a split copy of an answered diff
+* \[VSCode] Added a warning when restoring a conversation with `/rewind` in the side bar stops a self-paced `/loop`
+* \[VSCode] Added the installed version to the rows of Manage plugins
+
+**Changed**
+
+* Updated computer use on macOS to newer safety rules, so some actions are refused and typing can be slower
+* Changed terminal and VS Code sessions moved to Sonnet 5 or 5.5 on Bedrock Mantle, Agent Platform and Foundry to start in auto mode if no mode is set; set `disableAutoMode` to `"disable"` to stop it
+* Changed the `sonnet` model alias on Google Cloud's Agent Platform and Microsoft Foundry to Sonnet 5.5, and Foundry's `opus` alias to Opus 5.5; `sonnet` on Amazon Bedrock stays at Sonnet 4.5
+* Changed the default model on Microsoft Foundry to Sonnet 5.5: deploy `claude-sonnet-5-5`, or set `ANTHROPIC_DEFAULT_SONNET_MODEL` to a model you have deployed
+* Changed `sonnet` and background requests on Google Cloud's Agent Platform to read `VERTEX_REGION_CLAUDE_5_5_SONNET`; with only the `4_5` variable set they go to `CLOUD_ML_REGION` or `us-east5`
+* Changed `--model default` and a Default pick to move to an older model when that model isn't available, instead of stopping with an error; in auto mode, only to a model auto mode accepts
+* Changed Microsoft Foundry: Claude Sonnet 4, Opus 4 and Opus 4.1 now count as retired, so step-downs stop above them and a pin to one warns that it was retired
+* Changed the Claude apps gateway's built-in model list: Sonnet 5.5 replaces Sonnet 4.5 as its second model, and Claude Desktop starts on it where a policy allows no Opus 4.6
+* Changed SDK and `claude -p` mid-turn messages to count as the user's where feature flags aren't fetched, as on clouds or with telemetry off, from Opus 4.8 on; mark relayed text `isSynthetic: true`
+* Changed `computer-use` to a reserved skill name on Macs with computer use on: your own skill or command of that name stops loading, and a start-up notice says to rename it
+* Changed the default OpenTelemetry `service.name` of desktop Code tab sessions to `claude-code-desktop`; update filters keyed on `claude-code`, or set `OTEL_SERVICE_NAME` to keep the old name
+* Changed OpenTelemetry `tool_input` to show only the length of text sent through SendUserMessage or Cowork's message tool, unless response logging is on (`OTEL_LOG_ASSISTANT_RESPONSES=1`)
+* Self-hosted runner: Changed `CLAUDE_CODE_OAUTH_TOKEN`: its prefix can now end in `oat02-` as well as `oat01-`. Update proxy rules and log scrubbers that match `oat01-`, and mask the whole value
+* Changed `claude self-hosted-runner setup` with no arguments on macOS and Linux to ask for the environment key in the terminal before Claude starts, and to hide it as you paste
+* Changed Claude Desktop's Code tab on Anthropic's API to ignore default, side-request, alias and subagent model ids not starting with `claude` in your own settings beside a gateway address
+* Changed Claude Desktop's Code tab on Anthropic's API to ignore a `CLAUDE_CODE_AUTO_COMPACT_WINDOW` under 200K in your own settings beside a gateway address; use `/autocompact` instead
+* Changed plan mode in the desktop app's Code tab and VS Code to ask for approval instead of refusing when no auto mode safety check can judge a command, for plans entered from Manual or Accept edits
+* Changed PgUp and Home to go to No on destructive questions, such as `/clear` from an agent's view
+* Changed `/feedback` drafts in the terminal to open on Not now, above separate rows to send the report alone or with the transcript
+* Changed tap-mode voice dictation to keep the microphone on until 60 seconds without new words or 10 minutes, up from 15 seconds and 2 minutes, then keep the text unsent; the next tap adds to it
+* Changed tap-mode voice dictation to stop when you send the prompt, and to stop and say why when you edit it, a panel covers it, or the connection or a separate recorder program is lost
+* Changed `/schedule`, permission prompts and `/loop`'s cloud offer to say "cloud scheduled task" instead of "routine" or "cloud schedule"; `/routines` still works
+* Changed model switches from the Claude mobile app or claude.ai to keep the effort level you saved for the previous model when none is saved for the new one
+* Changed the `hint` a mod's `PromptHint` hook receives to leave out the hint for selected text when the fullscreen footer has a label on its right
+* Changed `awsCredentialExport` to time out after 10 minutes instead of waiting forever
+* \[VSCode] Changed voice dictation to stop by itself after 60 seconds without recognized speech or 10 minutes, up from 15 seconds and 2 minutes, so the microphone can stay on longer
+* \[VSCode] Changed voice dictation to stop, and say why, when the microphone stops sending audio or the panel stays hidden
+
+**19 improvements**
+
+* Improved `claude plugin marketplace add` on Windows to wait and try again in some cases when another program, such as a virus scanner, briefly holds the downloaded files
+* Windows: Improved stability on some company PCs, where Claude Code could exit with no output shortly after start
+* Improved computer use setup: the Screen Recording permission prompt can now restart Claude Code and resume the chat
+* Improved computer use to take less context until Claude uses it
+* Improved the error when a proxy or gateway cuts or damages a compressed response: a turn now ends in plain words instead of raw "ZlibError fetching" text
+* Improved `/context`: shorter output in fullscreen, so the total is less likely to scroll off in a short window, and the legend names its unit once
+* Improved peak memory use and speed of `/usage` on machines with many recent sessions
+* Improved `/permissions` to refuse a rule that would be skipped at the next start, such as `rm -rf` with no tool name, and to show the reason
+* Improved resuming a session in Code Mode: Claude is now told up front that its earlier script variables are gone
+* Improved Claude in Code Mode to confirm before discarding worktree changes, to read artifact files before publishing them, and to update an existing artifact instead of creating a second one
+* Improved Code Mode's tool search to show long MCP tool descriptions whole where they fit, as a cut description could lead to wrong calls
+* Linux: Improved the Ctrl+V message to name the package to install (`wl-clipboard` or `xclip`) when images can't be read from the clipboard
+* Improved recovery for long conversations behind a proxy or gateway with a request size limit, where every message and `/compact` failed with a 413
+* Improved Glob speed in large local folders on Windows machines with 6 or more CPUs: folders are walked in parallel, and a search stopped at its time limit now lists what it found
+* Improved memory use when resuming a long conversation
+* Improved memory use at startup with MCP servers that list many tools
+* Improved memory use of `claude -p` and SDK-hosted sessions at the start of a conversation
+* \[VSCode] Improved the time it takes to open the Claude panel and long sessions, performance while long replies stream, and the speed of reading diagnostics in very large workspaces
+* \[VSCode] Improved commands and one-line output opened in a plain text tab: they now wrap
+
+**93 bug fixes**
+
+* Fixed `claude auth login` reporting `Login successful.` when a claude.ai login could not be saved: it now exits 1 and says what to check, such as a leftover lock file or a full disk
+* Fixed Read, @-mentions and compaction hanging on a named pipe that nothing writes to, such as a `.env` mounted by a locked secrets manager; the read now fails after 20 seconds
+* Fixed turns ending in "Prompt is too long" after repeated auto-compaction failures when one more compaction at the context limit could have kept them going
+* Fixed compaction failing when a summary kept running past the output limit: after three cut-off replies, the last try now asks for a shorter summary
+* Fixed a freeze when a permission rule or hook condition with several wildcards was checked against a long command
+* Fixed freezes and runaway memory use in most cases while a hook prints output without end
+* Fixed a freeze and context overflow when a hook blocks or fails during a turn, or after `/compact`, with a very large log; text over about 50,000 characters is now shortened
+* Fixed the terminal freezing, and ignoring Ctrl+C, while a local MCP server floods its standard output
+* Fixed a freeze when a prompt or piped input holds an `@` followed by a very long unbroken string, such as minified CSS with an embedded font
+* Fixed a long freeze when opening a rewind point after a large tracked file was rewritten
+* Fixed SSE MCP servers hanging or refusing every tool call after their event stream was cut and came back on a new endpoint or not at all, until reconnected by hand
+* Fixed Remote Control showing a session in the desktop app, VS Code or the Agent SDK as running while it waited there on a dialog or an MCP server's question
+* Fixed a usage limit being reported as reached to Remote Control, IDE and SDK clients after it had already reset
+* Fixed CLAUDE.md and rules files being sent to the model a second time, in most cases, after a session moves into a worktree under `.claude/worktrees` with EnterWorktree or is resumed there
+* Fixed tool calls that never ran being counted as done in a claude.ai chat's summary line after you declined a permission prompt in a session that had restarted
+* Linux: Fixed the Bash edit diff showing an unchanged symlink as edited after Claude had read the file through it
+* Fixed resuming a session and `/stats` freezing for seconds when a transcript holds many damaged lines
+* Fixed a family name such as `sonnet` in `--fallback-model` being dropped when `availableModels` allows only an older version of it
+* Fixed keys lagging for seconds while `/stats` reads large session transcripts, also after the dialog is closed, and with debug logging on while a language server floods its stderr
+* Fixed a session failing when the cloud refused its default model and an `availableModels` list that isn't enforced named neither it nor an older model of that family
+* Fixed an enforced list of older models failing on Google Cloud's Agent Platform and Foundry when the first is refused: it now steps down to the next in that family, if listed newest first
+* Fixed `opus` failing on Bedrock, Google Cloud's Agent Platform and Foundry behind a gateway that refuses a model in its own words: it now steps down to an older model that answers
+* Fixed the start-up model upgrade offer on Bedrock and Google Cloud's Agent Platform naming a model that your `availableModels` list leaves out
+* Fixed Bedrock sub-agents failing when your account lists no profile for their model in the parent's region: they now use the model's own profile, which can be outside that region
+* Fixed Foundry sessions leaving a model family when an admin's list blocks the version `sonnet`, `opus` or `haiku` points to: they now use its newest allowed version under a built-in or mapped name
+* Fixed the `sonnet` alias on Bedrock Mantle resolving to Haiku 4.5: it now means Sonnet 5, not Sonnet 5.5, and an account without Sonnet 5 gets an error, so enable it first
+* Fixed Ctrl+C at the prompt starting a new turn, and a double Ctrl+C not exiting, when a background agent it stopped had an unread subagent report
+* Fixed `/install-github-app` ticking a workflow again after going back with Esc
+* Fixed dictated text past 10,000 characters being lost
+* Fixed raw "JSON Parse error" and "The operation was aborted." API errors when the non-streaming retry got a broken response or was interrupted
+* Fixed Esc not stopping computer use between actions on macOS when Claude Code's window or an app you allowed is in front; an Esc meant for that app's popup now stops computer use instead
+* Fixed a rare hang when a helper command, such as an API key helper, ran past its time limit
+* Fixed selecting text in fullscreen pushing the footer's right-hand label onto a second row, which moved the text under the mouse and could copy the wrong line
+* Fixed a PreToolUse hook's reason for asking not showing on terminal Read, Grep, Glob, Edit and Write prompts (anthropics/claude-code#102892, anthropics/claude-code#105343)
+* Fixed `temp_*` folders piling up in `~/.claude/plugins/cache` when a downloaded plugin couldn't be copied into place
+* Fixed `--effort` being ignored when starting an interactive session with `--environment` while `CLAUDE_CODE_EFFORT_LEVEL` is set to the same level
+* Fixed headless and cloud sessions reporting a foreground fork's Agent call as finished the moment the fork started
+* Fixed local MCP servers seeing a new session ID after a Remote Control session's process restarts
+* Fixed idle compaction being skipped for subscribers still well under their weekly limit
+* Fixed an @-mentioned text file with an extension being silently dropped when even its first 2,000 lines exceed the read limit; Claude is now told its size and how to read it
+* Fixed the plugin "not cached" error pointing to `/plugin` instead of `/reload-plugins`, the command that reloads plugins
+* Fixed self-hosted runner sessions failing their first clone under Anthropic-managed git when the machine's git config has an `includeIf "gitdir:"` or (git 2.44 to 2.46) `"onbranch:"` section
+* Fixed replies that start with phrases like "You've used" or "You've hit your" showing as a red usage limit error
+* Fixed a resumed conversation sometimes missing its last messages after a crash or kill on Bedrock, Google Cloud's Agent Platform, Foundry and other third-party providers
+* Fixed NotebookEdit saving an invalid notebook when an edit changes a cell's type; turning a cell with attachments into code is now refused
+* Fixed a long README in a design system moved from standalone Claude Design losing its list of files to load when Claude starts a deck or design
+* Fixed MCP tool calls failing with "malformed task handle" when the server's task ID is longer than 128 characters; IDs of up to 1,024 characters now work
+* Self-hosted runner: Fixed `--configure-git` sometimes reporting a hung `git --version` as a git that isn't on PATH
+* Fixed task ids being reused and deleted tasks coming back when several tasks were deleted or updated at once, and TaskGet listing completed tasks as blockers
+* Fixed stale and repeated rows in the fullscreen Ctrl+R history picker when prompts share a timestamp
+* Fixed Code Mode silently skipping a tool call whose input has a list of over 4,096 items, and freezing on a very large typed array in a tool's input, which is now refused
+* Fixed Code Mode leaving a message unanswered when it was typed during a command and Esc was pressed before Claude replied; the message now starts a new turn, which a second Esc stops
+* Fixed Code Mode not telling Claude when a slow command moved to the background and left its script with empty output, or of the time limit on background commands in `claude -p` and the Agent SDK
+* Fixed Code Mode sometimes waiting for minutes on a command that had already been stopped
+* Fixed a typed slash command's inline shell commands not running in Code Mode after a background script's output arrived
+* Fixed Code Mode sessions in the Agent SDK and `claude -p` sometimes losing Claude's last reply on resume after being stopped while a script was running
+* Remote Control: Fixed sessions hosted by the desktop app or VS Code showing as idle while /compact runs
+* Fixed a session sometimes losing its "needs input" status after a background task's report in Claude Desktop
+* Fixed Grep: -o missing an empty match at the end of a file with no last newline, -o with multiline adding an empty line or misnumbering lines in non-UTF-8 files, and -A and -B ignored beside a zero -C
+* Fixed unbinding a chord in `keybindings.json` still leaving its first key waiting for a second when it was spelled `meta` and bound as `alt`, or the reverse
+* Fixed moving an empty session to the background sometimes failing with "Couldn't load transcript from file"
+* Fixed OpenTelemetry reporting a failed `mcp_server_connection` event at each start for a built-in server that isn't turned on for the account
+* Fixed Esc not stopping a Bash command while it waited for its file diff in large or slow git repositories, which held the next message
+* Fixed pasted links and relative paths ending in an image file name appearing late and swallowing an Enter pressed right after
+* Fixed `/mcp reconnect all` and `/mcp disable all` counting a built-in server that isn't turned on for the account
+* Fixed interrupting a turn while a mod's `turn.step` hook was waiting showing "user-cancel" as an error instead of "Interrupted"
+* Fixed `~/.claude.json` being reported as corrupted when another session was in the middle of saving it
+* Fixed web searches failing with an API error when Claude's list of allowed or blocked domains was empty or had duplicates
+* Fixed resuming a paused workflow in Code Mode waiting for minutes while other background work was running
+* Fixed subagents in Code Mode failing with "Agent stalled" and losing their command when a script ran for more than 10 minutes
+* \[VSCode] Fixed Rewind staying on "Checking code changes…" while Claude's process hung at its start
+* \[VSCode] Fixed the model picker's arrow keys starting from the wrong row right after it opens, and screen readers not announcing its highlighted model when opened with `/model` or the command menu
+* \[VSCode] Fixed the diff view's "Copy deleted line" and "Copy changed line" copying a different line than they name, and a double-click near the bottom copying unasked
+* \[VSCode] Fixed the blocked microphone's tooltip being cut off, long addresses running out of Web Fetch rows, usage bars looking full in High Contrast, and a Thinking row jumping away when clicked
+* \[VSCode] Fixed a second Logout in the same window reporting success while the first was still running, and added a Show logs button to the error when logout fails
+* \[VSCode] Fixed the chat showing no notice when a background command, agent, workflow or monitor finished while Claude was idle
+* \[VSCode] Fixed forking a conversation, opening and saving memories, and creating project output styles failing on NTFS drives in VS Code 1.101 and 1.102 on Windows 11 24H2 and later
+* \[VSCode] Fixed Web Fetch showing "Fetched from" with a success dot when the site returned an error or a redirect that wasn't followed
+* \[VSCode] Fixed the compaction summary showing as your own prompt, and in Rewind and prompt history, after reloading, resuming or forking a compacted conversation
+* \[VSCode] Fixed `spinnerVerbs` from Claude Code user and managed settings being ignored
+* \[VSCode] Fixed right-to-left text from mods showing its punctuation on the wrong side, and a mod's band or pane filling only part of its width when the panel font has no box-drawing characters
+* \[VSCode] Fixed an empty, locked editor pane staying beside the next file or Claude tab after the last Claude tab was closed
+* \[VSCode] Fixed a session rename that cannot be saved reverting silently, and screen readers not hearing a session's status, which session is open or which groups are collapsed
+* \[VSCode] Fixed a hidden panel's notice not naming the waiting session, Hebrew and Arabic questions reading out of order, and a question cut off when Claude's process ended showing only a red dot
+* \[VSCode] Fixed a sign-in that failed with no error message returning to the sign-in screen with nothing shown, and an authentication error still looking current after you signed in again in that tab
+* \[VSCode] Fixed the chat moving when a menu opened over some banners, and an agent's tool call count shrinking in long sessions; it now shows how many of the calls are listed
+* \[VSCode] Fixed most links to files without an extension, to folders, and with a line and column doing nothing
+* \[VSCode] Fixed queued messages and attached files showing in reverse order after a conversation was reopened
+* \[VSCode] Fixed a question that ended in an error showing "Something went wrong" when its stored result had no text
+* \[VSCode] Fixed redacted thinking showing as "Unsupported content type"
+* \[VSCode] Fixed the message box not underlining the word that an input method (IME) is composing
+* \[VSCode] Fixed a held Up key replacing an unsent message with an earlier prompt, and Down not bringing the message back after the recalled prompt got a new line or was cleared
+* \[VSCode] Fixed `/model` completed with Tab sometimes switching the model, and closing the model picker right away when nothing is running
+
**2.1.331**
November 23, 2026
diff --git a/content/en/docs/claude-code/channels.md b/content/en/docs/claude-code/channels.md
index 7557c14483..6b17fa00a3 100644
--- a/content/en/docs/claude-code/channels.md
+++ b/content/en/docs/claude-code/channels.md
@@ -355,7 +355,7 @@ Several Claude Code features connect to systems outside the terminal, each suite
| Feature | What it does | Good for |
| - | - | - |
| [Cloud sessions](https://code.claude.com/docs/en/claude-code-on-the-web.md) | Run tasks in a fresh cloud sandbox, cloned from GitHub | Delegating self-contained async work you check on later |
-| [Claude in Slack](https://code.claude.com/docs/en/slack.md) | Spawns a cloud session from an `@Claude` mention in a channel or thread | Starting tasks directly from a team conversation |
+| [Claude Tag](https://claude.com/docs/claude-tag/overview) | Spawns a cloud session from an `@Claude` mention in a channel or thread | Starting tasks directly from a team conversation |
| Standard [MCP server](https://code.claude.com/docs/en/mcp.md) | Claude queries it during a task; nothing is pushed to the session | Giving Claude on-demand access to read or query a system |
| [Remote Control](https://code.claude.com/docs/en/remote-control.md) | You drive your local session from claude.ai or the Claude mobile app | Steering an in-progress session while away from your desk |
diff --git a/content/en/docs/claude-code/claude-code-on-the-web.md b/content/en/docs/claude-code/claude-code-on-the-web.md
index ebc9ded362..9f454408f0 100644
--- a/content/en/docs/claude-code/claude-code-on-the-web.md
+++ b/content/en/docs/claude-code/claude-code-on-the-web.md
@@ -236,7 +236,7 @@ Teleport requires claude.ai subscription authentication. Find the case that matc
* **You're signed in with an API key or Console account**: run `claude auth login` in your shell, then sign in with claude.ai
* **The error names your provider**: cloud sessions aren't available through third-party providers. See the [error table](#errors-when-sending-to-a-cloud-session)
-* **You're already signed in via claude.ai**: your organization may have disabled cloud sessions
+* **You sign in to claude.ai through an organization**: ask an [Owner](https://code.claude.com/docs/en/server-managed-settings.md#access-control) whether [cloud sessions are turned on](https://code.claude.com/docs/en/errors.md#cloud-sessions-are-disabled-by-your-organizations-policy)
## Work with sessions
diff --git a/content/en/docs/claude-code/claude-directory.md b/content/en/docs/claude-code/claude-directory.md
index c8283060f6..f5177579a6 100644
--- a/content/en/docs/claude-code/claude-directory.md
+++ b/content/en/docs/claude-code/claude-directory.md
@@ -6,7 +6,7 @@
> Where Claude Code reads CLAUDE.md, settings.json, hooks, skills, commands, subagents, workflows, rules, and auto memory. Explore the .claude directory in your project and ~/.claude in your home directory.
-Claude Code reads instructions, settings, skills, subagents, and memory from your project directory and from `~/.claude` in your home directory. Commit project files to git to share them with your team; files in `~/.claude` are personal configuration that applies across all your projects.
+Claude Code reads instructions, settings, skills, subagents, and memory from your project directory and from `~/.claude` in your home directory. Commit project files to git to share them; files in `~/.claude` are personal configuration that applies across all your projects.
On Windows, `~/.claude` resolves to `%USERPROFILE%\.claude`. If you set [`CLAUDE_CONFIG_DIR`](https://code.claude.com/docs/en/env-vars), every `~/.claude` path on this page lives under that directory instead. The same applies to `.claude.json`, which otherwise sits at `~/.claude.json`.
@@ -38,7 +38,7 @@ Lists gitignored files to copy from your main repository into each new worktree.
**`.claude/`**
-Project settings, rules, skills, subagents, and other configuration. If you use git, commit most of these files so your team shares them, and keep personal ones such as `settings.local.json` out of your commits.
+Project settings, rules, skills, subagents, and other configuration. If you use git, commit most of these files to share them, and keep personal ones such as `settings.local.json` out of your commits.
**`.claude/settings.json`**
@@ -78,7 +78,7 @@ Holds single-file commands: a prompt saved as `.claude/commands/deploy.md` runs
**When it loads**: Read at startup in the terminal, so restart Claude Code after you add or edit a style
-Each Markdown file defines an [output style](https://code.claude.com/docs/en/output-styles.md#how-output-styles-work), a set of instructions that adjusts how Claude works. Put a style here if your team shares it, like a review mode everyone uses. See [`~/.claude/output-styles/`](#ce-global-output-styles) for how to select one.
+Each Markdown file defines an [output style](https://code.claude.com/docs/en/output-styles.md#how-output-styles-work), a set of instructions that adjusts how Claude works. To share a style, such as a review mode, with everyone on the project, commit it here. See [`~/.claude/output-styles/`](#ce-global-output-styles) for how to select one.
**`.claude/agents/`**
diff --git a/content/en/docs/claude-code/claude-projects.md b/content/en/docs/claude-code/claude-projects.md
index 46cd97da56..e45784fd33 100644
--- a/content/en/docs/claude-code/claude-projects.md
+++ b/content/en/docs/claude-code/claude-projects.md
@@ -84,7 +84,7 @@ Before you create a project, check your plan, your GitHub setup, and what the wo
### Start a new project from scratch
-Starting a project from scratch means opening the **New project** dialog, naming the stream of work, and optionally giving it a goal and the repositories and files it works on. Only the name is required, so you can create the project first and fill in the rest as the work takes shape.
+Starting a project from scratch means opening the **New project** dialog, naming the stream of work, and optionally giving it a goal and the repositories and files it works on.
**1. Open Projects**
diff --git a/content/en/docs/claude-code/cloud-environments.md b/content/en/docs/claude-code/cloud-environments.md
index 8529d00920..e936513b63 100644
--- a/content/en/docs/claude-code/cloud-environments.md
+++ b/content/en/docs/claude-code/cloud-environments.md
@@ -172,7 +172,7 @@ Archiving affects new sessions, not running ones:
* **Saved CLI default**: if the environment was your saved [CLI default](#select-an-environment-from-the-cli), Claude Code starts CLI cloud sessions in the Anthropic-hosted environment when your list has one. Otherwise, it starts them in the first environment in your list that isn't a [Remote Control bridge environment](#the-default-environment).
* **Configured explicitly**: anything configured with the environment explicitly, such as a [cloud scheduled task](https://code.claude.com/docs/en/routines.md#environments-and-network-access), can't start new sessions in it. Point it at another environment.
-When you no longer need an Anthropic-hosted environment, archive it. Neither the environment dialog nor the **Cloud environments** admin page has an option to delete an Anthropic-hosted environment. If the environment is [self-hosted](https://code.claude.com/docs/en/self-hosted-environments), an Owner can delete it from the **Cloud environments** page in admin settings. If you aren't an Owner, ask one to delete it.
+When you no longer need an Anthropic-hosted environment, archive it. Neither the environment dialog nor the **Cloud environments** admin page has an option to delete an Anthropic-hosted environment. If the environment is [self-hosted](https://code.claude.com/docs/en/self-hosted-environments), an Owner can delete it from the **Cloud environments** page in admin settings.
### Organization-shared environments
diff --git a/content/en/docs/claude-code/code-review-local.md b/content/en/docs/claude-code/code-review-local.md
index cf2598d066..25e078a8a2 100644
--- a/content/en/docs/claude-code/code-review-local.md
+++ b/content/en/docs/claude-code/code-review-local.md
@@ -12,7 +12,7 @@ The command works on any plan. The review runs in your own session, so it counts
> [!NOTE]
>
-> To have every pull request in a repository reviewed automatically on GitHub, see [Code Review](https://code.claude.com/docs/en/code-review.md), a managed service that an Owner turns on for your organization.
+> To have every pull request in a repository reviewed automatically on GitHub, see [Code Review](https://code.claude.com/docs/en/code-review.md), a managed service that an Owner of a Claude organization turns on.
`/review` is an alias of `/code-review`.
diff --git a/content/en/docs/claude-code/code-review-setup.md b/content/en/docs/claude-code/code-review-setup.md
index 815f2a071f..9e0dc9ddbc 100644
--- a/content/en/docs/claude-code/code-review-setup.md
+++ b/content/en/docs/claude-code/code-review-setup.md
@@ -117,7 +117,7 @@ Turn the setting off to stop these comments.
### What developers can change
-Developers come to you to change the review level, the **Review runs** setting, or which repositories get reviews. From GitHub, without the Owner role, they can do these:
+Developers ask an Owner to change the review level, the **Review runs** setting, or which repositories get reviews. From GitHub, without the Owner role, they can do these:
* **Request a review**: comment [`@claude review`](https://code.claude.com/docs/en/code-review-pull-requests#comment-commands) on a pull request. This needs write access to the repository, and it works on [drafts and pull requests from forks](https://code.claude.com/docs/en/code-review-pull-requests.md#review-drafts-and-pull-requests-from-forks), which automatic reviews skip.
* **Subscribe one pull request to a review on each push**: comment `@claude review always` on a pull request that isn't [a draft or from a fork](https://code.claude.com/docs/en/code-review-pull-requests.md#review-drafts-and-pull-requests-from-forks), such as in a repository set to Manual
diff --git a/content/en/docs/claude-code/code-review.md b/content/en/docs/claude-code/code-review.md
index 8f267d3017..0c971403fb 100644
--- a/content/en/docs/claude-code/code-review.md
+++ b/content/en/docs/claude-code/code-review.md
@@ -20,7 +20,7 @@ To turn on Code Review, an Owner of your Claude organization follows [Set up Cod
## Availability
-Check that your organization qualifies before you set up Code Review:
+Check these requirements before setting up Code Review:
* **Plans**: [Team and Enterprise](https://code.claude.com/docs/en/feature-availability.md)
* **Code hosts**: repositories hosted on GitHub, including [GitHub Enterprise Server](https://code.claude.com/docs/en/github-enterprise-server.md) and GitHub Enterprise Cloud with data residency. For data residency, have an Owner follow the [GitHub Enterprise Server admin setup](https://code.claude.com/docs/en/github-enterprise-server.md#admin-setup) and enter your enterprise's `ghe.com` hostname.
diff --git a/content/en/docs/claude-code/commands.md b/content/en/docs/claude-code/commands.md
index 654ee00878..2d32a89f1e 100644
--- a/content/en/docs/claude-code/commands.md
+++ b/content/en/docs/claude-code/commands.md
@@ -50,7 +50,7 @@ In the table below, `` indicates a required argument and `[arg]` indicates
| `/add-dir ` | Add a working directory for file access. Type a partial path to see matching directory suggestions; press `Tab` to accept one. Most `.claude/` configuration [isn't discovered](https://code.claude.com/docs/en/permissions.md#additional-directories-grant-file-access-not-configuration) from the added directory. You can't add most [network paths](https://code.claude.com/docs/en/errors.md#working-directory-is-a-network-path), such as `\\server\share`. After a successful add, your [`DirectoryAdded` hooks](https://code.claude.com/docs/en/hooks#directoryadded) run. If you run `/add-dir` while Claude is responding, Claude's next tool call can access the directory once you confirm the add |
| `/advisor [model\|off]` | Enable or disable the [advisor tool](https://code.claude.com/docs/en/advisor.md), which consults a second model for guidance at key moments during a task. Accepts `fable`, `opus`, `sonnet`, or a full model ID. `fable` requires [Fable access](https://code.claude.com/docs/en/advisor.md#choose-an-advisor-model). Without an argument, opens a picker. In a session without an interactive terminal, or over [Remote Control](https://code.claude.com/docs/en/remote-control.md#limitations), pass the model or `off` as an argument; with no argument there, the command prints the current advisor as text. These forms require Claude Code v2.1.260 or later |
| `/agents` | Print a reminder to ask Claude to create or manage [subagents](https://code.claude.com/docs/en/sub-agents.md), or to edit `.claude/agents/` or `~/.claude/agents/` directly. On v2.1.197 and earlier, opens an interactive interface for creating and managing subagent configurations |
-| `/artifact-capabilities` | **[Skill](https://code.claude.com/docs/en/skills.md#bundled-skills).** Load the reference for the runtime capabilities a published [artifact](https://code.claude.com/docs/en/artifacts.md) can use, such as [calling your connectors](https://code.claude.com/docs/en/artifacts.md#pull-live-data-with-mcp-connectors) or [offering a file download](https://code.claude.com/docs/en/artifacts.md#offer-a-file-download), including which ones your account has. Claude normally loads it on its own before building a page that uses one. Available where [artifacts](https://code.claude.com/docs/en/artifacts.md#availability) are |
+| `/artifact-capabilities` | **[Skill](https://code.claude.com/docs/en/skills.md#bundled-skills).** Load the reference for the runtime capabilities a published [artifact](https://code.claude.com/docs/en/artifacts.md) can use, such as [calling your connectors](https://code.claude.com/docs/en/artifacts.md#pull-live-data-with-mcp-connectors) or [offering a file download](https://code.claude.com/docs/en/artifacts.md#offer-a-file-download), including which ones your account has. Requires [artifacts](https://code.claude.com/docs/en/artifacts.md#availability) |
| `/artifact-diagramming` | **[Skill](https://code.claude.com/docs/en/skills.md#bundled-skills).** Load diagramming guidance for Claude to follow in [artifacts](https://code.claude.com/docs/en/artifacts.md): when a diagram helps, what to draw, and how to write inline SVG that stays legible in light and dark themes. Requires Claude Code v2.1.221 or later |
| `/artifacts` | List the [artifacts](https://code.claude.com/docs/en/artifacts.md#find-an-artifact-again) you own or that are shared with you, then attach one to the session, open it in your browser, or copy its link. Available where [artifacts](https://code.claude.com/docs/en/artifacts.md#availability) are |
| `/auto-mode-setup` | [Draft `autoMode.environment` entries](https://code.claude.com/docs/en/auto-mode-config#generate-environment-entries) from your project and recent sessions, then review the draft and save it to your user settings. On a Pro, Max, Ultra, or Team plan, requires Claude Code v2.1.228 or later, or v2.1.233 or later on native Windows. On an Enterprise plan or with a Claude Console API key, requires v2.1.283 or later. If the command is missing, see [`/auto-mode-setup` returns "Unknown command"](https://code.claude.com/docs/en/auto-mode-config#auto-mode-setup-returns-unknown-command) |
diff --git a/content/en/docs/claude-code/costs.md b/content/en/docs/claude-code/costs.md
index a23a40cd1f..94409ba365 100644
--- a/content/en/docs/claude-code/costs.md
+++ b/content/en/docs/claude-code/costs.md
@@ -296,7 +296,7 @@ This PreToolUse hook trims test output to its last 100 lines:
> [tab] settings.json
>
-> Add this to your [settings.json](https://code.claude.com/docs/en/settings.md#where-settings-live) to run the hook before every Bash command:
+> Add this to your [settings.json](https://code.claude.com/docs/en/settings.md#where-settings-live) to run the hook before every Bash tool call:
>
> ```json theme={null}
> {
diff --git a/content/en/docs/claude-code/debug-your-config.md b/content/en/docs/claude-code/debug-your-config.md
index 14432163a4..1f5dc2fad3 100644
--- a/content/en/docs/claude-code/debug-your-config.md
+++ b/content/en/docs/claude-code/debug-your-config.md
@@ -62,7 +62,7 @@ For configuration locations and scope rules, see [MCP](https://code.claude.com/d
Run `/hooks` to list every hook registered for the current session, grouped by event. If a hook you defined doesn't appear, Claude Code didn't load it. Check for these causes:
* The hook is defined in a standalone file. Hooks go under the `"hooks"` key in a [settings file](https://code.claude.com/docs/en/settings.md#settings-files).
-* The `matcher` value is an array instead of a single string. Claude Code lists the entry as an invalid setting when you start an interactive session and in `claude doctor`. If the array is under `PreToolUse` or `PermissionRequest`, none of that file's other hooks load either.
+* The `matcher` value is an array instead of a single string. Claude Code lists the entry as an invalid setting when you start an interactive session and in `claude doctor`. If the array is under `PreToolUse`, `PermissionRequest`, or `PreSkillShellCommand`, none of that file's other hooks load either.
* The hook is in a skill's frontmatter, and neither you nor Claude has invoked the skill yet in this session. Invoke it or ask Claude to, then run `/hooks` again. If the hook still doesn't appear, check for other causes, such as [frontmatter that didn't parse](https://code.claude.com/docs/en/skills.md#skill-not-triggering) or one of the [limits on skill hooks](https://code.claude.com/docs/en/hooks.md#limits-on-skill-hooks).
If the hook appears but doesn't fire, the matcher is the usual cause. Check it for these mistakes:
diff --git a/content/en/docs/claude-code/desktop-ios-simulator.md b/content/en/docs/claude-code/desktop-ios-simulator.md
index 94abe481f4..bfce9229b4 100644
--- a/content/en/docs/claude-code/desktop-ios-simulator.md
+++ b/content/en/docs/claude-code/desktop-ios-simulator.md
@@ -106,7 +106,7 @@ Claude Code Desktop shuts down the simulators it booted once they're no longer i
## Grant Claude access to a device
-Claude asks for your consent before it controls a device, while building or launching the app or opening a URL on it follows your session's permission mode. You or your organization can also turn Claude's access off entirely.
+Claude asks for your consent before it controls a device, while building or launching the app or opening a URL on it follows your session's permission mode. To remove Claude's access entirely, [turn off simulator access](#turn-off-simulator-access).
### Allow a device the first time
diff --git a/content/en/docs/claude-code/desktop.md b/content/en/docs/claude-code/desktop.md
index 18cae3f1dd..cee6bfe015 100644
--- a/content/en/docs/claude-code/desktop.md
+++ b/content/en/docs/claude-code/desktop.md
@@ -1901,7 +1901,7 @@ An entry that you can't select is gray. Hover over it to see the reason:
* **A broken settings file**: while your own settings file is broken, your administrator's entries may be gray, with a message that names the file. [Fix the file](https://code.claude.com/docs/en/settings.md#fix-a-broken-settings-file).
* **A new host**: [**Create another**](#create-another-machine) is gray for one minute after Desktop saves a host. Select it after that minute. Before Claude Desktop v4.4212.0, **Replace Dev box's host** is gray for 10 minutes.
* **Hooks are off or restricted**: your own entries work only where your own hooks can run. Remove `disableAllHooks` from your settings, or ask your administrator.
-* **Settings are still loading**: every entry is gray until Desktop has loaded your organization's [server-managed settings](https://code.claude.com/docs/en/server-managed-settings.md), usually a few seconds after launch. If the entries stay gray, check your connection to claude.ai.
+* **Settings are still loading**: every entry is gray until Desktop has loaded any [server-managed settings](https://code.claude.com/docs/en/server-managed-settings.md), usually a few seconds after launch. If the entries stay gray, check your connection to claude.ai.
#### Pre-configure SSH connections for your team
@@ -2099,6 +2099,23 @@ To keep users from overriding `permissions.disableBypassPermissionsMode` or `dis
For the permission, plugin, and delivery keys only a managed source can set, see [Keys only managed settings can set](https://code.claude.com/docs/en/managed-settings.md#managed-only-settings).
+#### Deploy skills for all users
+
+To give every user the same skills in local and SSH sessions, deploy them as [enterprise skills](https://code.claude.com/docs/en/skills.md#where-skills-live), which you install once on a machine for all of its users. Install them on the machine where the session runs:
+
+* **Local sessions**: each user's computer
+* **SSH sessions**: each remote host
+
+Install each skill at the path for that machine's platform:
+
+| Platform | Path |
+| :- | :- |
+| macOS | `/Library/Application Support/ClaudeCode/.claude/skills//SKILL.md` |
+| Linux | `/etc/claude-code/.claude/skills//SKILL.md` |
+| Windows | `C:\Program Files\ClaudeCode\.claude\skills\\SKILL.md` |
+
+To confirm that your skills load, test with a skill whose [frontmatter](https://code.claude.com/docs/en/skills.md#frontmatter-reference) sets only `name` and `description`. Start a new session and send a message, then type `/` and the first letters of the skill's name in the prompt box. The skill appears in the list.
+
#### Claude Code settings that behave differently in the Code tab
In a local session, these keys, among others, have a different effect or no visible one, because the Code tab replaces the terminal interface. They still apply in the terminal, so you can leave them set.
@@ -2360,6 +2377,8 @@ In the earlier layout, choose the environment and any project folder or reposito
### 403 or authentication errors in the Code tab
+For a card that says `For security, Claude Code needs a recent sign-in.`, see [Claude Code needs a recent sign-in](https://code.claude.com/docs/en/errors.md#claude-code-needs-a-recent-sign-in).
+
If you see `Error 403: Forbidden` or other authentication failures when using the Code tab:
1. Sign out and back in from the app menu. This is the most common fix.
diff --git a/content/en/docs/claude-code/env-vars.md b/content/en/docs/claude-code/env-vars.md
index 856b287ea2..b1ed1bbf53 100644
--- a/content/en/docs/claude-code/env-vars.md
+++ b/content/en/docs/claude-code/env-vars.md
@@ -206,9 +206,9 @@ Numeric variables such as timeouts, token budgets, and retry counts accept scien
| `CLAUDE_CODE_ALWAYS_ENABLE_EFFORT` | Set to `1` to send the [effort](https://code.claude.com/docs/en/model-config.md#adjust-effort-level) parameter with every request, even when Claude Code does not recognize the model ID as effort-capable. Use this when routing through an [LLM gateway](https://code.claude.com/docs/en/llm-gateway) or third-party provider that serves models under custom identifiers. Models that reject the effort parameter at the API, including Claude Opus 4.1, Claude Sonnet 4.5, Claude Haiku 4.5, and earlier models, are still excluded so requests do not fail |
| `CLAUDE_CODE_API_KEY_HELPER_TTL_MS` | Interval in milliseconds at which credentials should be refreshed (when using [`apiKeyHelper`](https://code.claude.com/docs/en/settings-reference#apikeyhelper)) |
| `CLAUDE_CODE_ARTIFACT_AUTO_OPEN` | Set to `0` to stop Claude Code from opening the browser automatically when a new [artifact](https://code.claude.com/docs/en/artifacts.md#create-an-artifact) is published |
-| `CLAUDE_CODE_ARTIFACT_COMMENTS` | Set to `0` to stop Claude reading and replying to [comments on an artifact](https://code.claude.com/docs/en/artifacts.md#collect-comments-on-an-artifact). Has no effect when `CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC` has [turned artifacts off](https://code.claude.com/docs/en/artifacts.md#availability). Requires Claude Code v2.1.221 or later |
+| `CLAUDE_CODE_ARTIFACT_COMMENTS` | Set to `0` to stop the [`Artifact` tool](https://code.claude.com/docs/en/tools-reference) from reading and replying to [comments on an artifact](https://code.claude.com/docs/en/artifacts.md#collect-comments-on-an-artifact). Has no effect when `CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC` has [turned artifacts off](https://code.claude.com/docs/en/artifacts.md#availability). Requires Claude Code v2.1.221 or later |
| `CLAUDE_CODE_ARTIFACT_COMMENTS_AUTOREACT` | Set to `0` to stop Claude [replying on its own to comments sent to it](https://code.claude.com/docs/en/artifacts.md#let-claude-reply-to-comments-on-its-own). Requires Claude Code v2.1.228 or later |
-| `CLAUDE_CODE_ARTIFACT_PUBLISH_EDITS` | Set to `0` to stop Claude from [applying small changes](https://code.claude.com/docs/en/artifacts.md#turn-off-one-step-artifact-updates) to an artifact's file as part of publishing it. Claude then edits the file with its file-editing tools and publishes it as a separate step. Requires Claude Code v2.1.300 or later |
+| `CLAUDE_CODE_ARTIFACT_PUBLISH_EDITS` | Set to `0` to stop Claude from [applying small changes](https://code.claude.com/docs/en/artifacts.md#turn-off-one-step-artifact-updates) to an artifact's local file as part of publishing it. Requires Claude Code v2.1.300 or later |
| `CLAUDE_CODE_ATTRIBUTION_HEADER` | Set to `0` to omit the [attribution block](https://code.claude.com/docs/en/llm-gateway-protocol.md#system-prompt-attribution-block), which carries the client version and a prompt fingerprint, from the start of the system prompt. Caching on a direct connection to the Anthropic API is unaffected either way. In some direct-connection setups, Claude Code keeps the block on [auto mode](https://code.claude.com/docs/en/permission-modes.md#eliminate-prompts-with-auto-mode) classifier requests even when you set `0`. In [System prompt attribution block](https://code.claude.com/docs/en/llm-gateway-protocol.md#system-prompt-attribution-block), check which connections and credentials this covers. Before v2.1.181 the block included a per-request token on custom base URLs and Microsoft Foundry connections, so on those versions set it to `0` when your LLM gateway caches on the request body or forwards requests to a third-party provider, or when you connect to Microsoft Foundry directly |
| `CLAUDE_CODE_AUTO_BACKGROUND_WORKER_CHECKIN_SECONDS` | Removed in v2.1.283. Use `CLAUDE_CODE_WORKER_CHECKIN_SCHEDULE` instead |
| `CLAUDE_CODE_AUTO_COMPACT_WINDOW` | Set the auto-compact window, which is how full the context gets before compaction, to a token count of `100000` or more. Suffixed values such as `200k` require v2.1.304 or later. For precedence over the other ways to set the window and the effect on the status line's `used_percentage`, see [Set the auto-compact window](https://code.claude.com/docs/en/model-config.md#set-the-auto-compact-window) |
@@ -466,7 +466,7 @@ Numeric variables such as timeouts, token budgets, and retry counts accept scien
| `DEBUG` | Set to `1` to enable debug mode, equivalent to launching with [`--debug`](https://code.claude.com/docs/en/cli-reference#cli-flags). Debug logs are written to `~/.claude/debug/.txt`, or to the path set by `CLAUDE_CODE_DEBUG_LOGS_DIR`. Only the truthy values `1`, `true`, `yes`, and `on` enable debug mode, so namespace patterns like `DEBUG=express:*` set for other tools do not trigger it |
| `DISABLE_AUTOUPDATER` | Set to `1` to disable automatic background updates. Manual `claude update` still works. Use `DISABLE_UPDATES` to block both |
| `DISABLE_AUTO_COMPACT` | Set to `1` to disable automatic compaction when approaching the context limit, along with [idle compaction](https://code.claude.com/docs/en/settings-reference.md#idlecompaction). The manual `/compact` command remains available. Use when you want explicit control over when compaction occurs. Overrides the [`autoCompactEnabled`](https://code.claude.com/docs/en/settings-reference#autocompactenabled) setting |
-| `DISABLE_COMPACT` | Set to `1` to disable all compaction: both automatic compaction and the manual `/compact` command |
+| `DISABLE_COMPACT` | Set to `1` to disable all compaction, including `/compact` and the [rewind menu's summarize options](https://code.claude.com/docs/en/checkpointing.md#rewind-and-summarize) |
| `DISABLE_COST_WARNINGS` | Set to `1` to disable cost warning messages |
| `DISABLE_DOCTOR_COMMAND` | Set to `1` to hide the [`/doctor`](https://code.claude.com/docs/en/commands#all-commands) setup checkup skill and its `/checkup` alias. Useful for managed deployments where users shouldn't run setup diagnostics from a session. Doesn't affect the `claude doctor` terminal command. Before v2.1.205, this variable hid the `/doctor` diagnostics screen command |
| `DISABLE_ERROR_REPORTING` | Set to any non-empty value, such as `1`, to opt out of error reporting. **Setting it to `0` or `false` still opts out**, unlike most on/off variables; unset the variable to turn error reporting back on |
diff --git a/content/en/docs/claude-code/errors.md b/content/en/docs/claude-code/errors.md
index e5f43122b4..b93f0a33c1 100644
--- a/content/en/docs/claude-code/errors.md
+++ b/content/en/docs/claude-code/errors.md
@@ -60,6 +60,8 @@ Match the message you see to a section below.
| `Sign in again to take your previous account or API key off the config file.` | [Authentication](#sign-in-again-to-take-your-previous-account-or-api-key-off-the-config-file) |
| `Your account or API key may still be in the config file. Run claude auth logout.` | [Authentication](#your-account-or-api-key-may-still-be-in-the-config-file) |
| `Authentication required · Sign in again to continue` | [Authentication](#not-logged-in) |
+| `Sign in again to continue` followed by `For security, Claude Code needs a recent sign-in.` | [Wrapper and IDE errors](#claude-code-needs-a-recent-sign-in) |
+| `Claude Code needs a recent sign-in. Signing in won’t stop sessions.` | [Wrapper and IDE errors](#claude-code-needs-a-recent-sign-in) |
| `Could not resolve authentication method` | [Authentication](#could-not-resolve-authentication-method) |
| `Invalid API key` | [Authentication](#invalid-api-key) |
| `Your apiKeyHelper script is failing` | [Authentication](#your-apikeyhelper-script-is-failing) |
@@ -307,6 +309,7 @@ Match the message you see to a section below.
| `Shell command failed for pattern "..."`, from `/security-review` or any skill that injects dynamic context | [Command-line errors](#security-review-fails-without-origin-head) |
| `Shell command permission check failed for pattern "..."`, from a skill that injects dynamic context | [Command-line errors](#security-review-fails-without-origin-head) |
| ``Couldn't run `` for . A file named HEAD or .git in this folder or one above it may not be yours``, from a skill that injects dynamic context | [Permission checks on injected commands](https://code.claude.com/docs/en/skills.md#permission-checks-on-injected-commands) |
+| `Not run in /` / `Ran anyway in /` / `[not run: blocked by hook`, from `/security-review` or a skill that injects dynamic context | [PreSkillShellCommand decision control](https://code.claude.com/docs/en/hooks.md#preskillshellcommand-decision-control) |
| ``Skill requires bash (`shell: bash` in frontmatter) but Git Bash was not found`` | [Command-line errors](#security-review-fails-without-origin-head) |
| `No shell command in was run, because the tool does not accept one of them` | [Command-line errors](#no-shell-command-was-run) |
| `This skill, command or hook and the arguments filled into it add up to more than 4,000,000 characters` | [Command-line errors](#skill-command-or-hook-over-the-4000000-character-limit) |
@@ -352,6 +355,7 @@ Match the message you see to a section below.
| `/feedback is disabled by your organization's policy`, or the same for `/bug` or `/share` | [Command-line errors](#feedback-is-disabled-by-your-organizations-policy) |
| `` `plugin eval` is currently in early access `` / `` `plugin eval` is currently unavailable `` | [Plugin errors](#plugin-eval-is-currently-in-early-access) |
| `credential store on this machine holds a symbolic link inside it` | [Grant tools](https://code.claude.com/docs/en/plugin-evals.md#grant-tools) |
+| `cannot be disallowed`, from `claude plugin eval` | Use a built-in tool's [exact name](https://code.claude.com/docs/en/plugin-evals.md#disallow-tools), and [put the target before `--disallow-tools`](https://code.claude.com/docs/en/plugin-evals#choose-what-to-evaluate) |
| `cannot be evaluated where sessions load it` | [Test plugins with evals](https://code.claude.com/docs/en/plugin-evals.md#cannot-be-evaluated-where-sessions-load-it) |
| `Marketplace "" is registered from an untrusted source` | [Plugin errors](#marketplace-is-registered-from-an-untrusted-source) |
| `Claude Code refuses the marketplace name ""` | [Plugin errors](#claude-code-refuses-the-marketplace-name) |
@@ -393,6 +397,11 @@ Match the message you see to a section below.
| `Skipping connection (recent failure cached; retries automatically in 15 min, or edit the plugin config to retry now)` | [Plugin errors](#skipping-connection-recent-failure-cached) |
| `is not added on this machine, so your organization's marketplace policy keeps its plugins off` | [Add a marketplace](https://code.claude.com/docs/en/plugins/install.md#add-a-marketplace) |
| `A mod's http.fetch hook stopped this request` | [Turn mods on or off](https://code.claude.com/docs/en/plugins/mods/overview.md#turn-mods-on-or-off) |
+| `hook was skipped. "" runs first and sent the event on past it.` | If you listed the quoted mod in [`prependPlugins`](https://code.claude.com/docs/en/settings-reference#prependplugins) in your user settings, change that mod. Otherwise, ask your administrator. |
+| `: changed while it was read` | If `claude plugin validate` printed this, rerun it. Otherwise, restart the session. |
+| `installed mods are off for now` | [Check whether mods can load](https://code.claude.com/docs/en/plugins/mods/troubleshoot.md#check-whether-mods-can-load) |
+| `the hooks worker was lost with 's hook in flight` | Fix the named mod. For one cause, see [`it crashed the hooks worker`](https://code.claude.com/docs/en/plugins/mods/troubleshoot#it-crashed-the-hooks-worker). |
+| `dispatches in a row for fills by ` | Change the named mods so they fill the prompt box at most eight times in a row. |
| `Error: No such tool available: ` | [Tool errors](#no-such-tool-available) |
| `MCP server "" connection closed before the tool call was answered` | [Tool errors](#connection-closed-before-the-tool-call-was-answered) |
| `MCP server "" is disabled — re-enable it via /mcp to use its tools` | [Tool errors](#mcp-server-is-disabled) |
@@ -553,6 +562,7 @@ Match the message you see to a section below.
| `headersHelper not run — this workspace has no persisted trust` | [Configuration warnings](#headershelper-not-run) |
| `Invalid permission rule "..." was skipped: Malformed Tool(content) rule` | [Configuration warnings](#malformed-tool-content-rule) |
| `matches no tool · check for typos` / `matches no known tool — check for typos` | [Configuration warnings](#matches-no-tool) |
+| `lets run without asking only in the working directories` / `adds nothing to 's default` | [Allow a file tool outside the working directories](https://code.claude.com/docs/en/permissions.md#allow-a-file-tool-outside-the-working-directories) |
| `... is not matched by file permission checks` | [Configuration warnings](#is-not-matched-by-file-permission-checks) |
| `Write() never matches · use Edit()` / `Glob() never matches · use Read()` | [Configuration warnings](#is-not-matched-by-file-permission-checks) |
| `... has a wildcard before the rest of the command` | [Configuration warnings](#has-a-wildcard-before-the-rest-of-the-command) |
@@ -5987,6 +5997,31 @@ The connection to Claude Code ended before this message completed — it may not
* Send the message again. The next message starts a fresh `claude` process that resumes the conversation.
* If it repeats, run `claude` in a terminal in the same project. A failure that keeps ending the process usually reproduces there with its real error message.
+### Claude Code needs a recent sign-in
+
+When a local, WSL, or SSH session in the Code tab needs a new saved sign-in and you haven't signed in recently, the [Claude Desktop app](https://code.claude.com/docs/en/desktop.md) shows this message:
+
+```text theme={null}
+For security, Claude Code needs a recent sign-in.
+```
+
+For these sessions, being asked up to about once a month for each account and organization on each computer is routine, with or without single sign-on (SSO).
+
+**What to do:**
+
+* Click **Sign in again** on the card, then sign in
+* If a banner at the top of the Code tab says `Claude Code needs a recent sign-in. Signing in won’t stop sessions.`, click **Sign in again** on the banner
+* If you're asked again within three weeks for these sessions, with the same account and organization on the same computer, [check your version](https://code.claude.com/docs/en/desktop.md#check-your-version) of Claude Desktop. If it's older than v5.11492.0, update it:
+ * **macOS**: select **Claude > Check for Updates…**
+ * **Windows**: select **Help > Check for Updates…**, or update through the Microsoft Store if you installed the app from there
+ * **Linux**: [update through apt](https://code.claude.com/docs/en/desktop-linux.md#update)
+ * **Managed updates**: if your organization [turns off auto-updates](https://code.claude.com/docs/en/desktop.md#device-management-policies), ask your administrator for v5.11492.0 or later
+* If that continues on v5.11492.0 or later, [contact support](https://code.claude.com/docs/en/desktop.md#still-stuck)
+
+If you see the card in a Remote Control session, see [Trusted Devices](https://code.claude.com/docs/en/remote-control.md#trusted-devices), which can ask for a more recent sign-in.
+
+Before Claude Desktop v5.11492.0, the Code tab could lose its saved sign-in when a company proxy or gateway answered its background renewal with a JSON error.
+
## Rewind warnings and errors
These messages come from a [`/rewind`](https://code.claude.com/docs/en/checkpointing) code restore. `Restored the code, but skipped N files` is a warning that Claude Code skipped some paths. `No files were restored` is an error that means it restored nothing.
diff --git a/content/en/docs/claude-code/fast-mode.md b/content/en/docs/claude-code/fast-mode.md
index 26a66dae71..e588a35737 100644
--- a/content/en/docs/claude-code/fast-mode.md
+++ b/content/en/docs/claude-code/fast-mode.md
@@ -259,7 +259,7 @@ Fast mode for Claude Opus 5 and Claude Opus 4.8 is a research preview feature, w
* Availability and pricing are subject to change
* The underlying API configuration may evolve
-Report issues or feedback through your usual Anthropic support channels.
+Report issues or feedback through Anthropic support.
## See also
diff --git a/content/en/docs/claude-code/feature-availability.md b/content/en/docs/claude-code/feature-availability.md
index d4d76bb625..81f97bad64 100644
--- a/content/en/docs/claude-code/feature-availability.md
+++ b/content/en/docs/claude-code/feature-availability.md
@@ -47,7 +47,6 @@ These have provider-specific differences:
These require signing in with a claude.ai account and are not reachable with an Anthropic Console API key or from a third-party provider:
* [Cloud sessions](https://code.claude.com/docs/en/claude-code-on-the-web.md) and Claude Code on mobile
-* [Claude Code in Slack](https://code.claude.com/docs/en/slack.md): Pro, Max, and Ultra plans
* [Claude Code Desktop](https://code.claude.com/docs/en/desktop.md)
* [Cloud scheduled tasks](https://code.claude.com/docs/en/routines.md) (`/schedule`)
* [Ultrareview](https://code.claude.com/docs/en/ultrareview.md)
diff --git a/content/en/docs/claude-code/features-overview.md b/content/en/docs/claude-code/features-overview.md
index 2c4998fdf1..fcaa09579f 100644
--- a/content/en/docs/claude-code/features-overview.md
+++ b/content/en/docs/claude-code/features-overview.md
@@ -123,7 +123,7 @@ Some features can seem similar. For a deeper walkthrough of choosing between the
>
> **Use an output style** if it's about the response itself and you might want it off again: length, format, how much Claude explains, or a different role such as a writing assistant. Claude Code includes [built-in styles](https://code.claude.com/docs/en/output-styles.md#built-in-output-styles), and you can write your own.
>
-> **They combine.** CLAUDE.md stays loaded whichever style you pick. Claude follows both as instructions, so neither is enforced. For anything that has to happen every time, use a [hook](https://code.claude.com/docs/en/hooks-guide.md).
+> **They combine.** Claude follows both as instructions, so neither is enforced. For anything that has to happen every time, use a [hook](https://code.claude.com/docs/en/hooks-guide.md).
> [tab] CLAUDE.md vs Rules vs Skills
>
@@ -252,7 +252,7 @@ Each feature loads at different points in your session. The tabs below explain w
> [tab] Skills
>
-> Skills are extra capabilities in Claude's toolkit. They can be reference material (like an API style guide) or invocable workflows you trigger with `/` (like `/deploy`). Claude Code includes [bundled skills](https://code.claude.com/docs/en/commands.md) like `/code-review`, `/batch`, and `/debug` that work without setup. You can also create your own.
+> Skills are extra capabilities in Claude's toolkit. They can be reference material (like an API style guide) or invocable workflows you trigger with `/` (like `/deploy`). Claude Code includes [bundled skills](https://code.claude.com/docs/en/commands.md) like `/code-review`, `/batch`, and `/debug`. You can also create your own.
>
> **When:** Depends on the skill's configuration. By default, descriptions load at session start and full content loads when used. For user-only skills (`disable-model-invocation: true`), nothing loads until you invoke them.
>
diff --git a/content/en/docs/claude-code/hooks-guide.md b/content/en/docs/claude-code/hooks-guide.md
index 0cc1dfaa83..eb6d4b2577 100644
--- a/content/en/docs/claude-code/hooks-guide.md
+++ b/content/en/docs/claude-code/hooks-guide.md
@@ -475,6 +475,7 @@ Claude Code fires hook events at specific points in its lifecycle. When an event
| `Setup` | When you start Claude Code with `--init-only`, or with `--init` or `--maintenance` in `-p` mode. For one-time preparation in CI or scripts |
| `UserPromptSubmit` | When a prompt is submitted, before Claude processes it. Also fires on [turns Claude Code starts on its own](https://code.claude.com/docs/en/hooks.md#userpromptsubmit) |
| `UserPromptExpansion` | When a user-typed command expands into a prompt, before it reaches Claude. Can block the expansion |
+| `PreSkillShellCommand` | Before a skill's [injected shell command](https://code.claude.com/docs/en/skills.md#inject-dynamic-context) runs. Can block the command |
| `PreToolUse` | Before a tool call executes. Can block it |
| `PermissionRequest` | When a tool call needs a permission decision |
| `PermissionDenied` | When auto mode denies a tool call, including denials without a classifier verdict. Use JSON `hookSpecificOutput.retry: true` to tell the model it may retry the denied tool call. Claude Code ignores `retry` when the classifier produced no verdict |
@@ -694,6 +695,7 @@ Each event type matches on a specific field:
| `ElicitationResult` | MCP server name | same values as `Elicitation` |
| `FileChanged` | literal filenames to watch (see [FileChanged](https://code.claude.com/docs/en/hooks.md#filechanged)) | `.envrc\|.env` |
| `UserPromptExpansion` | command name | your skill or command names |
+| `PreSkillShellCommand` | tool that runs the command | `Bash`, `PowerShell` |
| `UserPromptSubmit`, `PostToolBatch`, `Stop`, `TeammateIdle`, `TaskCreated`, `TaskCompleted`, `WorktreeCreate`, `WorktreeRemove`, `CwdChanged`, `MessageDisplay` | no matcher support | always fires on every occurrence |
The tabs below show a few more matchers on different event types.
@@ -805,7 +807,9 @@ When Claude Code can't split the Bash input into subcommands, it runs your hook
The `if` field accepts the same patterns as permission rules: `"Bash(git *)"`, `"Edit(*.ts)"`, and so on. To match multiple tool names, use separate handlers each with its own `if` value, or match at the `matcher` level where pipe alternation is supported.
-`if` only works on tool events: `PreToolUse`, `PostToolUse`, `PostToolUseFailure`, `PermissionRequest`, and `PermissionDenied`. Adding it to any other event prevents the hook from running.
+> [!NOTE]
+>
+> `if` only works on `PreToolUse`, `PostToolUse`, `PostToolUseFailure`, `PermissionRequest`, `PermissionDenied`, and `PreSkillShellCommand`. If you add it on any other event, the hook doesn't run.
### Configure hook location
diff --git a/content/en/docs/claude-code/hooks.md b/content/en/docs/claude-code/hooks.md
index 06a57df1e1..f1c4e3c378 100644
--- a/content/en/docs/claude-code/hooks.md
+++ b/content/en/docs/claude-code/hooks.md
@@ -24,7 +24,7 @@ Events fall into three cadences:
* per turn: `UserPromptSubmit`, `Stop`, and `StopFailure`
* on every tool call inside the agentic loop: `PreToolUse` and `PostToolUse`, except [`EndConversation`](https://code.claude.com/docs/en/tools-reference#endconversation-tool-behavior) calls, which skip both
-
+
The table below summarizes when each event fires. The [Hook events](#hook-events) section documents the full input schema and decision control options for each one.
@@ -34,6 +34,7 @@ The table below summarizes when each event fires. The [Hook events](#hook-events
| `Setup` | When you start Claude Code with `--init-only`, or with `--init` or `--maintenance` in `-p` mode. For one-time preparation in CI or scripts |
| `UserPromptSubmit` | When a prompt is submitted, before Claude processes it. Also fires on [turns Claude Code starts on its own](https://code.claude.com/docs/en/hooks.md#userpromptsubmit) |
| `UserPromptExpansion` | When a user-typed command expands into a prompt, before it reaches Claude. Can block the expansion |
+| `PreSkillShellCommand` | Before a skill's [injected shell command](https://code.claude.com/docs/en/skills.md#inject-dynamic-context) runs. Can block the command |
| `PreToolUse` | Before a tool call executes. Can block it |
| `PermissionRequest` | When a tool call needs a permission decision |
| `PermissionDenied` | When auto mode denies a tool call, including denials without a classifier verdict. Use JSON `hookSpecificOutput.retry: true` to tell the model it may retry the denied tool call. Claude Code ignores `retry` when the classifier produced no verdict |
@@ -308,6 +309,7 @@ Each event type matches on a different field:
| `StopFailure` | error type | `rate_limit`, `authentication_failed`, `oauth_org_not_allowed`, `account_on_hold`, `billing_error`, `invalid_request`, `model_not_found`, `server_error`, `max_output_tokens`, `cloud_credential_error`, `unknown` |
| `InstructionsLoaded` | load reason | `session_start`, `nested_traversal`, `path_glob_match`, `include`, `compact` |
| `UserPromptExpansion` | command name | your skill or command names |
+| `PreSkillShellCommand` | tool that runs the command | `Bash`, `PowerShell` |
| `Elicitation` | MCP server name | your configured MCP server names |
| `ElicitationResult` | MCP server name | same values as `Elicitation` |
| `UserPromptSubmit`, `PostToolBatch`, `Stop`, `TeammateIdle`, `TaskCreated`, `TaskCompleted`, `WorktreeCreate`, `WorktreeRemove`, `MessageDisplay` | no matcher support | always fires on every occurrence |
@@ -421,7 +423,7 @@ These fields apply to all hook types:
| Field | Required | Description |
| :- | :- | :- |
| `type` | yes | `"command"`, `"http"`, `"mcp_tool"`, `"prompt"`, or `"agent"` |
-| `if` | no | [Permission rule syntax](https://code.claude.com/docs/en/permissions.md#permission-rule-syntax) to filter when this hook runs, such as `"Bash(git *)"` or `"Edit(*.ts)"`. The hook command only runs if the tool call matches the pattern. See the [Bash matching table](#bash-if-matching) for how Bash patterns evaluate against subcommands, `$()`, and backticks. Only evaluated on tool events: `PreToolUse`, `PostToolUse`, `PostToolUseFailure`, `PermissionRequest`, and `PermissionDenied`. On other events, a hook with `if` set never runs |
+| `if` | no | [Permission rule syntax](https://code.claude.com/docs/en/permissions.md#permission-rule-syntax) to filter when this hook runs, such as `"Bash(git *)"` or `"Edit(*.ts)"`. The hook command only runs if the tool call matches the pattern. See the [Bash matching table](#bash-if-matching) for how Bash patterns evaluate against subcommands, `$()`, and backticks. Only evaluated on `PreToolUse`, `PostToolUse`, `PostToolUseFailure`, `PermissionRequest`, `PermissionDenied`, and `PreSkillShellCommand`. On other events, a hook with `if` set doesn't run |
| `timeout` | no | Seconds before canceling. Claude Code doesn't enforce it on a command hook you run with [`async: true`](#run-hooks-in-the-background). Defaults: 600 for `command`, `http`, and `mcp_tool`; 30 for `prompt`; 60 for `agent`. Claude Code lowers the `command`, `http`, and `mcp_tool` default to 30 on [`UserPromptSubmit`](#userpromptsubmit), [`PreModelSwitch`](#premodelswitch), and [`PostModelSwitch`](#postmodelswitch), and to 10 on [`MessageDisplay`](#messagedisplay). [`SessionEnd`](#sessionend) hooks share a 1.5-second budget; if your settings set a longer per-hook `timeout`, Claude Code raises the budget to match, up to 60 seconds |
| `statusMessage` | no | Custom spinner message displayed while the hook runs |
| `once` | no | If `true`, Claude Code removes the hook after its first successful run. A run that fails, blocks with exit code 2, or times out leaves the hook in place, so it runs again on the next matching event. Only honored for hooks declared in [skill frontmatter](#hooks-in-skills-and-agents); ignored in settings files and agent frontmatter |
@@ -708,7 +710,7 @@ Frontmatter hooks in a project subagent run only after you accept the [workspace
When a skill's frontmatter hooks don't fire after you or Claude invoke the skill, run [`/hooks`](#the-%2Fhooks-menu) in that session. If it lists them, see [Hook not firing](https://code.claude.com/docs/en/hooks-guide.md#hook-not-firing). If it lists none of them, the skill may be under a plugin-only lock or past a hook limit, and runs without any of its frontmatter hooks. Check for each case:
-* **Plugin-only lock**: your organization's administrator can lock hooks to plugins and managed settings with the [`strictPluginOnlyCustomization`](https://code.claude.com/docs/en/settings-reference#strictpluginonlycustomization-hooks) managed setting. A skill keeps its frontmatter hooks under that lock only if it's a plugin skill, a [bundled skill](https://code.claude.com/docs/en/skills.md#bundled-skills), or a skill in the [managed settings directory](https://code.claude.com/docs/en/managed-settings.md#delivery-mechanisms). The hooks in your own settings files don't run either.
+* **Plugin-only lock**: if you're in an organization, your administrator can lock hooks to plugins and managed settings with the [`strictPluginOnlyCustomization`](https://code.claude.com/docs/en/settings-reference#strictpluginonlycustomization-hooks) managed setting. A skill keeps its frontmatter hooks under that lock only if it's a plugin skill, a [bundled skill](https://code.claude.com/docs/en/skills.md#bundled-skills), or a skill in the [managed settings directory](https://code.claude.com/docs/en/managed-settings.md#delivery-mechanisms). The hooks in your own settings files don't run either.
* **Check**: type `/status` in a Claude Code session. If the [`Setting sources` line](https://code.claude.com/docs/en/settings#check-what-your-organization-enforces) includes `Enterprise managed settings`, ask your administrator whether `strictPluginOnlyCustomization` locks hooks.
* **Fix**: move the skill into a [plugin](https://code.claude.com/docs/en/plugins/create.md#convert-an-existing-claude-setup), because plugin skills keep their frontmatter hooks. List the plugin in a [marketplace](https://code.claude.com/docs/en/plugins/create-marketplace.md#create-a-marketplace), then install it from there. If Claude Code refuses the marketplace with [`is blocked by enterprise policy`](https://code.claude.com/docs/en/plugins/troubleshooting#marketplace-source-is-blocked-by-enterprise-policy), ask your administrator to allow that marketplace.
* **Hook limit**: in Claude Code v2.1.304 or later, each source of skills has its own limit per session. Your project, your personal skills folder, and each plugin count as separate sources. The skills from one source can register at most 1,024 hooks. Those hooks' matchers can total at most 16,384 characters. A matcher with several hooks under it counts once for each hook.
@@ -943,9 +945,9 @@ For Agent SDK callback hooks, see [Block the action when a callback fails](https
> [!NOTE]
>
-> On Windows without Git Bash, a shell-form `PreToolUse` or `PermissionRequest` command hook that fails with `onFailure` unset can instead [block the tool call](#failed-hooks-on-windows-without-git-bash).
+> On Windows without Git Bash, a shell-form `PreToolUse`, `PermissionRequest`, or `PreSkillShellCommand` command hook that fails with `onFailure` unset can instead [block the action](#failed-hooks-on-windows-without-git-bash).
-This `PreToolUse` hook in `.claude/settings.json` runs a project script before each Bash command, and blocks the command if the script fails:
+This `PreToolUse` hook in `.claude/settings.json` runs a project script before each Bash tool call, and blocks the command if the script fails:
```json theme={null}
{
@@ -998,7 +1000,7 @@ The field has no effect on these hooks:
#### Failed hooks on Windows without Git Bash
-If the error for a blocked tool call includes this text, a `PreToolUse` or `PermissionRequest` command hook failed or timed out and blocked the call:
+If the error for a blocked tool call or [injected command](#preskillshellcommand) includes this text, a command hook on `PreToolUse`, `PermissionRequest`, or `PreSkillShellCommand` failed or timed out and blocked it:
```text theme={null}
blocking because Git Bash wasn't found, so only exit code 0 or 2 counts as this hook's verdict.
@@ -1037,6 +1039,7 @@ If your hook exits 2 and also sets `continue: false`, check [Exit code 2](#exit-
| `PermissionRequest` | No | Not read as a decision. Deny through the [`decision` object](#permissionrequest-decision-control) instead |
| `UserPromptSubmit` | Yes | Blocks the prompt. See [What a blocked prompt leaves behind](#what-a-blocked-prompt-leaves-behind) |
| `UserPromptExpansion` | Yes | Blocks the expansion |
+| `PreSkillShellCommand` | Yes | Blocks the command, and the skill loads without its output |
| `Stop` | Yes | Prevents Claude from stopping, continues the conversation |
| `SubagentStop` | Yes | Prevents the subagent from stopping |
| `TeammateIdle` | Yes | Prevents the teammate from going idle, so it continues working |
@@ -1213,6 +1216,7 @@ Not every event supports blocking or controlling behavior through JSON. The even
| TaskCreated | Exit code or top-level `decision` | Exit code 2 or `decision: "block"` [cancels the task](#taskcreated-decision-control) and returns the message to Claude. `continue: false` is ignored |
| PreToolUse | `hookSpecificOutput` | `permissionDecision` (allow/deny/ask/defer), `permissionDecisionReason` |
| PreModelSwitch | `hookSpecificOutput` or top-level `decision` | `permissionDecision` (allow/deny/ask), `permissionDecisionReason`. `decision: "block"` also [cancels the switch](#premodelswitch-decision-control) |
+| PreSkillShellCommand | `hookSpecificOutput` or top-level `decision` | `permissionDecision`, `permissionDecisionReason`. The hook [can only block](#preskillshellcommand-decision-control) |
| PermissionRequest | `hookSpecificOutput` | `decision.behavior` (allow/deny) |
| PermissionDenied | `hookSpecificOutput` | `retry: true` tells the model it may retry the denied tool call; Claude Code ignores it for [no-verdict denials](#permissiondenied-decision-control) |
| WorktreeCreate | path return | Command hook prints path on stdout; HTTP hook returns `hookSpecificOutput.worktreePath`. Hook failure or missing path fails creation |
@@ -1229,8 +1233,6 @@ A few events can also rewrite content rather than only allow or block it:
* `PostToolUse`: `updatedToolOutput` replaces the tool's result. See [PostToolUse decision control](#posttooluse-decision-control), including limits in a [Cowork](https://claude.com/docs/cowork/overview) cloud session
* `UserPromptSubmit`: can't replace the prompt; it only injects `additionalContext` alongside it
-For redaction or transformation use cases, intercept at `PreToolUse` for outbound tool inputs and `PostToolUse` for the results of successful calls. `PostToolUseFailure` can't rewrite a result, so it can't redact a failing command's output.
-
Here are examples of each pattern in action:
> [tab] Top-level decision
@@ -1654,6 +1656,79 @@ A hook that blocks by exiting 2 routes the same way as `reason`: the block messa
}
```
+### PreSkillShellCommand
+
+Runs before an [injected command](https://code.claude.com/docs/en/skills.md#inject-dynamic-context), a shell command that runs while a skill or a command such as `/security-review` loads. [PreToolUse](#pretooluse) hooks don't fire for injected commands. To log or block them with a script you already run on PreToolUse, add the script to this event too. In a skill's file, injected commands appear as `` !`` `` or in a ` ```! ` block.
+
+Requires Claude Code v2.1.332 or later, including in the desktop app and VS Code extension. Update before you add the hook, because earlier versions run injected commands without calling it. If you add it to a settings file first, an earlier version such as v2.1.331 opens each interactive terminal session with a [warning dialog](https://code.claude.com/docs/en/settings.md#fix-a-broken-settings-file): `Unknown hook event "PreSkillShellCommand" was ignored`. To enforce a minimum version, see [`requiredMinimumVersion`](https://code.claude.com/docs/en/settings-reference#requiredminimumversion).
+
+For a hook that has to block commands, set the matcher, type, location, and failure handling this way:
+
+* **Matcher**: use `Bash|PowerShell` to cover [both tools that run injected commands](https://code.claude.com/docs/en/skills.md#how-injected-commands-run).
+* **Type**: use a `command`, `http`, or `mcp_tool` hook that isn't [async](#run-hooks-in-the-background), because an async hook can't block. If you configure a `prompt` or `agent` hook on this event, Claude Code can't run it and blocks each command the hook matches.
+* **Location**: define the hook in a [settings file](#hook-locations), such as managed settings, or in a plugin. A skill's injected commands run without the hooks in its own frontmatter on its first load in a session and on loads inside a subagent. A [forked skill](https://code.claude.com/docs/en/skills.md#run-skills-in-a-subagent)'s injected commands run without the hooks in its own frontmatter or in its subagent's definition.
+* **Failures**: set [`onFailure: "block"`](#block-the-action-when-a-hook-fails) so the command doesn't run when the hook fails or times out.
+
+You can reuse the blocking script from [How a hook resolves](#how-a-hook-resolves).
+
+On macOS and Linux, this entry in `.claude/settings.json` runs the script in [exec form](#exec-form-and-shell-form):
+
+```json theme={null}
+{
+ "hooks": {
+ "PreSkillShellCommand": [
+ {
+ "matcher": "Bash|PowerShell",
+ "hooks": [
+ { "type": "command", "command": "${CLAUDE_PROJECT_DIR}/.claude/hooks/block-rm.sh", "args": [], "onFailure": "block" }
+ ]
+ }
+ ]
+ }
+}
+```
+
+On Windows, replace `command` and `args` in this entry with the ones in the Windows tab of [How a hook resolves](#how-a-hook-resolves).
+
+To test this example on macOS or Linux, create `.claude/skills/hook-test/SKILL.md` with the single line `` !`echo 'rm -rf'` ``. This [read-only command](https://code.claude.com/docs/en/permissions.md#read-only-commands) needs no approval and deletes nothing. Start a session in your terminal and type `/hook-test`. You see `Not run in /hook-test: echo 'rm -rf' (blocked by hook: Destructive command blocked by hook)`.
+
+#### Commands that reach a PreSkillShellCommand hook
+
+Your script runs after the [permission check on injected commands](https://code.claude.com/docs/en/skills.md#permission-checks-on-injected-commands), so it gets the commands that passed. It also runs in `bypassPermissions` mode.
+
+In auto mode, a command that would otherwise need approval doesn't run while the skill loads. Claude can run it afterward as a tool call, which fires `PreToolUse` and not this event, so keep your script on both events.
+
+#### PreSkillShellCommand input
+
+In addition to the [common input fields](#common-input-fields), which include `permission_mode`, PreSkillShellCommand hooks receive the fields in this table:
+
+| Field | Description |
+| :- | :- |
+| `tool_name` | The tool that runs the command, `Bash` or `PowerShell` |
+| `tool_input.command` | The shell command as it would run |
+| `tool_use_id` | ID of this command, which names no tool call in the transcript |
+| `command_name` | Name of the skill or command that is loading, such as `pr-summary`, or `my-plugin:deploy` for a plugin's skill |
+| `command_source` | Where the skill or command comes from, such as `userSettings`, `projectSettings`, `policySettings`, `plugin`, or `builtin` |
+| `invoked_by` | `"user"` when you typed the skill's name or an Agent SDK app sent it, or `"claude"` when Claude or a [session-scoped scheduled task](https://code.claude.com/docs/en/scheduled-tasks.md) invoked the skill. `"other"` for anything else, such as a subagent that [preloads the skill](https://code.claude.com/docs/en/sub-agents.md#preload-skills-into-subagents). |
+
+#### PreSkillShellCommand decision control
+
+To block an injected command, have your script exit 2 or return `permissionDecision: "deny"`, and the skill loads without running that command. You can block a command from this hook, but you can't approve or change one.
+
+For a JSON response, use the [PreToolUse format](#pretooluse-decision-control). To use one script on both events, leave `hookEventName` as `PreToolUse`. For a script you run only on this event, you can set `hookEventName` to `PreSkillShellCommand`.
+
+| Hook outcome | What happens |
+| :- | :- |
+| Exit 0 with no decision, or `permissionDecision: "allow"` | The command runs unless another hook blocks it |
+| Exit 2, `permissionDecision: "deny"`, or top-level `decision: "block"` | The command doesn't run. The skill still loads, and Claude reads `[not run: blocked by hook: ]` in place of the command's output. |
+| `permissionDecision: "ask"` or `"defer"`, or any `updatedInput` | Claude Code blocks the command the same way as `"deny"` |
+| `continue: false` | Invoking the skill fails with `Operation stopped by hook: `. None of its injected commands runs, because Claude Code collects your hooks' answers before it runs the first one. |
+| A `command`, `http`, or `mcp_tool` hook fails, for example by exiting 1 with no JSON output, or times out | The command runs unless the hook is [one whose failure blocks the action](#block-the-action-when-a-hook-fails). In a [Code Mode](https://code.claude.com/docs/en/code-mode.md#tool-call-refused-by-a-hook) session where Claude has already run code, a timeout blocks the command by default. |
+
+When you type a skill's name in your terminal, a `Not run in /` line reports a blocked command. A `Ran anyway in /` line reports a command that ran after its hook failed or timed out.
+
+To give a reason for a block, write it to stderr when you exit 2. In JSON, put it in `permissionDecisionReason`, or in `reason` beside a top-level `decision`. While [Remote Control](https://code.claude.com/docs/en/remote-control.md) is connected, the hook still blocks, and neither you nor Claude sees the reason. Find it in the [debug log](#debug-hooks).
+
### MessageDisplay
Runs while an assistant message streams to the screen. Claude Code displays the message in increments: each time a batch of newly completed lines is ready to render, the hook runs once with those lines and Claude Code renders the hook's replacement text in their place. A long message produces several calls; a short message may produce only one.
@@ -1791,7 +1866,9 @@ To run a hook when a specific file changes on disk, whatever wrote it, use [File
> [!WARNING]
>
-> PreToolUse runs only when Claude calls a tool. By default, files you [reference with `@` in your prompt](https://code.claude.com/docs/en/common-workflows#reference-files-and-directories) are added without any tool call. Claude Code inserts their contents while building the prompt, so no PreToolUse hook fires for them, including hooks matching `Read`. PreToolUse also doesn't fire for [`EndConversation`](https://code.claude.com/docs/en/tools-reference#endconversation-tool-behavior).
+> PreToolUse runs when Claude calls a tool. It doesn't fire for [injected commands](https://code.claude.com/docs/en/skills.md#inject-dynamic-context), the shell commands that pass a [permission check](https://code.claude.com/docs/en/skills.md#permission-checks-on-injected-commands) and run while a skill loads. To log or block those, add a [PreSkillShellCommand](#preskillshellcommand) hook.
+>
+> By default, files you [reference with `@` in your prompt](https://code.claude.com/docs/en/common-workflows#reference-files-and-directories) are added without any tool call. Claude Code inserts their contents while building the prompt, so no PreToolUse hook fires for them, including hooks matching `Read`. PreToolUse also doesn't fire for [`EndConversation`](https://code.claude.com/docs/en/tools-reference#endconversation-tool-behavior).
>
> You can block specific paths from `@` references, or turn the insertion off:
>
@@ -4032,6 +4109,7 @@ Events that support `command`, `http`, and `mcp_tool` hooks but not `prompt` or
* `PostModelSwitch`
* `PreCompact`
* `PreModelSwitch`
+* `PreSkillShellCommand`
* `SessionEnd`
* `StopFailure`
* `SubagentStart`
diff --git a/content/en/docs/claude-code/how-claude-code-works.md b/content/en/docs/claude-code/how-claude-code-works.md
index b69aa97964..435fc1d4d0 100644
--- a/content/en/docs/claude-code/how-claude-code-works.md
+++ b/content/en/docs/claude-code/how-claude-code-works.md
@@ -18,7 +18,7 @@ When you give Claude a task, it works through three phases: **gather context**,
The loop adapts to what you ask. A question about your codebase might only need context gathering. A bug fix cycles through all three phases repeatedly. A refactor might involve extensive verification. Claude decides what each step requires based on what it learned from the previous step, chaining dozens of actions together and course-correcting along the way.
-You're part of this loop too. You can interrupt at any point to steer Claude in a different direction, provide additional context, or ask it to try a different approach. Claude works autonomously but stays responsive to your input.
+You're part of this loop too. You can interrupt at any point to steer Claude in a different direction, provide additional context, or ask it to try a different approach.
The agentic loop is powered by two components: [models](#models) that reason and [tools](#tools) that act. Claude Code is the layer around the model that provides the tools and manages the context the model sees. This surrounding layer is what the term agentic harness refers to.
@@ -88,7 +88,7 @@ Claude Code runs in three environments, each with different tradeoffs for where
### Interfaces
-You can access Claude Code through the terminal, the [desktop app](https://code.claude.com/docs/en/desktop.md), [IDE extensions](https://code.claude.com/docs/en/vs-code.md), [claude.ai/code](https://claude.ai/code), [Remote Control](https://code.claude.com/docs/en/remote-control.md), [Slack](https://code.claude.com/docs/en/slack.md), and [CI/CD pipelines](https://code.claude.com/docs/en/github-actions.md). The interface determines how you see and interact with Claude, but the underlying agentic loop is identical. See [Use Claude Code everywhere](https://code.claude.com/docs/en/overview.md#use-claude-code-everywhere) for the full list.
+You can access Claude Code through the terminal, the [desktop app](https://code.claude.com/docs/en/desktop.md), [IDE extensions](https://code.claude.com/docs/en/vs-code.md), [claude.ai/code](https://claude.ai/code), [Remote Control](https://code.claude.com/docs/en/remote-control.md), and [CI/CD pipelines](https://code.claude.com/docs/en/github-actions.md). The interface determines how you see and interact with Claude, but the underlying agentic loop is identical. See [Use Claude Code everywhere](https://code.claude.com/docs/en/overview.md#use-claude-code-everywhere) for the list.
## Work with sessions
@@ -131,7 +131,7 @@ To change or remove the attribution lines, set [`attribution`](https://code.clau
#### When context fills up
-Claude Code manages context automatically as you approach the limit. It compacts the conversation into a summary. The summary keeps your requests and key code snippets, but detailed instructions from early in the conversation may be lost. Put persistent rules in CLAUDE.md rather than relying on conversation history.
+Claude Code manages context automatically as you approach the limit. It compacts the conversation into a summary. The summary keeps your requests and key code snippets, but detailed instructions from early in the conversation may be lost. Put persistent rules in CLAUDE.md.
To control what's preserved during compaction, add a "Compact Instructions" section to CLAUDE.md or run `/compact` with a focus (like `/compact focus on the API changes`).
diff --git a/content/en/docs/claude-code/large-codebases.md b/content/en/docs/claude-code/large-codebases.md
index 2e44595b2d..a03ed19f1f 100644
--- a/content/en/docs/claude-code/large-codebases.md
+++ b/content/en/docs/claude-code/large-codebases.md
@@ -35,7 +35,7 @@ Each setting below is independent. They layer rather than replace each other, so
### The example monorepo
-The examples throughout this page refer to a monorepo with three packages. The same patterns work in a large single-tree codebase: where an example uses `packages/api/`, substitute your own subsystem directory such as `src/backend/` or `lib/core/`.
+The examples throughout this page refer to a monorepo with three packages. Where an example uses `packages/api/`, substitute your own subsystem directory such as `src/backend/` or `lib/core/`.
```text theme={null}
monorepo/
diff --git a/content/en/docs/claude-code/llm-gateway-connect.md b/content/en/docs/claude-code/llm-gateway-connect.md
index a35b79b919..4768c9d64f 100644
--- a/content/en/docs/claude-code/llm-gateway-connect.md
+++ b/content/en/docs/claude-code/llm-gateway-connect.md
@@ -162,7 +162,7 @@ Run `/status` to confirm which credential source is active. If startup shows an
## Configure each surface
-The CLI reads the environment variables and settings files above. The other surfaces are the VS Code extension, the desktop app, GitHub Actions, the Agent SDK, and the cloud surfaces such as Slack and the web; the sections below cover whether those settings reach each one.
+The CLI reads the environment variables and settings files above. The other surfaces are the VS Code extension, the desktop app, GitHub Actions, the Agent SDK, and the cloud surfaces such as Claude Tag and the web. The sections below cover whether those settings reach each one.
### VS Code extension
@@ -255,9 +255,9 @@ options = ClaudeAgentOptions(
)
```
-### Slack, cloud sessions, and Remote Control
+### Cloud sessions, Claude Tag, and Remote Control
-[Claude Code in Slack](https://code.claude.com/docs/en/slack.md) and [cloud sessions](https://code.claude.com/docs/en/claude-code-on-the-web.md) aren't part of a gateway deployment. Gateway variables set in a cloud session's environment configuration are not applied. If your traffic must stay on the gateway, don't enable these surfaces for those users.
+[Cloud sessions](https://code.claude.com/docs/en/claude-code-on-the-web.md) and [Claude Tag](https://claude.com/docs/claude-tag/overview) aren't part of a gateway deployment. If your traffic must stay on the gateway, turn these surfaces off.
[Remote Control](https://code.claude.com/docs/en/remote-control.md) and [voice dictation](https://code.claude.com/docs/en/voice-dictation.md) both rely on a claude.ai identity: Remote Control to pair a live session with your account, and voice dictation to reach the claude.ai transcription endpoint. They are unavailable while `ANTHROPIC_API_KEY`, `ANTHROPIC_AUTH_TOKEN`, or an `apiKeyHelper` is active. Remote Control is also disabled while `ANTHROPIC_BASE_URL` points at a non-Anthropic host, so signing in with claude.ai isn't enough on its own.
diff --git a/content/en/docs/claude-code/managed-settings.md b/content/en/docs/claude-code/managed-settings.md
index eb2be355b1..ed525fb437 100644
--- a/content/en/docs/claude-code/managed-settings.md
+++ b/content/en/docs/claude-code/managed-settings.md
@@ -123,7 +123,7 @@ When two files set the same key, Claude Code combines them by these rules:
## How Claude Code combines managed sources
-If you set your provider or gateway at claude.ai under **Organization settings > Desktop 3P**, first read [which settings take priority](https://claude.com/docs/third-party/claude-desktop/admin-console-claude-code#which-settings-take-priority) in the Enterprise Admin Console guide.
+If you set your provider or gateway at claude.ai under [**Organization settings > Desktop 3P**](https://claude.ai/admin-settings/desktop-deployment), first read [which settings take priority](https://claude.com/docs/third-party/claude-desktop/admin-console-claude-code#which-settings-take-priority) in the Enterprise Admin Console guide.
When your organization delivers more than one managed source to the same machine, the [`managedSourcesBehavior`](https://code.claude.com/docs/en/settings-reference#managedsourcesbehavior) key decides what Claude Code does with the others:
diff --git a/content/en/docs/claude-code/mcp.md b/content/en/docs/claude-code/mcp.md
index fc86742677..e9b37e09f4 100644
--- a/content/en/docs/claude-code/mcp.md
+++ b/content/en/docs/claude-code/mcp.md
@@ -1231,7 +1231,7 @@ The URL must use `https://`. The metadata URL's `scopes_supported` overrides the
### Restrict OAuth scopes
-Set `oauth.scopes` to pin the scopes Claude Code requests during the authorization flow. This is the supported way to restrict an MCP server to a security-team-approved subset when the upstream authorization server advertises more scopes than you want to grant. The value is a single space-separated string, matching the `scope` parameter format in RFC 6749 §3.3.
+Set `oauth.scopes` to pin the scopes Claude Code requests during the authorization flow. This is the supported way to restrict an MCP server to an approved subset when the upstream authorization server advertises more scopes than you want to grant. The value is a single space-separated string, matching the `scope` parameter format in RFC 6749 §3.3.
```json theme={null}
{
diff --git a/content/en/docs/claude-code/memory.md b/content/en/docs/claude-code/memory.md
index 79b2f8633e..1d4423b9fa 100644
--- a/content/en/docs/claude-code/memory.md
+++ b/content/en/docs/claude-code/memory.md
@@ -67,7 +67,7 @@ For large projects, you can break instructions into topic-specific files using [
### Set up a project CLAUDE.md
-A project CLAUDE.md can be stored in either `./CLAUDE.md` or `./.claude/CLAUDE.md`. Create this file and add instructions that apply to anyone working on the project: build and test commands, coding standards, architectural decisions, naming conventions, and common workflows. These instructions are shared with your team through version control, so focus on project-level standards rather than personal preferences.
+A project CLAUDE.md can be stored in either `./CLAUDE.md` or `./.claude/CLAUDE.md`. Create this file and add instructions that apply to anyone working on the project: build and test commands, coding standards, architectural decisions, naming conventions, and common workflows. These instructions are shared through version control, so focus on project-level standards rather than personal preferences.
To confirm the file loaded, run [`/context all`](https://code.claude.com/docs/en/commands#all-commands) in a session and check the list under **Memory files**. In [fullscreen mode](https://code.claude.com/docs/en/fullscreen.md), `/context` alone collapses that list.
@@ -393,7 +393,7 @@ To change which files Claude reads, type `/config` in a Claude Code session to o
| `claude-md-or-agents-md` | Your `CLAUDE.md` files, or your `AGENTS.md` files when you have no `CLAUDE.md` or `CLAUDE.local.md` in your working directory or above it. This is the default |
| `claude-md-and-agents-md` | Your `CLAUDE.md` and `AGENTS.md` files together, each directory's `CLAUDE.md` files first and its `AGENTS.md` after them. Claude Code skips an `AGENTS.md` it has already loaded, so one that your `CLAUDE.md` imports or symlinks to isn't read twice |
| `claude-md` | Your `CLAUDE.md` files only |
-| `managed-only` | Only your organization's managed `CLAUDE.md` and [auto memory](#auto-memory) at launch. Your project, local, and user `CLAUDE.md` files, your `.claude/rules/` files, and every `AGENTS.md` are left out. A subdirectory's `CLAUDE.md` and `.claude/rules/` files, and [path-scoped rules](#path-specific-rules), still load on demand |
+| `managed-only` | Only the managed `CLAUDE.md` and [auto memory](#auto-memory) at launch. Your project, local, and user `CLAUDE.md` files, your `.claude/rules/` files, and every `AGENTS.md` are excluded. A subdirectory's `CLAUDE.md` and `.claude/rules/` files, and [path-scoped rules](#path-specific-rules), still load on demand |
You can also set the value in a settings file instead of `/config`. Add it to [`pluginConfigs`](https://code.claude.com/docs/en/settings-reference#pluginconfigs) under `cc-plugin-agents-md@builtin`, the ID of the built-in plugin that reads `AGENTS.md`. Claude Code reads the entry from `~/.claude/settings.json`, a `--settings` file, or [managed settings](https://code.claude.com/docs/en/managed-settings.md), and ignores it in project and local settings files. This example has Claude read both files:
diff --git a/content/en/docs/claude-code/mobile.md b/content/en/docs/claude-code/mobile.md
index bcb431d7eb..bdde2d22e8 100644
--- a/content/en/docs/claude-code/mobile.md
+++ b/content/en/docs/claude-code/mobile.md
@@ -24,7 +24,7 @@ Install the Claude app for [iOS](https://apps.apple.com/us/app/claude-by-anthrop
**2. Sign in**
-Sign in with the same claude.ai account and organization you use for Claude Code. Cloud sessions and Remote Control require a claude.ai account, so they aren't reachable with an Anthropic Console API key or from a third-party provider such as Amazon Bedrock.
+Sign in with the same claude.ai account you use for Claude Code, and the same organization if you belong to one. Cloud sessions and Remote Control require a claude.ai account, so they aren't reachable with an Anthropic Console API key or from a third-party provider such as Amazon Bedrock.
**3. Open the Code tab**
@@ -86,4 +86,3 @@ The mobile client covers most of what a session needs, with a few limitations:
* [Remote Control](https://code.claude.com/docs/en/remote-control.md): continue a local session from any device
* [Sessions from Dispatch](https://code.claude.com/docs/en/desktop.md#sessions-from-dispatch): how Dispatch tasks become Code sessions in the Desktop app
* [Channels](https://code.claude.com/docs/en/channels.md): ask Claude something from your phone via Telegram, Discord, or iMessage while the work runs on your machine
-* [Claude Code in Slack](https://code.claude.com/docs/en/slack.md): delegate coding tasks from your Slack workspace by mentioning `@Claude`
diff --git a/content/en/docs/claude-code/model-config.md b/content/en/docs/claude-code/model-config.md
index da6fcfb08f..7b80e6ba60 100644
--- a/content/en/docs/claude-code/model-config.md
+++ b/content/en/docs/claude-code/model-config.md
@@ -252,7 +252,7 @@ When a new session would start on the variable's model, a session you resume wit
When you pick a model with `/model` and your next session starts on something else, these are the usual causes:
* **You chose it for one session.** Pressing `s` in the picker, launching with `--model`, and running `/model` in non-interactive mode all apply to the current session and leave your saved default alone.
-* **Something with higher priority sets the model.** A `model` value in project or managed settings, `ANTHROPIC_MODEL` in your shell, or an [organization default](#organization-default-model) your admin set to override user choices applies again at every new-session launch. Your `/model` choice is still saved; it's outranked. When project or managed settings set the model, the startup header names the file.
+* **Something with higher priority sets the model.** A `model` value in project or managed settings, `ANTHROPIC_MODEL` in your shell, or an [organization default](#organization-default-model) set to override user choices applies again at every new-session launch. Your `/model` choice is still saved; it's outranked. When project or managed settings set the model, the startup header names the file.
* **Claude Code couldn't save your choice.** `/model` writes `model` to `~/.claude/settings.json`. If you can't write to that file, for example because another tool generates it or links it to a read-only copy, the model you chose lasts for the session and the next launch reads the old value. Set `model` in the tool that generates the file, or make the file writable. See [A change you made in Claude Code is lost in new sessions](https://code.claude.com/docs/en/settings.md#a-change-you-made-in-claude-code-is-lost-in-new-sessions).
* **You resumed a session.** A session you resume with `claude --resume` or `--continue` usually [keeps the model it was using](#which-model-a-resumed-session-uses) rather than your current default.
@@ -742,7 +742,7 @@ To raise that turn to `xhigh` effort as well, type the word in one of these plac
If the word isn't rainbow when you start a new turn, try one of these:
* Retype it outside anything such as quotes, brackets, a path, or a command, in a prompt that doesn't start with `/`
-* Unset `CLAUDE_CODE_EFFORT_LEVEL` if it's set below `xhigh`, raise your own [`maxEffortLevel`](https://code.claude.com/docs/en/settings-reference#maxeffortlevel) to `xhigh` or above, or ask an organization admin to raise your [organization's limit](#organization-effort-limits)
+* Unset `CLAUDE_CODE_EFFORT_LEVEL` if it's set below `xhigh`, or raise your own [`maxEffortLevel`](https://code.claude.com/docs/en/settings-reference#maxeffortlevel) to `xhigh` or above. If you're in an organization with an [effort limit](#organization-effort-limits), ask an organization admin to raise it
* Run `/model` in your session to switch to an Opus 5.5, Sonnet 5.5, Haiku 5.5, Fable 5.2, or Fable 5.1 model. Where the word can't raise a turn, such as on Amazon Bedrock, Google Cloud's Agent Platform, or a [Claude apps gateway](https://code.claude.com/docs/en/claude-apps-gateway), [set the effort level](#set-the-effort-level) instead
To turn the keyword off, including its in-context instruction, set `CLAUDE_CODE_DISABLE_ULTRATHINK` to `1` in your shell or in a [settings file](https://code.claude.com/docs/en/env-vars.md#in-settings-files). Requires Claude Code v2.1.316 or later.
diff --git a/content/en/docs/claude-code/monitoring-usage.md b/content/en/docs/claude-code/monitoring-usage.md
index 9e433ad80f..ef79726bf0 100644
--- a/content/en/docs/claude-code/monitoring-usage.md
+++ b/content/en/docs/claude-code/monitoring-usage.md
@@ -801,7 +801,7 @@ When a user submits a prompt, Claude Code may make multiple API calls and run se
| - | - |
| `prompt.id` | UUID v4 identifier linking all events produced while processing a single user prompt |
| `event.sequence` | 0-based counter for ordering events, counted per Claude Code process rather than per session |
-| `message.uuid` | UUID of the message as persisted in the session transcript, the `~/.claude/projects/*/*.jsonl` files. Present on `assistant_response`, on `api_response_body`, and on `user_prompt` except for command dispatches, which can produce zero or many messages. On `assistant_response` and `api_response_body`, this is the response's final transcript entry, which the next turn's `parentUuid` chains from. Requires Claude Code v2.1.274 or later on `api_response_body` |
+| `message.uuid` | UUID of the message as persisted in the session transcript, the `~/.claude/projects/*/*.jsonl` files. Present on `assistant_response`, on `api_response_body`, and on `user_prompt` except for command dispatches, which can produce zero or many messages. On `api_response_body`, and on an `assistant_response` event [without a `tool_use_id`](#assistant-response-event), this is the response's final transcript entry, which the next turn's `parentUuid` chains from. Requires Claude Code v2.1.274 or later on `api_response_body` |
| `request_id` | Server-assigned ID of the API request, read from the `request-id` response header, such as `req_011...`. On a response with no `request-id` header, as on [Amazon Bedrock](https://code.claude.com/docs/en/amazon-bedrock.md), the value comes from the `x-amzn-requestid` header instead. Present on `api_request`, `api_error`, `api_refusal`, `assistant_response`, `api_response_body`, [`tool_result`](#tool-result-event), and [`tool_decision`](#tool-decision-event) when the response carries either header. Matches the same attribute on the `llm_request` trace span. The `x-amzn-requestid` source requires Claude Code v2.1.282 or later |
| `client_request_id` | Client-generated UUID sent as the `x-client-request-id` request header. Present on `api_request` and `api_error` on first-party API connections; absent on third-party provider backends and when the request was retried through the non-streaming fallback. Pairs a request with its response and remains available for failures such as timeouts that never produced a server `request_id`. Matches the same attribute on the `llm_request` trace span |
@@ -813,7 +813,7 @@ For message-level reconstruction, each event class carries a key that matches a
* `message.uuid` on `user_prompt`, `assistant_response`, and `api_response_body`
* `request_id` on the API events, persisted as `requestId` on the transcript's assistant entries
-* `tool_use_id` on `tool_result` and `tool_decision` events, and on `safety_event` events except those for the [end of a turn](#safety-event)
+* `tool_use_id` on `tool_result` and `tool_decision` events, on [`assistant_response`](#assistant-response-event) events for messages sent with a tool, and on `safety_event` events except those for the [end of a turn](#safety-event)
#### User prompt event
@@ -836,7 +836,12 @@ Logged when a prompt is submitted, including on turns Claude Code starts on its
#### Assistant response event
-Logged after each API request that returns text content from the model. Only the response's text blocks are included; thinking blocks and tool-use blocks are excluded.
+An `assistant_response` event holds either the text of an API response or a message that Claude wrote to the user by calling a tool. The `tool_use_id` attribute tells you which:
+
+* **Text reply, no `tool_use_id`**: logged after each API request that returns text content from the model. Only the response's text blocks are included; thinking blocks and tool-use blocks are excluded.
+* **Message sent with a tool, has `tool_use_id`**: `response` holds the message text from a successful call to `SendUserMessage` or Cowork's `mcp__cowork__send_user_message`. Claude Code logs the event before [`PostToolUse`](https://code.claude.com/docs/en/hooks#posttooluse) hooks run. Requires Claude Code v2.1.332 or later.
+
+You receive `assistant_response` events with `tool_use_id` only while you include response text, as described under `response`.
**Event Name**: `claude_code.assistant_response`
@@ -849,8 +854,9 @@ Logged after each API request that returns text content from the model. Only the
* `response_length`: Length of the response text in characters
* `response`: Response text, truncated at the content limit (60 KB by default). Redacted to `` by default. Set `OTEL_LOG_ASSISTANT_RESPONSES=1` to include it. When `OTEL_LOG_ASSISTANT_RESPONSES` is unset, `OTEL_LOG_USER_PROMPTS` controls it instead, so set `OTEL_LOG_ASSISTANT_RESPONSES=0` to keep responses redacted while prompt logging is on
* `model`: Model identifier (for example, "claude-sonnet-5")
-* `request_id`: API request ID, described under [Event correlation attributes](#event-correlation-attributes)
-* `message.uuid`: UUID of the response's final transcript entry. An API response is persisted as one transcript entry per content block; this is the last one, which the next turn's `parentUuid` chains from.
+* `request_id`: API request ID, described under [Event correlation attributes](#event-correlation-attributes). On an event with `tool_use_id`, this is the ID of the API response that held the call. When that response also has text, both kinds of event share one `request_id`
+* `tool_use_id`: Present only on an event for a message sent with a tool. Same value as on the call's [tool result event](#tool-result-event)
+* `message.uuid`: UUID of a transcript entry. An API response is persisted as one transcript entry per content block. For a text reply, this is the last one, which the next turn's `parentUuid` chains from. For an event with `tool_use_id`, this is the entry that holds the tool call.
* `query_source`: Subsystem that issued the request, such as `"repl_main_thread"`, `"compact"`, or a subagent name
#### Tool result event
diff --git a/content/en/docs/claude-code/network-config.md b/content/en/docs/claude-code/network-config.md
index dd87c7d599..dab350763c 100644
--- a/content/en/docs/claude-code/network-config.md
+++ b/content/en/docs/claude-code/network-config.md
@@ -85,7 +85,7 @@ export CLAUDE_CODE_CERT_STORE=system
## Custom CA certificates
-If your enterprise environment uses a custom CA, configure Claude Code to trust it directly:
+If your environment uses a custom CA, configure Claude Code to trust it directly:
```bash theme={null}
export NODE_EXTRA_CA_CERTS=/path/to/ca-cert.pem
@@ -242,7 +242,7 @@ Claude Code requires access to the following URLs. Allowlist these in your proxy
| `storage.googleapis.com` | Native installer and native auto-updater on versions prior to 2.1.116 |
| `registry.npmjs.org` | Plugin installs (fetching npm-source plugin packages and installing plugins' Node.js package dependencies), `npx`-launched MCP servers, and the package registry for npm and bun installs of Claude Code itself |
| `bridge.claudeusercontent.com` | [Claude in Chrome](https://code.claude.com/docs/en/chrome.md) extension WebSocket bridge |
-| `*.frame.claudeusercontent.com` | [Artifact](https://code.claude.com/docs/en/artifacts.md) content reads. The CLI fetches an artifact's files from this host when Claude opens one, and only when the Artifact tool is [available](https://code.claude.com/docs/en/artifacts.md#availability) for your account. To turn the tool off and drop this requirement, set [`"enableArtifact": false`](https://code.claude.com/docs/en/settings-reference#enableartifact) or [`CLAUDE_CODE_DISABLE_ARTIFACT=1`](https://code.claude.com/docs/en/env-vars) |
+| `*.frame.claudeusercontent.com` | [Artifact](https://code.claude.com/docs/en/artifacts.md) content reads. The CLI fetches an artifact's files from this host when Claude opens one. You need it only when the Artifact tool is [available](https://code.claude.com/docs/en/artifacts.md#availability) for your account. To turn the tool off and drop this requirement, set [`"enableArtifact": false`](https://code.claude.com/docs/en/settings-reference#enableartifact) or [`CLAUDE_CODE_DISABLE_ARTIFACT=1`](https://code.claude.com/docs/en/env-vars) |
| `github.com` | Cloning GitHub-hosted [plugin marketplaces](https://code.claude.com/docs/en/plugins/overview.md) and plugins, including the official Anthropic marketplace, over HTTPS or SSH. To clone GitHub `owner/repo` sources over HTTPS only, set [`CLAUDE_CODE_PLUGIN_PREFER_HTTPS=1`](https://code.claude.com/docs/en/env-vars) |
| `raw.githubusercontent.com` | Changelog feed for [`/release-notes`](https://code.claude.com/docs/en/commands). In interactive sessions, Claude Code also fetches it in the background at startup when its cached changelog doesn't yet cover the running version, such as the first start after an update; non-interactive and cloud sessions never fetch it |
| `*-review.googlesource.com` | Gerrit change lookup on `googlesource.com` checkouts. When a Claude Desktop Code tab session starts or resumes on a [trusted](https://code.claude.com/docs/en/permissions.md#project-allow-rules-and-workspace-trust) checkout whose `origin` is a `googlesource.com` host, Claude Code asks that host's `-review` server anonymously for the open change matching HEAD's `Change-Id`, once per start or resume. Other session types skip the lookup, and no other Gerrit host is contacted. Optional: disable with [`CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC`](https://code.claude.com/docs/en/env-vars) |
diff --git a/content/en/docs/claude-code/overview.md b/content/en/docs/claude-code/overview.md
index 86a8799a4b..3987001ce8 100644
--- a/content/en/docs/claude-code/overview.md
+++ b/content/en/docs/claude-code/overview.md
@@ -210,7 +210,7 @@ Here are some of the ways you can use Claude Code:
> * Message [Dispatch](https://code.claude.com/docs/en/desktop.md#sessions-from-dispatch) a task from your phone and open the Desktop session it creates
> * Start a long-running task on the [web](https://code.claude.com/docs/en/claude-code-on-the-web.md) or the [Claude mobile app](https://code.claude.com/docs/en/mobile.md), then pull it into your terminal with `claude --teleport`. Teleport requires a claude.ai subscription.
> * Run `/desktop` to continue your current terminal session in the [Desktop app](https://code.claude.com/docs/en/desktop.md), where you can review diffs visually. The `/desktop` handoff requires a claude.ai subscription. Available on macOS and x64 Windows.
-> * Route tasks from team chat: mention `@Claude` in [Slack](https://code.claude.com/docs/en/slack.md) with a bug report and get a pull request back
+> * Route tasks from team chat on Team and Enterprise plans: mention `@Claude` in [Slack](https://claude.com/docs/claude-tag/overview) with a bug report and get a pull request back
## Use Claude Code everywhere
@@ -226,7 +226,7 @@ Beyond the [Terminal](https://code.claude.com/docs/en/quickstart.md), [VS Code](
| Run Claude on a recurring schedule | [Cloud scheduled tasks](https://code.claude.com/docs/en/routines.md) or [Desktop scheduled tasks](https://code.claude.com/docs/en/desktop-scheduled-tasks.md) |
| Automate PR reviews and issue triage | [GitHub Actions](https://code.claude.com/docs/en/github-actions.md) or [GitLab CI/CD](https://code.claude.com/docs/en/gitlab-ci-cd.md) |
| Get automatic code review on every PR | [GitHub Code Review](https://code.claude.com/docs/en/code-review.md) |
-| Route bug reports from Slack to pull requests | [Slack](https://code.claude.com/docs/en/slack.md) |
+| Route bug reports from Slack to pull requests | [Claude Tag](https://claude.com/docs/claude-tag/overview), on Team and Enterprise plans |
| Debug live web applications | [Chrome](https://code.claude.com/docs/en/chrome.md) |
| Build custom agents for your own workflows | [Agent SDK](https://code.claude.com/docs/en/agent-sdk/overview.md) |
diff --git a/content/en/docs/claude-code/permission-modes.md b/content/en/docs/claude-code/permission-modes.md
index edfd16785a..1fd4235440 100644
--- a/content/en/docs/claude-code/permission-modes.md
+++ b/content/en/docs/claude-code/permission-modes.md
@@ -310,7 +310,7 @@ With no approval prompt open, press `Shift+Tab` again to leave plan mode. At the
When the plan is ready, Claude presents it and asks how to proceed. From that prompt you can choose:
-* **Yes, and use auto mode**: approve and start in [auto mode](#eliminate-prompts-with-auto-mode). If auto mode isn't [available to your session](#eliminate-prompts-with-auto-mode), for example because your organization turned it off, this option reads **Yes, auto-accept edits**. If you started the session with bypass permissions enabled, the option reads **Yes, and switch to BYPASS PERMISSIONS (no further prompts) for this session** instead.
+* **Yes, and use auto mode**: approve and start in [auto mode](#eliminate-prompts-with-auto-mode). If auto mode isn't [available to your session](#eliminate-prompts-with-auto-mode), this option reads **Yes, auto-accept edits**. If you started the session with bypass permissions enabled, the option reads **Yes, and switch to BYPASS PERMISSIONS (no further prompts) for this session** instead.
* **Yes, manually approve edits**: approve and review each edit individually.
* **No, keep planning**: stay in plan mode and tell Claude what to change.
@@ -400,7 +400,7 @@ Find the first row in this table that matches your session. You get that row's m
| Runs on Claude Sonnet 4.6 | Sonnet 4.6 |
| Has [`ANTHROPIC_DEFAULT_SONNET_MODEL`](https://code.claude.com/docs/en/model-config#environment-variables) set | Its value, or Sonnet 5 if its value is Claude Sonnet 5.5 or Claude Opus 5.5 |
-If Sonnet 5 or the model in `ANTHROPIC_DEFAULT_SONNET_MODEL` is unavailable from your provider or excluded by your organization's [model policy](https://code.claude.com/docs/en/model-config.md#restrict-model-selection), Claude Code uses a fallback model. That's your session's model, or an Opus model in a [Fable session](https://code.claude.com/docs/en/model-config.md#work-with-fable).
+If Sonnet 5 or the model in `ANTHROPIC_DEFAULT_SONNET_MODEL` is unavailable from your provider or excluded by a [model policy](https://code.claude.com/docs/en/model-config.md#restrict-model-selection), Claude Code uses a fallback model. That's your session's model, or an Opus model in a [Fable session](https://code.claude.com/docs/en/model-config.md#work-with-fable).
### Choose the classifier model
@@ -419,7 +419,7 @@ With Claude Code v2.1.302 or later, set [`CLAUDE_CODE_AUTO_MODE_MODEL`](https://
| Situation | What happens | What to do |
| - | - | - |
| The [debug log](#classifier-model-check) reports an Anthropic-configured classifier model | That model reviews | None needed |
-| You set Claude Opus 5, Sonnet 5.5, Opus 5.5 or one your organization's [model policy](https://code.claude.com/docs/en/model-config.md#restrict-model-selection) excludes | The [default classifier model](#default-classifier-model) reviews | Set another model |
+| You set Claude Opus 5, Sonnet 5.5, Opus 5.5, or one that a [model policy](https://code.claude.com/docs/en/model-config.md#restrict-model-selection) excludes | The [default classifier model](#default-classifier-model) reviews | Set another model |
| Your provider can't serve the model | Classifier checks fail, so Claude Code [denies each action it checks](https://code.claude.com/docs/en/errors.md#auto-mode-cannot-determine-the-safety-of-an-action) | Set a model it serves, or remove the variable |
| In a session, `/status` shows [`Auto mode server`](#server-side-classifier-review) as `Enabled` | The server reviews without your model | None needed |
@@ -679,7 +679,7 @@ claude --permission-mode dontAsk
`bypassPermissions` mode disables permission prompts and safety checks so tool calls execute immediately, including writes to [protected paths](#protected-paths).
-Even in `bypassPermissions` mode, each of the [actions no mode auto-approves](#actions-no-mode-auto-approves) gets a prompt or a denial, though you can [turn off the prompt for dangerous `rm` commands](#turn-off-the-critical-path-removal-prompt-in-bypasspermissions-mode). Reading [another organization's public artifact](https://code.claude.com/docs/en/artifacts.md#read-an-artifact-shared-with-you) needs your approval, and this mode doesn't ask for it, so Claude can't read one. The [Remove-Item in PowerShell](#remove-item-in-powershell) denies also apply in this mode.
+Even in `bypassPermissions` mode, each of the [actions no mode auto-approves](#actions-no-mode-auto-approves) ends in a prompt or a denial, though you can [turn off the prompt for dangerous `rm` commands](#turn-off-the-critical-path-removal-prompt-in-bypasspermissions-mode). The Artifact tool can't read [another organization's public artifact](https://code.claude.com/docs/en/artifacts.md#read-an-artifact-shared-with-you) that you haven't approved in this conversation. The [Remove-Item in PowerShell](#remove-item-in-powershell) denies also apply in this mode.
Two [cross-session messaging](https://code.claude.com/docs/en/cross-session-messaging.md) safeguards still apply in this mode, and in interactive terminal plan-mode sessions where bypass permissions are available:
@@ -704,7 +704,7 @@ The `--dangerously-skip-permissions` flag is equivalent.
The first time you start an interactive session with this mode enabled, Claude Code shows a warning dialog asking you to accept responsibility for actions taken without permission checks:
-* **If you accept**: Claude Code sets `skipDangerousModePermissionPrompt` to `true` in `~/.claude/settings.json`, so later sessions skip the dialog. To see the dialog again, remove the key from that file or set it to `false`. The [`skipDangerousModePermissionPrompt` reference](https://code.claude.com/docs/en/settings-reference#skipdangerousmodepermissionprompt) lists the other settings files where you or your organization can set it.
+* **If you accept**: Claude Code sets `skipDangerousModePermissionPrompt` to `true` in `~/.claude/settings.json`, so later sessions skip the dialog. To see the dialog again, remove the key from that file or set it to `false`. If the dialog still doesn't appear, check the other settings files that the [`skipDangerousModePermissionPrompt` reference](https://code.claude.com/docs/en/settings-reference#skipdangerousmodepermissionprompt) lists.
* **If you decline**: Claude Code exits.
If you pass [`--setting-sources`](https://code.claude.com/docs/en/cli-reference#cli-flags) without `user`, the dialog can appear again although you accepted it earlier. To skip it, add `user`, as in `--setting-sources user,project`.
diff --git a/content/en/docs/claude-code/permissions.md b/content/en/docs/claude-code/permissions.md
index 31283518c0..407fe5d454 100644
--- a/content/en/docs/claude-code/permissions.md
+++ b/content/en/docs/claude-code/permissions.md
@@ -106,6 +106,16 @@ To match all uses of a tool, use only the tool name without parentheses:
The label shown for a tool in the transcript and permission dialog can differ from its canonical name. For example, the tool labeled `Stop Task` in the transcript has the canonical name `TaskStop`. Permission rules and [hook matchers](https://code.claude.com/docs/en/hooks.md) don't match the label, so a rule written as `Stop Task` doesn't match. For deny and ask rules, a [startup warning](https://code.claude.com/docs/en/errors.md#matches-no-tool) says so. Use the canonical names listed in the [tools reference](https://code.claude.com/docs/en/tools-reference.md).
+#### Allow a file tool outside the working directories
+
+With an `Edit(*)`, `Write(*)`, or `NotebookEdit(*)` allow rule, you pre-approve the tool only in the [working directories](#working-directories). To pre-approve paths outside them too, write the bare name of each tool you want, such as `Edit` or `Read`. Some calls still aren't pre-approved, such as writes to [protected paths](https://code.claude.com/docs/en/permission-modes.md#protected-paths) and reads from [network paths](#network-paths).
+
+When the startup warning says your `Read(*)` rule `adds nothing to Read's default`, you can delete the rule from your settings file.
+
+> [!WARNING]
+>
+> Don't rely on a file-tool `(*)` allow rule to keep the tool in the working directories. Versions before v2.1.317 treat the rule as the bare name, and later versions can too if Anthropic turns the working-directory limit off. Instead, [block file-tool reads and writes outside the working directories](#block-file-tool-reads-and-writes-outside-the-working-directories).
+
### Use specifiers for fine-grained control
Add a specifier in parentheses to match specific tool uses:
@@ -564,7 +574,7 @@ Each row shows what a rule does in the `allow` list and in the `deny` list:
| `WebFetch` | Claude fetches without prompting you. Doesn't change which hosts sandboxed commands can reach. | Claude Code removes the `WebFetch` tool, so Claude can't fetch at all. Doesn't change which hosts sandboxed commands can reach. |
| `WebFetch(domain:*)` | Claude fetches without prompting you, and sandboxed commands can reach any host. | Claude Code keeps the tool and refuses each fetch, and sandboxed commands can't reach any host. |
-The two forms also differ on reads of [artifacts](https://code.claude.com/docs/en/artifacts.md), the pages the Artifact tool publishes on claude.ai. A bare `WebFetch` deny or ask rule doesn't apply to those reads. A `domain:` rule covering `claude.ai` or the `*.claudeusercontent.com` content host, such as `WebFetch(domain:claude.ai)` or `WebFetch(domain:*)`, denies each read or prompts before it. An [`Artifact` rule](https://code.claude.com/docs/en/artifacts#disable-artifacts) does the same.
+The two forms also differ on reads of [artifacts](https://code.claude.com/docs/en/artifacts.md), the pages the Artifact tool publishes on claude.ai. A bare `WebFetch` deny or ask rule doesn't apply to Artifact tool reads. A `domain:` rule covering `claude.ai` or the `*.claudeusercontent.com` content host, such as `WebFetch(domain:claude.ai)` or `WebFetch(domain:*)`, denies each read or prompts before it.
When a rule blocks a read, the denial names the rule. Before v2.1.268, a bare `WebFetch` deny rule blocked every artifact read, and a bare ask rule prompted before each one.
diff --git a/content/en/docs/claude-code/platforms.md b/content/en/docs/claude-code/platforms.md
index fa7893b74b..6ddacea57a 100644
--- a/content/en/docs/claude-code/platforms.md
+++ b/content/en/docs/claude-code/platforms.md
@@ -35,8 +35,7 @@ Integrations let Claude work with services outside your codebase.
| [GitHub Actions](https://code.claude.com/docs/en/github-actions.md) | Runs Claude in your CI pipeline | Automated PR reviews, issue triage, scheduled maintenance |
| [GitLab CI/CD](https://code.claude.com/docs/en/gitlab-ci-cd.md) | Same as GitHub Actions for GitLab | CI-driven automation on GitLab |
| [Code Review](https://code.claude.com/docs/en/code-review.md) | Reviews every PR automatically | Catching bugs before human review |
-| [Slack](https://code.claude.com/docs/en/slack.md) | Responds to `@Claude` mentions in your channels, under your own account | Turning bug reports into pull requests from team chat on Pro, Max, and Ultra plans |
-| [Claude Tag](https://claude.com/docs/claude-tag) | Runs `@Claude` as your organization's shared identity with admin-configured access | Shared team access on Team and Enterprise plans, instead of per-user Slack sessions |
+| [Claude Tag](https://claude.com/docs/claude-tag) | Runs `@Claude` as your organization's shared identity with admin-configured access | Shared team access on Team and Enterprise plans |
For integrations not listed here, [MCP servers](https://code.claude.com/docs/en/mcp.md) and [connectors](https://code.claude.com/docs/en/desktop.md#connect-external-tools) let you connect almost anything: Linear, Notion, Google Drive, or your own internal APIs.
@@ -49,7 +48,6 @@ Claude Code offers several ways to work when you're not at your terminal. They d
| [Dispatch](https://code.claude.com/docs/en/desktop.md#sessions-from-dispatch) | Message a task from the Claude mobile app | Your machine (Desktop) | [Pair the mobile app with Desktop](https://support.claude.com/en/articles/13947068) | Delegating work while you're away, minimal setup |
| [Remote Control](https://code.claude.com/docs/en/remote-control.md) | Drive a running session from [claude.ai/code](https://claude.ai/code) or the Claude mobile app | Your machine (CLI, Desktop, or VS Code) | Run [`claude remote-control` or `/remote-control`](https://code.claude.com/docs/en/remote-control#start-a-remote-control-session) | Steering in-progress work from another device |
| [Channels](https://code.claude.com/docs/en/channels.md) | Push events from a chat app like Telegram or Discord, or your own server | Your machine (CLI) | [Install a channel plugin](https://code.claude.com/docs/en/channels.md#quickstart) or [build your own](https://code.claude.com/docs/en/channels-reference.md) | Reacting to external events like CI failures or chat messages |
-| [Slack](https://code.claude.com/docs/en/slack.md) | Mention `@Claude` in a team channel | Anthropic cloud | [Install the Slack app](https://code.claude.com/docs/en/slack.md#setting-up-claude-code-in-slack) with [Claude Code on the web](https://code.claude.com/docs/en/claude-code-on-the-web.md) enabled, on Pro, Max, and Ultra plans | PRs and reviews from team chat |
| [Self-hosted environments](https://code.claude.com/docs/en/self-hosted-environments) | Start a [cloud session](https://code.claude.com/docs/en/claude-code-on-the-web.md) and pick your organization's environment | Your organization's infrastructure | [Deploy runners](https://code.claude.com/docs/en/self-hosted-environments-quickstart.md), on Team and Enterprise plans | Cloud sessions that must run inside your network |
| [Scheduled tasks](https://code.claude.com/docs/en/scheduled-tasks.md) | Set a schedule | [CLI](https://code.claude.com/docs/en/scheduled-tasks.md), [Desktop](https://code.claude.com/docs/en/desktop-scheduled-tasks.md), or [cloud](https://code.claude.com/docs/en/routines.md) | Pick a frequency | Recurring automation like daily reviews |
@@ -74,7 +72,6 @@ If you're not sure where to start, [install the CLI](https://code.claude.com/doc
* [GitHub Actions](https://code.claude.com/docs/en/github-actions.md): run Claude in your CI pipeline
* [GitLab CI/CD](https://code.claude.com/docs/en/gitlab-ci-cd.md): the same for GitLab
* [Code Review](https://code.claude.com/docs/en/code-review.md): automatic review on every pull request
-* [Slack](https://code.claude.com/docs/en/slack.md): send tasks from team chat and get PRs back, on Pro, Max, and Ultra plans
* [Claude Tag](https://claude.com/docs/claude-tag): run `@Claude` as your organization's shared identity on Team and Enterprise plans
### Remote access
diff --git a/content/en/docs/claude-code/plugin-evals.md b/content/en/docs/claude-code/plugin-evals.md
index 1a4e2222e7..3e95a94596 100644
--- a/content/en/docs/claude-code/plugin-evals.md
+++ b/content/en/docs/claude-code/plugin-evals.md
@@ -199,7 +199,7 @@ With both files saved, run the case the way the [quickstart](#create-your-first-
### Set run limits and tools in prompt.md
-Set a case's `max_turns`, `timeout_seconds`, `model`, `tags`, and the `allowed_tools` it may use in `prompt.md` frontmatter; the [prompt.md frontmatter](#prompt-md-fields) reference lists every field and its default.
+Set a case's `max_turns`, `timeout_seconds`, `model`, `tags`, and `allowed_tools` in `prompt.md` frontmatter. For the other fields and the defaults, see the [prompt.md frontmatter](#prompt-md-fields) reference.
Claude receives the body exactly as you wrote it. `@path` mentions in it aren't expanded into file attachments, so if Claude needs to read a file, grant a tool for it in `allowed_tools`.
@@ -338,13 +338,15 @@ Most of the time you run `claude plugin eval .` from the plugin root, which runs
Add `--case ` to filter by case name and `--tag ` to keep cases with any of the given tags.
-Put the target before `--tag`, `--allow-tools`, and `--json`. The first two take a list and `--json` takes an optional path, so each of them reads a target that follows as its own value.
+Put the target before `--tag`, `--allow-tools`, `--disallow-tools`, and `--json`. The first three take a list and `--json` takes an optional path, so each of them reads a target that follows as its own value.
### Grant tools
Runs never stop to ask for permission. Built-in tools that need a grant you didn't give, such as `Bash`, `Write`, `Edit`, `WebFetch`, and `WebSearch`, are removed from the session, so Claude can't call them at all.
-A run allows only the read-only tools the case lists in `allowed_tools`, from `Read`, `Glob`, `Grep`, `NotebookRead`, `Skill`, `AskUserQuestion`, `Agent`, `TodoWrite`, and the task tools `TaskCreate`, `TaskGet`, `TaskList`, `TaskUpdate`, and `TaskStop`, plus whatever you grant with `--allow-tools`. That grant applies to every case in the run. To let cases use `Bash`, `Write`, `Edit`, `WebFetch`, or `WebSearch`, grant them yourself:
+A run pre-approves the read-only tools the case lists in `allowed_tools`, from `Read`, `Glob`, `Grep`, `NotebookRead`, `Skill`, `AskUserQuestion`, `Agent`, `TodoWrite`, and the task tools `TaskCreate`, `TaskGet`, `TaskList`, `TaskUpdate`, and `TaskStop`, plus whatever you grant with `--allow-tools`. That grant applies to every case in the run.
+
+To let cases use `Bash`, `Write`, `Edit`, `WebFetch`, or `WebSearch`, grant them with `--allow-tools`:
```bash theme={null}
claude plugin eval . --allow-tools Write Edit "Bash(npm test *)"
@@ -352,6 +354,10 @@ claude plugin eval . --allow-tools Write Edit "Bash(npm test *)"
When a case asked for a tool you didn't grant, the progress output lists it as `not granted`. Tools on a [mocked](#mock-mcp-servers) MCP server need no grant. Tools on a real plugin MCP server need both the server started, with `--allow-real-servers` or `--mocks off`, and a grant by name, such as `--allow-tools "mcp__plugin_my-plugin_github__*"`; a plugin's MCP tools are named `mcp__plugin____`.
+#### Pre-approve reads from another path
+
+To pre-approve reads under a folder such as `/data`, grant a [`Read` rule](https://code.claude.com/docs/en/permissions#read-and-edit) with a leading `//`, as in `--allow-tools "Read(//data/**)"`. On native Windows, the same grant for `C:\data` is `Read(//c/data/**)`. Listing `Read`, `Glob`, or `Grep` alone doesn't pre-approve every path on your machine.
+
#### Shell grants need a sandbox
When you grant `Bash` in any form, every command runs under Claude Code's [OS-level sandbox](https://code.claude.com/docs/en/sandboxing.md). Writes are confined to the run's workspace, your home directory and Claude Code configuration are unreadable, and network access is limited to domains you grant with `--allow-tools "WebFetch(domain:example.com)"`. If you grant Bash or PowerShell on a machine with no sandbox backend, Claude Code refuses each run rather than running it unconfined, and the case shows a run error and usually scores 0. Native Windows has no backend, so run shell-granting suites under WSL2; on Linux, install `bubblewrap` and `socat` first. See the [sandboxing prerequisites](https://code.claude.com/docs/en/sandboxing.md).
@@ -367,6 +373,20 @@ When a managed key is the cause, the message ends with `this machine's managed s
Ask your administrator whether that setting can change for your machine, or drop the shell grant from that run.
+### Remove a built-in tool from runs
+
+To remove a built-in tool from every case, pass its [exact name](https://code.claude.com/docs/en/tools-reference.md) to `--disallow-tools`. For one case, list the name in that case's [`disallowed_tools`](#prompt-md-fields) field. Requires Claude Code v2.1.299 or later.
+
+If you only omit `Agent` from `allowed_tools`, Claude can still call it.
+
+To remove `Agent` and `TaskStop` from every case, run this in your shell:
+
+```bash theme={null}
+claude plugin eval . --disallow-tools Agent TaskStop
+```
+
+The output lists both tools after `Removed from Claude's tools in every case`.
+
### Command options
This table covers the options for run count, models, scoring, cost, tool grants, mocks, and output. Run `claude plugin eval --help` for the complete list, which also includes `--case`, `--tag`, `--eval-dir`, `--no-scaffold`, `--report`, and `--verbose`.
@@ -381,6 +401,7 @@ This table covers the options for run count, models, scoring, cost, tool grants,
| `--threshold <0..1>` | `1.0` | A case passes when its with-arm score is at least this. Any case below it makes the command exit 1 |
| `--max-cost-usd ` | No ceiling | A ceiling on the run's list-price cost estimate, not on plan usage. Checked before each run starts. Once spent, nothing further starts; runs that already started finish, so spend can pass the ceiling by those runs. If any run is left unstarted, the command exits 2 with partial results |
| `--allow-tools ` | None | Grant tools beyond the read-only set. See [Grant tools](#grant-tools) |
+| `--disallow-tools ` | None | Remove built-in tools from every case. See [Remove a built-in tool from runs](#disallow-tools) |
| `--scaffold` | Off | Run each case's [`scaffold_script`](#add-setup-or-history-with-case-yaml) |
| `--trust-plugin` | Off | Skip the first-run trust prompt for a plugin whose code and suite you'd run yourself. Pass it in CI so the job is never refused by or left waiting at the prompt. See [What a run can access](#security) |
| `--mocks ` | `record` | `record` answers MCP tool calls from [mocks](#mock-mcp-servers), doesn't start the plugin's real servers, and saves agent-mock answers for replay. `off` ignores mocks and starts the plugin's real MCP servers |
@@ -541,13 +562,16 @@ evals/
| `model` | The child session's default | Model for the agent under test. `--model` overrides it |
| `max_turns` | `10` | Turn cap, up to 200. Hitting it is recorded as a run error and usually lowers the score, so set it generously |
| `timeout_seconds` | `300` | Wall-clock cap per run, up to 3600 |
-| `allowed_tools` | `[]` | Tools the case wants, such as `[Read, Glob, Grep, Skill]`. Read-only tools are granted when listed here; for anything else, see [Grant tools](#grant-tools) |
+| `allowed_tools` | `[]` | Tools the case wants, such as `[Read, Glob, Grep, Skill]`. See [Grant tools](#grant-tools) |
+| `disallowed_tools` | | Exact built-in tool names to [remove from this case](#disallow-tools), such as `[Agent, TaskStop]` |
| `append_system_prompt` | | Text appended to the child session's system prompt |
| `env` | `{}` | Extra environment variables for the child session. Keys must match `EVAL_[A-Z0-9_]*`; any other key fails the run. The run inherits only an allowlist from your shell: basics such as `PATH` and locale, proxy and certificate settings, the variables that select and authenticate your model provider, most `ANTHROPIC_*` and `CLAUDE_CODE_*` configuration, and `EVAL_*`. To pass the plugin anything else, such as a toolchain setting, export it as an `EVAL_*` variable |
### case.yaml fields
-`case.yaml` is an alternative or companion to `prompt.md`: it describes a case in YAML and adds the fields that point at other files. It requires `schema_version: "1.1"` and `name`. The `prompt.md` fields `description`, `tags`, `plugins`, `runs`, and `expected_outcome` go at the top level; `model`, `max_turns`, `timeout_seconds`, `allowed_tools`, `append_system_prompt`, and `env` go under `execution:`. When both files exist, `prompt.md` frontmatter overrides the matching `case.yaml` fields, the `prompt.md` body is the prompt, and `graders/*.md` are added after any graders listed in `case.yaml`.
+`case.yaml` is an alternative or companion to `prompt.md`: it describes a case in YAML and adds the fields that point at other files. It requires `schema_version: "1.1"` and `name`. The `prompt.md` fields `description`, `tags`, `plugins`, `runs`, and `expected_outcome` go at the top level; `model`, `max_turns`, `timeout_seconds`, `allowed_tools`, `disallowed_tools`, `append_system_prompt`, and `env` go under `execution:`.
+
+When both files exist, `prompt.md` frontmatter overrides the matching `case.yaml` fields other than `disallowed_tools`, where the two lists combine. The `prompt.md` body is the prompt, and `graders/*.md` are added after any graders listed in `case.yaml`.
These fields exist only in `case.yaml`:
@@ -681,7 +705,9 @@ By default each case runs both with your plugin and without it, and the runs wit
The error is expected, since `Δ` compares your plugin's runs against the baseline. In the JSON result, the baseline runs are under `cases[].arms.without`.
-In runs with your plugin loaded, a case that lists `Agent` in `allowed_tools` can dispatch one of your plugin's agents by its namespaced name, such as `my-plugin:code-reviewer` for the `code-reviewer` agent in a plugin named `my-plugin`. To skip the baseline runs, pass `--ablation none`.
+> [!NOTE]
+>
+> In runs with your plugin loaded, Claude can dispatch one of your plugin's agents by its namespaced name, such as `my-plugin:code-reviewer` for the `code-reviewer` agent in a plugin named `my-plugin`. To skip the baseline runs, pass `--ablation none`.
### Everything scores zero although the right files were produced
diff --git a/content/en/docs/claude-code/plugins/cli-reference.md b/content/en/docs/claude-code/plugins/cli-reference.md
index fdd2f8db12..c34e20a913 100644
--- a/content/en/docs/claude-code/plugins/cli-reference.md
+++ b/content/en/docs/claude-code/plugins/cli-reference.md
@@ -493,7 +493,7 @@ The optional `target` defaults to the current directory and takes any of these f
* An installed plugin as `name` or `name@marketplace`
* `name@skills-dir`
-Put the target before `--tag`, `--allow-tools`, and `--json`. Each of these options takes the words that follow it as its value, so a target written after one of them is read as a tag, a tool name, or the JSON output path instead of as the target.
+Put the target before `--tag`, `--allow-tools`, [`--disallow-tools`](https://code.claude.com/docs/en/plugin-evals#disallow-tools), and `--json`. A target written after one of them can be read as a tag, a tool name, or the JSON output path.
This table lists the options most runs use. Run `claude plugin eval --help` for the complete set, including `--case`, `--tag`, `--output-dir`, `--report`, `--allow-real-servers`, `--keep-temp`, and `--verbose`.
diff --git a/content/en/docs/claude-code/plugins/create.md b/content/en/docs/claude-code/plugins/create.md
index 25225e41e4..1a8392d7a8 100644
--- a/content/en/docs/claude-code/plugins/create.md
+++ b/content/en/docs/claude-code/plugins/create.md
@@ -6,7 +6,7 @@
> Build your first Claude Code plugin from an empty directory, test it without a marketplace, and convert an existing .claude/ setup.
-A plugin is a directory of skills, agents, hooks, and MCP servers, plus a `plugin.json` file, called the manifest, that names the plugin. Claude Code loads the directory as one unit, so you can share it with teammates, install it in several projects, or publish it to a marketplace.
+A plugin is a directory of skills, agents, hooks, and MCP servers, plus a `plugin.json` file, called the manifest, that names the plugin. Claude Code loads the directory as one unit, so you can share it with others, install it in several projects, or publish it to a marketplace.
This page is for people writing their own plugins.
@@ -25,7 +25,7 @@ Start from the section that matches what you already have:
## Decide when to use a plugin
-Skills, agents, hooks, and MCP servers all work standalone in your project or home directory. Keep that standalone setup while it serves one project or only you. Make a plugin when you want to share the setup with teammates, install it in several projects, or publish versioned releases.
+Skills, agents, hooks, and MCP servers all work standalone in your project or home directory. Keep that standalone setup while it serves one project or only you. Make a plugin when you want to share the setup with others, install it in several projects, or publish versioned releases.
When you move standalone skills, agents, hooks, and MCP config into a plugin, their location and names change:
diff --git a/content/en/docs/claude-code/plugins/host-marketplace.md b/content/en/docs/claude-code/plugins/host-marketplace.md
index 351ca51422..778d35c73b 100644
--- a/content/en/docs/claude-code/plugins/host-marketplace.md
+++ b/content/en/docs/claude-code/plugins/host-marketplace.md
@@ -15,7 +15,7 @@ This page is for the person who operates a marketplace.
> These cases are covered on other pages:
>
> * **You haven't written the catalog file yet**: start with [Create a marketplace](https://code.claude.com/docs/en/plugins/create-marketplace.md)
-> * **You're an admin requiring, restricting, or pre-installing marketplaces across your organization's machines**: read [Manage plugins for your organization](https://code.claude.com/docs/en/plugins/org.md)
+> * **You want to require, restrict, or pre-install marketplaces across an organization's machines**: read [Manage plugins for your organization](https://code.claude.com/docs/en/plugins/org.md)
Start with [Host your marketplace](#host-your-marketplace) to pick a host and the command your users run. Read [Keep users up to date](#keep-users-up-to-date) before your first release. Read [Rename or remove a plugin](#rename-or-remove-a-plugin) before you change a plugin's `name`.
@@ -113,7 +113,7 @@ Tell users what each protocol needs on their machine:
For a GitHub Enterprise Server host, users need git access to that host from their machine. See [Plugin marketplaces on GHES](https://code.claude.com/docs/en/github-enterprise-server.md#plugin-marketplaces-on-ghes) for what each Claude Code surface needs to reach a GHES-hosted marketplace.
-If you distribute through **Organization settings > Plugins & skills** on claude.ai instead, your users' git credentials aren't involved. See [Distribute through organization settings](#distribute-through-organization-settings).
+If you distribute through [**Organization settings > Plugins & skills**](https://claude.ai/admin-settings/skills?tab=inventory) on claude.ai instead, your users' git credentials aren't involved. See [Distribute through organization settings](#distribute-through-organization-settings).
### Serve users who have no git-host account
diff --git a/content/en/docs/claude-code/plugins/loading.md b/content/en/docs/claude-code/plugins/loading.md
index 44c99b81b9..43ae53761d 100644
--- a/content/en/docs/claude-code/plugins/loading.md
+++ b/content/en/docs/claude-code/plugins/loading.md
@@ -200,7 +200,7 @@ By default, a plugin enabled only in your project's `.claude/settings.json` does
> [!NOTE]
>
-> If the marketplace isn't on your machine yet, [add it](https://code.claude.com/docs/en/plugins/install.md#add-a-marketplace) before you install. Find its source in the `extraKnownMarketplaces` setting of `.claude/settings.json`, or ask your maintainer.
+> If the marketplace isn't on your machine yet, [add it](https://code.claude.com/docs/en/plugins/install.md#add-a-marketplace) before you install. Find its source in the `extraKnownMarketplaces` setting of `.claude/settings.json`, or ask the project's maintainer.
To install, run this in a shell from the project, using the plugin's key in `enabledPlugins`:
diff --git a/content/en/docs/claude-code/plugins/mods/create.md b/content/en/docs/claude-code/plugins/mods/create.md
index 1de9b85514..4dd811a8b4 100644
--- a/content/en/docs/claude-code/plugins/mods/create.md
+++ b/content/en/docs/claude-code/plugins/mods/create.md
@@ -298,17 +298,23 @@ For `first-mod`, the output includes these lines.
Check the `hooks:` line for the events your module hooks, each with its filter in braces, and `calls:` for every mods API method it calls. If your module reads or sets environment variables, look for `env reads:` and `env writes:` lines too, and `state reads:` and `state writes:` if it uses [`$.state`](https://code.claude.com/docs/en/plugins/mods/interface#keep-state). You also see one line for each hook that can refuse an action, such as `gating hook without .catch: tool.call`, which says whether that hook has a [`.catch` handler](https://code.claude.com/docs/en/plugins/mods/events#handle-a-hook-that-fails).
-If an event you meant to handle is missing from the `hooks:` lines, Claude Code won't call that hook either. The usual cause is a misspelled event name, which the command reports as an error such as `"tool.calls" is not an event`.
+If an event you meant to handle is missing from the `hooks:` lines, Claude Code won't call that hook either. Check each event name against [the types for your build](#get-the-types-for-your-build), because validation doesn't catch every typo. For example, `tool.calls` fails with `"tool.calls" is not an event`, but `tol.call` passes validation and the mod then doesn't load.
Follow these rules so that static analysis can find every hook and call:
-* Write each mods API call in full: `$`, the namespace, then the method, as in `$.store.get('notes')`. You can pass `$` to a function declared at the top level of the same file, and for a function of yours named `loadNotes`, the `calls:` line then reads `$.store.get (via loadNotes)`. Passing `$` to a method, a function defined inside the hook, or a function you import from another of your files fails validation. The `read` and `update` functions that [`$.state`](https://code.claude.com/docs/en/plugins/mods/interface#keep-state) uses are the imports that can take it. Don't assign `$` or one of its namespaces to a variable, destructure it, or index it with a computed name. `const ui = $.ui` fails with `$.ui is used as a value`.
+* Write each mods API call in full: `$`, the namespace, then the method, as in `$.store.get('notes')`. Don't assign `$` or one of its namespaces to a variable, destructure it, or index it with a computed name. `const ui = $.ui` fails with `$.ui is used as a value`.
* Write the event name in each `on` call as a string literal, such as `'tool.call'`. A variable, or a loop over a list of names, fails with `the event name passed to on() is not a string literal`.
* Inside `register`, don't declare a second variable or parameter named `on`. Validation fails with `"on" is declared again (shadowed)`.
* Import only from files inside the plugin directory, by relative path. The one bare import allowed is `claude-code`, for types and a few helpers.
* Use `import` declarations at the top of the file, as in `import { name } from './file.js'`. A dynamic `import()` fails with `a dynamic import(); a hooks module imports its own files with an import declaration`.
* Write every file as an ES module, with `import` and not `require`. The [reference](https://code.claude.com/docs/en/plugins/mods/reference.md#files) lists the file extensions Claude Code loads.
+#### Pass `$` to your functions
+
+You can pass `$` to a function declared at the top level of your hook's file, and to the `read` and `update` functions that [`$.state`](https://code.claude.com/docs/en/plugins/mods/interface#keep-state) uses. For a function named `loadNotes` that calls `$.store.get`, the `calls:` line reads `$.store.get (via loadNotes)`. Passing `$` to a method or to a function defined inside the hook fails validation.
+
+On Claude Code v2.1.299 or later, you can also pass `$` to a function you import from another of your files. Declare it there with the `function` keyword, as in `export function loadNotes($) { ... }`. An imported arrow function fails with `a name bound to a function expression, outside the hook's own file`.
+
### Test the mod
You can write automated tests for a mod and run them from your shell with `claude plugin test`, with no session, sign-in, or network. A test fires the events your hooks handle and checks what the hooks did.
@@ -362,7 +368,7 @@ A mod is a plugin, so you version it in the manifest and people install and upda
Before you do, check the plugin's `name`: `claude plugin validate` fails a name that [looks like one of Anthropic's own](https://code.claude.com/docs/en/plugins/manifest-reference.md#name), such as one that starts with `claude-`. The events and methods can change between releases, so your README is the place to say which Claude Code version you tested with.
-Keep developing against the directory with `--plugin-dir`, not against an installed copy. Claude Code caches an installed plugin by version, so your edits don't reach the installed copy until you increment the version and install again.
+Keep developing against the directory with `--plugin-dir`, not against an [installed copy](https://code.claude.com/docs/en/plugins/loading.md#in-place-and-copied-plugins).
## Next steps
diff --git a/content/en/docs/claude-code/plugins/mods/events.md b/content/en/docs/claude-code/plugins/mods/events.md
index 23c39e5170..d55fc7feb5 100644
--- a/content/en/docs/claude-code/plugins/mods/events.md
+++ b/content/en/docs/claude-code/plugins/mods/events.md
@@ -46,7 +46,9 @@ The line now appears after each tool finishes. Claude reads the same result eith
### Rewrite an event
-To change what Claude Code acts on, such as the text of a prompt, call `next` with a modified copy of the event. The event itself is immutable: it's deeply frozen, and assigning to a field throws. This hook trims each prompt before it's sent:
+To change what Claude Code acts on, call `next` with a modified copy of the event.
+
+This hook trims a prompt before it's sent:
```javascript theme={null}
on('prompt.submit', async ($, e, next) => {
@@ -55,7 +57,7 @@ on('prompt.submit', async ($, e, next) => {
})
```
-Later handlers and Claude Code receive the trimmed prompt and never see the original. You can also change the result: `await next(e)`, then return a copy of the result with a field replaced.
+For a prompt typed as plain text, later handlers and Claude receive the trimmed prompt.
### Answer an event
@@ -150,7 +152,7 @@ Your hook can also change a call, retry it, answer it itself, or withhold its re
* **Answer the call yourself**: return an object with a `result` field, without calling `next`, and for a built-in tool, give `result` the shape that tool's own result has in [the types for your build](https://code.claude.com/docs/en/plugins/mods/create.md#get-the-types-for-your-build). No permission prompt appears and the tool doesn't run, so the result you return is all Claude learns about what happened.
* **Withhold the result from Claude**: return `{ deny: reason }` after `await next(e)`. Claude reads your reason in place of what `next` returned. When the tool ran, the deny keeps its result from Claude and undoes nothing the tool did. When the tool ran and succeeded, the reason follows a note such as `Bash ran, and a plugin withheld its result:`.
-Hooks in your organization's [managed settings](https://code.claude.com/docs/en/server-managed-settings.md) run before any mod's `tool.call` hook. When a managed hook blocks the call, no mod's `tool.call` hook runs for that call.
+Hooks in [managed settings](https://code.claude.com/docs/en/server-managed-settings.md) run before any mod's `tool.call` hook. When a managed hook blocks the call, no mod's `tool.call` hook runs for that call.
#### Hold a tool call until the user decides
@@ -260,15 +262,15 @@ To limit which calls your hook handles by [`e.isReadOnly`](#check-whether-a-tool
### Rewrite or add to a prompt
-A `prompt.submit` hook sees each prompt before the turn starts, so it can rewrite the text or add to it. `e.text` is what was typed.
+To rewrite a prompt or add to it, handle `prompt.submit`, read the prompt from `e.text`, and return a value from this table:
| To do this | Return this |
| :- | :- |
-| Rewrite the prompt. The transcript and your [prompt history](https://code.claude.com/docs/en/interactive-mode.md#command-history) show the new text. | `next({ ...e, text: newText })` |
+| Rewrite a prompt typed as plain text. The transcript and your [prompt history](https://code.claude.com/docs/en/interactive-mode.md#command-history) show the new text. | `next({ ...e, text: newText })` |
| Add text only Claude reads, after the prompt | `next({ ...e, context: [...(e.context ?? []), extraText] })` |
| Stop the prompt from being sent | `{ drop: 'the reason' }` |
-This hook adds the current branch name for Claude whenever a prompt mentions a pull request:
+This hook adds the current branch name for Claude when a prompt mentions a pull request:
```javascript theme={null}
on('prompt.submit', async ($, e, next) => {
@@ -284,10 +286,11 @@ on('prompt.submit', async ($, e, next) => {
When you send a prompt such as `open a PR for this change`, your message looks the same in the transcript, and Claude also reads a line such as `Current branch: feature/auth` after it. A prompt that doesn't mention a pull request goes through unchanged, and `git` doesn't run.
-To stop a prompt, return `{ drop: 'the reason' }` without calling `next`. The text goes back into the user's prompt input, and they see `Prompt dropped by a hook:` followed by your reason, so address the reason to them. The prompt still goes through in these cases:
+To stop a prompt, return `{ drop: 'the reason' }` without calling `next`. The text goes back into the user's prompt input, and they see `Prompt dropped by a hook:` followed by your reason, so address the reason to them. Don't rely on `drop` to stop every prompt. For example, a prompt goes through in these cases:
* **Your hook returns a `drop` after its `next(e)` call let the prompt through**: the turn still runs, and the hook [fails](#handle-a-hook-that-fails) with a message that includes `a drop after its next() was answered`
* **Your hook throws or times out**: Claude Code skips it and sends the prompt. [Add a `.catch` handler](#handle-a-hook-that-fails) so that a failure doesn't send a prompt the hook would have stopped.
+* **The prompt is the `/command` for a [skill with `context: fork`](https://code.claude.com/docs/en/skills#run-skills-in-a-subagent)**: your hook doesn't run. To stop the command, return `{ text: 'the reason' }` from a [`command.run`](https://code.claude.com/docs/en/plugins/mods/api#add-a-command) hook without calling `next`.
[Other events](https://code.claude.com/docs/en/plugins/mods/reference.md#prompts-and-what-claude-reads) cover the rest of what Claude reads: `prompt.section` for each section of the system prompt, `prompt.context` for the context sent with the first message, and `skill.prompt` for a skill's text. To change a section after a conversation has started, see [Send a changed system prompt section or tool description](https://code.claude.com/docs/en/plugins/mods/reference.md#break-prompt-cache). In a `skill.prompt` hook, you can also read [which plugin or file the skill came from](https://code.claude.com/docs/en/plugins/mods/reference.md#skill-prompt-fields).
@@ -297,9 +300,9 @@ A turn is everything Claude does in answer to one prompt. Handle `turn.start`, `
| Event | When it fires | What a hook can do |
| :- | :- | :- |
-| `turn.start` | A turn begins | Observe. `e.turnId` identifies the turn in the other two events. |
+| `turn.start` | A turn begins. A subagent's turn fires it with `e.agentId` set, which requires Claude Code v2.1.299 or later. | Observe. `e.turnId` identifies the turn in the other two events. |
| `turn.step` | Claude Code is about to send one request to the model. A turn with tool calls has several. `e.agentId` is set for a subagent's request. | Read each request's token usage, send it to a different model with `next({ ...e, model })`, or answer without calling the model |
-| `turn.complete` | The turn ended, including a turn the user interrupted, where `e.isAborted` is `true`. `e.answer` is Claude's final text, `e.durationMs` how long it took, and `e.usage` the turn's token totals. A subagent's turn fires it with `e.agentId` set. | Observe, or return an object with a `text` field, such as `{ text: 'Done in 12 seconds' }`, to show a line under the answer |
+| `turn.complete` | The turn ended, including a turn the user interrupted, where `e.isAborted` is `true`. `e.answer` is Claude's final text, `e.durationMs` how long it took, and `e.usage` the turn's token totals. A subagent's turn fires it with `e.agentId` set. | Observe. In the main conversation, return an object with a `text` field, such as `{ text: 'Done in 12 seconds' }`, to show a line under the answer. |
Write a `turn.step` hook as an async generator, because the event streams. `yield* next(e)` forwards the response as it streams and evaluates to the finished result. This hook logs how much of each request the Claude API served from the [prompt cache](https://code.claude.com/docs/en/prompt-caching.md):
diff --git a/content/en/docs/claude-code/plugins/mods/interface.md b/content/en/docs/claude-code/plugins/mods/interface.md
index 2d537a7837..dd7822376f 100644
--- a/content/en/docs/claude-code/plugins/mods/interface.md
+++ b/content/en/docs/claude-code/plugins/mods/interface.md
@@ -201,21 +201,21 @@ A mod can also [place a row of its own in the transcript](#place-a-row-in-the-tr
### Change what Claude Code already draws
-Claude Code draws most of its interface itself: messages, tool call rows, the spinner, and more. Each of those parts is a render site too, so a mod can restyle or replace it. To change one, filter your `ui.render` hook on its name from this table:
+To change a part Claude Code draws, filter your `ui.render` hook on a render site from this table:
| Site | What it is |
| :- | :- |
| `UserMessage`, `AssistantMessage` | A message in the transcript |
| `ToolUse`, `ToolResult`, `ToolGroup` | A tool call's row, its result, and a collapsed group of calls |
| `CommandOutput` | The row a command printed |
-| `AskUserQuestion` | The dialog Claude opens to ask you a question |
+| `AskUserQuestion` | The dialog Claude opens to ask you a question. A `ui.render` hook can't replace it. |
| `Spinner`, `ToolProgress`, `TurnDuration` | Status lines for a turn: the line that animates while Claude works, a running tool's live progress line, and the line that closes a turn |
| `InfoNotice`, `SessionMode`, `PromptHint` | Status lines under the logo, the mode labels in the footer, and the hint line under the prompt |
| `AgentRow` | A subagent's or teammate's row in the agent panel |
-`Pane`, `AbovePrompt`, `AskUserQuestion`, `Spinner`, `UserMessage`, `AssistantMessage`, and the tool call sites work in the terminal, the Desktop app, and the VS Code extension. The [render sites table](https://code.claude.com/docs/en/plugins/mods/reference.md#render-sites) lists where each of the others is raised.
+`Pane`, `AbovePrompt`, `AskUserQuestion`, `Spinner`, `UserMessage`, `AssistantMessage`, and the tool call sites work in the terminal, the Desktop app, and the VS Code extension. The [render sites table](https://code.claude.com/docs/en/plugins/mods/reference.md#render-sites) lists where each of the others is raised. To change the bubbles and font of messages in the Desktop app without a `ui.render` hook, [style the messages with a theme](#style-messages-in-the-desktop-app).
-At a site Claude Code already draws, your hook can change a detail, replace the drawing, or leave it alone. Select a tab to see each one applied to the spinner. The examples read a `calls` variable that another hook counts, as in the [tutorial mod](https://code.claude.com/docs/en/plugins/mods/create.md#write-a-mod-yourself).
+Select a tab to see a hook change a spinner detail, replace the spinner, or leave it alone. The examples read a `calls` variable that another hook counts, as in the [tutorial mod](https://code.claude.com/docs/en/plugins/mods/create.md#write-a-mod-yourself).
> [tab] Change a detail
>
@@ -439,7 +439,130 @@ Check what `backdrop` takes, what the call's result tells you, and what other mo
* **The `backdrop` fields**: `scene` is a [name](https://code.claude.com/docs/en/plugins/mods/reference.md#limits) you choose for a backdrop your hook draws. For the other fields and `overrideColorScheme`, see [the types for your build](https://code.claude.com/docs/en/plugins/mods/create.md#get-the-types-for-your-build).
* **Whether the backdrop is drawn**: `$.theme.set` resolves with `isDrawn: true` when a Desktop or mobile app connected to the session says it draws backdrops. Otherwise `isDrawn` is `false` and `reason` says why.
-* **One theme for each session**: a mod that calls `$.theme.set` replaces the session's backdrop and [colors](#change-the-colors-of-the-desktop-app), and a mod that calls `$.theme.clear()` removes them, whichever mod set them. Call `$.theme.clear()` only when the user asks for it.
+* **One theme for each session**: a mod that calls `$.theme.set` replaces the session's backdrop, [colors](#change-the-colors-of-the-desktop-app), [message style](#style-messages-in-the-desktop-app), and [sound](#add-sound-to-a-theme), and a mod that calls `$.theme.clear()` removes them, whichever mod set them. Call `$.theme.clear()` only when the user asks for it.
+
+### Animate a backdrop with a shader
+
+To make a [backdrop](#put-a-backdrop-behind-the-conversation) that moves and follows the user's pointer in the Desktop app's Code tab, wrap an `Svg` in a [`Shader`](https://code.claude.com/docs/en/plugins/mods/reference#elements) element. The element names a shader file, which is code that computes each pixel's color on the GPU. The app draws the result over the `Svg`. `Shader` requires Claude Code v2.1.326 or later in the Code tab, so [check the version there](https://code.claude.com/docs/en/desktop.md#claude-code-version-in-the-code-tab) first.
+
+These steps create a mod named `glow`. It draws a light under the pointer, and a click on the backdrop changes the color of the light.
+
+**1. Save the manifest and hooks.json**
+
+From [Write a mod yourself](https://code.claude.com/docs/en/plugins/mods/create.md#write-a-mod-yourself), save `.claude-plugin/plugin.json` and `hooks/hooks.json` in `~/.claude/skills/glow/`, and change `first-mod` to `glow` in both files. A mod [under `~/.claude/skills/`](https://code.claude.com/docs/en/plugins/create#scaffold-a-plugin-that-loads-every-session) loads when you start a session.
+
+**2. Write the shader**
+
+Save this file as `~/.claude/skills/glow/hooks/glow.ts`. Claude Code provides the `claude-code/shader` module it imports.
+
+The shader draws a light around the pointer, blue when `warm` is `0` and orange when it's `1`:
+
+```typescript glow/hooks/glow.ts theme={null}
+import {
+ length, max, min, mix, picture, pointers, shader, smoothstep, values, vec2, vec3, vec4,
+} from 'claude-code/shader'
+
+// Declare each number the mod sets through the Shader's values, with its range
+const { warm } = values({ warm: [0, 1] })
+
+// This function runs once for every pixel and returns that pixel's color
+const glow = picture(pixel => {
+ let light = 0
+ // The loop sees the mouse, each finger, and for one second each pointer that lifted
+ // A mouse that rests for half a second counts as lifted
+ for (const pointer of pointers) {
+ // Subtracting two positions subtracts their x and their y, in points
+ // The result is typed as a plain number, so vec2() marks it as a position again
+ const near = smoothstep(200, 0, length(vec2(pixel.point - pointer.at)))
+ // A pointer fades in over a quarter second, then out as gone counts from 0 to 1
+ const fade = min(pointer.age * 4, 1) * (1 - pointer.gone)
+ light = max(light, near * near * fade)
+ }
+ const color = mix(vec3(0.25, 0.55, 1), vec3(1, 0.45, 0), warm)
+ const alpha = 0.7 * light
+ // The color is premultiplied: red, green and blue are multiplied by alpha
+ return vec4(color * alpha, alpha)
+})
+
+// A shader runs its passes in order, and this one has a single pass
+export default shader({ passes: [glow] })
+```
+
+**3. Draw the backdrop**
+
+Save this file as `~/.claude/skills/glow/hooks/register.js`. The mod sets the theme when a session starts, and draws a `Shader` with one `Svg` child.
+
+The mod's [`ui.pointer`](https://code.claude.com/docs/en/plugins/mods/reference#interface) hook runs after a click, flips `warm`, and asks for a redraw:
+
+```javascript glow/hooks/register.js theme={null}
+const STILL =
+ ''
+
+let warm = 0
+
+export function register(on) {
+ on('session.start', async ($, e, next) => {
+ // The scene is a name you choose for the backdrop your hook draws
+ await $.theme.set({ backdrop: { scene: 'glow' }, overrideColorScheme: 'dark' })
+ return next(e)
+ })
+
+ on('ui.render', { component: 'Backdrop' }, async ($, e, next) => {
+ // This hook runs for every mod's backdrop, so pass on the others
+ if (e.props.plugin !== $.plugin.name || e.props.scene !== 'glow') return next(e)
+ const { Shader, Svg } = $.ui.resolve(e)
+ // module must be a string literal, relative to this file
+ return Shader({
+ module: './glow.ts',
+ values: { warm },
+ children: [Svg({ source: STILL, alt: 'A dark blue background' })],
+ })
+ })
+
+ on('ui.pointer', async ($, e, next) => {
+ warm = 1 - warm
+ $.ui.invalidate('ui.render')
+ return next(e)
+ })
+}
+```
+
+**4. Check the shader**
+
+This step is optional and needs [the CLI](https://code.claude.com/docs/en/quickstart.md), which has its own version number. Go to `~/.claude/skills/` in your shell, run `claude plugin validate ./glow`, and look for `shader hooks/glow.ts: runs on any GPU` in the output. If the output names a line in `glow.ts` as an error, fix that line.
+
+A CLI older than v2.1.326 reports `"ui.pointer" is not an event`. If yours does, [update it](https://code.claude.com/docs/en/setup.md#update-claude-code) and run the command again.
+
+**5. Try the backdrop**
+
+Start a new local session in the Code tab by sending a message. The background turns dark blue. If it doesn't, turn off any other mod that sets a theme and start a new session, because a session has [one theme](#put-a-backdrop-behind-the-conversation). If the background still doesn't change, [find out why the mod does nothing](https://code.claude.com/docs/en/plugins/mods/troubleshoot.md#find-out-why-a-mod-does-nothing).
+
+Move the pointer. A blue light follows it, and fades when you stop. If no light appears, see [Fix a backdrop that shows only the `Svg`](#fix-a-backdrop-that-shows-only-the-svg). Click the empty space beside the conversation, then move the pointer again. The light is now orange. If it's still blue, answer any permission prompt or question from Claude, then click again quickly without dragging, away from messages and buttons.
+
+To try a change, save `glow.ts` or `register.js`, and the mod reloads in the running session. If the change doesn't show within a few seconds, send a message to load it. To turn the mod off, move `glow` out of `~/.claude/skills/` and start a new session.
+
+Follow these rules for pointer input, the shader, and the `Svg` when you build on the example:
+
+* **Clicks**: your mod gets `ui.pointer` when it has set the theme and the user clicks a part of the backdrop that the app doesn't cover. The app sends two clicks a second at most and drops the rest. To draw a press effect without changing your mod's state, use `pointer.down * (1 - pointer.gone)` in the shader, which is `1` during a press and then fades.
+* **Click position**: `e.x` and `e.y` run from `0` to `1`, starting at the backdrop's top left. In the shader, `pixel.uv` has the same scale and starts at the bottom left. To draw at the click, send `e.x` and `1 - e.y` through `values`.
+* **Movement**: read pointer movement from `pointers` in the shader, because moving the pointer doesn't fire `ui.pointer`. For motion over time, import `time`, the seconds since the shader started.
+* **Presses**: to time an effect from a press, check every pointer in the loop for `down` at `1` and read its `age`, the seconds since the press. A press arrives as a new pointer, so it isn't always first in `pointers`.
+* **`values`**: declare up to eight numbers in the shader file, and set them with the `values` prop. When your mod's state changes, call `$.ui.invalidate('ui.render')` to send the new numbers.
+* **The shader file**: write a subset of TypeScript without `while` loops, recursion, or imports from other files. For the full rules and the functions you can call, [get the type definitions with the CLI](https://code.claude.com/docs/en/plugins/mods/create.md#get-the-types-for-your-build) and search them for `claude-code/shader`.
+* **The `Svg`**: draw it as a finished picture, because users see it alone when the shader can't run.
+
+#### Fix a backdrop that shows only the `Svg`
+
+Check reduced motion first, because it keeps any shader from running, then these other causes:
+
+* **Reduced motion is on**: if you don't need reduced motion, turn it off in your system settings and set **Motion** to **System** in the Desktop app's **Settings > General**.
+* **The shader file breaks a rule**: in your shell, run `claude plugin validate` on the mod's directory and fix the line the output names.
+* **The shader is too heavy for the GPU**: if `claude plugin validate` prints `needs a fast GPU`, simplify the shader until the output says `runs on any GPU`. Start with the lines the output ranks as costing the most.
+* **The `Svg` holds content that blocks shaders**: replace the `Svg` source with `STILL` from the [`glow` example](#animate-a-backdrop-with-a-shader). If the shader then runs, restore your source without the content that blocks it, such as a lighting filter or `feTile`.
+* **A shader from any mod ran and then stopped**: after the app stops a shader for flashing or running too slowly, it starts no shader for up to five minutes. Keep large changes in brightness or color under three a second, or simplify a slow shader. Then wait five minutes and start a new session.
### Change the colors of the Desktop app
@@ -510,7 +633,7 @@ If you use a [third-party provider](https://code.claude.com/docs/en/third-party-
* **Old version**: [update the Desktop app](https://code.claude.com/docs/en/desktop.md#claude-code-version-in-the-code-tab), restart it, and start a new local session in the Code tab. If Claude wrote the mod, ask for it again there.
* **Mod not loaded**: if Claude wrote the mod, see when it loads in [Ask Claude for a mod](https://code.claude.com/docs/en/plugins/mods/create.md#ask-claude-for-a-mod). If you wrote it, compare your files and their paths with [Write a colors mod yourself](#write-a-colors-mod-yourself).
* **Refused theme**: ask Claude to run the mod's [`makeColors`](#write-a-colors-mod-yourself) call. If the call throws an error, or its `problems` list has an entry that starts `Desktop won't paint this theme`, have Claude fix the theme. If you installed the mod, send what Claude finds to its author.
-* **Another `$.theme` call**: when any mod in the session calls `$.theme.set` or `$.theme.clear()`, the colors and [backdrop](#put-a-backdrop-behind-the-conversation) from an earlier call disappear. In your own mod, pass `colors` and `backdrop` in the same `$.theme.set` call. Use one mod at a time that sets a theme.
+* **Another `$.theme` call**: when any mod in the session calls `$.theme.set` or `$.theme.clear()`, the colors, [backdrop](#put-a-backdrop-behind-the-conversation), [message style](#style-messages-in-the-desktop-app), and [sound](#add-sound-to-a-theme) from an earlier call disappear. In your own mod, pass every part of the theme in the same `$.theme.set` call. Use one mod at a time that sets a theme.
### Remove mod colors from the Desktop app
@@ -530,6 +653,193 @@ Start a new local session in the Code tab.
If the colors are still there, open **Settings** from the Code tab, and search there for `code appearance`. Open the result, and select **Remove colors**.
+### Style messages in the Desktop app
+
+To give messages in the Desktop app's Code tab their own bubbles, font, and text size, write a mod that calls `$.theme.set` with a `style` object. This requires Claude Code v2.1.329 or later in the Code tab, so [check the version there](https://code.claude.com/docs/en/desktop.md#claude-code-version-in-the-code-tab) first. The terminal, the VS Code extension, and the mobile app show messages without the style.
+
+This mod sets a serif font for messages and puts each message in a rounded bubble. If `$.theme.set` rejects the style, the mod writes the error to the transcript:
+
+```javascript theme={null}
+const style = {
+ Text: { fontFamily: ['serif'], fontSize: 15, lineHeight: 22 },
+ // The corners run top left, top right, bottom right, bottom left
+ UserMessage: { backgroundColor: '#1d5fd1', color: '#ffffff', radius: [18, 18, 4, 18], padding: 12 },
+ AssistantMessage: { backgroundColor: '#e9e9ec', color: '#1c1c1f', radius: [18, 18, 18, 4], padding: 12 },
+}
+
+export function register(on) {
+ on('session.start', async ($, e, next) => {
+ try {
+ await $.theme.set({ style })
+ } catch (error) {
+ $.ui.log(error.message)
+ }
+ return next(e)
+ })
+}
+```
+
+To try the example:
+
+**1. Save the mod**
+
+Save the code as `~/.claude/skills/bubbles/hooks/register.js`. From [Write a mod yourself](https://code.claude.com/docs/en/plugins/mods/create.md#write-a-mod-yourself), save `.claude-plugin/plugin.json` and `hooks/hooks.json` in `~/.claude/skills/bubbles/`, and change `first-mod` to `bubbles` in both files.
+
+**2. Turn off other theme mods**
+
+[Turn off any other mod](#remove-mod-colors-from-the-desktop-app) that calls `$.theme.set`, because each call replaces the whole theme. To use a style and colors together, see [Combine a style with colors or a backdrop](#combine-a-style-with-colors-or-a-backdrop).
+
+**3. Check the style**
+
+Start a new local session in the Code tab and send a message. Your message appears in a blue bubble and Claude's reply in a light gray one, both in a serif font. If nothing changes, see [Fix a missing message style](#fix-a-missing-message-style-in-the-desktop-app).
+
+To take the style off, move `~/.claude/skills/bubbles/` out of `~/.claude/skills/` and start a new session.
+
+#### Combine a style with colors or a backdrop
+
+To use a message style with [colors](#write-a-colors-mod-yourself) or a [backdrop](#put-a-backdrop-behind-the-conversation), pass them all in one call from one mod, as in `$.theme.set({ colors: theme, style })`. Claude Code versions before v2.1.329 reject a call that includes `style` or [`sound`](#add-sound-to-a-theme). To keep your colors and backdrop on those versions, catch the error, log it, and repeat the call without `style` and `sound`.
+
+#### Choose which parts of the conversation to style
+
+Each key in the `style` object you pass to `$.theme.set` names a part of the conversation.
+
+| Key | What it styles | What you can set |
+| :- | :- | :- |
+| `Text` | The words of your messages and Claude's replies, where `UserMessage` or `AssistantMessage` doesn't set the same property | Text properties |
+| `Heading` | Headings in Claude's replies, which otherwise use the reply's font | Text properties |
+| `UserMessage` | Your messages | Text properties, box properties, and `rotate` |
+| `AssistantMessage` | Each block of text in Claude's replies | Text properties, box properties, and `rotate` |
+| `ToolUse` | A tool call's row | `color`, `fontFamily`, and box properties |
+
+Other parts keep the app's look, such as permission prompts, the questions Claude asks in a dialog, code blocks, and the prompt box.
+
+Write sizes as numbers of points, such as `lineHeight: 22`. For the format and range of every value, see `ThemeStyle` in [the types for your build](https://code.claude.com/docs/en/plugins/mods/create.md#get-the-types-for-your-build).
+
+* **Text properties**: `color`, `fontFamily`, `fontSize`, `fontWeight`, `italic`, `letterSpacing`, and `lineHeight`. Write `fontFamily` as a one-item list, such as `['serif']`. The item must be `sans`, `serif`, `mono`, `cursive`, or `code`, and `$.theme.set` rejects any other value. Use `code` for the app's code font.
+* **Box properties**: `backgroundColor`, `radius`, `borderColor`, `borderWidth`, `shadow`, `fill`, and padding such as `padding` or `paddingTop`. Write a shadow as `{ x: 0, y: 2, blur: 8, color: 'rgba(0, 0, 0, 0.15)' }`. Use `fill` to draw a gradient or a vector drawing behind the text, as in `{ gradient: { stops: ['#dbe8ff', '#c4d6f5'] } }`.
+* **`rotate`**: the number of degrees to tilt a message, from `-3` to `3`
+
+To vary the bubbles, set `UserMessage` or `AssistantMessage` to a list of up to four objects. Each message gets one of the objects, in no set order, and keeps it.
+
+#### Set message colors for light mode and dark mode
+
+To give messages different colors in light mode and dark mode, add these message colors to `inputs.light` and `inputs.dark` in the theme that [`makeColors`](#write-a-colors-mod-yourself) returns:
+
+* **Your messages**: `bg-user-message` for the bubble and `text-user-message` for the text
+* **Claude's replies**: `bg-assistant-message` for the bubble and `text-assistant-message` for the text
+
+Before you add them to a mod that passes `style`, remove `color` and `backgroundColor` from the matching `UserMessage` or `AssistantMessage`, because those properties take precedence over message colors.
+
+This example colors your messages in the `paper` mod from [Write a colors mod yourself](#write-a-colors-mod-yourself). In that mod's `register.js`, add these lines between the `makeColors` call and the `register` function:
+
+```javascript theme={null}
+Object.assign(theme.inputs.light, { 'bg-user-message': '#d9c4a0', 'text-user-message': '#2a241d' })
+Object.assign(theme.inputs.dark, { 'bg-user-message': '#4a3a2b', 'text-user-message': '#f0e7d7' })
+```
+
+Put `paper` under `~/.claude/skills/`, and move other theme mods, such as `bubbles`, out of that directory. Start a new local session and send a message. Your bubble is tan in light mode and brown in dark mode. If it isn't, see [Fix missing mod colors](#fix-missing-mod-colors-in-the-desktop-app) and [Fix a missing message style](#fix-a-missing-message-style-in-the-desktop-app).
+
+#### Fix a missing message style in the Desktop app
+
+If all or part of a message style doesn't appear in the Code tab, check for these causes:
+
+* **Mod not loaded**: [find out why the mod does nothing](https://code.claude.com/docs/en/plugins/mods/troubleshoot.md#find-out-why-a-mod-does-nothing)
+* **Rejected call**: catch the error from `$.theme.set` and write it to the transcript, as the [example](#style-messages-in-the-desktop-app) does. If the error includes `theme.set does not know the attribute "style"`, [update Claude Code](https://code.claude.com/docs/en/plugins/mods/overview.md#turn-mods-on-or-off) in the app that shows the error. If it names a property, as in `style.Text.fontSize is a number of points, 11 to 28`, change that property's value.
+* **Another `$.theme` call**: if any mod in the session calls `$.theme.clear()`, or calls `$.theme.set` without your `style`, the style disappears. In your own mod, [pass the whole theme in one call](#combine-a-style-with-colors-or-a-backdrop). Turn off any other mod that sets a theme.
+* **Low contrast**: when text has less than 3:1 contrast with its background, that message, heading, or tool row shows in the app's own colors. `$.theme.set` reports no error. Pick colors that are further apart, and check both light mode and dark mode.
+* **Backdrop**: over a [backdrop](#put-a-backdrop-behind-the-conversation), a text color shows only on a background that's solid or nearly solid. Set a solid `backgroundColor` on `UserMessage`, `AssistantMessage`, and `ToolUse` wherever you color their text, including through `Text` or `Heading`.
+* **Accessibility settings**: with higher contrast turned on in the app or the operating system, messages show without the style. With an accessibility font such as OpenDyslexic, messages keep that font. To see the whole style, turn these settings off.
+* **Open prompt**: a new style waits while a permission prompt or a question from Claude is on screen. Answer it to see the style.
+
+### Add sound to a theme
+
+To give your theme background sound and short sounds for events in the Desktop app's Code tab, pass `sound` to [`$.theme.set`](https://code.claude.com/docs/en/plugins/mods/reference#mods-api-methods). `sound` requires Claude Code v2.1.329 or later in the Code tab, so [check the version there](https://code.claude.com/docs/en/desktop.md#claude-code-version-in-the-code-tab) first. The terminal, the VS Code extension, and the mobile app play no theme sound.
+
+You describe each sound as layers of tones and noise, with no audio file, and the Desktop app makes the audio.
+
+This mod sets dark mode, plays soft noise in the background, and plays three bell notes when Claude finishes a turn:
+
+```javascript theme={null}
+// The rest of the theme, which still works without sound
+const look = { overrideColorScheme: 'dark' }
+
+const sound = {
+ ambience: {
+ // A layer with drone: true plays without a break
+ // A layer with scatter plays now and then
+ // gain is how loud a layer is, from 0 to 1
+ layers: [{ wave: 'brown', drone: true, gain: 0.2 }],
+ },
+ cues: {
+ done: {
+ // step is the seconds from one note to the next
+ layers: [{ wave: 'bell', notes: ['C5', 'E5', 'G5'], step: 0.15, gain: 0.3 }],
+ },
+ },
+}
+
+export function register(on) {
+ on('session.start', async ($, e, next) => {
+ try {
+ await $.theme.set({ ...look, sound })
+ } catch (error) {
+ // A refused call sets nothing, so set the theme again without sound
+ $.ui.log(error.message)
+ await $.theme.set(look)
+ }
+ return next(e)
+ })
+}
+```
+
+For the other waves, fields, and ranges, see `ThemeSound` in [the types for your build](https://code.claude.com/docs/en/plugins/mods/create.md#get-the-types-for-your-build). To hear the example:
+
+**1. Start a session**
+
+Put the code in a [mod](https://code.claude.com/docs/en/plugins/mods/create.md#write-a-mod-yourself), and save the mod's directory [under `~/.claude/skills/`](https://code.claude.com/docs/en/plugins/create#scaffold-a-plugin-that-loads-every-session) so that it loads when you start a session. In the Code tab, send a first message to [start a local session](https://code.claude.com/docs/en/desktop.md#start-a-session). If no speaker button appears in the session's title bar, see [Fix a missing speaker button](#fix-a-missing-speaker-button).
+
+**2. Turn on theme sound**
+
+If the speaker button is crossed out, select it. The three notes play once to confirm that sound is on, and the noise fades in. To change the volume or turn off the noise, open the menu beside the button.
+
+**3. Hear the cue**
+
+Send another message. The three notes play when Claude finishes.
+
+#### When each theme sound plays
+
+Theme sound is off until the user turns it on with the speaker button. It then stays on for other sessions and themes on that device until the user turns it off, signs out, or switches accounts. Choose a `gain` that suits a user who hears your theme as soon as it loads.
+
+The Desktop app plays each sound by itself at these moments, and a mod can't trigger one:
+
+| Sound | When it plays |
+| :- | :- |
+| `ambience` | While the session's window has focus. It pauses after 10 minutes with no input and resumes at the next input. |
+| `cues.send` | The user sends a message |
+| `cues.tool` | Claude starts a tool call |
+| `cues.compact` | The conversation is compacted |
+| `cues.done` | Claude finishes a turn, unless the user stopped it or queued another message |
+| `cues.ask` | A permission prompt or a question appears |
+| `cues.error` | A turn ends in an error |
+| `cues.click` | The user clicks the background where no message, control, or panel covers it |
+
+When the user turns on sound or picks a volume, they also hear one cue, the first the theme has in this order: `send`, `done`, `tool`, `compact`, `ask`, `error`.
+
+Expect fewer of the table's sounds during an unanswered prompt, during speech, and in a window without focus. To hear all of them again:
+
+* **A permission prompt or a question is waiting**: answer it. Until then, only `cues.ask` can play.
+* **Dictation, a voice call, or a reply read aloud is in progress**: end it. Until then, the ambience and cues stay silent.
+* **The window doesn't have focus**: click in the window. Until then, only `cues.done` can play.
+
+#### Fix a missing speaker button
+
+If the session's title bar shows no speaker button, check your version, whether the mod loaded, and the `$.theme` calls in the session:
+
+* **Old version**: if `/status` in the Code tab shows a version before v2.1.329, [update the Desktop app](https://code.claude.com/docs/en/desktop.md#claude-code-version-in-the-code-tab) and start a new local session. On those versions, the call fails with an error such as `theme.set does not know the attribute "sound"`.
+* **Mod not loaded**: follow [Find out why a mod does nothing](https://code.claude.com/docs/en/plugins/mods/troubleshoot.md#find-out-why-a-mod-does-nothing).
+* **Value out of range**: the call fails, so with the example's `catch` block the theme loads without sound. Find the error that the example logs in the transcript, and fix the field it names, as in `sound.cues.done.layers[0].gain is a number, 0 to 1`.
+* **Another `$.theme` call**: when any mod makes a later `$.theme.set` call without `sound`, or calls `$.theme.clear()`, the sound and the button disappear. In your own mod, pass `sound` in the same call as the rest of the theme. Turn off any other mod that sets a theme.
+
## Build a tree from elements
What a `ui.render` hook returns is an element tree: a description of what to draw, made of boxes, text, and controls nested inside each other.
@@ -613,6 +923,7 @@ The [interface gallery](https://code.claude.com/docs/en/plugins/mods/gallery.md)
| `Button` | A control that calls `onPress` | Everywhere |
| `Link`, `Code`, `Markdown` | A link with `href` and an optional `label`, a code block, and text formatted the way Claude's replies are. `Markdown` takes its content in a `text` prop, not in `children`, and needs a `key` when you pass `onLinkPress`. | Everywhere |
| `Input`, `Select` | A text field and a dropdown | Terminal, Desktop, VS Code |
+| `Shader` | A [backdrop drawn on the GPU](#animate-a-backdrop-with-a-shader) over an `Svg` | Desktop |
| `Svg` | An SVG document | Desktop, VS Code |
| `Client` | A region drawn by a second file of yours, for animation and pointer input. That file gets no mods API. It reaches your hooks by posting data, which arrives as a `ui.message` event. If it fails to load, draw, or run, your hooks receive a [`ui.fault`](https://code.claude.com/docs/en/plugins/mods/reference#interface) event. | Terminal, Desktop |
| `Raster`, `Image` | A [grid of colored cells](#draw-a-grid-of-colored-cells), and a picture | Terminal |
diff --git a/content/en/docs/claude-code/plugins/mods/overview.md b/content/en/docs/claude-code/plugins/mods/overview.md
index e4e931fed0..2c911c196c 100644
--- a/content/en/docs/claude-code/plugins/mods/overview.md
+++ b/content/en/docs/claude-code/plugins/mods/overview.md
@@ -17,7 +17,7 @@ A mod is a [plugin](https://code.claude.com/docs/en/plugins/overview.md) that ch
Settings hooks, skills, status lines, and MCP servers work from outside Claude Code: each one runs a script, or gives Claude text or tools. A mod runs inside Claude Code, so it can do things they can't:
* **Draw an interface you can use**: a pane beside the transcript or a band above the prompt, with tabs, buttons, and text fields. See [Draw in the interface](https://code.claude.com/docs/en/plugins/mods/interface.md).
-* **Redraw Claude Code's own interface**: replace or restyle parts Claude Code draws itself, such as a tool call's row, the spinner, or the dialog Claude asks questions in. See [Change what Claude Code already draws](https://code.claude.com/docs/en/plugins/mods/interface.md#change-what-claude-code-already-draws).
+* **Redraw Claude Code's interface**: replace or restyle parts Claude Code draws itself, such as a tool call's row or the spinner. See [Change what Claude Code already draws](https://code.claude.com/docs/en/plugins/mods/interface.md#change-what-claude-code-already-draws).
* **Step into a tool call or a request**: for example, hold a tool call while you ask the user a question, answer it without running the tool, or send one request to a different model. See [Guard or change a tool call](https://code.claude.com/docs/en/plugins/mods/events.md#guard-or-change-a-tool-call) and [Follow a turn](https://code.claude.com/docs/en/plugins/mods/events.md#follow-a-turn).
* **Run your own code on a command**: a `/command` that runs your function at once, with no Claude turn, even while Claude is working. See [Add a command or a tool](https://code.claude.com/docs/en/plugins/mods/api.md#add-a-command-or-a-tool).
* **Share data between hooks**: a mod's hooks share the variables in its file, so what one hook records, another can show. For example, one hook can count tool calls while another shows the count beside the spinner, or one can read each request's token usage while another charts it in a pane. See [React to events](https://code.claude.com/docs/en/plugins/mods/events.md).
diff --git a/content/en/docs/claude-code/plugins/mods/reference.md b/content/en/docs/claude-code/plugins/mods/reference.md
index bdeea3d1ac..3e7ced302b 100644
--- a/content/en/docs/claude-code/plugins/mods/reference.md
+++ b/content/en/docs/claude-code/plugins/mods/reference.md
@@ -33,7 +33,7 @@ A mod registers each of its hooks, which are event handlers, by calling `on` ins
| Argument | What it is |
| :- | :- |
| [`$`](https://code.claude.com/docs/en/plugins/mods/events#how-a-hook-handles-an-event) | The mods API: every method in [mods API methods](#mods-api-methods). Write each call in full, namespace then method, as in `$.fs.read('notes.md')`. |
-| [`e`](https://code.claude.com/docs/en/plugins/mods/events#how-a-hook-handles-an-event) | The event's input, as deeply frozen plain data. To change it, pass a copy to `next`. |
+| [`e`](https://code.claude.com/docs/en/plugins/mods/events#how-a-hook-handles-an-event) | The event's input. To change it, pass a copy to `next`. |
| [`next(e)`](https://code.claude.com/docs/en/plugins/mods/events#how-a-hook-handles-an-event) | The next handler, as in middleware. Runs the hooks after this one, then Claude Code's behavior. Resolves to the event's result. |
| [`next.signal`](https://code.claude.com/docs/en/plugins/mods/api#stop-background-work) | An `AbortSignal` that aborts when the event is abandoned |
| `next.origin` | `{ plugin, tier }` of whoever fired the event. Claude Code itself is `{ plugin: 'engine', tier: 'core' }`. A mod's `tier` is its priority group in the [order mods run in](https://code.claude.com/docs/en/plugins/mods/events.md#the-order-mods-run-in): `prepend`, `user`, `append`, or `builtin`. |
@@ -143,7 +143,7 @@ Turn events follow one answer from start to finish, including each request to th
| :- | :- | :- |
| [`turn.start`](https://code.claude.com/docs/en/plugins/mods/events#follow-a-turn) | A turn begins | `next(e)` |
| [`turn.step`](https://code.claude.com/docs/en/plugins/mods/events#follow-a-turn) | One request is about to go to the model | `yield* next(e)`, or `next({ ...e, model })`, `next({ ...e, effort })` |
-| [`turn.complete`](https://code.claude.com/docs/en/plugins/mods/events#follow-a-turn) | A turn ended | `next(e)`, or `{ text }` to show a line under the answer |
+| [`turn.complete`](https://code.claude.com/docs/en/plugins/mods/events#follow-a-turn) | A turn ended | `next(e)`, or `{ text }` to show a line under the main conversation's answer |
### Session
@@ -186,6 +186,7 @@ Interface events fire when Claude Code draws a render site and when the user use
| [`ui.render`](https://code.claude.com/docs/en/plugins/mods/interface#pick-where-to-draw) | A [render site](#render-sites) is about to be drawn |
| `ui.resolve` | Mods load, once for each app, render site, and mod. The result is the element table that `$.ui.resolve(e)` reads. |
| [`ui.press`](https://code.claude.com/docs/en/plugins/mods/interface#respond-to-presses-and-typing), [`ui.input`](https://code.claude.com/docs/en/plugins/mods/interface#respond-to-presses-and-typing), [`ui.select`](https://code.claude.com/docs/en/plugins/mods/interface#respond-to-presses-and-typing) | A `Button`, `Input`, or `Select` a mod drew is used |
+| [`ui.pointer`](https://code.claude.com/docs/en/plugins/mods/interface#animate-a-backdrop-with-a-shader) | The user clicks a part of your mod's backdrop that the app doesn't cover. Requires Claude Code v2.1.326 or later. |
| `ui.focus`, `ui.scroll` | The focused control or the scroll position of a pane or the band is about to change |
| `ui.close` | A pane is about to close. `e.id` is the pane and `e.origin.kind` is `plugin`, `person`, or `unload`. |
| [`ui.message`](https://code.claude.com/docs/en/plugins/mods/interface#build-a-tree-from-elements) | A `Client` element posts data to its mod |
@@ -241,7 +242,7 @@ The mods API is the `$` argument every hook receives. Its methods are grouped in
| :- | :- |
| `$.plugin` | `name`, `root`: this plugin's name and directory |
| [`$.ui`](https://code.claude.com/docs/en/plugins/mods/interface#pick-where-to-draw) | `resolve`, `invalidate`, `open`, `close`, `panes`, [`place`](https://code.claude.com/docs/en/plugins/mods/interface#place-a-row-in-the-transcript), `focus`, `scroll`, `toast`, `notify`, `status`, `log`, `notice`, `ask`, `copy`, `selection`, `blit`, `view`. `view` requires Claude Code v2.1.300 or later and `place` v2.1.314 or later. |
-| [`$.theme`](https://code.claude.com/docs/en/plugins/mods/interface#put-a-backdrop-behind-the-conversation) | `set`, `clear`: set a backdrop for the Desktop or mobile app to draw, and take the backdrop off. Requires Claude Code v2.1.319 or later. |
+| [`$.theme`](https://code.claude.com/docs/en/plugins/mods/interface#put-a-backdrop-behind-the-conversation) | `set`, `clear`: set a backdrop for the Desktop or mobile app to draw, and take the backdrop off. Requires Claude Code v2.1.319 or later. [Message styles](https://code.claude.com/docs/en/plugins/mods/interface.md#style-messages-in-the-desktop-app) and [sound](https://code.claude.com/docs/en/plugins/mods/interface.md#add-sound-to-a-theme) require v2.1.329 or later. |
| [`$.command`](https://code.claude.com/docs/en/plugins/mods/api#add-a-command) | `register`, `run`, `list` |
| [`$.tool`](https://code.claude.com/docs/en/plugins/mods/api#add-a-tool) | `register`, `call`, `check`, `list` |
| `$.agent` | `register`, `spawn`, `call`, `list`, `limits`. `call` and `limits` require Claude Code v2.1.326 or later. `list()` returns this session's subagents and teammates, each with a `status` of `pending`, `running`, `waiting`, `idle`, `completed`, `failed`, or `killed`, where `idle` and `waiting` require Claude Code v2.1.289 or later. |
@@ -251,7 +252,7 @@ The mods API is the `$` argument every hook receives. Its methods are grouped in
| [`$.session`](https://code.claude.com/docs/en/plugins/mods/api#send-and-receive-messages-between-sessions) | `messages`, `cwd`, `root`, `model`, `turns`, `id`, `repo`, `surfaces`, `usage`, `version`, `info`, `compact`, `send`, `append`, `authorize`, `redact`. `info` requires Claude Code v2.1.326 or later. `redact`, a best-effort mask for credentials only, requires v2.1.331 or later. `usage()` returns `{ startedAt, context, rateLimits, cost }`: `context` has `tokens`, `window`, and `percent`, and `rateLimits` is a list of `{ kind, percentUsed, resetsAt }`. |
| `$.config` | `list`, `set` |
| [`$.settings`](https://code.claude.com/docs/en/plugins/mods/api#reach-files-processes-and-the-network) | `read` |
-| [`$.env`](https://code.claude.com/docs/en/plugins/mods/api#reach-files-processes-and-the-network) | `get`, `set` |
+| [`$.env`](https://code.claude.com/docs/en/plugins/mods/api#reach-files-processes-and-the-network) | `get`, `set`. A refused `set` either rejects or resolves to `{ deny }`. The `{ deny }` result requires Claude Code v2.1.301 or later. |
| [`$.fs`](https://code.claude.com/docs/en/plugins/mods/api#reach-files-processes-and-the-network) | `read`, `write`, `list`, `exists`, `stat`, `ancestors`. `write` isn't atomic: it replaces the file's content in place, so another process can read a partly written file. Keep data that several sessions change in `$.store`. |
| [`$.store`](https://code.claude.com/docs/en/plugins/mods/interface#keep-state) | `get`, `set`, `delete`, `keys`. A key-value store that every session on the machine shares. See [Save from more than one session](https://code.claude.com/docs/en/plugins/mods/interface.md#save-from-more-than-one-session). |
| [`$.state`](https://code.claude.com/docs/en/plugins/mods/interface#keep-a-value-in-\$-state) | Reactive state: `get`, `set`, with the helpers `atom`, `read`, `update`, `derive`, and `memberOf` imported from `claude-code` |
@@ -263,6 +264,8 @@ The mods API is the `$` argument every hook receives. Its methods are grouped in
| `$.audio` | `play`, `speak` |
| `$.telemetry` | `log`, `mark`. A record is sent only when Claude Code or a built-in mod makes the call. |
+In the terminal, `$.ui.view({ agentId })` shows an agent's transcript and `$.ui.view({})` switches back. Call either from a command or button. A timer's call resolves to `{ deny: 'not person-initiated' }`.
+
## Render sites
A render site is an extension point in Claude Code's interface. Each row is a value of `e.component` in a `ui.render` hook, with the fields of `e.props` and the apps that render it. `e.surface` names the app that's drawing, such as `terminal`, `desktop`, or `vscode`. [Change what Claude Code already draws](https://code.claude.com/docs/en/plugins/mods/interface.md#change-what-claude-code-already-draws) shows what a hook can do at a site, with an example of each choice.
@@ -317,6 +320,7 @@ Elements are the building blocks of a tree a `ui.render` hook returns, and you g
| [`Input`](https://code.claude.com/docs/en/plugins/mods/interface#take-typed-input-and-draw-a-row-for-each-item) | `key`, `label`, `placeholder`, `value`, `submitLabel`, [`rows`](https://code.claude.com/docs/en/plugins/mods/gallery#input), `onSubmit`, `onInput`, `autoFocus` | ✓ | ✓ | ✓ |
| `Select` | `key`, `label`, `options`, `value`, `onSelect`, `autoFocus` | ✓ | ✓ | ✓ |
| `Svg` | a `source` of SVG markup up to 131,072 characters, `alt` text, `width`, `height`, and `isInteractive` | | ✓ | ✓ |
+| [`Shader`](https://code.claude.com/docs/en/plugins/mods/interface#animate-a-backdrop-with-a-shader) | `module`, `values`, and one `Svg` child. Draws in a [`Backdrop`](#render-sites) only. Requires Claude Code v2.1.326 or later. | | ✓ | |
| [`Client`](https://code.claude.com/docs/en/plugins/mods/interface#build-a-tree-from-elements) | `module`, `key`, `props`, `width`, `height`, `flexGrow` | ✓ | ✓ | |
| [`Raster`](https://code.claude.com/docs/en/plugins/mods/interface#draw-a-grid-of-colored-cells) | `key`, `columns` up to 512, `rows` up to 256, `cells`. See [Draw a grid of colored cells](https://code.claude.com/docs/en/plugins/mods/interface.md#draw-a-grid-of-colored-cells). | ✓ | | |
| `Image` | `key`, a `source` such as PNG or RGBA bytes up to 2 MiB, or a file path, `columns` and `rows` up to 255, and `alt` text. See [which terminals draw it](https://code.claude.com/docs/en/plugins/mods/gallery.md#image-and-client). | ✓ | | |
@@ -421,10 +425,12 @@ Hooks and mods API calls run under time and size limits. Claude Code skips a hoo
| `$.model.complete` `maxTokens` | 1024 by default, up to 64,000 or the model's output limit |
| `$.fs.read` and `$.fs.write` | 4 MiB for one file. On v2.1.326 or later, read a larger file in parts with `$.fs.read(path, { offset, length })`, both in bytes. |
| A `$.http.fetch` request body | 4 MiB, counted in characters. A call with a larger body rejects. |
-| A `$.http.fetch` response body | 4 MiB. `text` holds the first 4 MiB and the rest isn't read. When the `Content-Length` header declares more, the call rejects instead, with a reason that ends `is over the 4194304-byte limit`, except when the last request after any redirects uses the `HEAD` method. The `HEAD` exemption requires Claude Code v2.1.296 or later. |
+| A `$.http.fetch` response body | 4 MiB. `text` holds the first 4 MiB and the rest isn't read. When the `Content-Length` header declares more, the call rejects instead, with a reason that ends `is over the 4194304-byte limit`. The call ignores that header on a 204, 205, or 304 response, and when its last request after any redirects uses `HEAD`. The `HEAD` case requires Claude Code v2.1.296 or later, and the others v2.1.299 or later. |
| One `$.http.fetch` call, redirects and body included | 30 seconds |
| Redirects one `$.http.fetch` call follows | 5 |
| A hook's `drop` reason or `config.set` `deny` reason | 4,096 characters. The end of a longer reason is cut, and the drop or deny still applies. The cut requires Claude Code v2.1.292 or later, and on earlier versions the hook [fails](https://code.claude.com/docs/en/plugins/mods/events.md#handle-a-hook-that-fails) instead. |
+| All mods' elements [above the question dialog](https://code.claude.com/docs/en/plugins/mods/interface.md#change-what-claude-code-already-draws) | 12 rows in the terminal and 48 in the Desktop app or the VS Code extension, counted at a 40-column width. Over the limit, the dialog appears without your elements. |
+| A call to a method another mod added in [`engine.create`](#other-mods) | 10 seconds. After that, the call rejects with a reason that ends `did not answer within 10000ms`. |
| Text in one tree | The first 100,000 characters are drawn |
| A `Code`'s `language` or `path`, a `Select` option's `value`, or a `Client`'s `module` | 10,000 characters. If one is longer, the `ui.render` hook that returned it [fails](https://code.claude.com/docs/en/plugins/mods/events.md#handle-a-hook-that-fails). |
| A `Link`'s `href` | 2,048 characters. If it's longer, the `ui.render` hook that returned it [fails](https://code.claude.com/docs/en/plugins/mods/events.md#handle-a-hook-that-fails). |
@@ -438,6 +444,8 @@ Hooks and mods API calls run under time and size limits. Claude Code skips a hoo
| `$.session.messages()` | The newest 4,096 entries |
| Text passed to `$.session.redact` | 100,000 characters. A call with longer text rejects. |
| `$.ui.invalidate('ui.render')` redraws | Throttled to 10 a second, or 30 in the terminal for the visible pane, the expanded band, and the hint line under the prompt. Calls that come sooner are coalesced. |
+| [`ui.pointer`](https://code.claude.com/docs/en/plugins/mods/interface#animate-a-backdrop-with-a-shader) clicks | Two a second. The app drops the rest. |
+| A [`Shader`](https://code.claude.com/docs/en/plugins/mods/interface#animate-a-backdrop-with-a-shader)'s `values` | Eight numbers |
| `$.ui.toast` | Shown for 4 seconds unless you pass `{ timeoutMs }`. In the [classic renderer](https://code.claude.com/docs/en/fullscreen.md#enable-fullscreen-rendering), a mod's newer toast can [take the place of its older one](https://code.claude.com/docs/en/plugins/mods/troubleshoot.md#a-toast-doesn’t-appear) that's showing or waiting to show. |
| A pane opened without the user asking | Placed from 144 terminal columns, 110 after they've opened it once |
| Rows from `$.ui.place` that one mod has in a conversation at one time | 500. At the limit, a call with a new `id` resolves to `{ isPlaced: false, reason: 'a plugin holds at most 500 placed rows' }`. |
@@ -477,5 +485,5 @@ These commands and flags load, inspect, and test a mod. The `claude` commands ru
| [`/plugin`](https://code.claude.com/docs/en/plugins/mods/overview#see-which-mods-a-session-loaded) | Shows a line such as `1 mod active · first-mod` under its tabs when a mod that isn't built in has loaded |
| [`claude plugin validate `](https://code.claude.com/docs/en/plugins/mods/create#check-what-claude-code-reads-from-your-mod) | Reads a plugin's manifest and hooks module and reports errors, the events it handles, and the mods API calls it makes. `--strict` treats warnings as errors and `--json` prints a machine-readable report. |
| [`claude plugin test [directory]`](https://code.claude.com/docs/en/plugins/mods/test#write-a-test) | Runs every file under the directory, or the current directory when you give none, whose name ends in `.test.ts` or `.test.tsx`. Exits with status 1 when a test fails. |
-| [`claude --plugin-dir `](https://code.claude.com/docs/en/plugins/mods/create#write-a-mod-yourself) | Loads a plugin directory for one session and reloads its hooks module when you save. Repeat the flag to load several. |
+| [`claude --plugin-dir `](https://code.claude.com/docs/en/plugins/mods/create#write-a-mod-yourself) | Loads a plugin directory for one session. In an interactive terminal session, reloads the hooks module when you save. Repeat the flag to load several. |
| `/reload-plugins` | Reloads plugins when you run it |
diff --git a/content/en/docs/claude-code/plugins/mods/test.md b/content/en/docs/claude-code/plugins/mods/test.md
index c575eb4568..544074cf06 100644
--- a/content/en/docs/claude-code/plugins/mods/test.md
+++ b/content/en/docs/claude-code/plugins/mods/test.md
@@ -163,7 +163,7 @@ The kit also exports ready-made mocks for the clock, the store, environment vari
### Look up what a stub returns
-Every mods API call your mod makes in a test needs a stub that answers in Claude Code's place, except the few the kit answers itself: [`$.ui.invalidate`](https://code.claude.com/docs/en/plugins/mods/interface#redraw-when-something-changes), [`$.state`](https://code.claude.com/docs/en/plugins/mods/interface#keep-state), and `$.session.append` calls. For `$.clock` calls, use `mock.clock(on)`, or your mod's `$.clock.now()` fails with `no implementation for clock.now`.
+[`$.ui.invalidate`](https://code.claude.com/docs/en/plugins/mods/interface#redraw-when-something-changes), [`$.state`](https://code.claude.com/docs/en/plugins/mods/interface#keep-state), and `$.session.append` calls need no stub. For `$.clock` calls, use `mock.clock(on)`, or your mod's `$.clock.now()` fails with `no implementation for clock.now`. A passing test [can hide](#follow-the-test-kit’s-rules) a `no implementation for` error, and each call that fails with it needs a stub.
This table lists the ones mods use most. The first column is the call your mod makes or the event it passes on with `next(e)`. The second is the function to pass to `on` under that name, so the `$.store.get` row becomes `on('store.get', ($, e) => ({ value: saved.get(e.key) }))`. A `'...'` in a stub marks text for you to fill in:
@@ -176,7 +176,7 @@ This table lists the ones mods use most. The first column is the call your mod m
| `$.ui.ask` | A `tool.call` stub, because the question reaches it as a call to the `AskUserQuestion` tool: `($, e) => ({ result: { answers: { [e.questions[0].question]: 'Run it' } } })`. Check `e.tool` first if your mod passes on other tool calls. |
| `$.model.complete` | `() => ({ value: { isAnswered: true, text: '...', usage } })` |
| `$.process.run` | `($, e) => ({ value: { exitCode: 0, stdout: '...', stderr: '' } })`. `e.argv` is the argument list and `e.init` holds `cwd` and `timeoutMs`. |
-| Any mods API call that should fail | `() => ({ deny: 'the reason' })`, which makes the call reject in your mod. A stub that throws is skipped instead. |
+| To fail a call whose stub returns `{ value }` | `() => ({ deny: 'the reason' })`, which makes the call reject in your mod. `ui.toast`, `ui.log`, and `ui.status` don't reject. A stub that throws is skipped. |
| `session.start` | `() => ({ cwd: '/work' })` |
| `turn.start` | `($, e) => ({ turnId: e.turnId })` |
| `tool.call` | `() => ({ result: '...' })` |
@@ -316,6 +316,7 @@ The handle that `$.ui.mount` returns has these methods, which address elements b
| `select({ key: 'size', value: 'large' })` | Picks the option with that value in the `Select` with that key |
| `keepsBeneath()` | In a test with no `ui.render` stub, it resolves to `true` when the drawing includes what `next(e)` returned, and `false` when your hook left it out. In a test that registers one, use `find` to look for what the stub drew. Requires Claude Code v2.1.321 or later. |
| `find({ key: 'more' })` or `find({ type: 'Text', text: 'Count: 2' })` | Returns the first matching element as `{ type, props, children }`, or `undefined`. `text` can be a string or a regular expression. |
+| `drawn()` | Returns the whole tree as last drawn |
| `unmount()` | Removes the drawing |
Each method resolves after your handler has finished, so you can check the result on the next line. Set `props` to what Claude Code would pass for that site. The [render sites table](https://code.claude.com/docs/en/plugins/mods/reference.md#render-sites) lists each site's props, and [the types for your build](https://code.claude.com/docs/en/plugins/mods/create.md#get-the-types-for-your-build) have their types.
diff --git a/content/en/docs/claude-code/plugins/mods/troubleshoot.md b/content/en/docs/claude-code/plugins/mods/troubleshoot.md
index aa782cab85..daef723b1b 100644
--- a/content/en/docs/claude-code/plugins/mods/troubleshoot.md
+++ b/content/en/docs/claude-code/plugins/mods/troubleshoot.md
@@ -10,7 +10,7 @@ When a mod's module or one of its hooks fails, Claude Code skips it and the sess
## Find out why a mod does nothing
-When a mod does nothing, check what Claude Code reads from the mod's files, and the line it writes when it skips something. For the first, in your shell run [`claude plugin validate`](https://code.claude.com/docs/en/plugins/mods/create#check-what-claude-code-reads-from-your-mod) with the mod's directory, as in `claude plugin validate ./first-mod`. It catches a misspelled event, a bad manifest, and a module Claude Code can't read, without starting a session.
+When a mod does nothing, check what Claude Code reads from the mod's files, and the line it writes when it skips something. To check the files, in your shell run [`claude plugin validate`](https://code.claude.com/docs/en/plugins/mods/create#check-what-claude-code-reads-from-your-mod) with the mod's directory, as in `claude plugin validate ./first-mod`. It catches a bad manifest and a module Claude Code can't read, without starting a session.
Claude Code writes one line naming your mod in cases such as a code error that stops it from loading, a skipped hook, or a refusal by another mod. Look for that line in the transcript, the debug log, or stderr, by session type:
@@ -61,6 +61,7 @@ Each of these follows `hooks module`, the mod's name, and `not loaded:` in the d
| :- | :- |
| `hooks modules are turned off for installed plugins in this process: the rollout switch served off` | Anthropic has turned installed mods off remotely. |
| `hooks modules are turned off for installed plugins in this process: the rollout switch was saved off by an earlier session` | The session used a value an earlier session saved, which may be out of date. Start Claude Code again to refresh it. |
+| `hooks modules a person installed wait for the rollout switch in this process` | In a [cloud session](https://code.claude.com/docs/en/claude-code-on-the-web.md), your mods are waiting to load, so send another message. If the line includes `could not be read`, or you see `Mods you installed aren't running in this session`, start a new session instead. |
| `disableAllHooks in managed settings` | Your organization turned off hooks from installed plugins |
| `only managed plugins and built-in plugins run` | `allowManagedHooksOnly` is set, or `disableAllHooks` is set in a settings file other than managed settings |
| `installed plugins that are not managed load no hooks module in this mode (--bare)` | You started Claude Code with `--bare` |
@@ -145,6 +146,17 @@ The line names the mod and the event, then says `hook skipped:` and a reason, as
Fix the error. The debug log has a line for every occurrence.
+### `call refused` or `result withheld`
+
+Either line means Claude Code couldn't copy a value to or from a hook that checks an action, such as a `tool.call` hook. Match the [transcript or debug log line](#find-out-why-a-mod-does-nothing) to see whether the action ran:
+
+* `call refused`: Claude Code refused the action in your hook's place
+* `result withheld`: what the tool did stays done, and Claude reads a note in place of its result
+
+What Claude gets back can include `could not be given to a hook that checks it` or `a hook that checks this result could not hand back its answer`.
+
+If the line includes `could not be given its argument`, your hook didn't run, so leave it as it is. If it includes `is not plain data: nesting deeper than 28000 levels`, reduce the nesting in the values your hook returns or passes on.
+
### `no command.run hook answered it`
You run a command your mod added, and the reply names the mod and the command, as in `first-mod registered /tally but no command.run hook answered it`, then tells you to add a hook. Claude Code prints that reply when the command reaches the end of the chain with no answer, which happens in two cases:
@@ -296,9 +308,10 @@ Before v2.1.289, the line showed `Error` as the reason instead.
### `$.ui.open` runs and no pane appears
-The call didn't come from something the user did, and the terminal is narrower than [the width that pane needs](https://code.claude.com/docs/en/plugins/mods/interface.md#when-a-pane-waits-for-a-wider-terminal).
+Check the call's result. When `isPlaced` is `false`, the start of `reason` says why, as in these cases:
-Open the pane from a command or a button, or check the call's `isPlaced` result. See [Open a pane at the right time](https://code.claude.com/docs/en/plugins/mods/interface.md#open-a-pane-at-the-right-time).
+* **`unasked below`**: open the pane from a command or a button, or use [a wider terminal](https://code.claude.com/docs/en/plugins/mods/interface.md#when-a-pane-waits-for-a-wider-terminal).
+* **`no-surface`**: nothing is attached to draw on, as in a `claude -p` or Agent SDK run. From a `command.run` hook, return `{ text }` instead.
### A toast doesn't appear
@@ -341,7 +354,7 @@ The mod runs, and a change you made or a value it kept isn't there.
### Your edits don't take effect
-You're editing a plugin you installed. Claude Code runs the cached copy for the installed version.
+If your plugin was [copied at install](https://code.claude.com/docs/en/plugins/loading.md#in-place-and-copied-plugins), Claude Code runs that copy.
Develop with `--plugin-dir` pointed at your working copy, as in `claude --plugin-dir ./first-mod`, which reloads when you save.
@@ -369,10 +382,10 @@ For another key, check [which mods get `settings.read` and from which version](h
| `settings.read bypassed by cc-plugin-sec-default`, on a line that names your mod ahead of it | The [built-in guard](https://code.claude.com/docs/en/plugins/mods/admin.md#know-what-happens-by-default) skipped your hook. Ask your organization's administrator to [install the mod as one of the organization's mods](https://code.claude.com/docs/en/plugins/mods/admin.md#install-your-organizations-mods). |
| `settings.read: the answer for is no value the key can hold` | Claude Code refused the value a hook returned for that key. The hook may be yours or another mod's. Follow [the step for your case](#settings-read-key-refused). |
| `settings.read: the merge never settles for ` | The keys the line names keep the settings sources' values. Set them in a settings file. |
-| `answered settings.read without next()`, after a mod's name | Your hook is affected if the named mod [runs before yours](https://code.claude.com/docs/en/plugins/mods/events.md#the-order-mods-run-in). Then your hook didn't run on that read. [Turn that mod off](https://code.claude.com/docs/en/plugins/mods/overview.md#turn-mods-on-or-off), or if your organization deployed it, ask its administrator to. |
+| `answered settings.read without next()`, after a mod's name | Your hook is affected if the named mod [runs before yours](https://code.claude.com/docs/en/plugins/mods/events.md#the-order-mods-run-in). Then your hook didn't run on that read. [Turn that mod off](https://code.claude.com/docs/en/plugins/mods/overview.md#turn-mods-on-or-off), or if you're in an organization that deployed it, ask your administrator to. |
| `settings.read: refused to the engine` | Your value didn't apply because Claude Code's own read was refused. [Find what refused it](#settings-read-refused). |
-If no line explains the key, check the mods that run before yours for a `settings.read` hook that [changes the key](https://code.claude.com/docs/en/plugins/mods/events.md#settings-read-example). Turn that mod off, or ask your organization's administrator to. If no hook does, set the key in a settings file.
+If no line explains the key, check the mods that run before yours for a `settings.read` hook that [changes the key](https://code.claude.com/docs/en/plugins/mods/events.md#settings-read-example). Turn that mod off, or if you're in an organization that deployed it, ask your administrator to. If no hook does, set the key in a settings file.
### `the answer for is no value the key can hold`
@@ -400,7 +413,7 @@ settings.read: refused to the engine (engine: $.settings.read: ); the se
Search your code for the reason in the parentheses:
* **Your code has it**: your hook refused the read. Make it return `{ value }` when [`next.origin`](https://code.claude.com/docs/en/plugins/mods/events#settings-read-origin) shows Claude Code's own read.
-* **Your code doesn't have it**: [turn off](https://code.claude.com/docs/en/plugins/mods/overview.md#turn-mods-on-or-off) your other mods one at a time. If your organization deployed a mod, ask its administrator to turn it off. After each:
+* **Your code doesn't have it**: [turn off](https://code.claude.com/docs/en/plugins/mods/overview.md#turn-mods-on-or-off) your other mods one at a time, or if you're in an organization that deployed one, ask your administrator to. After each:
1. Start the session from your shell with `claude --debug-file ./settings-read-2.log`, followed by the flags it started with. Use a new path each time.
2. Search that file for `refused to the engine`. If the line is there, turn off the next mod. If not, the last mod you turned off refused the read, so keep it off.
diff --git a/content/en/docs/claude-code/plugins/overview.md b/content/en/docs/claude-code/plugins/overview.md
index b749fd07c4..af2f029387 100644
--- a/content/en/docs/claude-code/plugins/overview.md
+++ b/content/en/docs/claude-code/plugins/overview.md
@@ -42,7 +42,7 @@ For component types a plugin can hold, with an example of each, see [Plugin comp
Skills, subagents, hooks, and MCP servers all work on their own, without a plugin. A skill you save in `~/.claude/skills/`, for example, is available in every project on your machine. To set one up on its own, see [Skills](https://code.claude.com/docs/en/skills.md), [Subagents](https://code.claude.com/docs/en/sub-agents.md), [Hooks](https://code.claude.com/docs/en/hooks-guide.md), or [MCP](https://code.claude.com/docs/en/mcp.md).
-Use a plugin when you want several skills, subagents, hooks, or MCP servers packaged as one unit. Install one to get a setup someone else built, with one command and updates from its marketplace. Make one to give your own setup to teammates, install it in many projects, or publish versioned releases.
+Use a plugin when you want several skills, subagents, hooks, or MCP servers packaged as one unit. Install one to get a setup someone else built, with one command and updates from its marketplace. Make one to share your own setup, install it in many projects, or publish versioned releases.
### What an enabled plugin adds to your sessions
@@ -122,6 +122,6 @@ Once you've installed or built a plugin, these pages cover what comes next:
* **Share what you built**: [Publish and distribute a plugin](https://code.claude.com/docs/en/plugins/publish.md), through your own marketplace or [Anthropic's directory](https://code.claude.com/docs/en/plugins/publish.md#submit-to-anthropics-directory)
* **Check whether it works and is used**: [Test plugins with evals](https://code.claude.com/docs/en/plugin-evals.md) and [Measure plugin cost and usage](https://code.claude.com/docs/en/plugins/measure.md)
-* **Run a marketplace for your team**: [Create a marketplace](https://code.claude.com/docs/en/plugins/create-marketplace.md), then [Host and maintain a marketplace](https://code.claude.com/docs/en/plugins/host-marketplace.md)
+* **Run a marketplace**: [Create a marketplace](https://code.claude.com/docs/en/plugins/create-marketplace.md), then [Host and maintain a marketplace](https://code.claude.com/docs/en/plugins/host-marketplace.md)
* **Set plugin policy for an organization**: [Manage plugins for your organization](https://code.claude.com/docs/en/plugins/org.md)
* **Fix a problem**: [Troubleshoot plugins](https://code.claude.com/docs/en/plugins/troubleshooting.md)
diff --git a/content/en/docs/claude-code/plugins/publish.md b/content/en/docs/claude-code/plugins/publish.md
index 662a9d6617..86f9989b95 100644
--- a/content/en/docs/claude-code/plugins/publish.md
+++ b/content/en/docs/claude-code/plugins/publish.md
@@ -132,7 +132,7 @@ To submit a plugin:
**1. Confirm you can submit**
-Submitting requires a paid claude.ai plan. On Pro, Max, and Ultra you submit from your own account. On Team and Enterprise, an Owner can submit, and on Enterprise an Owner can also grant the **Directory** permission to other members through a custom role under **Organization settings > Roles**. See [Confirm you can submit to the directory](https://claude.com/docs/directory/publish#confirm-you-can-submit-to-the-directory).
+Submitting requires a paid claude.ai plan. On Pro, Max, and Ultra you submit from your own account. On Team and Enterprise, an Owner can submit, and on Enterprise an Owner can also grant the **Directory** permission to other members through a custom role under [**Organization settings > Roles**](https://claude.ai/admin-settings/roles). See [Confirm you can submit to the directory](https://claude.com/docs/directory/publish#confirm-you-can-submit-to-the-directory).
**2. Validate the plugin locally**
diff --git a/content/en/docs/claude-code/quickstart.md b/content/en/docs/claude-code/quickstart.md
index 53ecf4e596..29ae96d945 100644
--- a/content/en/docs/claude-code/quickstart.md
+++ b/content/en/docs/claude-code/quickstart.md
@@ -21,7 +21,7 @@ Make sure you have:
> These cases are covered on other pages:
>
> * **Never used a terminal before**: start with the [terminal guide](https://code.claude.com/docs/en/terminal-guide)
-> * **Want Claude Code somewhere other than the terminal**: Claude Code is also available on the [web](https://claude.ai/code), as a [desktop app](https://code.claude.com/docs/en/desktop.md), in [VS Code](https://code.claude.com/docs/en/vs-code.md) and [JetBrains IDEs](https://code.claude.com/docs/en/jetbrains.md), in [Slack](https://code.claude.com/docs/en/slack.md), and in CI/CD with [GitHub Actions](https://code.claude.com/docs/en/github-actions.md) and [GitLab](https://code.claude.com/docs/en/gitlab-ci-cd.md). See [all interfaces](https://code.claude.com/docs/en/overview.md#use-claude-code-everywhere).
+> * **Want Claude Code somewhere other than the terminal**: Claude Code is also available on the [web](https://claude.ai/code), as a [desktop app](https://code.claude.com/docs/en/desktop.md), in [VS Code](https://code.claude.com/docs/en/vs-code.md) and [JetBrains IDEs](https://code.claude.com/docs/en/jetbrains.md), and in CI/CD with [GitHub Actions](https://code.claude.com/docs/en/github-actions.md) and [GitLab](https://code.claude.com/docs/en/gitlab-ci-cd.md). See [all interfaces](https://code.claude.com/docs/en/overview.md#use-claude-code-everywhere).
## Step 1: Install Claude Code
diff --git a/content/en/docs/claude-code/remote-control.md b/content/en/docs/claude-code/remote-control.md
index 9d7474569e..d23b3c09b1 100644
--- a/content/en/docs/claude-code/remote-control.md
+++ b/content/en/docs/claude-code/remote-control.md
@@ -325,7 +325,6 @@ Claude Code offers several ways to work when you're not at your terminal. They d
| [Dispatch](https://code.claude.com/docs/en/desktop.md#sessions-from-dispatch) | Message a task from the Claude mobile app | Your machine (Desktop) | [Pair the mobile app with Desktop](https://support.claude.com/en/articles/13947068) | Delegating work while you're away, minimal setup |
| [Remote Control](https://code.claude.com/docs/en/remote-control.md) | Drive a running session from [claude.ai/code](https://claude.ai/code) or the Claude mobile app | Your machine (CLI, Desktop, or VS Code) | Run [`claude remote-control` or `/remote-control`](https://code.claude.com/docs/en/remote-control#start-a-remote-control-session) | Steering in-progress work from another device |
| [Channels](https://code.claude.com/docs/en/channels.md) | Push events from a chat app like Telegram or Discord, or your own server | Your machine (CLI) | [Install a channel plugin](https://code.claude.com/docs/en/channels.md#quickstart) or [build your own](https://code.claude.com/docs/en/channels-reference.md) | Reacting to external events like CI failures or chat messages |
-| [Slack](https://code.claude.com/docs/en/slack.md) | Mention `@Claude` in a team channel | Anthropic cloud | [Install the Slack app](https://code.claude.com/docs/en/slack.md#setting-up-claude-code-in-slack) with [Claude Code on the web](https://code.claude.com/docs/en/claude-code-on-the-web.md) enabled, on Pro, Max, and Ultra plans | PRs and reviews from team chat |
| [Self-hosted environments](https://code.claude.com/docs/en/self-hosted-environments) | Start a [cloud session](https://code.claude.com/docs/en/claude-code-on-the-web.md) and pick your organization's environment | Your organization's infrastructure | [Deploy runners](https://code.claude.com/docs/en/self-hosted-environments-quickstart.md), on Team and Enterprise plans | Cloud sessions that must run inside your network |
| [Scheduled tasks](https://code.claude.com/docs/en/scheduled-tasks.md) | Set a schedule | [CLI](https://code.claude.com/docs/en/scheduled-tasks.md), [Desktop](https://code.claude.com/docs/en/desktop-scheduled-tasks.md), or [cloud](https://code.claude.com/docs/en/routines.md) | Pick a frequency | Recurring automation like daily reviews |
diff --git a/content/en/docs/claude-code/routines.md b/content/en/docs/claude-code/routines.md
index 3a3f360e1f..750df3b788 100644
--- a/content/en/docs/claude-code/routines.md
+++ b/content/en/docs/claude-code/routines.md
@@ -41,7 +41,7 @@ Each example pairs a trigger type with the kind of work scheduled tasks are suit
* **Backlog maintenance**: a schedule trigger runs every weeknight in your repository, with your issue tracker added as a connector. The scheduled task reads issues opened since the last run, applies labels, and assigns owners based on the area of code referenced. It then posts a summary to Slack so the team starts the day with a groomed queue.
* **Alert triage**: your monitoring tool calls the scheduled task's API endpoint when an error threshold is crossed, passing the alert body as `text`. The task's prompt tells Claude to investigate the alert in the fire payload, so it pulls the stack trace and correlates it with recent commits in the repository. It then opens a draft pull request with a proposed fix and a link back to the alert. On-call reviews the PR instead of starting from a blank terminal.
-* **Bespoke code review**: a GitHub trigger runs on `pull_request.opened`. The scheduled task applies your team's own review checklist and leaves inline comments for security, performance, and style issues. It also adds a summary comment so human reviewers can focus on design instead of mechanical checks.
+* **Bespoke code review**: a GitHub trigger runs on `pull_request.opened`. The scheduled task applies your own review checklist and leaves inline comments for security, performance, and style issues. It also adds a summary comment so human reviewers can focus on design instead of mechanical checks.
* **Deploy verification**: your CD pipeline calls the scheduled task's API endpoint after each production deploy. The task runs smoke checks against the new build, scans error logs for regressions, and posts a go or no-go to the release channel before the deploy window closes.
* **Docs drift**: a schedule trigger runs weekly. The scheduled task scans merged PRs since the last run, flags documentation that references changed APIs, and opens update PRs against the docs repository for an editor to review.
* **Library port**: a GitHub trigger runs on `pull_request.closed` filtered to merged PRs in one SDK repository. The scheduled task ports the change to a parallel SDK in another language and opens a matching PR, keeping the two libraries in step without a human re-implementing each change.
@@ -344,7 +344,7 @@ Under **History** on the task's detail page, each finished run's row ends with *
* **Failed**: the session didn't finish normally. For example, it stopped unexpectedly, ended on an error, or was archived before the run started
* **Cancelled**: the run didn't fail, and its session was archived. If you archive the session of a run that succeeded, the run changes to **Cancelled**. Nothing in the task needs to change
-If a warning appears under **History**, see ["The last run" warnings](#the-last-run-didnt-start).
+If a warning appears under **History**, see [Warnings under History](#the-last-run-didnt-start).
### Edit and control scheduled tasks
@@ -510,14 +510,14 @@ If the cause is your CLI sign-in or being inside a cloud session, you can still
Cloud scheduled tasks are off for your organization, and you can't change that from your local configuration. Ask your Team or Enterprise Owner whether they can turn on the **Scheduled tasks (Was Routines)** or **Routines** toggle at [**Organization settings > Capabilities > Remote sessions**](https://claude.ai/admin-settings/capabilities).
-### "The last run" warnings
+### Warnings under History
-When a warning under **History** begins with "The last run", find it in the first column and do what its row says. The warning clears once a later run starts.
+When a warning under **History** begins with "The last run" or "This didn't run", find it in the first column and do what its row says. The warning clears once a later run starts.
| Warning | What to do |
| :- | :- |
-| "The last run didn't start because your organization had reached its limit on cloud sessions running at once." | The task needs no change. Click **Run now** later, or wait for the next run |
-| "The last run didn't start because its cloud environment couldn't be found or used." | On the task's detail page, open the menu next to its name, select **Edit**, and find the [cloud environment selector](#environments-and-network-access). If it reads **Unavailable environment**, that environment was archived or is no longer available to your account, so choose another one there and save your changes. Otherwise, retry with **Run now** on the detail page, or pick another environment in the selector and save your changes |
+| "This didn't run" followed by the run's time, then "You were at the limit for tasks Claude can work on at the same time." or "Your organization was at its limit for tasks Claude can work on at the same time." | The task needs no change. Click **Run now** later, or wait for the next run |
+| "The last run didn't start because its environment couldn't be found or used." | On the task's detail page, open the menu next to its name, select **Edit**, and find the [cloud environment selector](#environments-and-network-access). If it reads **Unavailable environment**, that environment was archived or is no longer available to your account, so choose another one there and save your changes. Otherwise, retry with **Run now** on the detail page, or pick another environment in the selector and save your changes |
| "The last run was blocked because it couldn't access something it needs, or your organization's policy doesn't allow it." | Check that your [GitHub access](#repositories-and-branch-permissions) covers the task's repositories. If it does, ask an [Owner](https://code.claude.com/docs/en/server-managed-settings.md#access-control) of your Claude organization whether a policy blocks the task |
| "The last run didn't start because of a problem that's usually temporary." | Click **Run now** to try again, or wait for the next run |
| "The last run didn't start because its repository or branch wasn't available." | Check on GitHub that each repository in the task has the [branch the run starts from](#repositories-and-branch-permissions). Also check that your [GitHub access](#repositories-and-branch-permissions) covers each repository, and reconnect GitHub if your connection expired |
diff --git a/content/en/docs/claude-code/self-hosted-environments-configuration.md b/content/en/docs/claude-code/self-hosted-environments-configuration.md
index 9b3f6d3e98..01d276d2b5 100644
--- a/content/en/docs/claude-code/self-hosted-environments-configuration.md
+++ b/content/en/docs/claude-code/self-hosted-environments-configuration.md
@@ -783,19 +783,14 @@ fi
# shellcheck disable=SC2086 # $base is either "" or "FETCH_HEAD", intentional word-split
unpushed=$(git -C "$d" rev-list HEAD --not $base --remotes=origin --count 2>/dev/null) || unpushed=0
if [ "$unpushed" -gt 0 ]; then
- branch=$(git -C "$d" symbolic-ref --short -q HEAD)
- if [ -n "$branch" ]; then
- # $branch is attacker-influenced — git-check-ref-format(1) allows `"`
- # in ref names. `\` is forbidden (rule 10) but escaped anyway as cheap
- # defense-in-depth.
- # Escape JSON metacharacters before interpolating into the hand-built
- # payload so a branch like x","continue":false can't inject keys into
- # the hook-output JSON the harness parses. $unpushed is safe — the
- # -gt guard above rejects anything that isn't a plain integer.
- branch_esc=$(printf '%s' "$branch" | sed 's/\\/\\\\/g; s/"/\\"/g')
- printf '{"decision":"block","reason":"There are %s unpushed commit(s) on branch '\''%s'\''. Please push these changes to the remote repository."}' "$unpushed" "$branch_esc"
- else
+ # The branch name is not trusted text, so the message leaves it out.
+ # $unpushed is a count from git rev-list, or 0.
+ # With -q, symbolic-ref exits 1 on a detached HEAD.
+ git -C "$d" symbolic-ref -q HEAD >/dev/null 2>&1
+ if [ $? -eq 1 ]; then
printf '{"decision":"block","reason":"There are %s unpushed commit(s) on a detached HEAD. Please create a branch and push it to the remote repository."}' "$unpushed"
+ else
+ printf '{"decision":"block","reason":"There are %s unpushed commit(s) on the branch checked out in the project directory. Please push these changes to the remote repository."}' "$unpushed"
fi
exit 0
fi
@@ -825,14 +820,13 @@ The Stop hook checks which commit each submodule is on, not the files inside it:
### Replace an earlier copy of the Stop hook script
-Search your copy of `stop-hook-nudge.sh` for `GIT_OPTIONAL_LOCKS`. If it's missing, you have an earlier copy. Replace it with the [current script](#prompt-sessions-to-push-their-work) wherever you installed it, then restart the runners. Keep your Stop hook settings, except to raise `timeout` on a large checkout.
+Search your copy of `stop-hook-nudge.sh` for the text `checked out in the project directory`. If it's missing, you have an earlier copy. Replace it now with the [current script](#prompt-sessions-to-push-their-work) wherever you installed it, then restart the runners. Keep your Stop hook settings, except to raise `timeout` on a large checkout.
-* **When**: if your sessions run with the [Bash sandbox](https://code.claude.com/docs/en/sandboxing.md) on, replace it now. Otherwise, replace it at your next image build or runner restart.
-* **What changes**: uncommitted files in a submodule no longer prompt Claude. A new commit in a submodule that `.gitmodules` marks `ignore = all` now does.
+After you replace the script, the prompt about unpushed commits no longer includes the branch name. If your earlier copy prompted Claude about uncommitted files in a submodule, that prompt stops. For how the current script treats submodules, see [Submodules and the Stop hook](#submodules-and-the-stop-hook).
> [!WARNING]
>
-> Hooks run outside the Bash sandbox, so the current script's git calls skip some git features that can start a program named in the checkout's git settings. They don't skip them all. Don't count on the sandbox alone, and isolate sessions as [Harden your deployment](https://code.claude.com/docs/en/self-hosted-environments-deploy.md#harden-your-deployment) describes.
+> Hooks run outside the [Bash sandbox](https://code.claude.com/docs/en/sandboxing.md), so the current script's git calls skip some git features that can start a program named in the checkout's git settings. They don't skip them all. Don't count on the sandbox alone, and isolate sessions as [Harden your deployment](https://code.claude.com/docs/en/self-hosted-environments-deploy.md#harden-your-deployment) describes.
## Permissions and tool approval
diff --git a/content/en/docs/claude-code/server-managed-settings.md b/content/en/docs/claude-code/server-managed-settings.md
index abd44ad08a..8b52416e55 100644
--- a/content/en/docs/claude-code/server-managed-settings.md
+++ b/content/en/docs/claude-code/server-managed-settings.md
@@ -12,7 +12,7 @@ Server-managed settings let organization Owners centrally configure Claude Code
>
> Server-managed settings are available for [Claude for Teams](https://claude.com/pricing?utm_source=claude_code\&utm_medium=docs\&utm_content=server_settings_teams#team-&-enterprise) and [Claude for Enterprise](https://anthropic.com/contact-sales?utm_source=claude_code\&utm_medium=docs\&utm_content=server_settings_enterprise) customers.
>
-> If you set your provider or gateway at claude.ai under **Organization settings > Desktop 3P**, follow the [Enterprise Admin Console guide](https://claude.com/docs/third-party/claude-desktop/admin-console-claude-code) instead.
+> If you set your provider or gateway at claude.ai under [**Organization settings > Desktop 3P**](https://claude.ai/admin-settings/desktop-deployment), follow the [Enterprise Admin Console guide](https://claude.com/docs/third-party/claude-desktop/admin-console-claude-code) instead.
## Requirements
diff --git a/content/en/docs/claude-code/settings-example.md b/content/en/docs/claude-code/settings-example.md
index acad99e95a..7182f85664 100644
--- a/content/en/docs/claude-code/settings-example.md
+++ b/content/en/docs/claude-code/settings-example.md
@@ -183,7 +183,7 @@ One team's shared settings, committed to the repository so everyone who clones i
> "Read(./secrets/**)"
> ]
> },
-> // Before every Bash command, run a script in the repo that can block it
+> // Before every Bash tool call, run a script in the repo that can block it
> "hooks": {
> "PreToolUse": [
> {
diff --git a/content/en/docs/claude-code/settings-reference.md b/content/en/docs/claude-code/settings-reference.md
index 2037d9f693..88804be3ea 100644
--- a/content/en/docs/claude-code/settings-reference.md
+++ b/content/en/docs/claude-code/settings-reference.md
@@ -17,7 +17,7 @@ Every key below links to its entry. Scope lists the [files](https://code.claude.
| Key | Description | Topic | Scope |
| :- | :- | :- | :- |
| [`advisorModel`](#advisormodel) | Pick which model answers when Claude asks the [advisor tool](https://code.claude.com/docs/en/advisor.md) | Model and responses | Any file |
-| [`agent`](#agent) | Start every session as a named [subagent](https://code.claude.com/docs/en/sub-agents.md) with its prompt, tools, and model | Agents, sessions, and worktrees | Any file |
+| [`agent`](#agent) | Start sessions as a named [subagent](https://code.claude.com/docs/en/sub-agents.md) with its prompt, tools, and model | Agents, sessions, and worktrees | Any file |
| [`agentPushNotifEnabled`](#agentpushnotifenabled) | Let Claude send a [push notification to your phone](https://code.claude.com/docs/en/remote-control.md#mobile-push-notifications) when it decides to | Remote, desktop, and notifications | Any file |
| [`allowAllClaudeAiMcps`](#allowallclaudeaimcps) | Load the [claude.ai connectors](https://code.claude.com/docs/en/mcp.md) Claude Code fetches itself alongside a deployed [`managed-mcp.json`](https://code.claude.com/docs/en/managed-mcp#exclusive-control-with-managed-mcp-json) | MCP | Managed |
| [`allowClaudeInChromeWithManagedMcp`](#allowclaudeinchromewithmanagedmcp) | Let the built-in [Claude in Chrome](https://code.claude.com/docs/en/chrome.md) server run alongside a deployed [`managed-mcp.json`](https://code.claude.com/docs/en/managed-mcp#exclusive-control-with-managed-mcp-json) | MCP | Managed |
@@ -2527,7 +2527,7 @@ Have Claude Code snapshot files before each edit so [`/rewind`](https://code.cla
}
```
-In a `-p` run or an Agent SDK session, Claude Code ignores this key. The SDK turns checkpointing on with its `enableFileCheckpointing` option, and a bare `-p` run needs `CLAUDE_CODE_ENABLE_SDK_FILE_CHECKPOINTING=true`. See [File checkpointing in the Agent SDK](https://code.claude.com/docs/en/agent-sdk/file-checkpointing.md).
+In a `-p` run or an Agent SDK session, Claude Code ignores this key unless your organization's [managed settings](https://code.claude.com/docs/en/managed-settings.md) set it to `false`, and then checkpointing stays off. That exception requires Claude Code v2.1.331 or later. Without that `false`, turn checkpointing on with the SDK's `enableFileCheckpointing` option, or with `CLAUDE_CODE_ENABLE_SDK_FILE_CHECKPOINTING=true` in a bare `-p` run. See [File checkpointing in the Agent SDK](https://code.claude.com/docs/en/agent-sdk/file-checkpointing.md).
### `idleCompaction`
diff --git a/content/en/docs/claude-code/settings.md b/content/en/docs/claude-code/settings.md
index 30e071ccb2..cf6703bf61 100644
--- a/content/en/docs/claude-code/settings.md
+++ b/content/en/docs/claude-code/settings.md
@@ -72,7 +72,7 @@ Some of what you commit waits until each teammate [trusts the folder](https://co
### Keep personal settings out of a repository
-To change a setting for yourself in one project without changing it for your teammates, save it in `.claude/settings.local.json` inside the project. Claude Code applies that file over the committed `.claude/settings.json`, so if your team's file sets `"model": "claude-sonnet-5"` and you want Opus, put `"model": "claude-opus-5-5"` in your local file and only your sessions change.
+To change a setting for yourself in one project, save it in `.claude/settings.local.json` inside the project. Claude Code applies that file over the committed `.claude/settings.json`, so if the committed file sets `"model": "claude-sonnet-5"` and you want Opus, put `"model": "claude-opus-5-5"` in your local file and only your sessions change.
Claude Code also writes to this file, keeps it out of your commits, and applies its allow rules without the trust step:
@@ -230,7 +230,7 @@ In order, highest precedence first:
1. **Managed settings**: settings your organization deploys, by a `managed-settings.json` file, an MDM policy, or [server-managed settings](https://code.claude.com/docs/en/server-managed-settings.md) from the claude.ai console. Nothing in your own settings files or `--settings` overrides a managed key, and a flag such as `--model` picks only from the models your organization allows. A managed [`model`](https://code.claude.com/docs/en/settings-reference#model) is a starting default, not a lock; the locks are [`availableModels`](https://code.claude.com/docs/en/settings-reference#availablemodels) and [`deniedModels`](https://code.claude.com/docs/en/settings-reference#deniedmodels). When your organization delivers more than one managed source, the rules for [precedence within the managed tier](https://code.claude.com/docs/en/managed-settings.md#precedence-within-the-managed-tier) say what Claude Code reads from each.
2. **Command line**: JSON you pass with `--settings ` when you start `claude`, for that session only; see [Change a setting for one session](#change-a-setting-for-one-session). A key you set there overrides the same key in your project and user settings files, and a key you leave out keeps its value from those files. Other flags, such as `--model`, set one thing for the session and aren't part of this stack; a key's entry on the [settings reference](https://code.claude.com/docs/en/settings-reference.md) says which flags override it.
3. **Project local settings** (`.claude/settings.local.json`): your personal settings for this project.
-4. **Shared project settings** (`.claude/settings.json`): settings your team checks into source control.
+4. **Shared project settings** (`.claude/settings.json`): settings checked into source control.
5. **User settings** (`~/.claude/settings.json`): your personal settings for every project.
Environment variables aren't a level in this stack. When a behavior has both a shell variable and a settings key, which one applies is decided per pair, not by level: `ANTHROPIC_MODEL` exported in your shell applies over the `model` key from any file, while `ANTHROPIC_DEFAULT_MODEL` applies only when no file sets `model`. The [environment variables reference](https://code.claude.com/docs/en/env-vars.md#precedence) says which keys have a pair and which one Claude Code reads first. An `env` block inside a settings file is an ordinary key and follows the levels above.
diff --git a/content/en/docs/claude-code/share-sessions.md b/content/en/docs/claude-code/share-sessions.md
index 846c52acd3..8a25adef00 100644
--- a/content/en/docs/claude-code/share-sessions.md
+++ b/content/en/docs/claude-code/share-sessions.md
@@ -92,12 +92,12 @@ For example, on Enterprise and Team plans, you can't share a cloud session that
If recipients can't open a link, check for these causes:
* **Visibility**: the session is **Private**, or the recipient isn't signed in to claude.ai or is outside your organization on a **Team** link. Check [who can open the link](#share-a-session).
-* **Free plan**: the recipient is signed in on a Free account and lands on the upgrade page. Ask them to sign in with an account that has [cloud sessions](https://code.claude.com/docs/en/claude-code-on-the-web.md).
* **Repository access**: the link [requires repository access](#share-a-session), and the recipient's GitHub account can't read the repository. Ask them to [connect an account](https://code.claude.com/docs/en/web-quickstart.md#connect-github) that can.
* **Uploaded or non-GitHub code**: the link requires repository access, and the code was [uploaded](https://code.claude.com/docs/en/claude-code-on-the-web.md#send-local-repositories-without-github) or is on a Git host such as GitLab or Bitbucket. Share from a session whose repository is on github.com and wasn't uploaded.
* **Invalid link**: the share link may not match the address in your browser, and a **Public** link changes when you stop sharing and share again. Copy the current link from **Share** and send it.
* **Organization setting**: [**Share cloud sessions** is off](#sharing-is-turned-off-for-your-organization) for the organization. Ask an Owner to turn it back on.
* **Upgraded plan**: you shared a **Public** link, then upgraded your plan to Team or Enterprise. The link follows the rules for [Enterprise and Team accounts](#share-from-an-enterprise-or-team-account).
+* **Downgraded plan**: you shared a **Public** link, then moved to the Free plan. [Upgrade](https://claude.ai/upgrade) to a Max, Ultra, or Pro plan, and the same link opens with no further step.
You can't restore the link in these cases:
diff --git a/content/en/docs/claude-code/ship-command-troubleshooting.md b/content/en/docs/claude-code/ship-command-troubleshooting.md
index 74b7ba70ef..274ddb41a0 100644
--- a/content/en/docs/claude-code/ship-command-troubleshooting.md
+++ b/content/en/docs/claude-code/ship-command-troubleshooting.md
@@ -239,6 +239,24 @@ These messages are about a custom skill or command. Its name is one that the bui
Leave a repository's `.claude/skills/steward/SKILL.md` as it is, because PR Steward and the watch read it as instructions. Neither message counts that file, so one that names `/steward` is about another skill or command.
+### Keep a custom /ship or /steward without renaming
+
+If you've already created your own skill or command called `/ship` or `/steward` and don't want the built-in versions to override it, you can turn them off. To do that, use the `CLAUDE_CODE_DISABLE_SHIP` environment variable, which turns off both together and requires Claude Code v2.1.331 or later. Before you set it, [remove any `"off"` entry](#a-skilloverrides-entry-turns-off-%2Fship-or-%2Fsteward) for your command under `skillOverrides`.
+
+Add this [`env`](https://code.claude.com/docs/en/settings-reference#env) entry to your [user settings file](https://code.claude.com/docs/en/settings.md#settings-files-and-who-they-affect), or to a project's `.claude/settings.json` for everyone who starts sessions in its top folder, then restart Claude Code:
+
+```json theme={null}
+{
+ "env": {
+ "CLAUDE_CODE_DISABLE_SHIP": "1"
+ }
+}
+```
+
+To check that your command loaded, type `/` at the Claude Code prompt and look for its description or first line.
+
+If your command is named `steward` and the repository has a `.claude/skills/steward/SKILL.md` file, check [which one runs](https://code.claude.com/docs/en/skills.md#resolve-skills-that-share-a-name).
+
## Related resources
* [`/ship` and `/steward`](https://code.claude.com/docs/en/ship-command): what the commands do, how to run them, and what limits Claude during a watch
diff --git a/content/en/docs/claude-code/skills.md b/content/en/docs/claude-code/skills.md
index da9d424c96..17934008ab 100644
--- a/content/en/docs/claude-code/skills.md
+++ b/content/en/docs/claude-code/skills.md
@@ -258,7 +258,7 @@ Claude Code syncs only in a session that signs in with your claude.ai account an
* A session that doesn't use a sign-in stored by `/login`, such as one that authenticates with an API key, or one where `ANTHROPIC_AUTH_TOKEN`, `CLAUDE_CODE_OAUTH_TOKEN`, or an `apiKeyHelper` script supplies the credential
* A session that doesn't fetch feature flags, such as one on Amazon Bedrock or one where you set `CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC`
* A session in [bare mode](https://code.claude.com/docs/en/headless.md#start-faster-with-bare-mode) or one you start with `--safe-mode`
-* A session where your organization's managed settings [lock skills to plugin sources](https://code.claude.com/docs/en/settings-reference.md#strictpluginonlycustomization-skills), or one you start with a [`--setting-sources`](https://code.claude.com/docs/en/cli-reference#cli-flags) list that leaves out `user`
+* A session where managed settings [lock skills to plugin sources](https://code.claude.com/docs/en/settings-reference.md#strictpluginonlycustomization-skills), or one you start with a [`--setting-sources`](https://code.claude.com/docs/en/cli-reference#cli-flags) list that omits `user`
If you sign in with `/login` during a session, restart Claude Code to start syncing.
@@ -821,6 +821,8 @@ Outside [auto mode](https://code.claude.com/docs/en/permission-modes.md#eliminat
In auto mode, a command that would otherwise need your approval doesn't abort the invocation. The skill loads with an instruction telling Claude to run the command first, and Claude's own call then goes through [auto mode's usual checks](https://code.claude.com/docs/en/permission-modes.md#how-the-classifier-evaluates-actions). The invocation still aborts in a [forked skill](#run-skills-in-a-subagent) that sets `agent`, and in a session where Claude doesn't have the [shell tool that runs injected commands](#how-injected-commands-run).
+`PreToolUse` hooks don't fire for injected commands that run as the skill loads. To log or block the ones that pass the permission check, use a [`PreSkillShellCommand` hook](https://code.claude.com/docs/en/hooks#preskillshellcommand).
+
### Run skills in a subagent
Add `context: fork` to your frontmatter when you want a skill to run in isolation. Claude Code starts a new subagent of the type set in the `agent` field and gives it the skill content as its prompt. The subagent doesn't see your conversation history, so the skill's instructions have to stand on their own.
diff --git a/content/en/docs/claude-code/slack.md b/content/en/docs/claude-code/slack.md
index f563cf2e33..28aa235963 100644
--- a/content/en/docs/claude-code/slack.md
+++ b/content/en/docs/claude-code/slack.md
@@ -4,250 +4,9 @@
# Claude Code in Slack
-> Delegate coding tasks from Slack. This earlier version answers mentions only from Pro, Max, and Ultra accounts in workspaces not connected to Claude Tag.
+> What to use in place of the earlier Claude Code in Slack, on Team, Enterprise, Pro, Max, and Ultra plans.
-> [!WARNING]
->
-> This earlier Claude Code in Slack answers channel @mentions only from Pro, Max, and Ultra accounts, and only in a Slack workspace that no organization has connected to [Claude Tag](https://claude.com/product/tag). Each session runs under an individual user's account. Claude Tag runs @Claude as your organization's shared identity with admin-configured access.
->
-> * **Pro, Max, and Ultra plans:** Claude Tag isn't available on individual plans, so [set up this version](#setting-up-claude-code-in-slack) in a workspace that isn't connected to Claude Tag.
-> * **Team and Enterprise plans:** your existing Slack app and @Claude handle stay. [Set up Claude Tag](https://claude.com/docs/claude-tag/overview) for a new workspace; to move one that already uses this version, see [Migrate from the earlier Claude in Slack](https://claude.com/docs/claude-tag/admins/migrate-from-earlier).
-> * **Notice instead of an answer:** look up the [setup notice](#this-workspace-isnt-set-up-for-claude-tag-yet) or the [retirement notice](#the-legacy-claude-in-slack-bot-is-retired) that @Claude replied with.
+The earlier Claude Code in Slack is retired. In a workspace that isn't connected to Claude Tag, `@Claude` replies that the workspace isn't set up for Claude Tag.
-Claude Code in Slack brings the power of Claude Code directly into your Slack workspace. When you mention `@Claude` with a coding task, Claude automatically detects the intent and creates a Claude Code cloud session, allowing you to delegate development work without leaving your team conversations.
-
-This integration is built on the existing Claude for Slack app but adds intelligent routing to Claude Code cloud sessions for coding-related requests. Each session runs under your own Claude account, using your connected repositories and your plan limits.
-
-## Use cases
-
-* **Bug investigation and fixes**: Describe a bug and ask Claude to investigate and fix it.
-* **Quick code reviews and modifications**: Have Claude implement small features or refactor code.
-* **Parallel task execution**: Kick off coding tasks in Slack while you continue other work, receiving notifications when complete.
-
-## Prerequisites
-
-Before using Claude Code in Slack, ensure you have the following:
-
-| Requirement | Details |
-| :- | :- |
-| Claude Plan | Pro, Max, or Ultra |
-| Slack workspace | Not connected to [Claude Tag](https://claude.com/docs/claude-tag/overview) by any organization. If @Claude replies with the [retirement notice](#the-legacy-claude-in-slack-bot-is-retired), the workspace is connected |
-| Cloud sessions | [Cloud sessions](https://code.claude.com/docs/en/claude-code-on-the-web.md) are enabled for your account |
-| GitHub Account | Connected at [claude.ai/code](https://claude.ai/code) with at least one repository authenticated |
-| Slack Authentication | Your Slack account linked to your Claude account via the Claude app |
-
-## Setting up Claude Code in Slack
-
-**1. Install the Claude App in Slack**
-
-A workspace administrator must install the Claude app from the Slack App Marketplace. Visit the [Slack App Marketplace](https://slack.com/marketplace/A08SF47R6P4) and click "Add to Slack" to begin the installation process.
-
-**2. Connect your Claude account**
-
-After the app is installed, authenticate your individual Claude account:
-
-1. Open the Claude app in Slack by clicking on "Claude" in your Apps section
-2. Open the App Home tab
-3. Click **Connect Claude account** to link your Slack account with your Claude account
-4. Complete the authentication flow in your browser
-
-**3. Configure cloud sessions**
-
-Ensure cloud sessions are properly configured for your account:
-
-* Visit [claude.ai/code](https://claude.ai/code) and sign in with the same account you connected to Slack
-* Connect your GitHub account if not already connected
-* Authenticate at least one repository that you want Claude to work with
-
-**4. Choose your routing mode**
-
-After connecting your accounts, configure how Claude handles your messages in Slack. Open the Claude App Home in Slack to find the **Routing Mode** setting.
-
-| Mode | Behavior |
-| :- | :- |
-| **Code only** | Claude routes all @mentions to Claude Code sessions. Best for teams using Claude in Slack exclusively for development tasks. |
-| **Code + Chat** | Claude analyzes each message and intelligently routes between Claude Code (for coding tasks) and Claude Chat (for writing, analysis, and general questions). Best for teams who want a single @Claude entry point for all types of work. |
-
-> [!NOTE]
->
-> In Code + Chat mode, if Claude answers in Chat but you wanted a coding session, click **Switch to code repo...** on the reply and select a repository. Claude then starts a Claude Code session with your message instead.
-
-**5. Add Claude to channels**
-
-Claude is not automatically added to any channels after installation. To use Claude in a channel, invite it by typing `/invite @Claude` in that channel. Claude can only respond to @mentions in channels where it has been added.
-
-## How it works
-
-### Automatic detection
-
-In Code + Chat routing mode, when you mention @Claude in a Slack channel or thread, Claude automatically detects whether your message is a coding task. Coding tasks go to a Claude Code cloud session. Anything else gets a regular chat reply. In Code only mode, every @mention goes to Claude Code.
-
-You can also explicitly tell Claude to handle a request as a coding task, even if it doesn't automatically detect it.
-
-> [!NOTE]
->
-> Claude Code in Slack only works in channels (public or private). It does not work in direct messages (DMs).
-
-### Context gathering
-
-* **From threads**: when you first @mention Claude in a thread, it gathers context from your messages and its own in that thread.
-* **From channels**: when you @mention Claude directly in a channel, it looks at your recent messages and its own in that channel, and at the channel's name, topic, and description.
-
-This context helps Claude understand the problem, select the appropriate repository, and inform its approach to the task. To give Claude something a teammate wrote, such as an error report, paste its text into the message where you @mention Claude.
-
-> [!WARNING]
->
-> When @Claude is invoked in Slack, Claude is given access to the conversation context to better understand your request. Claude may follow directions from other messages in the context, so users should make sure to only use Claude in trusted Slack conversations.
-
-### Session flow
-
-1. **Initiation**: You @mention Claude with a coding request
-2. **Detection**: Claude analyzes your message and detects coding intent
-3. **Session creation**: A new Claude Code session is created on claude.ai/code
-4. **Progress updates**: Claude posts status updates to your Slack thread as work progresses
-5. **Completion**: When finished, Claude updates its message in the thread with its final response and action buttons, and sends you a direct message linking to it
-6. **Review**: Click **View session** to see the full transcript, or **Create PR** to open a pull request
-
-## User interface elements
-
-### Message actions
-
-* **View session**: Opens the full Claude Code session in your browser where you can see all work performed, continue the session, or make additional requests.
-* **Create PR**: Opens GitHub's compare page for the session's branch, where you create the pull request. It appears on the status message Claude posted when the session started, once the session finishes.
-* **Switch to code repo...**: If Claude responds in Chat but you wanted a coding session, click this button and select a repository, and Claude starts a Claude Code session with your original request.
-
-### Repository selection
-
-Claude automatically selects a repository based on context from your Slack conversation. If Claude can't tell which repository you mean, it asks you to choose: click **Select repository** and select one from the list.
-
-## Access and permissions
-
-### User-level access
-
-| Access Type | Requirement |
-| :- | :- |
-| Claude Code Sessions | Each user runs sessions under their own Claude account |
-| Usage & Rate Limits | Sessions count against the individual user's plan limits |
-| Repository Access | Users can only access repositories they've personally connected |
-| Session History | Sessions appear in your Claude Code history on claude.ai/code |
-
-### Workspace-level access
-
-Slack workspace administrators control whether the Claude app is available in their workspace:
-
-| Control | Description |
-| :- | :- |
-| App installation | Workspace admins decide whether to install the Claude app from the Slack App Marketplace |
-| Enterprise Grid distribution | For Enterprise Grid organizations, organization admins can control which workspaces have access to the Claude app |
-| App removal | Removing the app from a workspace immediately revokes access for all users in that workspace |
-
-### Channel-based access control
-
-Installing the app doesn't add Claude to any channels. Claude responds to @mentions only in channels where it has been added; invite it with `/invite @Claude`. It works in both public and private channels. Admins can control who uses Claude Code by managing which channels Claude is invited to and who has access to those channels. This adds a layer of access control beyond workspace-level permissions.
-
-## What's accessible where
-
-**In Slack**: You'll see status updates, completion summaries, and action buttons. The full transcript is preserved and always accessible.
-
-**At claude.ai/code**: The complete Claude Code session with full conversation history, all code changes, and file operations. Sessions stay in your Claude Code history at [claude.ai/code](https://claude.ai/code), where you can continue past sessions, reference them, or create pull requests.
-
-For Enterprise and Team accounts, sessions created from Claude in Slack are
-automatically visible to the organization. See [cloud session sharing](https://code.claude.com/docs/en/claude-code-on-the-web.md#share-sessions)
-for more details.
-
-## Best practices
-
-### Writing effective requests
-
-* **Be specific**: Include file names, function names, or error messages when relevant.
-* **Provide context**: Mention the repository or project.
-* **Define success**: Explain what "done" looks like. Should Claude write tests? Update documentation? Create a PR?
-
-### When to use Slack vs. web
-
-**Use Slack when**: You want to start a task asynchronously, or you're collaborating with teammates who need visibility.
-
-**Use the web directly when**: You need to upload files, want real-time interaction during development, or are working on longer, more complex tasks.
-
-## Troubleshooting
-
-### "This workspace isn't set up for Claude Tag yet"
-
-@Claude replies in the thread with this notice instead of an answer when both of these are true:
-
-* No organization has connected your Slack workspace to [Claude Tag](https://claude.com/docs/claude-tag/overview).
-* The Claude account you linked in Slack isn't on a Pro, Max, or Ultra plan.
-
-Claude Tag is available on Team and Enterprise plans. To connect the workspace, start with the `@Claude connect` command the notice names, then follow [Set up Claude Tag](https://claude.com/docs/claude-tag/overview).
-
-### "The legacy Claude in Slack bot is retired"
-
-The notice opens with `The legacy Claude in Slack bot is retired effective October 5, 2026 and no longer responds in channels.` Your Slack workspace is connected to a Claude organization. The earlier version is still selected for the channel, the workspace, or the organization default in that organization's Claude Tag settings. The notice doesn't depend on your own plan, so Pro, Max, and Ultra accounts get it too.
-
-If you're an Owner of that organization, open [Claude admin settings](https://claude.ai/admin-settings/claude-tag) and turn on Claude Tag for the channel. To fix every channel that inherits the setting, change it on the workspace or the organization default instead. For the full move, see [Migrate from the earlier Claude in Slack](https://claude.com/docs/claude-tag/admins/migrate-from-earlier). If you're not an Owner, send this entry to one.
-
-### "Claude Code is not enabled for your account"
-
-This error means your Claude account has no cloud environment yet. Sign in at [claude.ai/code](https://claude.ai/code) once with the same account you connected to Slack and finish [web onboarding](https://code.claude.com/docs/en/web-quickstart.md#connect-github), which creates your default cloud environment or asks you to create it. The error clears on your next mention. Each user must do this individually.
-
-### Sessions not starting
-
-1. Verify your Claude account is connected in the Claude App Home
-2. Check that cloud sessions are enabled for your account
-3. Ensure you have at least one GitHub repository connected to Claude Code
-
-### Sessions from a Claude Tag channel fail to start
-
-This entry applies to workspaces using [Claude Tag](https://claude.com/docs/claude-tag/overview). If you created the channel's cloud environment at [claude.ai/code](https://claude.ai/code), it belongs to your personal account, and Claude can't start channel sessions in a personal environment. Claude Code fails the session immediately, and retrying doesn't help.
-
-If you're an Owner and the environment is your own, [share it with the organization](https://code.claude.com/docs/en/cloud-environments.md#organization-shared-environments) from the environment selector. Otherwise, an Owner recreates it as an organization-shared environment from the **Cloud environments** page in [admin settings](https://claude.ai/admin-settings).
-
-You can apply it in two ways:
-
-* Set it as the organization default at [claude.ai/admin-settings/claude-code](https://claude.ai/admin-settings/claude-code).
-* [Set it on the channel](https://claude.com/docs/claude-tag/admins/troubleshooting#channel-sessions-use-the-wrong-environment-or-can%E2%80%99t-find-one) in the Claude Tag admin settings.
-
-If you're not an Owner, send this entry to one.
-
-### Repository not showing
-
-1. Connect the repository at [claude.ai/code](https://claude.ai/code)
-2. Verify your GitHub permissions for that repository
-3. Try disconnecting and reconnecting your GitHub account
-
-### Wrong repository selected
-
-Include the repository name in your request for more accurate selection.
-
-### Authentication errors
-
-1. Disconnect and reconnect your Claude account in the App Home
-2. Ensure you're signed into the correct Claude account in your browser
-
-## Current limitations
-
-* **GitHub only**: repositories must be on GitHub.
-* **One PR at a time**: each session can create one pull request.
-* **Cloud session access required**: users need access to [cloud sessions](https://code.claude.com/docs/en/claude-code-on-the-web.md).
-
-## Related resources
-
-> [card] [Claude Code in the cloud](https://code.claude.com/docs/en/claude-code-on-the-web.md)
->
-> Learn more about cloud sessions
-
-> [card] [Claude for Slack](https://claude.com/claude-and-slack)
->
-> General Claude for Slack documentation
-
-> [card] [Claude Tag](https://claude.com/docs/claude-tag/overview)
->
-> Organization-managed @Claude in Slack with admin-configured access
-
-> [card] [Slack App Marketplace](https://slack.com/marketplace/A08SF47R6P4)
->
-> Install the Claude app from the Slack Marketplace
-
-> [card] [Claude Help Center](https://support.claude.com)
->
-> Get additional support
+* **Team and Enterprise plans:** use [Claude Tag](https://claude.com/docs/claude-tag/overview) if it's in your channel. If it isn't, see [how to set it up](https://claude.com/docs/claude-tag/admins/setup-overview). To move a workspace from the earlier version, see [the migration guide](https://claude.com/docs/claude-tag/admins/migrate-from-earlier).
+* **Pro, Max, and Ultra plans:** Claude Tag isn't available on individual plans. Start tasks in [Projects](https://code.claude.com/docs/en/claude-projects.md) if your account has them, or in [cloud sessions](https://code.claude.com/docs/en/claude-code-on-the-web.md).
diff --git a/content/en/docs/claude-code/sub-agents.md b/content/en/docs/claude-code/sub-agents.md
index 60343c9d68..253affa7bb 100644
--- a/content/en/docs/claude-code/sub-agents.md
+++ b/content/en/docs/claude-code/sub-agents.md
@@ -310,7 +310,7 @@ Multi-word field names use camelCase, such as `maxTurns` and `disallowedTools`,
| `background` | No | Set to `true` to keep this subagent in the background even when Claude asks to wait for it. By default, custom subagents Claude spawns from the main conversation already [start in the background](#run-subagents-in-foreground-or-background) |
| `omitClaudeMd` | No | Set to `true` to start this subagent without the user, project, and local CLAUDE.md files in its [initial context](#what-loads-at-startup); [managed policy files](https://code.claude.com/docs/en/memory.md#how-claude-md-files-load) still load, except for [managed subagents](#choose-the-subagent-scope). Use it for subagents that take everything they need from the delegation prompt. Ignored when the agent runs as the main session agent via `--agent` or the `agent` setting. Requires Claude Code v2.1.271 or later |
| `effort` | No | Effort level when this subagent is active. Overrides the session effort level, but not the [`CLAUDE_CODE_EFFORT_LEVEL`](https://code.claude.com/docs/en/env-vars#variables) environment variable. Options: `low`, `medium`, `high`, `xhigh`, `max`; available levels depend on the model. See [Choose an effort level](#choose-an-effort-level) |
-| `isolation` | No | Set to `worktree` to run the subagent in a temporary [git worktree](https://code.claude.com/docs/en/worktrees.md), giving it an isolated copy of the repository branched by default from your [default branch](https://code.claude.com/docs/en/worktrees.md#choose-the-base-branch) rather than the parent session's `HEAD`. The worktree is automatically cleaned up if the subagent makes no changes |
+| `isolation` | No | Set to `worktree` to run the subagent in a temporary [git worktree](https://code.claude.com/docs/en/worktrees.md), giving it an isolated copy of the repository. By default, the copy branches from your [default branch](https://code.claude.com/docs/en/worktrees.md#choose-the-base-branch) rather than the parent session's `HEAD`. Claude Code [can remove the worktree](https://code.claude.com/docs/en/worktrees.md#isolate-subagents-with-worktrees) if the subagent makes no changes |
| `color` | No | Display color for the subagent in the task list and transcript. Accepts `red`, `blue`, `green`, `yellow`, `purple`, `orange`, `pink`, or `cyan` |
| `initialPrompt` | No | Auto-submitted as the first user turn when this agent runs as the main session agent (via `--agent` or the `agent` setting). [Commands](https://code.claude.com/docs/en/commands.md) and [skills](https://code.claude.com/docs/en/skills.md) are processed. Prepended to any user-provided prompt. Ignored for [plugin subagents](#choose-the-subagent-scope) |
| `experimental` | No | Map of experimental options. Set its `cacheTtl` key to `5m` or `1h` to choose the [prompt cache lifetime](https://code.claude.com/docs/en/prompt-caching.md#choose-the-ttl-yourself) for this subagent's requests, at the frontmatter's place in the [cache lifetime precedence](https://code.claude.com/docs/en/prompt-caching.md#choose-the-ttl-yourself). Claude Code ignores any other value, ignores `1h` while your Claude subscription is using usage credits, and reads the field only from subagent files. Requires Claude Code v2.1.248 or later |
@@ -410,7 +410,7 @@ By default, a subagent with a model alias runs on the [version the alias points
#### When an allowlist blocks a subagent model
-If your organization's [`availableModels`](https://code.claude.com/docs/en/model-config#restrict-model-selection) allowlist blocks the model set for a subagent other than [`web-fetch`](https://code.claude.com/docs/en/tools-reference#which-model-the-web-fetch-subagent-runs-on), the subagent runs on the first of these that applies:
+If an [`availableModels`](https://code.claude.com/docs/en/model-config#restrict-model-selection) allowlist in your settings blocks the model set for a subagent other than [`web-fetch`](https://code.claude.com/docs/en/tools-reference#which-model-the-web-fetch-subagent-runs-on), the subagent runs on the first of these that applies:
1. For a blocked family alias, the newest permitted version in that family, on [providers that support this substitution](https://code.claude.com/docs/en/model-config.md#restrict-model-selection)
2. The model in `CLAUDE_CODE_SUBAGENT_MODEL`, if you set it, under these same rules
@@ -714,7 +714,7 @@ When memory is enabled:
For more dynamic control over tool usage, use `PreToolUse` hooks to validate operations before they execute. This is useful when you need to allow some operations of a tool while blocking others.
-This example creates a subagent that only allows read-only database queries. The `PreToolUse` hook runs the script specified in `command` before each Bash command executes:
+This example creates a subagent that only allows read-only database queries. The `PreToolUse` hook runs the script specified in `command` before each Bash tool call executes:
```yaml theme={null}
---
@@ -927,7 +927,7 @@ claude --agent my-plugin:security-reviewer
If the plugin places the agent in a subfolder of its `agents/` directory, include the subfolder in the scoped name, for example `claude --agent my-plugin:review:security`.
-To make it the default for every session in a project, set `agent` in `.claude/settings.json`:
+To make a subagent the default for sessions in a project, set `agent` in `.claude/settings.json`:
```json theme={null}
{
diff --git a/content/en/docs/claude-code/tools-reference.md b/content/en/docs/claude-code/tools-reference.md
index 01b9f01816..911cfb75a8 100644
--- a/content/en/docs/claude-code/tools-reference.md
+++ b/content/en/docs/claude-code/tools-reference.md
@@ -151,10 +151,10 @@ The Bash tool runs each command in a separate process.
### What persists between commands
-* When Claude runs `cd` in the main session, the new working directory carries over to later Bash commands as long as it stays inside the project directory or an [additional working directory](https://code.claude.com/docs/en/permissions.md#working-directories) you added with `--add-dir`, `/add-dir`, or `additionalDirectories` in settings. This includes commands Claude runs in response to your later messages.
+* In the main session, Claude's `cd` carries over to later Bash commands only from a foreground command that exits 0. The command must also end inside the project directory or an [additional working directory](https://code.claude.com/docs/en/permissions.md#working-directories), such as one you added with `--add-dir`, `/add-dir`, or `additionalDirectories` in settings.
+ * By default, if that command ends outside those directories, Claude Code resets to the project directory and appends `Shell cwd was reset to ` to the tool result.
+ * To disable this carry-over, set `CLAUDE_BASH_MAINTAIN_PROJECT_WORKING_DIR=1`.
* Subagent sessions never carry over working directory changes.
- * If `cd` lands outside those directories, Claude Code resets to the project directory and appends `Shell cwd was reset to ` to the tool result.
- * To disable this carry-over so every Bash command starts in the project directory, set `CLAUDE_BASH_MAINTAIN_PROJECT_WORKING_DIR=1`.
* Environment variables don't persist. An `export` in one command won't be available in the next.
* Claude Code starts a non-interactive shell, sources `~/.zshrc` for Zsh or `~/.bashrc` for Bash, and applies the aliases, functions, and shell options it captures to Bash commands.
@@ -512,9 +512,11 @@ Three additional settings control where PowerShell is used:
* `"shell": "powershell"` on individual [command hooks](https://code.claude.com/docs/en/hooks.md#command-hook-fields): runs that hook in PowerShell. Hooks spawn PowerShell directly, so this works regardless of `CLAUDE_CODE_USE_POWERSHELL_TOOL`.
* `shell: powershell` in [skill frontmatter](https://code.claude.com/docs/en/skills.md#frontmatter-reference): runs `` !`command` `` blocks in PowerShell. Requires the PowerShell tool to be enabled.
-PowerShell commands follow the [same main-session working-directory reset behavior](#what-persists-between-commands) as Bash commands, including the `CLAUDE_BASH_MAINTAIN_PROJECT_WORKING_DIR` environment variable.
+### Working directory and variables in PowerShell commands
-PowerShell commands also receive the variables hooks persist through `CLAUDE_ENV_FILE`, under the conditions in [Persisted variables in PowerShell commands](https://code.claude.com/docs/en/hooks.md#persisted-variables-in-powershell-commands). Requires Claude Code v2.1.296 or later.
+By default, when a foreground PowerShell command in the main session ends outside your [working directories](https://code.claude.com/docs/en/permissions.md#working-directories), Claude Code resets to the project directory. To reset after each command, set `CLAUDE_BASH_MAINTAIN_PROJECT_WORKING_DIR=1`.
+
+PowerShell commands receive the variables hooks persist through `CLAUDE_ENV_FILE`, under the conditions in [Persisted variables in PowerShell commands](https://code.claude.com/docs/en/hooks.md#persisted-variables-in-powershell-commands). Requires Claude Code v2.1.296 or later.
### Exit code 1 from searches and `git diff` in PowerShell
diff --git a/content/en/docs/claude-code/troubleshoot-install.md b/content/en/docs/claude-code/troubleshoot-install.md
index 939991b39e..033050d7fb 100644
--- a/content/en/docs/claude-code/troubleshoot-install.md
+++ b/content/en/docs/claude-code/troubleshoot-install.md
@@ -58,6 +58,7 @@ Match the error message or symptom you're seeing to a fix:
| `unable to get local issuer certificate` | [Configure corporate CA certificates](#tls-or-ssl-connection-errors) |
| `OAuth error`, `That doesn't look like the full code`, or `403 Forbidden` | [Fix authentication](#login-and-authentication) |
| `Claude Code access has not been granted for this account` | [Get a role that includes Claude Code](#claude-code-access-has-not-been-granted-for-this-account) |
+| `That code wasn't accepted` | Sign in again and paste the new code |
| `Unable to connect to Anthropic services` during setup | See [Unable to connect to Anthropic services](https://code.claude.com/docs/en/errors.md#unable-to-connect-to-anthropic-services) in the Error reference |
| `Could not load the default credentials` or `Could not load credentials from any providers` | [Amazon Bedrock, Google Cloud's Agent Platform, or Microsoft Foundry credentials](#bedrock-agent-platform-or-foundry-credentials-not-loading) |
| `ChainedTokenCredential authentication failed` or `CredentialUnavailableError` | [Amazon Bedrock, Google Cloud's Agent Platform, or Microsoft Foundry credentials](#bedrock-agent-platform-or-foundry-credentials-not-loading) |
diff --git a/content/en/docs/claude-code/voice-dictation.md b/content/en/docs/claude-code/voice-dictation.md
index 1cdc1e456d..ff22860488 100644
--- a/content/en/docs/claude-code/voice-dictation.md
+++ b/content/en/docs/claude-code/voice-dictation.md
@@ -79,7 +79,7 @@ Your speech appears in the prompt as you speak, dimmed until the transcript is f
By default, when you release the key, Claude Code inserts the transcript and waits for you to press `Enter`. Set `"autoSubmit": true` in the `voice` settings object to send the prompt automatically when you release the key, as long as the transcript is at least three words long.
-Holding or tapping `Space` starts dictation only where the keypress would otherwise type into the prompt. In the [transcript viewer](https://code.claude.com/docs/en/interactive-mode.md#transcript-viewer), `Space` pages through the conversation, and in [vim mode](https://code.claude.com/docs/en/interactive-mode.md#vim-editor-mode) outside INSERT it is a command. To dictate from either place, [rebind to a modifier combination](#rebind-the-dictation-key) like `meta+k`.
+Holding or tapping `Space` starts dictation only where the keypress would otherwise type into the prompt. In the [transcript viewer](https://code.claude.com/docs/en/interactive-mode.md#transcript-viewer), `Space` pages through the conversation, and in [vim mode](https://code.claude.com/docs/en/interactive-mode.md#vim-editor-mode) outside INSERT it is a command. To dictate outside INSERT, or in hold mode from the transcript viewer, [rebind to a modifier combination](#rebind-the-dictation-key) like `meta+k`.
## Tap to record and send
@@ -87,17 +87,42 @@ Tap mode toggles recording with a single keypress: tap once to start, speak, the
Enable tap mode with `/voice tap`. With the prompt input empty, tap `Space` to start recording. The footer shows `● REC · tap to send` while recording. Tap `Space` again to stop.
-Claude Code inserts the transcript and submits the prompt automatically when the transcript is at least three words long. Shorter transcripts are inserted but not submitted, so an accidental tap does not send a stray word.
+After the second tap, Claude Code inserts the transcript and submits the prompt if the transcript is long enough:
+
+* **Three words or more**: Claude Code submits the prompt automatically.
+* **Fewer words**: the transcript is inserted but not submitted, so an accidental tap does not send a stray word.
The three-word threshold counts words for languages written without spaces. Japanese, Chinese, and Thai transcripts count individual words, so they auto-submit in tap mode and in hold mode with `autoSubmit`.
-The first tap only starts recording when the prompt input is empty, so you can still type spaces normally while composing a message. The second tap stops recording regardless of input contents. Recording also stops automatically after 15 seconds of silence or two minutes total.
+You tap once to start or resume a recording, and it can stop without a second tap:
+
+* **Start**: the first tap starts recording when the prompt input is empty, so you can still type spaces normally while composing a message. To add to a recording that stopped by itself, [resume it](#resume-a-recording-that-stopped-by-itself).
+* **Stop**: recording also stops when you send or edit the prompt. It stops by itself after 60 seconds with no recognized words or after 10 minutes total.
+
+### Resume a recording that stopped by itself
+
+When a tap-mode recording stops by itself, your words stay in the prompt unsent and the footer says why. You can send the words, or add to them if you haven't edited them:
+
+* **Send the words**: press `Enter`.
+* **Add to the words**: put the cursor at the end of the words and tap `Space` to record again. When you tap again to stop, Claude Code sends all of the text if you added at least three words.
+
+To see what stopped the recording, find the part of the footer message that starts with `dictation stopped`:
+
+| Message | What stopped the recording |
+| :- | :- |
+| `dictation stopped after 1m with no new words` | No words were recognized for 60 seconds. If you were speaking, try the fixes for [`No speech detected`](#troubleshooting) |
+| `dictation stopped at its 10m limit` | The recording reached 10 minutes |
+| `dictation stopped: lost the connection` | The connection to the transcription service closed, or couldn't be opened again after it failed |
+| `dictation stopped: lost the microphone` | The program recording your microphone, such as SoX or `arecord`, exited or couldn't start |
+| `dictation stopped: the prompt lost focus` | A panel such as the model picker opened, or you opened the [transcript viewer](https://code.claude.com/docs/en/interactive-mode.md#transcript-viewer) |
+| `dictation stopped: the terminal detached` | The last remaining terminal detached from a [background session](https://code.claude.com/docs/en/agent-view.md) |
+| `dictation stopped: the prompt changed` | The prompt's text changed, for example because you typed in it. To dictate again, send or clear the prompt first |
## Cancel a recording
-Press `Esc` or `Ctrl+C` to cancel a dictation instead of finalizing it. Claude Code stops the microphone, discards the transcript, and restores the prompt to what it held before the recording started.
+With no panel, question, or permission prompt open, press `Esc` or `Ctrl+C` to cancel a dictation instead of finalizing it. Claude Code stops the microphone, discards the transcript, and restores the prompt to what it held before the recording started.
-Both keys also cancel while a finished recording's transcript is still processing. A prompt you edited or submitted during processing stays as you left it.
+At the prompt, both keys also cancel while a finished recording's transcript is still processing. A prompt you edited or submitted during processing stays as you left it.
Neither key does anything else in the press that cancels: `Esc` doesn't interrupt Claude's response, and `Ctrl+C` doesn't clear the prompt or count as the first of the [two presses that exit Claude Code](https://code.claude.com/docs/en/interactive-mode.md#general-controls).
@@ -177,13 +202,20 @@ Common issues when voice dictation does not activate or record:
* **`Voice mode could not find a working audio recorder in WSL`**: WSLg routes audio through PulseAudio rather than an ALSA device, so SoX needs its PulseAudio backend installed explicitly. Run `sudo apt install sox libsox-fmt-pulse`. Installing `sox` alone pulls in the ALSA backend, which cannot record on WSL because there is no `/dev/snd` device.
* **`Voice input is failing repeatedly and has been paused`**: voice dictation hit three failures within 10 seconds. Claude Code pauses dictation until 10 seconds have passed since the first of those failures. This usually means the microphone or audio stack on this host can't capture audio, for example a headless server, a remote shell with no audio passthrough, or a denied microphone permission. Confirm a working input device, fix the underlying cause from the entries above, then trigger voice again. Before v2.1.202, only start-up failures counted toward the pause.
* **Nothing happens when holding `Space` in hold mode**: watch the prompt input while you hold. If spaces keep accumulating, voice dictation is likely off; run `/voice hold` to enable it. If only one or two spaces appear and then nothing, voice dictation is on but hold detection is not triggering. Hold detection requires your terminal to send key-repeat events, so it can't detect a held key if key-repeat is disabled at the OS level. Switch to tap mode with `/voice tap` to avoid the key-repeat requirement.
-* **Tapping `Space` types a space instead of recording in tap mode**: the first tap only starts recording when the prompt input is empty. Clear the input first, or check that you are in tap mode by running `/voice tap`.
+* **Tapping `Space` types a space instead of recording in tap mode**: when the prompt has text and you aren't [resuming a recording](#resume-a-recording-that-stopped-by-itself), `Space` types a space. To record, send or clear the prompt first. If the prompt is already empty, run `/voice tap` to turn on tap mode.
* **`No audio detected from microphone`**: recording started but captured silence. Confirm the correct input device is set as the system default and that its input level is not muted or near zero. On Windows, open Settings → System → Sound → Input and select your microphone. On macOS, open System Settings → Sound → Input.
* **`Voice connection failed`**: your recording never reached the transcription service because the connection failed. Check your network and try again. A recording that captures no audio reports `No audio detected from microphone` instead of this message. Before v2.1.200, a silent microphone could report a connection failure, which suggested a network problem when the actual issue was the input device.
* **`Dictation error: WebSocket error:` followed by a certificate error such as `unable to get local issuer certificate`**: see [Dictation or the Web tab fails behind a TLS-inspecting proxy](https://code.claude.com/docs/en/vs-code.md#dictation-or-the-web-tab-fails-behind-a-tls-inspecting-proxy) on the VS Code page.
* **`Voice stream error: WebSocket upgrade rejected with HTTP `**: a server refused your connection with the HTTP status shown, so this isn't a network outage. A status in the 400 range usually means a stale sign-in, or a proxy or bot-protection service answering in place of the transcription service. Run `/login` to refresh your sign-in, and check for a VPN or proxy on your network path if the status persists. If you're still recording when the rejection arrives, Claude Code retries a status outside the 400 range once before showing this message; it doesn't retry a status in the 400 range. In v2.1.229 through v2.1.231, native builds didn't show this message: Claude Code kept recording, the hold-mode footer still showed `listening…`, and it reported `Voice connection failed` after you stopped recording.
* **`No speech detected`**: audio reached the transcription service but no words were recognized. Speak closer to the microphone, reduce background noise, and confirm your [dictation language](#change-the-dictation-language) matches the language you are speaking.
-* **`Dictation stopped: no speech recognized for 15 seconds` or `Dictation stopped at its 2-minute limit`**: in the VS Code extension, a recording ends after 15 seconds with no recognized words, or two minutes after it starts. If you were speaking during those 15 seconds, try the fixes for `No speech detected`. Words already recognized stay in the prompt box and aren't sent. To add more, click the microphone button again.
+* **`text kept, Enter to send` or `dictation stopped` in the terminal's footer**: your tap-mode recording stopped without a second tap. Words still in the prompt haven't been sent. Press `Enter` to send them, or [add to them](#resume-a-recording-that-stopped-by-itself). Before v2.1.332, recordings stopped after 15 seconds with no recognized words or after two minutes, and Claude Code then sent a transcript of three or more words.
+* **`Dictation stopped: no speech recognized for 60 seconds`, `Dictation stopped at its 10-minute limit`, or `Dictation stopped: this panel was hidden`**: the VS Code extension stopped your recording. Words already recognized stay in the prompt box and aren't sent. To add more, click the microphone button again. The limits are shorter while the panel is hidden:
+
+ * **Visible panel**: with a working connection and microphone, the recording ends after 60 seconds with no recognized words, or 10 minutes after it starts. If you were speaking during those 60 seconds, try the fixes for `No speech detected`.
+ * **Hidden panel**: after you hide the panel, the recording ends after 15 seconds with no recognized words, or two minutes after you hid it. Keep the panel visible while you dictate.
+
+ Before v2.1.332, the first two messages were `Dictation stopped: no speech recognized for 15 seconds` and `Dictation stopped at its 2-minute limit`.
+* **`Dictation error: The microphone stopped sending audio`**: words already recognized stay in the VS Code extension's prompt box and aren't sent. To try again, click the microphone button.
* **Transcription is garbled or in the wrong language**: dictation defaults to English. If you are dictating in another language, set it in `/config` first. See [Change the dictation language](#change-the-dictation-language).
### Terminal not listed in macOS Microphone settings
diff --git a/content/en/docs/claude-code/vs-code.md b/content/en/docs/claude-code/vs-code.md
index c67be76460..4f89c1d400 100644
--- a/content/en/docs/claude-code/vs-code.md
+++ b/content/en/docs/claude-code/vs-code.md
@@ -70,7 +70,7 @@ Other ways to open Claude Code:
* **Activity Bar**: click the Spark icon in the left sidebar to open the sessions list. Click any session to open it in your [preferred location](#extension-settings), or start a new one. This icon is always visible in the Activity Bar.
* **Command Palette**: `Cmd+Shift+P` (Mac) or `Ctrl+Shift+P` (Windows/Linux), type "Claude Code", and select an option like "Open in New Tab"
-* **Status Bar**: click **✻ Claude Code** in the bottom-right corner of the window. This works even when no file is open.
+* **Status Bar**: click **✻ Claude Code** in the bottom-right corner of the window. This works without an open file.
You can drag the Claude panel to reposition it anywhere in VS Code. See [Customize your workflow](#customize-your-workflow) for details.
@@ -796,7 +796,7 @@ VS Code reads `initialPermissionMode` from your user settings and ignores worksp
## Use third-party providers
-By default, Claude Code connects directly to Anthropic's API. If your organization uses Amazon Bedrock, Google Cloud's Agent Platform, or Microsoft Foundry to access Claude, configure the extension to use your provider instead:
+By default, Claude Code connects directly to Anthropic's API. If you use Amazon Bedrock, Google Cloud's Agent Platform, or Microsoft Foundry to access Claude, configure the extension to use your provider instead:
**1. Disable login prompt**
@@ -1012,13 +1012,13 @@ Sign-in, network, and launch errors have their own entries on the install troubl
The Spark icon appears in the **Editor Toolbar** (top-right of editor) when you have a file open. If you don't see it:
-1. **Open a file**: The icon requires a file to be open. Having only a folder open isn't enough.
+1. **Open a file**: The icon requires a file to be open.
2. **Check VS Code version**: Requires 1.94.0 or later. Check under **Help > About**
3. **Restart VS Code**: Run "Developer: Reload Window" from the Command Palette
4. **Disable conflicting extensions**: Temporarily disable other AI extensions (Cline, Continue, etc.)
5. **Check workspace trust**: The extension doesn't work in Restricted Mode
-Alternatively, click **✻ Claude Code** in the **Status Bar** at the bottom-right corner of the window. This works even without a file open. You can also use the **Command Palette** (`Cmd+Shift+P` / `Ctrl+Shift+P`) and type "Claude Code".
+Alternatively, click **✻ Claude Code** in the **Status Bar** at the bottom-right corner of the window. This works without a file open. You can also use the **Command Palette** (`Cmd+Shift+P` / `Ctrl+Shift+P`) and type "Claude Code".
### Cmd+Esc does nothing on macOS
diff --git a/content/en/docs/claude-code/web-quickstart.md b/content/en/docs/claude-code/web-quickstart.md
index 646e586015..8ad11f5613 100644
--- a/content/en/docs/claude-code/web-quickstart.md
+++ b/content/en/docs/claude-code/web-quickstart.md
@@ -32,7 +32,7 @@ The steps below describe Anthropic-hosted sessions. In a [self-hosted environmen
3. **Work**: Claude analyzes code, makes changes, runs tests, and checks its work. You can watch and steer throughout, or step away and come back when it's done.
4. **Push the branch**: when Claude reaches a stopping point, it pushes its branch to GitHub. You review the diff, leave inline comments, create a PR, or send another message to keep going.
-The session doesn't close when the branch is pushed. PR creation and further edits all happen within the same conversation.
+PR creation and further edits all happen within the same conversation.
## Compare ways to run Claude Code
diff --git a/content/en/docs/claude-code/workflows.md b/content/en/docs/claude-code/workflows.md
index f18c84689f..6fd4ddec4a 100644
--- a/content/en/docs/claude-code/workflows.md
+++ b/content/en/docs/claude-code/workflows.md
@@ -466,7 +466,7 @@ To control the model cost:
* Check `/model` before a large run if you usually switch to a smaller model for routine work
* Ask Claude to use a smaller model for stages that don't need the strongest one when you describe the task
-When your organization's [`availableModels` allowlist](https://code.claude.com/docs/en/model-config#restrict-model-selection) blocks a model the script requests for an agent, that agent runs on a substituted model instead, following the same [substitution rules as subagents](https://code.claude.com/docs/en/sub-agents.md#when-an-allowlist-blocks-a-subagent-model).
+When an [`availableModels` allowlist](https://code.claude.com/docs/en/model-config#restrict-model-selection) blocks a model the script requests for an agent, that agent runs on a substituted model instead, following the same [substitution rules as subagents](https://code.claude.com/docs/en/sub-agents.md#when-an-allowlist-blocks-a-subagent-model).
### Set a size guideline
diff --git a/content/en/docs/claude-code/worktrees.md b/content/en/docs/claude-code/worktrees.md
index a414031b1c..f91dfd4394 100644
--- a/content/en/docs/claude-code/worktrees.md
+++ b/content/en/docs/claude-code/worktrees.md
@@ -141,7 +141,7 @@ Apply the requested refactor across every affected file, then run the tests
and report the results.
```
-Each subagent gets a temporary worktree that Claude Code removes automatically when the subagent finishes without changes; a worktree with changes stays on disk until the [periodic sweep below](#clean-up-subagent-and-background-session-worktrees) can remove it without losing work. For a worktree your [WorktreeCreate hook](https://code.claude.com/docs/en/hooks.md#worktreecreate) created, see [WorktreeRemove](https://code.claude.com/docs/en/hooks.md#worktreeremove) instead.
+When a subagent finishes, Claude Code keeps the worktree if git shows changed files, untracked files, or new commits there. Otherwise, Claude Code can remove the worktree right away. A kept worktree stays on disk until the [periodic sweep](#clean-up-subagent-and-background-session-worktrees) can remove it without losing work. For a worktree your [WorktreeCreate hook](https://code.claude.com/docs/en/hooks.md#worktreecreate) created, see [WorktreeRemove](https://code.claude.com/docs/en/hooks.md#worktreeremove) instead.
Subagent worktrees use the same [base branch](#choose-the-base-branch) as `--worktree`, so they branch from your repository's default branch unless `worktree.baseRef` is set to `"head"`.
@@ -161,7 +161,7 @@ When you [background](https://code.claude.com/docs/en/agent-view.md#send-the-ses
#### Worktree locks and manual removal
-While an agent is running, Claude Code holds a `git worktree lock` on its worktree so that concurrent cleanup can't remove it, and releases the lock when the agent finishes. Claude Code holds the same lock on the worktree it created for a backgrounded session while the session runs, so the sweep leaves the worktree in place and `git worktree remove` refuses to remove it.
+Claude Code takes a `git worktree lock` on the worktree it creates for an agent, so that concurrent cleanup can't remove it during the agent's first run, before any [resume](https://code.claude.com/docs/en/sub-agents.md#resume-subagents). The worktree Claude Code created for a backgrounded session has the same lock while the session runs, so the sweep keeps the worktree and `git worktree remove` refuses it.
The sweep also releases a lock Claude Code set for a session whose process has exited, so a killed background session doesn't leave its worktree permanently locked. The sweep never releases a lock you set yourself with `git worktree lock`.
diff --git a/content/en/manage-claude/access-transparency.md b/content/en/manage-claude/access-transparency.md
index 841f9a5825..55faf1ca85 100644
--- a/content/en/manage-claude/access-transparency.md
+++ b/content/en/manage-claude/access-transparency.md
@@ -37,7 +37,7 @@ Anthropic personnel access customer content only under defined conditions. Acces
* **Claude for Enterprise and Claude Apps:** claude.ai Enterprise seats, Claude for Work, Cowork, and Claude in Chrome are not covered.
* **Claude consumer products:** Claude Free, Pro, Max, or Ultra plans.
* **Partner-operated platforms:** Claude Models on Google Cloud (Google managed) and Amazon Bedrock. Refer to those platforms’ transparency controls.
-* **Anything ZDR does not cover:** Products that are not covered by ZDR (for example, the Files API, Anthropic-hosted stateful applications, and the Batch API) are not covered by Access Transparency. See [Zero data retention (ZDR)](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#zero-data-retention-zdr-scope) for additional details.
+* **Anything ZDR does not cover:** Products that are not covered by ZDR (for example, the Files API, Anthropic-hosted stateful applications, and the Batch API) are not covered by Access Transparency. See [Legacy zero data retention (Legacy ZDR)](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#zero-data-retention-zdr-scope) for additional details.
* **Data in customer-owned storage:** On Claude Platform (the Claude API), Access Transparency has no record for data in [customer-owned storage](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/customer-owned-storage).
## Getting started
diff --git a/content/en/manage-claude/admin-api-keys.md b/content/en/manage-claude/admin-api-keys.md
index 1660a6419d..21d33e20eb 100644
--- a/content/en/manage-claude/admin-api-keys.md
+++ b/content/en/manage-claude/admin-api-keys.md
@@ -17,7 +17,7 @@ The key you need depends on which Claude product your organization uses: Claude
| **Key prefix** | `sk-ant-admin01-...` | `sk-ant-api01-...` |
| **Who can create it** | Organization members with the **admin** role | **Primary owner:** any scope **Organization owner:** Compliance API scopes only, for their own organization |
| **Scopes** | None to select: every key has full access to the endpoints that accept it | [Choose scopes](https://platform.claude.com/docs/en/manage-claude/admin-api-keys#choose-scopes-for-a-claude-enterprise-key) when you create the key. The key works only with the APIs your scopes cover |
-| **Works with** | [Admin API](https://platform.claude.com/docs/en/manage-claude/admin-api) [Usage and Cost Analytics API](https://platform.claude.com/docs/en/manage-claude/usage-cost-analytics-api) [Compliance API Activity Feed](https://platform.claude.com/docs/en/manage-claude/compliance-activity-feed) [Safety Cases API](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/safety-cases-api#get-access), for keys created while it’s available [Usage and Cost API](https://platform.claude.com/docs/en/manage-claude/usage-cost-api) (legacy) [Rate Limits API](https://platform.claude.com/docs/en/manage-claude/rate-limits-api) [Claude Code Analytics API](https://platform.claude.com/docs/en/manage-claude/claude-code-analytics-api) | Admin API [user management](https://platform.claude.com/docs/en/manage-claude/user-management) [Usage and Cost Analytics API](https://platform.claude.com/docs/en/manage-claude/usage-cost-analytics-api) [Compliance API](https://platform.claude.com/docs/en/manage-claude/compliance-api) [Usage and Cost API](https://platform.claude.com/docs/en/manage-claude/usage-cost-api) (legacy) [Claude Enterprise Analytics API](https://platform.claude.com/docs/en/manage-claude/analytics-api) [Plugins API](https://platform.claude.com/docs/en/manage-claude/plugins-api) [Claude Tag API](https://platform.claude.com/docs/en/manage-claude/claude-tag-api) [Spend Limits API](https://platform.claude.com/docs/en/manage-claude/spend-limits-api) |
+| **Works with** | [Admin API](https://platform.claude.com/docs/en/manage-claude/admin-api) [Usage and Cost Analytics API](https://platform.claude.com/docs/en/manage-claude/usage-cost-analytics-api) [Compliance API Activity Feed](https://platform.claude.com/docs/en/manage-claude/compliance-activity-feed) [Safety Cases API](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/safety-cases-api#get-access), for keys created while it’s available [Usage and Cost API](https://platform.claude.com/docs/en/manage-claude/usage-cost-api) (legacy) [Rate Limits API](https://platform.claude.com/docs/en/manage-claude/rate-limits-api) [Claude Code Analytics API](https://platform.claude.com/docs/en/manage-claude/claude-code-analytics-api) | Admin API [user management](https://platform.claude.com/docs/en/manage-claude/user-management) [Usage and Cost Analytics API](https://platform.claude.com/docs/en/manage-claude/usage-cost-analytics-api) [Compliance API](https://platform.claude.com/docs/en/manage-claude/compliance-api) [Claude Enterprise Analytics API](https://platform.claude.com/docs/en/manage-claude/analytics-api) [Plugins API](https://platform.claude.com/docs/en/manage-claude/plugins-api) [Claude Tag API](https://platform.claude.com/docs/en/manage-claude/claude-tag-api) [Spend Limits API](https://platform.claude.com/docs/en/manage-claude/spend-limits-api) |
On Claude Models on Google Cloud (Anthropic managed) or Claude Platform on AWS, use that platform’s credentials instead of an Admin API key. For the Admin API endpoints you can call on those platforms, see [Cloud platforms](https://platform.claude.com/docs/en/manage-claude/admin-api#cloud-platforms) on the Admin API page. For the Activity Feed on those platforms, see [Set up the Compliance API](https://platform.claude.com/docs/en/manage-claude/compliance-api-access#set-up-the-compliance-api).
@@ -81,7 +81,7 @@ When you create a Claude Enterprise key, select every scope that the APIs you pl
| [Claude Tag API](https://platform.claude.com/docs/en/manage-claude/claude-tag-api): set up and remove channels; change settings; attach and detach Access bundles (to read as well, also select `read:claude_tag`) | `write:claude_tag` |
| [Spend Limits API](https://platform.claude.com/docs/en/manage-claude/spend-limits-api): read members’ effective spend limits and increase requests | `read:spend_limits` |
| [Spend Limits API](https://platform.claude.com/docs/en/manage-claude/spend-limits-api): set or clear per-user spend limits; approve or deny increase requests | `write:spend_limits` |
-| [Claude Enterprise Analytics API](https://platform.claude.com/docs/en/manage-claude/analytics-api): engagement, adoption, cost, and usage reports; [Usage and Cost Analytics API](https://platform.claude.com/docs/en/manage-claude/usage-cost-analytics-api): token usage and cost reports; [Usage and Cost API](https://platform.claude.com/docs/en/manage-claude/usage-cost-api) (legacy): usage and cost reports | `read:analytics` |
+| [Claude Enterprise Analytics API](https://platform.claude.com/docs/en/manage-claude/analytics-api): engagement, adoption, cost, and usage reports; [Usage and Cost Analytics API](https://platform.claude.com/docs/en/manage-claude/usage-cost-analytics-api): token usage and cost reports | `read:analytics` |
| [Compliance API Activity Feed](https://platform.claude.com/docs/en/manage-claude/compliance-activity-feed): organization-wide activity events | `read:compliance_activities` |
| [Compliance API chat, file, and project endpoints](https://platform.claude.com/docs/en/manage-claude/compliance-content-data) and [Compliance API session endpoints](https://platform.claude.com/docs/en/manage-claude/compliance-sessions): read chats, files, projects, session transcripts, and [organization users](https://platform.claude.com/docs/en/manage-claude/compliance-org-data#list-organization-users); together with `read:compliance_org_data`, also who made a [Security posture attestation](https://platform.claude.com/docs/en/manage-claude/compliance-security-posture/results-reference#who-attested-and-comments), where the endpoint returns it: a user ID | `read:compliance_user_data` |
| [Compliance API chat, file, and project endpoints](https://platform.claude.com/docs/en/manage-claude/compliance-content-data): delete chats, files, and projects | `delete:compliance_user_data` |
diff --git a/content/en/manage-claude/admin-api.md b/content/en/manage-claude/admin-api.md
index cd5958cf35..8a338e5c69 100644
--- a/content/en/manage-claude/admin-api.md
+++ b/content/en/manage-claude/admin-api.md
@@ -12,7 +12,7 @@ The Admin API is available to Claude Console and Claude Enterprise organizations
Claude Enterprise (claude.ai) organizations call the Admin API with a scoped API key created in claude.ai. From this page, only the members, invites, and [organization info](https://platform.claude.com/docs/en/manage-claude/admin-api#accessing-organization-info) endpoints apply to them. Outside this page, they can also call the following APIs and endpoints:
-* The [Usage and Cost Analytics API](https://platform.claude.com/docs/en/manage-claude/usage-cost-analytics-api), which is in beta, and the legacy [Usage and Cost API](https://platform.claude.com/docs/en/manage-claude/usage-cost-api). Both take a key with the `read:analytics` scope.
+* The [Usage and Cost Analytics API](https://platform.claude.com/docs/en/manage-claude/usage-cost-analytics-api), which is in beta and takes a key with the `read:analytics` scope.
* Enterprise-only endpoints: groups, custom-role reads, and the [Spend Limits API](https://platform.claude.com/docs/en/manage-claude/spend-limits-api).
* The [Plugins API](https://platform.claude.com/docs/en/manage-claude/plugins-api) and the [Claude Tag API](https://platform.claude.com/docs/en/manage-claude/claude-tag-api), which are Enterprise-only and in beta.
diff --git a/content/en/manage-claude/analytics-api.md b/content/en/manage-claude/analytics-api.md
index d574b6bc0e..fed9439b8a 100644
--- a/content/en/manage-claude/analytics-api.md
+++ b/content/en/manage-claude/analytics-api.md
@@ -21,7 +21,7 @@ The two APIs use different key types, created in different places by different r
The two key types differ in what they can call:
* An **Admin API key** (`sk-ant-admin01-...`) cannot call the Claude Enterprise Analytics API.
-* An **Analytics API key** is a key created in claude.ai with the `read:analytics` scope. Besides the Claude Enterprise Analytics API, it works with the [Usage and Cost Analytics API](https://platform.claude.com/docs/en/manage-claude/usage-cost-analytics-api) and the legacy [Usage and Cost API](https://platform.claude.com/docs/en/manage-claude/usage-cost-api). To call Admin API endpoints such as members and invites, a key created in claude.ai needs other scopes (see [Choose scopes for a Claude Enterprise key](https://platform.claude.com/docs/en/manage-claude/admin-api-keys#choose-scopes-for-a-claude-enterprise-key)).
+* An **Analytics API key** is a key created in claude.ai with the `read:analytics` scope. Besides the Claude Enterprise Analytics API, it works with the [Usage and Cost Analytics API](https://platform.claude.com/docs/en/manage-claude/usage-cost-analytics-api). To call Admin API endpoints such as members and invites, a key created in claude.ai needs other scopes (see [Choose scopes for a Claude Enterprise key](https://platform.claude.com/docs/en/manage-claude/admin-api-keys#choose-scopes-for-a-claude-enterprise-key)).
The Claude Code Analytics API and the Claude Enterprise Analytics API both appear under the [Admin API reference](https://platform.claude.com/docs/en/api/beta/organization), but they are separate APIs. If your organization uses both the Claude Platform and Claude Enterprise, you can provision both keys and use each API for its own data.
diff --git a/content/en/manage-claude/api-and-data-retention.md b/content/en/manage-claude/api-and-data-retention.md
index 9c04338129..066b220c15 100644
--- a/content/en/manage-claude/api-and-data-retention.md
+++ b/content/en/manage-claude/api-and-data-retention.md
@@ -20,29 +20,29 @@ Different APIs and features have different storage needs. Where a feature does n
* Only what is technically necessary for the feature to work is retained. Conversation content (your prompts and Claude’s outputs) is not retained by default; the exception is [Covered Models](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#model-specific-data-retention-requirements), which require 30-day retention.
* Retained data is purged on the shortest practical time to live (TTL), and Anthropic aims to give customers control over how long data is retained. What is held, and the retention duration where a specific TTL applies, is documented on each feature’s page.
-Several retention models sit outside the ZDR and HIPAA arrangements described on this page. Data accessible through the [Compliance API](https://platform.claude.com/docs/en/manage-claude/compliance-api) follows its own retention model. The [Activity Feed](https://platform.claude.com/docs/en/manage-claude/compliance-activity-feed) retains data for 6 years. Chat, file, and project content from claude.ai follows your organization’s retention policy set in [claude.ai > Organization settings > Data and privacy](https://claude.ai/admin-settings/data-privacy-controls), unless a user deletes it sooner. [Local session transcripts](https://platform.claude.com/docs/en/manage-claude/compliance-sessions#retrieve-local-sessions) come from sessions on users’ machines, in apps such as Cowork and Claude Code. These transcripts are stored for 6 years by default, or for your organization’s custom conversation retention period when a finite one is set (the same claude.ai setting). [Remote session transcripts](https://platform.claude.com/docs/en/manage-claude/compliance-sessions#retrieve-remote-sessions) (Cowork in the cloud and Claude Tag) have no default retention period. See [Retention and deletion](https://platform.claude.com/docs/en/manage-claude/compliance-sessions#retention-and-deletion). The Compliance API does not capture local sessions for which ZDR is in effect. For organizations with HIPAA readiness enabled, it captures Cowork and Claude Code local sessions only and stores their transcripts for 30 days.
+Several retention models sit outside the Legacy ZDR and HIPAA arrangements described on this page. Data accessible through the [Compliance API](https://platform.claude.com/docs/en/manage-claude/compliance-api) follows its own retention model. The [Activity Feed](https://platform.claude.com/docs/en/manage-claude/compliance-activity-feed) retains data for 6 years. Chat, file, and project content from claude.ai follows your organization’s retention policy set in [claude.ai > Organization settings > Data and privacy](https://claude.ai/admin-settings/data-privacy-controls), unless a user deletes it sooner. [Local session transcripts](https://platform.claude.com/docs/en/manage-claude/compliance-sessions#retrieve-local-sessions) come from sessions on users’ machines, in apps such as Cowork and Claude Code. These transcripts are stored for 6 years by default, or for your organization’s custom conversation retention period when a finite one is set (the same claude.ai setting). [Remote session transcripts](https://platform.claude.com/docs/en/manage-claude/compliance-sessions#retrieve-remote-sessions) (Cowork in the cloud and Claude Tag) have no default retention period. See [Retention and deletion](https://platform.claude.com/docs/en/manage-claude/compliance-sessions#retention-and-deletion). The Compliance API does not capture local sessions for which ZDR is in effect. For organizations with HIPAA readiness enabled, it captures Cowork and Claude Code local sessions only and stores their transcripts for 30 days.
-## Zero data retention (ZDR)
+## Legacy zero data retention (Legacy ZDR)
-Under a ZDR arrangement, Anthropic does not store customer prompts or responses at rest after the API response is returned. To request ZDR for your organization, contact the [Anthropic sales team](https://claude.com/contact-sales). ZDR is enabled per organization; each new organization requires ZDR to be enabled separately by your account team, and enablement does not automatically extend to other organizations under the same account.
+Under a Legacy ZDR arrangement, Anthropic does not store customer prompts or responses at rest after the API response is returned. To request ZDR for your organization, contact the [Anthropic sales team](https://claude.com/contact-sales). ZDR is enabled per organization; each new organization requires ZDR to be enabled separately by your account team, and enablement does not automatically extend to other organizations under the same account.
Organizations with a ZDR arrangement cannot call the Claude API directly from a browser: the API rejects their cross-origin (CORS) requests. To call the API from a web application, send the requests from your own back end. See [Browser-based applications](https://platform.claude.com/docs/en/manage-claude/authentication#browser-based-applications).
-### What ZDR covers
+### What Legacy ZDR covers
-* **Claude Messages and Token Counting APIs:** ZDR applies to these endpoints for eligible features listed in the [feature eligibility table](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#feature-eligibility). Features that use `/v1/messages` but are marked “No” in the table (such as code execution) are not covered.
-* **Claude Code with API keys:** ZDR applies when Claude Code is used with API keys from a Commercial organization (an organization under Anthropic’s Commercial Terms of Service, as distinct from a consumer Claude account). If metrics logging is enabled in Claude Code, productivity data such as usage statistics is exempted from ZDR and may be retained. Claude Code on Claude Enterprise is not covered by this arrangement and has a separate ZDR offering; see [What ZDR does not cover](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#what-zdr-does-not-cover).
+* **Claude Messages and Token Counting APIs:** Legacy ZDR applies to these endpoints for eligible features listed in the [feature eligibility table](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#feature-eligibility). Features that use `/v1/messages` but are marked “No” in the table (such as code execution) are not covered.
+* **Claude Code with API keys:** Legacy ZDR applies when Claude Code is used with API keys from a Commercial organization (an organization under Anthropic’s Commercial Terms of Service, as distinct from a consumer Claude account). If metrics logging is enabled in Claude Code, productivity data such as usage statistics is exempted from Legacy ZDR and may be retained. Claude Code on Claude Enterprise is not covered by this arrangement and has a separate ZDR offering; see [What Legacy ZDR does not cover](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#what-zdr-does-not-cover).
* **Claude Platform on AWS:** [Claude Platform on AWS](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws) follows the same data retention policy as the first-party Claude API. ZDR is available on request; contact your Anthropic account representative to enable it.
* **Claude Models on Google Cloud (Anthropic managed):** [Claude Models on Google Cloud (Anthropic managed)](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/anthropic-managed) follows the same data retention policy as the first-party Claude API. ZDR is available on request; contact your Anthropic account representative to enable it.
-### What ZDR does not cover
+### What Legacy ZDR does not cover
* **Claude Console:** Any usage in the Claude Console, including playground.
* **Claude Managed Agents:** Claude Managed Agents is a stateful resource; session transcripts persist until you delete them. The exception is self-hosted Claude Managed Agents, where you store the transcripts yourself, as [How long data is kept](https://platform.claude.com/docs/en/managed-agents/self-hosted-data-and-access#how-long-data-is-kept) describes.
* **Claude consumer products:** Claude Free, Pro, Max, and Ultra plans, including when customers on those plans use Claude’s web, desktop, or mobile apps or Claude Code.
-* **Claude Teams and Claude Enterprise product interfaces:** These interfaces are not ZDR-eligible. The one exception is Claude Code on Claude Enterprise, which has its own ZDR offering, separate from the ZDR arrangement described on this page. That offering is available only to qualified accounts on Claude Enterprise and requires separate enablement by Anthropic. See the [Claude Code ZDR documentation](https://code.claude.com/docs/en/zero-data-retention), which applies to Claude Enterprise organizations only.
+* **Claude Teams and Claude Enterprise product interfaces:** These interfaces are not ZDR-eligible. The one exception is Claude Code on Claude Enterprise, which has its own ZDR offering, separate from the Legacy ZDR arrangement described on this page. That offering is available only to qualified accounts on Claude Enterprise and requires separate enablement by Anthropic. See the [Claude Code ZDR documentation](https://code.claude.com/docs/en/zero-data-retention), which applies to Claude Enterprise organizations only.
* **Claude for Excel:** Not currently ZDR-eligible.
-* **Claude Fable 5.2, Claude Mythos 5.2, Claude Fable 5.1, Claude Mythos 5.1, Claude Fable 5, and Claude Mythos 5:** These models require 30-day data retention and are not available under ZDR unless expressly authorized by Anthropic. See [Model-specific data retention requirements](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#model-specific-data-retention-requirements).
+* **Claude Fable 5.2, Claude Mythos 5.2, Claude Fable 5.1, Claude Mythos 5.1, Claude Fable 5, and Claude Mythos 5:** These models require 30-day data retention and are not available under Legacy ZDR unless expressly authorized by Anthropic. See [Model-specific data retention requirements](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#model-specific-data-retention-requirements).
* **Third-party integrations:** Data processed by third-party websites, tools, or other integrations is not covered, though some may have similar offerings. Review each service’s data handling practices.
* **Flagged content and legal holds:** See [Retention regardless of arrangement](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#retention-regardless-of-arrangement).
@@ -137,7 +137,7 @@ Whichever path you use, confirm which features are supported in the [feature eli
## Model-specific data retention requirements
-Claude Fable 5.2, Claude Mythos 5.2, Claude Fable 5.1, Claude Mythos 5.1, Claude Fable 5, and Claude Mythos 5 are designated Covered Models. See the [Covered Models support article](https://support.claude.com/en/articles/15425695). They require 30-day data retention. ZDR is therefore not available for any of them unless expressly authorized by Anthropic. With [Enterprise Frontier Safeguards](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/overview), eligible organizations can use these models under Enterprise Frontier Safeguards ZDR. On the Claude API, requests to Claude Fable 5 from an organization whose data retention configuration does not meet this requirement return a `400 invalid_request_error`:
+Claude Fable 5.2, Claude Mythos 5.2, Claude Fable 5.1, Claude Mythos 5.1, Claude Fable 5, and Claude Mythos 5 are designated Covered Models. See the [Covered Models support article](https://support.claude.com/en/articles/15425695). They require 30-day data retention. Legacy ZDR is therefore not available for any of them unless expressly authorized by Anthropic. With [Enterprise Frontier Safeguards](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/overview), eligible organizations can use these models under Enterprise Frontier Safeguards ZDR. On the Claude API, requests to Claude Fable 5 from an organization whose data retention configuration does not meet this requirement return a `400 invalid_request_error`:
```json
{
@@ -153,7 +153,7 @@ The 30-day data retention requirement applies wherever Covered Models are offere
### Enable 30-day retention for a workspace
-Organizations with a ZDR arrangement can make these models available in a specific workspace by enabling 30-day retention for that workspace only. Other workspaces in the organization keep zero data retention. The Default Workspace always follows the organization’s setting, so use another workspace.
+Organizations with a Legacy ZDR arrangement can make these models available in a specific workspace by enabling 30-day retention for that workspace only. Other workspaces in the organization keep Legacy ZDR. The Default Workspace always follows the organization’s setting, so use another workspace.
@@ -171,17 +171,17 @@ Organizations with a ZDR arrangement can make these models available in a specif
## Feature eligibility
-The following tables list which Claude API features are eligible for ZDR and HIPAA readiness arrangements. They split the features as the [Features overview](https://platform.claude.com/docs/en/build-with-claude/overview) does.
+The following tables list which Claude API features are eligible for Legacy ZDR and HIPAA readiness arrangements. They split the features as the [Features overview](https://platform.claude.com/docs/en/build-with-claude/overview) does.
Each eligibility column uses three values:
-* **Yes:** The feature is fully eligible under the arrangement. For ZDR, “Yes” also assumes you are using a model that does not require 30-day data retention; [Covered Models](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#model-specific-data-retention-requirements) are not available under ZDR regardless of feature eligibility, unless expressly authorized by Anthropic or used in a workspace on [Enterprise Frontier Safeguards](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/overview).
+* **Yes:** The feature is fully eligible under the arrangement. For Legacy ZDR, “Yes” also assumes you are using a model that does not require 30-day data retention; [Covered Models](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#model-specific-data-retention-requirements) are not available under Legacy ZDR regardless of feature eligibility, unless expressly authorized by Anthropic or used in a workspace on [Enterprise Frontier Safeguards](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/overview).
* **Yes (qualified):** Your prompts and Claude’s outputs are not stored, but a bounded technical artifact (named in the Details column) is retained briefly for the feature to function. See [How Anthropic approaches data retention](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#how-anthropic-approaches-data-retention) for the commitments that govern these features.
-* **No:** The feature is not eligible. Under HIPAA readiness, the API blocks requests that include a “No” feature and returns a `400` error, unless the feature’s Details column says otherwise. Under ZDR, the API does **not** block these features; using one is a choice to step outside your ZDR arrangement for that specific data, and the feature’s own documented retention policy applies. However, in a workspace with [Anthropic Human Review](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/human-review-and-access-transparency#turn-off-anthropic-human-review) off, such as any workspace on [Enterprise Frontier Safeguards](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/overview), the Batch API refuses new batches. Anthropic’s Claude Managed Agents service doesn’t run sessions there either. Features marked “No” for ZDR are typically stateful (they store jobs, files, or container state), which is why they cannot be zero-retention.
+* **No:** The feature is not eligible. Under HIPAA readiness, the API blocks requests that include a “No” feature and returns a `400` error, unless the feature’s Details column says otherwise. Under Legacy ZDR, the API does **not** block these features; using one is a choice to step outside your Legacy ZDR arrangement for that specific data, and the feature’s own documented retention policy applies. However, in a workspace with [Anthropic Human Review](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/human-review-and-access-transparency#turn-off-anthropic-human-review) off, such as any workspace on [Enterprise Frontier Safeguards](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/overview), the Batch API refuses new batches. Anthropic’s Claude Managed Agents service doesn’t run sessions there either. Features marked “No” for Legacy ZDR are typically stateful (they store jobs, files, or container state), which is why they cannot be zero-retention.
### Platform features
-This section lists features that relate to both the [Messages API](https://platform.claude.com/docs/en/build-with-claude/working-with-messages) and [Claude Managed Agents](https://platform.claude.com/docs/en/managed-agents/overview). Some are available in only one of them. This table gives each feature’s eligibility in the Messages API. In Claude Managed Agents, no feature is eligible for ZDR or HIPAA readiness, except for self-hosted Managed Agents under ZDR. See the Claude Managed Agents row under [Managed Agents features](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#managed-agents-features).
+This section lists features that relate to both the [Messages API](https://platform.claude.com/docs/en/build-with-claude/working-with-messages) and [Claude Managed Agents](https://platform.claude.com/docs/en/managed-agents/overview). Some are available in only one of them. This table gives each feature’s eligibility in the Messages API. In Claude Managed Agents, no feature is eligible for Legacy ZDR or HIPAA readiness, except for self-hosted Managed Agents under Legacy ZDR. See the Claude Managed Agents row under [Managed Agents features](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#managed-agents-features).
| Feature | Endpoint | Legacy ZDR eligible | HIPAA eligible | Details |
| :---- | :---- | :---- | :---- | :---- |
@@ -246,16 +246,16 @@ Even with ZDR or HIPAA arrangements in place, Anthropic may retain data where re
## Frequently asked questions
-
- Check your contract terms or contact your Anthropic account representative to confirm whether your organization has ZDR arrangements in place.
+
+ Check your contract terms or contact your Anthropic account representative to confirm whether your organization has Legacy ZDR arrangements in place.
-
+
Yes. These features retain a minimal, documented set of technical data, not your prompts or Claude’s outputs. See the [feature eligibility table](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#feature-eligibility) legend for what “Yes (qualified)” means and [How Anthropic approaches data retention](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#how-anthropic-approaches-data-retention) for the commitments that govern these features.
-
- Nothing blocks the request. But in a workspace with [Anthropic Human Review](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/human-review-and-access-transparency#turn-off-anthropic-human-review) off, such as any workspace on [Enterprise Frontier Safeguards](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/overview), the Batch API refuses new batches. Anthropic’s Claude Managed Agents service doesn’t run sessions there either. Features marked “No” for ZDR are fundamentally stateful: the Batch API stores your jobs, the Files API stores your files, and code execution runs in persistent containers. Data for these features is retained according to the feature’s documented policy. Using them is a choice to step outside your ZDR arrangement for that specific data.
+
+ Nothing blocks the request. But in a workspace with [Anthropic Human Review](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/human-review-and-access-transparency#turn-off-anthropic-human-review) off, such as any workspace on [Enterprise Frontier Safeguards](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/overview), the Batch API refuses new batches. Anthropic’s Claude Managed Agents service doesn’t run sessions there either. Features marked “No” for Legacy ZDR are fundamentally stateful: the Batch API stores your jobs, the Files API stores your files, and code execution runs in persistent containers. Data for these features is retained according to the feature’s documented policy. Using them is a choice to step outside your Legacy ZDR arrangement for that specific data.
@@ -293,14 +293,14 @@ Even with ZDR or HIPAA arrangements in place, Anthropic may retain data where re
Claude Code is eligible for ZDR under two separate offerings:
- * **API keys:** Claude Code used with pay-as-you-go API keys from a Commercial organization is covered when that organization has a ZDR arrangement for the Claude API, which this page describes.
+ * **API keys:** Claude Code used with pay-as-you-go API keys from a Commercial organization is covered when that organization has a Legacy ZDR arrangement for the Claude API, which this page describes.
* **Claude Enterprise:** Claude Code used through Claude Enterprise is covered by a separate offering, ZDR for Claude Code on Claude Enterprise, when Anthropic has enabled it for the organization.
ZDR is enabled on a per-organization basis. Each new organization requires ZDR to be enabled separately by your account team. ZDR does not automatically apply to new organizations created under the same account.
Additionally, if you have metrics logging enabled in Claude Code, productivity data (such as usage statistics) is exempted from ZDR and may be retained.
- For full details on ZDR for Claude Code on Claude Enterprise, including disabled features and how to request enablement, see the [Claude Code ZDR documentation](https://code.claude.com/docs/en/zero-data-retention). That documentation applies to Claude Enterprise organizations only and does not describe the ZDR arrangement for the Claude API.
+ For full details on ZDR for Claude Code on Claude Enterprise, including disabled features and how to request enablement, see the [Claude Code ZDR documentation](https://code.claude.com/docs/en/zero-data-retention). That documentation applies to Claude Enterprise organizations only and does not describe the Legacy ZDR arrangement for the Claude API.
diff --git a/content/en/manage-claude/authentication.md b/content/en/manage-claude/authentication.md
index d77429d00d..139b55826d 100644
--- a/content/en/manage-claude/authentication.md
+++ b/content/en/manage-claude/authentication.md
@@ -1,18 +1,19 @@
---
title: Authentication
url: https://platform.claude.com/docs/en/manage-claude/authentication
-description: Authenticate to the Claude API with API keys, Workload Identity Federation, or App Attest.
+description: "Choose how your code proves who it is to the Claude API: CLI sign-in, Workload Identity Federation, App Attest, or an API key."
---
-The Claude API supports three ways to authenticate requests:
+Every request to the Claude API carries a credential that tells the API who is calling, such as you or a service account that gives a program its own identity. Choose the method by where your code runs. Every method but an API key sends a short-lived token instead of a long-lived secret, which limits the damage if a token leaks.
| Method | Credential | Best for |
| ----- | ----- | ----- |
-| [API key](https://platform.claude.com/docs/en/manage-claude/authentication#api-keys) | Static `sk-ant-api...` secret sent as a bearer token in the `Authorization` header | Local development, prototyping, scripts, and servers where you control secret storage |
+| CLI sign-in (see the `ant` CLI’s [Interactive login](https://platform.claude.com/docs/en/cli-sdks-libraries/cli/authentication#interactive-login) section) | Short-lived access token that `ant auth login` stores on your computer | Local development and scripting on your own computer |
| [Workload Identity Federation (WIF)](https://platform.claude.com/docs/en/manage-claude/authentication#workload-identity-federation) | Short-lived bearer token exchanged from your identity provider’s identity token | Production workloads on cloud platforms (AWS, Google Cloud, and Azure), CI/CD pipelines, and Kubernetes, where you want to eliminate static secrets |
| [App Attest](https://platform.claude.com/docs/en/manage-claude/authentication#app-attest) | Short-lived access token issued to a genuine, attested installation of your registered iOS or macOS app | iOS and macOS apps distributed to end users, where the app calls the Claude API directly with no back end or proxy |
+| [API key](https://platform.claude.com/docs/en/manage-claude/authentication#api-keys) | Static `sk-ant-api...` secret sent as a bearer token in the `Authorization` header | A server with no identity provider or a tool that asks for a key |
-API keys and Workload Identity Federation grant the same access to Claude API endpoints. Choose API keys to get started quickly: a personal key for your own development, or a service account key for anything shared. Move to Workload Identity Federation when your workload already has a platform-issued identity you can federate. Use App Attest for iOS and macOS apps you distribute to end users.
+On your own computer, sign in with the `ant` CLI. The SDK and the CLI then find your credentials on their own as long as `ANTHROPIC_API_KEY` isn’t set. Use Workload Identity Federation in CI or on a server or cluster with an identity provider. Use App Attest for iOS and macOS apps you distribute to end users. Choose an API key for a server with no identity provider or a tool that asks for a key. Pick a personal key for your own use or a service account key for anything shared.
## API keys
@@ -30,7 +31,7 @@ When you create a key, you choose its type, which determines what the key can do
Personal keys and service account keys are identity-backed: each belongs to a user or service account your organization already manages, and every request acts as that identity. When that identity is removed from the organization, the key stops working. This means that keys don’t accidentally outlive the people or workloads that own them. Prefer them over workspace keys for new integrations.
-Use a personal key for your own development and scripts. A shared personal key acts as one person and breaks when they leave. For shared or automated workloads (CI, production services), have an organization admin create a service account so the workload has its own identity.
+If a tool that only you run asks for a key, use a personal key. A shared personal key acts as one person and breaks when they leave. For shared or automated workloads (CI, production services), have an organization admin create a service account so the workload has its own identity.
Workspace API keys work but are legacy. Prefer identity-backed keys or [Workload Identity Federation](https://platform.claude.com/docs/en/manage-claude/workload-identity-federation). To migrate, see [Replacing workspace API keys](https://platform.claude.com/docs/en/manage-claude/authentication#replacing-workspace-api-keys).
@@ -351,9 +352,9 @@ To replace a workspace key with a personal or service account key:
Call the Claude API from your own back end, not from code that runs in your users’ browsers. Anyone who uses a webpage can read an API key in that page’s code. Typically, your web front end calls your back end, which holds the key and calls the Claude API.
-A request sent directly from a browser is a cross-origin (CORS) request. The API accepts these requests only when they include the `anthropic-dangerous-direct-browser-access: true` header, which the TypeScript SDK sends when you set `dangerouslyAllowBrowser` to `true`. For the cases where exposing a key this way is acceptable, see [Browser usage](https://platform.claude.com/docs/en/cli-sdks-libraries/sdks/typescript#runtime-support) in the TypeScript SDK guide.
+A request sent directly from a browser is a cross-origin (CORS) request. The API accepts one only when it includes the `anthropic-dangerous-direct-browser-access: true` header. The TypeScript SDK sends this header when you set `dangerouslyAllowBrowser` to `true`. For the cases where exposing a key this way is acceptable, see [Runtime support](https://platform.claude.com/docs/en/cli-sdks-libraries/sdks/typescript#runtime-support) in the TypeScript SDK guide.
-Organizations that have [zero data retention (ZDR)](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#zero-data-retention-zdr-scope) or the [Compliance API](https://platform.claude.com/docs/en/manage-claude/compliance-api-access#set-up-the-compliance-api) enabled cannot call the API directly from a browser, even with that header. Other organization settings can have the same effect, and no setting allows browser requests for these organizations. The API returns a 401 `authentication_error` whose message begins `CORS requests are not allowed for this Organization`, even though the API key is valid. A Claude Console organization linked to a Claude Enterprise parent organization inherits the Compliance API setting from the parent. The restriction can therefore apply even when your Claude Console settings show no Compliance API section.
+Organizations that have [zero data retention (ZDR)](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#zero-data-retention-zdr-scope) cannot call the API directly from a browser, even with that header. Other organization or workspace settings can have the same effect, and no setting allows browser requests for these organizations. The API returns a 401 `authentication_error` whose message begins `CORS requests are not allowed for this Organization`, even though the API key is valid.
The restriction applies only to requests that include an `Origin` header, which browsers add and server-side HTTP clients normally do not. Requests from your own back end are not affected. If your back end forwards requests that start in a browser, have it create a new request to the Claude API. Don’t pass the browser’s request through. That request still includes the browser’s `Origin` header, and the API rejects it the same way.
diff --git a/content/en/manage-claude/cmek-aws-kms.md b/content/en/manage-claude/cmek-aws-kms.md
index 675388e87d..28965f2655 100644
--- a/content/en/manage-claude/cmek-aws-kms.md
+++ b/content/en/manage-claude/cmek-aws-kms.md
@@ -192,7 +192,7 @@ To script this part on Claude Platform, [use the Admin API](https://platform.cla
You see **Workspace settings updated.** Once the key [takes effect](https://platform.claude.com/docs/en/manage-claude/cmek-how-it-works#when-your-key-takes-effect), your cloud provider’s audit log shows Anthropic’s calls to the key.
- In a [ZDR organization](https://platform.claude.com/docs/en/manage-claude/cmek-data-retention#zdr-organizations), after you select the workspace, select **Standard data retention** so that **Encryption key** appears. After you click **Save**, click **Accept** on the data retention terms.
+ In an organization with [legacy zero data retention (Legacy ZDR)](https://platform.claude.com/docs/en/manage-claude/cmek-data-retention#zdr-organizations), after you select the workspace, select **Standard data retention** so that **Encryption key** appears. After you click **Save**, click **Accept** on the data retention terms.
diff --git a/content/en/manage-claude/cmek-azure-key-vault.md b/content/en/manage-claude/cmek-azure-key-vault.md
index d5530a9067..5d1d520872 100644
--- a/content/en/manage-claude/cmek-azure-key-vault.md
+++ b/content/en/manage-claude/cmek-azure-key-vault.md
@@ -241,7 +241,7 @@ To script this part on Claude Platform, [use the Admin API](https://platform.cla
You see **Workspace settings updated.** Once the key [takes effect](https://platform.claude.com/docs/en/manage-claude/cmek-how-it-works#when-your-key-takes-effect), your cloud provider’s audit log shows Anthropic’s calls to the key.
- In a [ZDR organization](https://platform.claude.com/docs/en/manage-claude/cmek-data-retention#zdr-organizations), after you select the workspace, select **Standard data retention** so that **Encryption key** appears. After you click **Save**, click **Accept** on the data retention terms.
+ In an organization with [legacy zero data retention (Legacy ZDR)](https://platform.claude.com/docs/en/manage-claude/cmek-data-retention#zdr-organizations), after you select the workspace, select **Standard data retention** so that **Encryption key** appears. After you click **Save**, click **Accept** on the data retention terms.
diff --git a/content/en/manage-claude/cmek-coverage-claude-enterprise.md b/content/en/manage-claude/cmek-coverage-claude-enterprise.md
index 15e1b84130..214960e215 100644
--- a/content/en/manage-claude/cmek-coverage-claude-enterprise.md
+++ b/content/en/manage-claude/cmek-coverage-claude-enterprise.md
@@ -10,11 +10,12 @@ For Claude Platform, see [What CMEK covers on Claude Platform](https://platform.
* Chat content, including skills and plugins.
* Chat attachments and project attachments.
-* Artifacts, including Claude Design, Claude Slides, and Claude Docs in conversations and the **Artifacts** tab.
+* Artifact content in conversations and the **Artifacts** tab. This includes Claude Design, Claude Slides, Claude Docs, and Claude Data. It also includes four types that are in beta: design systems, Claude Motion, Claude Sheets, and Claude Whiteboards. For the standalone Claude Design app, see [Encrypted with Anthropic’s key](https://platform.claude.com/docs/en/manage-claude/cmek-coverage-claude-enterprise#encrypted-with-anthropics-key).
* Claude Code on the CLI, including message content.
* Cowork in Claude Desktop.
* Chats in the unified Claude experience, on the web only. **Computer access** is off.
* Office agents, including Claude for Outlook.
+* Scheduled tasks in the unified Claude experience: each task’s name and instructions, and the content of its runs.
* Claude in Chrome.
* Claude Science, which is in beta.
* [Plugins API](https://platform.claude.com/docs/en/manage-claude/plugins-api#customer-managed-encryption-keys) (beta) plugin versions: each version’s description, release notes, components, and files. That page lists which requests still work while your key can’t be used.
@@ -40,7 +41,6 @@ This list is not exhaustive. Review it with your team before you set up CMEK.
| Claude in Slack (beta) | Off. Claude declines requests, even if an admin turns the product on. |
| Analytics: smart reports and contribution metrics | Off. Certain analytics are disabled, regardless of admin settings: Claude smart reports (under claude.ai/analytics/insights) and Claude Code contribution metrics from GitHub (beta, under claude.ai/analytics/claude-code). |
| Claude Security (beta) | Off. Beta feature, turned off regardless of admin settings. |
-| Cloud scheduled tasks (research preview) | Off. An admin can turn them on for the unified Claude experience. |
| Standalone Claude Design app (being deprecated) | Not supported. See [Encrypted with Anthropic’s key](https://platform.claude.com/docs/en/manage-claude/cmek-coverage-claude-enterprise#encrypted-with-anthropics-key). |
## Encrypted with Anthropic’s key
@@ -50,7 +50,7 @@ The features that store this data stay available, but the data isn’t encrypted
| Data | Details |
| ----- | ----- |
| Existing data before key setup | Written before [your key takes effect](https://platform.claude.com/docs/en/manage-claude/cmek-how-it-works#when-your-key-takes-effect). |
-| Standalone Claude Design app (being deprecated) | The standalone Claude Design app at claude.ai/design is not supported with CMEK, and its data might not be encrypted under your key. The standalone app is closing. Claude Design in conversations and the **Artifacts** tab is encrypted under your key, as listed under [Encrypted with your key](https://platform.claude.com/docs/en/manage-claude/cmek-coverage-claude-enterprise#encrypted-with-your-key). |
+| Standalone Claude Design app (being deprecated) | The standalone Claude Design app at claude.ai/design is not supported with CMEK, and its data might not be encrypted under your key. The standalone app is closing. Claude Design content in conversations and the **Artifacts** tab is encrypted under your key, as listed under [Encrypted with your key](https://platform.claude.com/docs/en/manage-claude/cmek-coverage-claude-enterprise#encrypted-with-your-key). |
| Personal preferences and Cowork Global instructions | [Personal preferences - Instructions for Claude section](https://claude.ai/new#settings/account) and Cowork Global instructions. These are set at the account level and shared across all of a user’s organizations. |
| Account data for users in your organization | Includes names, email addresses, and profile pictures. |
| Preserved records | Anthropic can preserve specific records [in three narrow cases](https://platform.claude.com/docs/en/manage-claude/cmek-data-retention#limited-preservation-outside-your-key). |
diff --git a/content/en/manage-claude/cmek-data-retention.md b/content/en/manage-claude/cmek-data-retention.md
index 4b9c7ec16f..29dd42912b 100644
--- a/content/en/manage-claude/cmek-data-retention.md
+++ b/content/en/manage-claude/cmek-data-retention.md
@@ -4,19 +4,19 @@ url: https://platform.claude.com/docs/en/manage-claude/cmek-data-retention
description: Why a workspace with a key retains data, what that means for ZDR, and what Anthropic can preserve outside your key.
---
-On Claude Platform, customer-managed encryption keys (CMEK) and [zero data retention (ZDR)](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention) can’t share a workspace. On Claude Enterprise, an organization can use CMEK and Claude Code ZDR together, but it then [can’t turn on Claude Docs or Claude Sheets](https://platform.claude.com/docs/en/manage-claude/cmek-coverage-claude-enterprise#turned-off-or-changed).
+On Claude Platform, customer-managed encryption keys (CMEK) and [legacy zero data retention (Legacy ZDR)](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention) can’t share a workspace. On Claude Enterprise, an organization can use CMEK and Claude Code ZDR together, but it then [can’t turn on Claude Docs or Claude Sheets](https://platform.claude.com/docs/en/manage-claude/cmek-coverage-claude-enterprise#turned-off-or-changed).
However, on Claude Platform you can attach a key to a workspace that uses [Enterprise Frontier Safeguards](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/overview) (EFS). EFS is ZDR, and the workspace’s Sealed Safety Data is written to storage that you own. EFS is in beta. For the steps, see [Attach a customer-managed key](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/customer-managed-keys#attach-a-customer-managed-key) in the EFS guide.
## A key needs a workspace that retains data
-CMEK encrypts stored data, and under ZDR on Claude Platform, Anthropic doesn’t store your prompts or responses. With [Enterprise Frontier Safeguards](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/overview) (EFS), Anthropic encrypts your Sealed Safety Data under your key before writing it to your bucket. So you can attach a key only to a workspace with **Standard data retention** (30 days) or one that uses EFS.
+CMEK encrypts stored data, and under Legacy ZDR on Claude Platform, Anthropic doesn’t store your prompts or responses. With [Enterprise Frontier Safeguards](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/overview) (EFS), Anthropic encrypts your Sealed Safety Data under your key before writing it to your bucket. So you can attach a key only to a workspace with **Standard data retention** (30 days) or one that uses EFS.
After you attach a key, you can’t turn off data retention for that workspace. To go back to a workspace that doesn’t retain data, create a new one and move your traffic to it.
-## In a ZDR organization
+## In a Legacy ZDR organization
-A ZDR organization on Claude Platform can use CMEK. You switch one workspace to **Standard data retention**, accept the data retention terms, and attach your key to it. The workspace you switch can’t be the default workspace, whose retention follows the organization’s. Your other workspaces keep ZDR.
+A Legacy ZDR organization on Claude Platform can use CMEK. You switch one workspace to **Standard data retention**, accept the data retention terms, and attach your key to it. The workspace you switch can’t be the default workspace, whose retention follows the organization’s. Your other workspaces keep Legacy ZDR.
[Choose your setup page](https://platform.claude.com/docs/en/manage-claude/cmek#set-it-up) and follow its attach step.
diff --git a/content/en/manage-claude/cmek-google-cloud-kms.md b/content/en/manage-claude/cmek-google-cloud-kms.md
index 01d5cc8d95..594c8ddb44 100644
--- a/content/en/manage-claude/cmek-google-cloud-kms.md
+++ b/content/en/manage-claude/cmek-google-cloud-kms.md
@@ -226,7 +226,7 @@ On Claude Models on Google Cloud (Anthropic managed), follow the steps in the **
You see **Workspace settings updated.** Once the key [takes effect](https://platform.claude.com/docs/en/manage-claude/cmek-how-it-works#when-your-key-takes-effect), your cloud provider’s audit log shows Anthropic’s calls to the key.
- In a [ZDR organization](https://platform.claude.com/docs/en/manage-claude/cmek-data-retention#zdr-organizations), after you select the workspace, select **Standard data retention** so that **Encryption key** appears. After you click **Save**, click **Accept** on the data retention terms.
+ In an organization with [legacy zero data retention (Legacy ZDR)](https://platform.claude.com/docs/en/manage-claude/cmek-data-retention#zdr-organizations), after you select the workspace, select **Standard data retention** so that **Encryption key** appears. After you click **Save**, click **Accept** on the data retention terms.
diff --git a/content/en/manage-claude/cmek-troubleshooting.md b/content/en/manage-claude/cmek-troubleshooting.md
index 3e111c9eb3..c12adbbcb3 100644
--- a/content/en/manage-claude/cmek-troubleshooting.md
+++ b/content/en/manage-claude/cmek-troubleshooting.md
@@ -129,11 +129,11 @@ If attaching still fails, find the denied `kms:` event in CloudTrail in the key
CMEK keys can only be attached to workspaces in this organization that have inference data retention enabled.
```
-[Your organization uses zero data retention (ZDR)](https://platform.claude.com/docs/en/manage-claude/cmek-data-retention#zdr-organizations), and a key needs a workspace that retains data. Switch the workspace to **Standard data retention** first.
+[Your organization uses legacy zero data retention (Legacy ZDR)](https://platform.claude.com/docs/en/manage-claude/cmek-data-retention#zdr-organizations), and a key needs a workspace that retains data. Switch the workspace to **Standard data retention** first.
### The workspace has no Encryption key setting
-Only [a workspace that retains data](https://platform.claude.com/docs/en/manage-claude/cmek-data-retention#data-retention) has this setting, so select **Standard data retention** for the workspace first. A ZDR organization’s default workspace can’t be switched, so use another.
+Only [a workspace that retains data](https://platform.claude.com/docs/en/manage-claude/cmek-data-retention#data-retention) has this setting, so select **Standard data retention** for the workspace first. A Legacy ZDR organization’s default workspace can’t be switched, so use another.
### There is no Encryption keys section
diff --git a/content/en/manage-claude/compliance-activity-feed.md b/content/en/manage-claude/compliance-activity-feed.md
index 00ddac97ca..be89d8dd08 100644
--- a/content/en/manage-claude/compliance-activity-feed.md
+++ b/content/en/manage-claude/compliance-activity-feed.md
@@ -14,7 +14,12 @@ description: Retrieve, filter, and paginate your organization's Compliance API A
Both Compliance Access Keys (`sk-ant-api01-...`) carrying this scope and Admin API keys (`sk-ant-admin01-...`) can call the Activity Feed. See [Set up the Compliance API](https://platform.claude.com/docs/en/manage-claude/compliance-api-access) for the conditions under which each key type carries the scope.
-The Activity Feed records authentication, chat, file, project, administrative, and platform activity across your organization and returns it in reverse chronological order. Activities are queryable within 1 minute of occurring and are retained for 6 years. Security posture activities can take longer than 1 minute to become queryable; see [Send Security posture events to your SIEM](https://platform.claude.com/docs/en/manage-claude/compliance-security-posture/send-events#run-it-on-a-schedule). Recording is not retroactive: it begins when the Compliance API is first enabled for your organization, and activity from before enablement is not backfilled. Access Transparency events are an exception. If your organization is enrolled in [Access Transparency](https://platform.claude.com/docs/en/manage-claude/access-transparency), these events are recorded even while the Compliance API is off. The feed can therefore include some from before the Compliance API was first enabled.
+The Activity Feed records authentication, chat, file, project, administrative, and platform activity across your organization and returns it in reverse chronological order.
+
+* **Availability:** Activities are queryable within 1 minute of occurring, with two exceptions. Some `ccr_session_deleted` activities take longer; see [Understand the Activity object](https://platform.claude.com/docs/en/manage-claude/compliance-activity-feed#understand-the-activity-object). Security posture activities can also take longer; see [Send Security posture events to your SIEM](https://platform.claude.com/docs/en/manage-claude/compliance-security-posture/send-events#run-it-on-a-schedule).
+* **Retention:** Activities are retained for 6 years.
+* **No backfill:** Recording begins when the Compliance API is first enabled for your organization. Earlier activity is not backfilled.
+* **Access Transparency:** If your organization is enrolled in [Access Transparency](https://platform.claude.com/docs/en/manage-claude/access-transparency), those events are recorded even while the Compliance API is off, so the feed can include some from before it was first enabled.
```bash cURL
curl --fail-with-body -sS \
@@ -162,12 +167,16 @@ The `actor` field is a discriminated union. The `type` discriminator tells you w
| `system_actor` | Automated background processing performed by Anthropic systems, acting without a user or customer credential. | `service` (nullable; the name of the automated process that performed the action, when known) |
| `scim_directory_sync_actor` | An identity provider (such as Okta, Microsoft Entra ID, or JumpCloud) pushed a change through SCIM directory sync. | `workos_event_id`, `directory_id`, `idp_connection_type` (nullable; for example `OktaSCIMV2`, `AzureSCIMV2`) |
-A `user_actor` activity does not always mean the user took the action. Processes that Anthropic runs on a user’s behalf can currently appear as `user_actor` for the affected user rather than as `system_actor`, and this attribution may change. For example, memory activities from a migration, such as `platform_memory_store_created`, `platform_memory_created`, and `platform_memory_deleted`, are attributed this way. The memory activities `platform_memory_store_created`, `platform_memory_created`, `platform_memory_updated`, and `platform_memory_deleted` currently show an `ip_address` of `0.0.0.0` whoever performed them. As a result, this value does not on its own identify a process that Anthropic runs on the user’s behalf.
+A `user_actor` activity does not always mean the user took the action. Processes that Anthropic runs on a user’s behalf, such as a memory migration, can currently appear as `user_actor` for that user rather than as `system_actor`. An `ip_address` of `0.0.0.0` does not tell these apart: `platform_memory_store_created`, `platform_memory_created`, `platform_memory_updated`, and `platform_memory_deleted` currently show that value whoever performed them.
A `claude_*_viewed` activity means a Claude app loaded content, not that a person viewed it. Types such as `claude_chat_viewed`, `claude_file_viewed`, and `claude_project_viewed` are recorded each time a Claude app loads the chat, file, or project from Anthropic’s servers. Repeated loads are not deduplicated. The web, desktop, and mobile apps load content at different moments, sometimes in the background, and can display a cached copy without loading it. Counts of these activities vary by platform as a result, and they do not correspond to messages sent or screens viewed.
A missing `*_deleted` activity does not mean the content still exists. When your organization’s retention policy deletes a chat, project, or published artifact, the Activity Feed records no `claude_chat_deleted`, `claude_project_deleted`, or `claude_published_artifact_deleted` activity. An admin’s change to the policy is recorded as a `data_retention_periods` update in `claude_organization_settings_updated`.
+A `ccr_session_deleted` activity records the deletion of a session in the cloud. It can take hours or days to arrive after the Compliance API or your retention policy deletes the session’s chat. Its `created_at` is the time of the deletion, so to collect it, query older time windows again and deduplicate on `id`.
+
+Activities such as `claude_organization_settings_updated` record a change that someone saves to a setting. When Anthropic changes a setting’s default, the Activity Feed records no activity. For a setting’s current value, call [Get effective organization settings](https://platform.claude.com/docs/en/manage-claude/compliance-org-data#get-effective-organization-settings).
+
Activities about a file, project document, or artifact do not include its name or title. As of September 24, 2026, the `filename` and `title` fields on these activities are always `null`, an empty string, or omitted, including on activities recorded before that date. To look up a name or title, pass the activity’s `claude_file_*`, `claude_proj_doc_*`, or `claude_artifact_version_*` ID to the matching metadata endpoint in [Retrieve files and artifacts](https://platform.claude.com/docs/en/manage-claude/compliance-content-data#retrieve-files-and-artifacts), using a Compliance Access Key with the `read:compliance_user_data` scope. You cannot look up a name or title after the file, document, or artifact is deleted, or when the activity has no such ID.
diff --git a/content/en/manage-claude/compliance-api-access.md b/content/en/manage-claude/compliance-api-access.md
index 0e9e4c3832..9b7e0fed78 100644
--- a/content/en/manage-claude/compliance-api-access.md
+++ b/content/en/manage-claude/compliance-api-access.md
@@ -53,8 +53,6 @@ Accepting the EFS and Enterprise Data Controls terms turns on the Compliance API
* **Claude Platform on AWS organizations:** With the Admin role, [open the Claude Console](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws#using-the-claude-console). Then, turn on the **Compliance API** toggle on the [Compliance](https://platform.claude.com/settings/security) page. You can also call [Update Compliance Settings](https://platform.claude.com/docs/en/api/organization/compliance_settings/update) with AWS credentials. Either way, your IAM principal needs the `UpdateComplianceSettings` action on `Resource: "*"`.
* **Claude Models on Google Cloud (Anthropic managed) organizations:** With the `roles/claude.admin` IAM role, [open the Claude Console from the Google Cloud console](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/anthropic-managed#using-the-claude-console). Then, turn on the **Compliance API** toggle on the [Compliance](https://platform.claude.com/settings/security) page.
- Organizations with the Compliance API enabled cannot call the Claude API directly from a browser. When a parent organization enables it, that includes every linked Claude Console organization. Before you enable the Compliance API, ask the teams that use these organizations whether any application calls the Claude API from browser code. See [Browser-based applications](https://platform.claude.com/docs/en/manage-claude/authentication#browser-based-applications).
-
**Turning the Compliance API off stops activity recording.** To turn it off, use the same **Compliance API** toggle. If you can’t turn it off, ask your Anthropic account team or [Anthropic support](https://support.claude.com). While the Compliance API is off, no activity events are recorded for your organization, so the [Activity Feed](https://platform.claude.com/docs/en/manage-claude/compliance-activity-feed) receives no new events. Activity that is not recorded while the Compliance API is off cannot be recovered later. Turning the Compliance API back on resumes recording from that point forward; activity that was already recorded is not deleted. Access Transparency events are an exception. If your organization is enrolled in [Access Transparency](https://platform.claude.com/docs/en/manage-claude/access-transparency), turning the Compliance API off stops your access to these events, not their recording. They are still recorded while the Compliance API is off, and the Activity Feed returns them after the Compliance API is turned back on. For Claude Enterprise organizations, the Compliance API setting in claude.ai also governs transcript capture for [local sessions](https://platform.claude.com/docs/en/manage-claude/compliance-sessions#retrieve-local-sessions) (sessions on users’ machines). Capture starts when the Compliance API is enabled and stops while it is off. Transcript content from local sessions that run while the Compliance API is off is not captured and cannot be recovered later.
diff --git a/content/en/manage-claude/compliance-content-data.md b/content/en/manage-claude/compliance-content-data.md
index c3db9a8653..f0fcb28fb0 100644
--- a/content/en/manage-claude/compliance-content-data.md
+++ b/content/en/manage-claude/compliance-content-data.md
@@ -24,7 +24,7 @@ Endpoints on this page paginate two ways; see [Paginate results](https://platfor
Use [List chats](https://platform.claude.com/docs/en/api/compliance/apps/chats/list) to page through chat metadata, then [Get chat messages](https://platform.claude.com/docs/en/api/compliance/apps/chats/messages/list) to fetch the full message content of one chat.
-Chats in the unified Claude experience are returned by these endpoints like any other chat: a chat that continues in a session in the cloud comes back as one chat. The work Claude does there appears in each message’s `content` as `tool_use` blocks (the tool’s `name` and `input`) and `tool_result` blocks (its output, matched by `tool_use_id`). Coverage of these chats is in beta.
+These endpoints return chats in the unified Claude experience like any other chat: a chat that continues in a session in the cloud comes back as one chat. The work Claude does there appears in each message’s `content` as `tool_use` blocks (the tool’s `name` and `input`) and `tool_result` blocks (its output, matched by `tool_use_id`). For exceptions, see [What chat messages do not return](https://platform.claude.com/docs/en/manage-claude/compliance-content-data#what-chat-messages-do-not-return).
The chat list endpoint defaults to organization-wide scope: leave off `user_ids[]` to include every chat under your parent organization. Add `order_by=updated_at` to sort by last update time. This combination is the recommended way to export chats and keep an export current, because one paginated loop picks up new chats, chats with new messages, and chats deleted in claude.ai for every user without enumerating users first. The following request lists chats updated since a given date.
@@ -74,8 +74,8 @@ To scope the list to specific users instead (for example, a legal hold on named
```bash cURL
curl --fail-with-body -sS -G \
"https://api.anthropic.com/v1/compliance/apps/chats" \
- --header "x-api-key: $ANTHROPIC_COMPLIANCE_ACCESS_KEY" \
- --header "anthropic-version: 2026-10-21" \
+ -H "x-api-key: $ANTHROPIC_COMPLIANCE_ACCESS_KEY" \
+ -H "anthropic-version: 2026-10-21" \
--data-urlencode "user_ids[]=user_01WxYzAbCdEfGhJkMnPqRsTu" \
--data-urlencode "created_at.gte=2025-06-01T00:00:00Z" \
--data-urlencode "limit=100"
@@ -175,6 +175,14 @@ The messages endpoint returns the chat’s metadata plus a `chat_messages` array
An artifact that Claude creates in a chat can instead be a code artifact (ID prefix `cart_`). Code artifacts are not in `artifacts`. [List code artifacts](https://platform.claude.com/docs/en/api/compliance/apps/code/artifacts/list) returns them, but does not identify the chat that each one came from.
+### What chat messages do not return
+
+When a chat continues in a session in the cloud, [Get chat messages](https://platform.claude.com/docs/en/api/compliance/apps/chats/messages/list) does not return everything that occurs in the session:
+
+* **Files that Claude does not give the user:** Some files stay in the session, such as intermediate files that a script writes. They are not in `files` or `generated_files`, and no endpoint downloads them.
+* **Subagent tool calls:** When Claude delegates work to a subagent, the chat includes the delegation, its result, and the files and artifacts the subagent creates or sends. The subagent’s other tool calls, including connector and web calls, are in the [remote session transcript](https://platform.claude.com/docs/en/manage-claude/compliance-sessions#retrieve-a-remote-session-transcript), where they are not marked as a subagent’s. Calls inside a skill or another subagent that a subagent runs are not always returned.
+* **Network connections:** No endpoint lists the network connections that the session attempts. Network activity is visible only through the tool calls and results that the endpoints return.
+
## Retrieve files and artifacts
Files and artifacts are downloaded by ID. They aren’t listed independently, except for the artifacts returned by [List code artifacts](https://platform.claude.com/docs/en/api/compliance/apps/code/artifacts/list), such as Claude Docs documents (see the end of this section). All other IDs come from the chat messages endpoint in [Retrieve chats and messages](https://platform.claude.com/docs/en/manage-claude/compliance-content-data#retrieve-chats-and-messages) (the `files`, `generated_files`, and `artifacts` arrays on each message) or, for project-level uploads, from the [project attachments endpoint](https://platform.claude.com/docs/en/manage-claude/compliance-content-data#retrieve-projects-and-attachments).
@@ -318,8 +326,10 @@ Some content can remain after a delete:
* **Files that Claude gives a user:** In the unified Claude experience, almost all files that Claude gives a user are deleted with the chat, unless another chat or project in your organization uses them. Files that Claude gave before October 8, 2026, can remain, no matter how the chat is deleted.
* **Code artifacts:** Deleting a chat does not delete the code artifacts that Claude created in it. Delete them with [Delete code artifact](https://platform.claude.com/docs/en/api/compliance/apps/code/artifacts/delete).
* **File copies in the cloud:** [Delete file](https://platform.claude.com/docs/en/api/compliance/apps/chats/files/delete) does not delete a copy of the file in a chat’s session in the cloud. Deleting the chat deletes the sessions that were started for it, but not sessions that those sessions started.
+* **File copies for code execution:** For a file uploaded to a chat with code execution on, [Delete file](https://platform.claude.com/docs/en/api/compliance/apps/chats/files/delete) does not delete the copy that the chat keeps for running code. To delete that copy, delete each chat that uses the file.
+* **Scheduled tasks:** [Delete project](https://platform.claude.com/docs/en/api/compliance/apps/projects/delete) does not delete the Cowork scheduled tasks in the project, and no Compliance API endpoint deletes them. The user who owns a task can delete it in claude.ai.
-To delete files that Claude gave a user:
+After a chat is deleted, no endpoint lists the remaining files by chat. To delete files that Claude gave a user:
1. Before the chat is deleted, call [Get chat messages](https://platform.claude.com/docs/en/api/compliance/apps/chats/messages/list) and collect each `claude_file_` ID in `generated_files`, and in `files` on assistant messages. The endpoint does not return these IDs after the chat is deleted, and it might not list every file that remains.
2. Before or after the chat is deleted, pass each ID to [Delete file](https://platform.claude.com/docs/en/api/compliance/apps/chats/files/delete). It deletes the file even if another chat or project uses it. It returns 404 for a file that is already deleted.
diff --git a/content/en/manage-claude/compliance-errors.md b/content/en/manage-claude/compliance-errors.md
index a8c169dc55..1e87fd1f8c 100644
--- a/content/en/manage-claude/compliance-errors.md
+++ b/content/en/manage-claude/compliance-errors.md
@@ -10,7 +10,7 @@ description: Compliance API error responses by HTTP status code, with the cause
This page lists common Compliance API error responses by HTTP status code, with the cause and the fix for each.
-The Compliance API returns errors in the standard [Anthropic error format](https://platform.claude.com/docs/en/api/errors): a non-2xx status code, a `request-id` response header, and a JSON body with an `error` object containing `type` and `message`. Include the `request-id` header value when you escalate to support.
+The Compliance API returns errors in the standard format described in [Claude API errors](https://platform.claude.com/docs/en/api/errors): a non-2xx status code, a `request-id` response header, and a JSON body with an `error` object containing `type` and `message`. Include the `request-id` header value when you escalate to support.
```json
{
@@ -170,7 +170,7 @@ If an oldest-first request returns this error, do not retry it either. Keep the
## 401 Unauthorized
-The request carried a Compliance Access Key (`sk-ant-api01-...`) or Admin API key (`sk-ant-admin01-...`) that does not authenticate. A request that carries no key, or a key of another type, returns [404 Not Found](https://platform.claude.com/docs/en/manage-claude/compliance-errors#request-not-authenticated) instead on every endpoint except organization settings and Security posture, and a valid key with the wrong scopes returns [403 Forbidden](https://platform.claude.com/docs/en/manage-claude/compliance-errors#403-forbidden).
+The request carried a Compliance Access Key (`sk-ant-api01-...`) or Admin API key (`sk-ant-admin01-...`) that does not authenticate. A request that carries no key, or a key of another type, returns a 404 ([Request not authenticated](https://platform.claude.com/docs/en/manage-claude/compliance-errors#request-not-authenticated)) instead on every endpoint except organization settings and Security posture. A valid key with the wrong scopes returns [403 Forbidden](https://platform.claude.com/docs/en/manage-claude/compliance-errors#403-forbidden).
### Invalid, deactivated, or expired API key
@@ -236,7 +236,7 @@ Missing required scopes. Got: ['read:compliance_user_data'] Needed one of: ['rea
Missing required scopes. Got: ['read:compliance_org_settings'] Needed one of: ['read:compliance_org_data', 'read:org_audit']
```
-**Cause:** The `read:compliance_org_settings` scope was retired on June 30, 2026. `GET /v1/compliance/organizations/{organization_id}/settings` now requires `read:compliance_org_data`, the same scope as the other organization endpoints, and the retired scope no longer authorizes anything. A Compliance Access Key that carries only `read:compliance_org_settings` returns this error on every call to the settings endpoint, even though the key worked before the retirement. The retired scope can no longer be selected or granted when creating a key.
+**Cause:** The `read:compliance_org_settings` scope is retired and does not authorize any request. `GET /v1/compliance/organizations/{organization_id}/settings` requires `read:compliance_org_data`, the same scope as the other organization endpoints. A Compliance Access Key that carries only `read:compliance_org_settings` returns this error on every call to the settings endpoint. You cannot select or grant the retired scope when you create a key.
**Fix:** Compliance Access Key scopes are immutable after creation. [Create a new Compliance Access Key](https://platform.claude.com/docs/en/manage-claude/compliance-api-access#set-up-the-compliance-api) with `read:compliance_org_data` selected, update your integration to use it, then delete the old key. A key that already carries `read:compliance_org_data` is unaffected by the retirement.
@@ -308,7 +308,7 @@ Chat conversation not found: 'claude_chat_01H5CWunD7RpVJ5bHa8RCkja'
File not found: 0d3b8f72-6c1e-4a59-b2de-7f4c9a1e5b60
```
-**Cause:** The file ID does not exist in an organization your key can read, or the file has been deleted. Deleting a chat in claude.ai also deletes the files attached to it, although the chat itself remains listed. The message identifies the file by its underlying UUID rather than by the `claude_file_...` ID sent in the request. The metadata, content, and delete endpoints return this body; it applies to both chat-attached files (`claude_file_...`) and project files.
+**Cause:** The file ID does not exist in an organization your key can read, or the file has been deleted. Deleting a chat in claude.ai usually also deletes the files attached to it, although the chat itself remains listed. For exceptions, see [Content that remains after a delete](https://platform.claude.com/docs/en/manage-claude/compliance-content-data#content-that-remains-after-a-delete). The message identifies the file by its underlying UUID rather than by the `claude_file_...` ID sent in the request. The metadata, content, and delete endpoints return this body; it applies to both chat-attached files (`claude_file_...`) and project files.
**Fix:** Reconcile against recent `claude_file_uploaded` or `claude_file_deleted` activities. Files deleted along with a chat have no `claude_file_deleted` activity, so check for the chat’s `claude_chat_deleted` activity as well. When your organization’s retention policy deletes a chat, the Activity Feed records no `claude_chat_deleted` activity. If the file was deleted, the binary is gone; the activity records remain in the feed for the 6-year retention window.
@@ -429,11 +429,11 @@ organization `91012d09-e48b-438e-a489-1bebfd8fa6f9` not found in this organizati
* The `organization_id` is not one of your parent’s linked organizations.
* The `organization_id` is not a valid UUID.
-* The settings endpoint is not yet enabled for your parent organization.
+* The settings endpoint is not enabled for your parent organization.
The endpoint intentionally returns the same body in all three cases, so a 404 does not reveal whether an organization exists.
-**Fix:** Verify the ID against [List organizations](https://platform.claude.com/docs/en/api/compliance/organizations/list). If a known-good organization ID still returns 404, the settings endpoint is not yet enabled for your parent organization; contact your Anthropic representative.
+**Fix:** Verify the ID against [List organizations](https://platform.claude.com/docs/en/api/compliance/organizations/list). If a known-good organization ID still returns 404, the settings endpoint is not enabled for your parent organization; contact your Anthropic representative.
## 409 Conflict
@@ -453,7 +453,7 @@ The "claude_proj_01KGp4eZNug9ri4kE35RSppq" project cannot be deleted as it has c
## 429 Too Many Requests
-Requests to the Compliance API are limited to **600 requests per minute per [parent organization](https://platform.claude.com/docs/en/manage-claude/compliance-api#how-the-compliance-api-works)**. The limit is one budget shared across every key under the parent (Compliance Access Keys and the Admin API keys of all linked organizations) and across every `/v1/compliance/*` endpoint; the remote session endpoints carry a second request budget on top, and the Security posture endpoint has a lower limit of its own, counted for each parent organization. For a standalone Claude Console organization, which has no parent organization, the same budget applies to the organization itself and is shared across its Admin API keys. Contact your Anthropic representative if your integration needs a higher limit.
+Requests to the Compliance API are limited to **600 requests per minute for each [parent organization](https://platform.claude.com/docs/en/manage-claude/compliance-api#how-the-compliance-api-works)**. The limit is one budget shared across every key under the parent (Compliance Access Keys and the Admin API keys of all linked organizations) and across every `/v1/compliance/*` endpoint; the remote session endpoints carry a second request budget on top, and the Security posture endpoint has a lower limit of its own, counted for each parent organization. For a standalone Claude Console organization, which has no parent organization, the same budget applies to the organization itself and is shared across its Admin API keys. Contact your Anthropic representative if your integration needs a higher limit.
One 429 is different: on a very large session, the local session messages endpoint might return [Server busy reading large transcripts](https://platform.claude.com/docs/en/manage-claude/compliance-errors#server-busy-reading-large-transcripts), which is not a rate limit and not a limit on your organization. Its entry, at the end of this section, says how to identify it and what to do.
diff --git a/content/en/manage-claude/compliance-sessions.md b/content/en/manage-claude/compliance-sessions.md
index 21d406f8dd..188257515f 100644
--- a/content/en/manage-claude/compliance-sessions.md
+++ b/content/en/manage-claude/compliance-sessions.md
@@ -35,7 +35,7 @@ The following table maps each product, and where it runs, to the endpoint family
Capture of local sessions is tied to the Compliance API being enabled for your organization and applies while users are signed in with their Claude Enterprise account. The session endpoints do not return the following:
-* Claude Code sessions authenticated with a Claude Console API key, or run through a third-party cloud platform such as Amazon Bedrock, Google Cloud, or Microsoft Foundry.
+* Claude Code sessions authenticated with a Claude Console API key, or run through a third-party cloud platform such as Amazon Bedrock, Claude Models on Google Cloud (Google managed), or Microsoft Foundry.
* [Claude Code cloud sessions](https://code.claude.com/docs/en/claude-code-on-the-web) (including [Claude Code cloud scheduled tasks](https://code.claude.com/docs/en/routines)), which run on cloud infrastructure instead of the user’s machine. These cloud sessions are not remote sessions, even though both run in the cloud; the remote session endpoints return Cowork and Claude Tag sessions only.
* Local sessions from products other than Cowork and Claude Code in organizations with [HIPAA readiness](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#hipaa-readiness) enabled. In those organizations, the local session endpoints return Cowork and Claude Code sessions only, and captured session content is stored for 30 days.
* Local sessions for which [zero data retention (ZDR)](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#zero-data-retention-zdr-scope) is in effect. These sessions are excluded from list results, and the retrieve and messages endpoints return 404 for them.
@@ -51,7 +51,7 @@ Anthropic recommends the Compliance API for retrieving session content. The foll
| `product_surface` values | `cowork`, `claude_code`, `claude_science`, `claude_in_chrome`, and values starting with `office_agents` | `cowork_remote`, `claude_tag` | N/A |
| Retention | 6 years by default, or your organization’s custom conversation retention period when a finite one is set; 30 days in organizations with HIPAA readiness enabled; held by Anthropic | No default period; see [Retention and deletion](https://platform.claude.com/docs/en/manage-claude/compliance-sessions#retention-and-deletion); held by Anthropic | Your infrastructure, your policies |
| User prompts and assistant responses | Yes | Yes | Yes, subject to content-capture settings |
-| Tool inputs | Truncated to 10,000 bytes per input by default; up to about 1 MiB on request | Truncated to 10,000 bytes per input by default; up to about 1 MiB on request | Truncated summaries |
+| Tool inputs | Truncated to 10,000 bytes for each input by default; up to about 1 MiB on request | Truncated to 10,000 bytes for each input by default; up to about 1 MiB on request | Truncated summaries |
| Tool result content | Each text entry truncated to 10,000 bytes by default; up to about 1 MiB on request | Each text entry truncated to 10,000 bytes by default; up to about 1 MiB on request | Metadata such as size and success; Claude Code can also capture content with an optional, size-capped setting |
| File contents | Yes, through transcript tool calls (text only; other content appears as a placeholder) | Yes, through transcript tool calls (text only; other content is omitted) | File paths; Claude Code can also capture contents with an optional, size-capped setting |
| Host and device metadata (terminal type, workspace paths) | No | No | Yes |
@@ -121,7 +121,7 @@ curl --fail-with-body -sS -G \
Results are sorted in reverse chronological order (newest first) by `created_at`, with ties broken in a fixed server-side order, and capped at `limit` results for each response (default 100, max 500). The endpoint paginates forward only with `page` and `next_page` tokens (see [Paginate results](https://platform.claude.com/docs/en/manage-claude/compliance-activity-feed#paginate-results)): pass the response’s `next_page` value back as the `page` query parameter on the next request, and stop when `next_page` is `null`. The response has no `has_more` field. Complete a list walk within 24 hours of starting it; an older list cursor is still accepted but is re-evaluated against the current retention boundary, so sessions whose oldest retained activity is about to age out of the retention period can be skipped.
-In each session object, `user.id` is always set and survives account deletion; `user.email_address` is `null` when the user’s account has been deleted or the user is no longer a member of an organization your key can read. `workspace_id` is `null` when the session was not associated with a workspace. A local session corresponds to one client session ID: opening a new conversation in the client, or clearing its context, starts a new session record. For Claude Science, the list can also include separate sessions for the app’s own background work (for example, naming the conversation; on newer app versions also its reviewer and delegation tracks), and on older app versions some of that background work appears as extra messages inside the conversation’s own transcript. A Claude Science conversation that continues across some app updates appears as two sessions. These behaviors are expected. Treat `id` values as opaque strings; the format may change without notice.
+In each session object, `user.id` is always set and survives account deletion. `user.email_address` is `null` when the user’s account has been deleted or the user is no longer a member of an organization your key can read. `workspace_id` is `null` when the session was not associated with a workspace. A local session corresponds to one client session ID: opening a new conversation in the client, or clearing its context, starts a new session record. For Claude Science, the list can also include separate sessions for the app’s own background work, such as naming the conversation. On newer app versions, that work includes the reviewer and delegation tracks. On older app versions, some of that work appears as extra messages inside the conversation’s own transcript. A Claude Science conversation that continues across some app updates appears as two sessions. These behaviors are expected. Treat `id` values as opaque strings; the format might change without notice.
For Claude for Microsoft 365 and the Claude add-ins for Google Docs, Google Sheets, and Google Slides, deleting a conversation in the add-in occurs only on the client, so it is not reflected in the API: local sessions have no `deleted_at` field, and the session stays listed until retention removes it.
@@ -377,7 +377,7 @@ Each run of a Cowork scheduled task in the cloud takes place in a session that h
`product_surface` (string or `null`) identifies the product that created the session. The endpoint currently returns sessions with one of two `product_surface` values. `cowork_remote` is for Cowork sessions in the cloud, including sessions started on claude.ai web or mobile and cloud runs of Cowork scheduled tasks. `claude_tag` is for Claude Tag sessions started in Slack.
-To retrieve a chat in the unified Claude experience, including the part that ran in the cloud, use the chat endpoints ([Get chat messages](https://platform.claude.com/docs/en/api/compliance/apps/chats/messages/list)), not the remote session endpoints. The remote session list also returns the sessions that such a chat continues in, as `cowork_remote`, so an export of both chats and remote sessions contains that work twice.
+To retrieve a chat in the unified Claude experience, including the part that ran in the cloud, use the chat endpoints ([Get chat messages](https://platform.claude.com/docs/en/api/compliance/apps/chats/messages/list)). The remote session list also returns the sessions that such a chat continues in, as `cowork_remote`, so an export of both chats and remote sessions contains most of that work twice. Each can hold content that the other does not, so keep both records. For example, user messages in the remote session do not include attached files or long pasted text, and usually do not indicate that they exist. The chat lists them in `files`. For content that the chat does not include, see [What chat messages do not return](https://platform.claude.com/docs/en/manage-claude/compliance-content-data#what-chat-messages-do-not-return).
**Build forward-compatible handlers.** Pass through unrecognized `status` and `product_surface` values, and ignore fields your handler does not expect, so your integration keeps working as new statuses and product surfaces ship.
diff --git a/content/en/manage-claude/data-residency.md b/content/en/manage-claude/data-residency.md
index cd6df3804d..a37763c34a 100644
--- a/content/en/manage-claude/data-residency.md
+++ b/content/en/manage-claude/data-residency.md
@@ -251,7 +251,7 @@ The response `usage` object includes an `inference_geo` field indicating where i
### Model availability
-The `inference_geo` parameter is supported on Claude 4.6 and later models. Requests with `inference_geo` on Claude Opus 4.5, Claude Sonnet 4.5 (deprecated), Claude Haiku 4.5, or earlier models return a 400 error.
+The `inference_geo` parameter is supported on Claude 4.6 and later models. Requests with `inference_geo` on earlier models return a 400 error.
The `inference_geo` parameter is available on the Claude API (first-party), [Claude Platform on AWS](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws), and [Claude Models on Google Cloud (Anthropic managed)](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/anthropic-managed). On Claude Models on Google Cloud (Google managed) and Amazon Bedrock, the inference region is determined by the endpoint URL or inference profile, so `inference_geo` is not applicable. On [Claude in Microsoft Foundry](https://platform.claude.com/docs/en/build-with-claude/claude-in-microsoft-foundry), `inference_geo` is likewise not applicable: deployments hosted on Azure can instead use the US Data Zone Standard deployment type, which keeps inference within the United States. The `inference_geo` parameter is also not available through the [OpenAI SDK compatibility endpoint](https://platform.claude.com/docs/en/cli-sdks-libraries/libraries/openai-sdk).
diff --git a/content/en/manage-claude/enterprise-frontier-safeguards/customer-managed-keys.md b/content/en/manage-claude/enterprise-frontier-safeguards/customer-managed-keys.md
index b8658d04da..f2e5b4377f 100644
--- a/content/en/manage-claude/enterprise-frontier-safeguards/customer-managed-keys.md
+++ b/content/en/manage-claude/enterprise-frontier-safeguards/customer-managed-keys.md
@@ -69,7 +69,7 @@ Don’t use the same key for both. Which keys encrypt what’s in your bucket de
To set up a key on Claude Platform on AWS, follow the steps in [Set up CMEK on Claude Platform on AWS](https://platform.claude.com/docs/en/manage-claude/cmek-claude-platform-on-aws).
- To set up a key on Claude Models on Google Cloud (Anthropic managed), follow the steps for your own key in [Add cloud resources](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/setup-claude-models-on-google-cloud-anthropic-managed#add-cloud-resources). You need `roles/claude.admin` instead of Organization Admin. You don’t need a bucket to use a key.
+ To set up a key on Claude Models on Google Cloud (Anthropic managed), [open the Claude Console](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/setup-claude-models-on-google-cloud-anthropic-managed#before-you-begin) from the Google Cloud console. Then, follow the steps for your own key in [Add cloud resources](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/setup-claude-models-on-google-cloud-anthropic-managed#add-cloud-resources). You need `roles/claude.admin` instead of Organization Admin. You don’t need a bucket to use a key.
diff --git a/content/en/manage-claude/enterprise-frontier-safeguards/faq.md b/content/en/manage-claude/enterprise-frontier-safeguards/faq.md
index b59671e8be..99e5cbab3d 100644
--- a/content/en/manage-claude/enterprise-frontier-safeguards/faq.md
+++ b/content/en/manage-claude/enterprise-frontier-safeguards/faq.md
@@ -17,6 +17,14 @@ To set up [Enterprise Frontier Safeguards](https://platform.claude.com/docs/en/m
[Enterprise Frontier Safeguards](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/overview) (EFS) is Zero Data Retention (ZDR) for eligible organizations that use [Claude’s most capable models](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#model-specific-data-retention-requirements). Anthropic doesn’t retain your prompts and responses. Sealed Safety Data is written to storage that you own. EFS includes both [customer-owned storage](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/external-storage) and [review of Safety Cases](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/flagged-cases) by people at your organization. A workspace that uses [Anthropic-managed storage](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/faq#glossary) isn’t on EFS, because Anthropic stores encrypted copies of that workspace’s prompts and responses.
+
+ 1. If the [Programs](https://platform.claude.com/settings/programs) page in the Claude Console already shows **Enterprise Frontier Safeguards**, skip to step 2. Otherwise, contact your Anthropic account team to request access. If you don’t have an account team, complete the [Enterprise Frontier Safeguards request form](https://claude.com/form/enterprise-frontier-safeguards).
+ 2. Once Anthropic confirms that your organization is eligible, an Organization Admin accepts the terms from the [Programs](https://platform.claude.com/settings/programs) page in the Claude Console.
+ 3. To set up EFS, follow the [EFS setup guide for your platform](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/setup-console).
+
+ On Amazon Bedrock, you get access through AWS. See [Enterprise Frontier Safeguards on Amazon Bedrock](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/setup-amazon-bedrock).
+
+
The main difference is where your Sealed Safety Data is stored. With EFS, it’s written to storage that you own, so EFS is Zero Data Retention (ZDR). With [Enterprise Data Controls](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/overview#enterprise-data-controls), a workspace stays on Anthropic-managed storage. On Claude Platform, you can still [use a customer-managed key](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/customer-managed-keys) and [turn off Anthropic Human Review](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/human-review-and-access-transparency#turn-off-anthropic-human-review) for additional control over your data.
diff --git a/content/en/manage-claude/enterprise-frontier-safeguards/overview.md b/content/en/manage-claude/enterprise-frontier-safeguards/overview.md
index 0e4c84a2a3..f9c009abe8 100644
--- a/content/en/manage-claude/enterprise-frontier-safeguards/overview.md
+++ b/content/en/manage-claude/enterprise-frontier-safeguards/overview.md
@@ -8,7 +8,7 @@ description: Zero Data Retention (ZDR) for eligible organizations that use Claud
Enterprise Frontier Safeguards is in beta. It’s available under your agreement with Anthropic, such as the Internal use only terms, [Commercial Terms of Service](https://www.anthropic.com/legal/commercial-terms) and the [Service Specific Terms](https://www.anthropic.com/legal/service-specific-terms). Settings and behavior can change during the beta.
-Enterprise Frontier Safeguards (EFS) is [Zero Data Retention (ZDR)](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#zero-data-retention-zdr-scope) for eligible organizations that use [Claude’s most capable models](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#model-specific-data-retention-requirements), such as Claude Fable 5.1. Anthropic doesn’t retain your prompts and responses. Sealed Safety Data is written to storage that you own. EFS requires your own bucket. A workspace on [Anthropic-managed storage](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/faq#glossary) isn’t on EFS, because Anthropic stores encrypted copies of that workspace’s prompts and responses.
+Enterprise Frontier Safeguards (EFS) is [Zero Data Retention (ZDR)](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention) for eligible organizations that use [Claude’s most capable models](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#model-specific-data-retention-requirements), such as Claude Fable 5.1. Anthropic doesn’t retain your prompts and responses. Sealed Safety Data is written to storage that you own. EFS requires your own bucket. A workspace on [Anthropic-managed storage](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/faq#glossary) isn’t on EFS, because Anthropic stores encrypted copies of that workspace’s prompts and responses.
Use EFS when you want Claude’s most capable models but need to keep your Sealed Safety Data in your own cloud account. With EFS, people at your organization, not reviewers at Anthropic, review [Safety Cases](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/flagged-cases). EFS includes both:
@@ -23,6 +23,16 @@ Anthropic doesn’t charge for EFS, and EFS doesn’t change model behavior, API
EFS covers requests to the Messages API in a workspace configured for EFS regardless of model. It does not cover data that is stored by Claude Platform features for their own use, even within a Messages API request, such as code execution containers, Files API uploads, Batch API results, and Claude Managed Agents sessions. See [Data and retention](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/faq#data-and-retention) in the FAQ.
+## Get access
+
+To get EFS, follow these steps:
+
+1. If the [Programs](https://platform.claude.com/settings/programs) page in the Claude Console already shows **Enterprise Frontier Safeguards**, skip to step 2. Otherwise, contact your Anthropic account team to request access. If you don’t have an account team, complete the [Enterprise Frontier Safeguards request form](https://claude.com/form/enterprise-frontier-safeguards).
+2. Once Anthropic confirms that your organization is eligible, an Organization Admin accepts the terms from the [Programs](https://platform.claude.com/settings/programs) page in the Claude Console.
+3. To set up EFS, follow the [EFS setup guide for your platform](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/setup-console).
+
+On Amazon Bedrock, you get access through AWS. See [Enterprise Frontier Safeguards on Amazon Bedrock](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/setup-amazon-bedrock).
+
## On Claude Platform, EFS applies to a whole workspace
Once EFS takes effect for a workspace, it applies to every request to every model in that workspace, including models that don’t require data retention.
diff --git a/content/en/manage-claude/enterprise-frontier-safeguards/safety-cases-api.md b/content/en/manage-claude/enterprise-frontier-safeguards/safety-cases-api.md
index cd9ce2a593..049de8ae77 100644
--- a/content/en/manage-claude/enterprise-frontier-safeguards/safety-cases-api.md
+++ b/content/en/manage-claude/enterprise-frontier-safeguards/safety-cases-api.md
@@ -213,7 +213,7 @@ The response holds the message and the sender that Anthropic recorded:
}
```
-`content` holds the stored request and response. It’s not an exact copy: Anthropic cuts URLs to their host, removes credentials and thinking blocks, and resizes images and documents.
+`content` holds the stored request and response. It’s not an exact copy: Anthropic cuts some URLs to their host, redacts MCP server tokens, removes thinking blocks, and can replace an image or a document with resized images or a placeholder.
Anthropic records one sender for each message:
diff --git a/content/en/manage-claude/enterprise-frontier-safeguards/setup-claude-models-on-google-cloud-anthropic-managed.md b/content/en/manage-claude/enterprise-frontier-safeguards/setup-claude-models-on-google-cloud-anthropic-managed.md
index b317c9f075..20be088e7a 100644
--- a/content/en/manage-claude/enterprise-frontier-safeguards/setup-claude-models-on-google-cloud-anthropic-managed.md
+++ b/content/en/manage-claude/enterprise-frontier-safeguards/setup-claude-models-on-google-cloud-anthropic-managed.md
@@ -51,9 +51,11 @@ Finally, answer these questions:
To set up Enterprise Frontier Safeguards, you need the following:
* [`roles/claude.admin`](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/anthropic-managed#using-the-claude-console) on the Google Cloud project whose organization will use EFS.
-* [Access to EFS](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/setup-claude-models-on-google-cloud-anthropic-managed#what-getting-access-changes) for your organization, from your Anthropic account team. Getting access can change settings that you can’t change back.
+* [Access to EFS](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/setup-claude-models-on-google-cloud-anthropic-managed#what-getting-access-changes) for your organization. Getting access can change settings that you can’t change back.
* To use your own key: [customer-managed keys turned on](https://platform.claude.com/docs/en/manage-claude/cmek#availability) for your organization.
+To open the Claude Console, go to [Claude Platform](https://console.cloud.google.com/agent-platform/claude-platform) in the Google Cloud console and select your project. Then, select **Anthropic managed** and click **Open Claude Console**. Do this before you follow links on this page to the Claude Console. Each link opens in the Anthropic organization that your browser is signed in to. To check which organization you’re in, go to **Settings** > **Organization**. **Google Cloud project number** must show your project’s number, not its ID. If the page has no such row, you’re probably in another organization.
+
## What getting access changes
@@ -85,11 +87,15 @@ Accepting the terms changes more than the workspaces you plan to use. Read these
-## 1. Add cloud resources
+### Accept the terms
-To open the Claude Console, go to [Claude Platform](https://console.cloud.google.com/agent-platform/claude-platform) in the Google Cloud console and select your project. Then, select **Anthropic managed** and click **Open Claude Console**. Do this before you follow links on this page to the Claude Console. Each link opens in the Anthropic organization that your browser is signed in to. To check which organization you’re in, go to **Settings** > **Organization**. **Google Cloud project number** must show your project’s number, not its ID. If the page has no such row, you’re probably in another organization.
+To accept the terms, go to the [Programs](https://platform.claude.com/settings/programs) page in the Claude Console and click **Accept terms** on the **Enterprise Frontier Safeguards** card. If you don’t see **Accept terms** there, click **Open Verification Portal** on the same page, and then click **Accept terms** in the Verification Portal.
+
+Ask your Anthropic account team for access if you can’t open the Verification Portal or don’t see **Accept terms** there either. If you don’t have an account team, complete the [Enterprise Frontier Safeguards request form](https://claude.com/form/enterprise-frontier-safeguards).
+
+## 1. Add cloud resources
-To use EFS, you need your own bucket. Your own encryption key is optional. Without one, a workspace uses an Anthropic-managed key. To add your bucket and key, go to the [Data retention](https://platform.claude.com/settings/privacy) page in the Claude Console and select **Organization** at the top of the page.
+To use Enterprise Frontier Safeguards, you need your own bucket. Your own encryption key is optional. Without one, a workspace uses an Anthropic-managed key. To add your bucket and key, go to the [Data retention](https://platform.claude.com/settings/privacy) page in the Claude Console and select **Organization** at the top of the page.
To use your own key, create a [customer-managed key](https://platform.claude.com/docs/en/manage-claude/cmek-google-cloud-kms) in Google Cloud KMS, then register it with Anthropic under **Encryption keys**. Follow the **Claude Platform** tab and stop before **Attach the key to a workspace**. Use a different key from your bucket’s own key, which you create with the bucket.
diff --git a/content/en/manage-claude/enterprise-frontier-safeguards/setup-claude-platform-on-aws.md b/content/en/manage-claude/enterprise-frontier-safeguards/setup-claude-platform-on-aws.md
index 6ec8ebedaa..fa1949a237 100644
--- a/content/en/manage-claude/enterprise-frontier-safeguards/setup-claude-platform-on-aws.md
+++ b/content/en/manage-claude/enterprise-frontier-safeguards/setup-claude-platform-on-aws.md
@@ -61,7 +61,7 @@ Finally, answer these questions:
To set up Enterprise Frontier Safeguards, you need the following:
* The Admin role in the Claude Console. To get the role, go to the **Claude Platform on AWS** service page in the AWS Console, select **Admin**, and click **Sign in**. Sign in this way before you follow links on this page to the Claude Console. Each link opens in the Anthropic organization that your browser is signed in to.
-* [Access to EFS](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/setup-claude-platform-on-aws#what-getting-access-changes) for your organization, from your Anthropic account team.
+* [Access to EFS](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/setup-claude-platform-on-aws#what-getting-access-changes) for your organization.
* [IAM permissions](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/setup-claude-platform-on-aws#iam-permissions) for your IAM principal.
Use a new workspace for EFS, even if you already have workspaces. Anthropic recommends that you set its **AWS region** to `us-east-2` to avoid network transfer costs, but it isn’t required. You can’t change the region later.
@@ -109,9 +109,9 @@ Accepting the terms changes more than the workspaces you plan to use. Read these
### Accept the terms
-To accept the terms, go to the [Programs](https://platform.claude.com/settings/programs) page in the Claude Console and click **Accept terms** on the **Enterprise Frontier Safeguards** card. If you don’t see **Accept terms** there, sign in to the [Verification Portal](https://portal.anthropic.com), select your organization, and click **Accept terms**.
+To accept the terms, go to the [Programs](https://platform.claude.com/settings/programs) page in the Claude Console and click **Accept terms** on the **Enterprise Frontier Safeguards** card. If you don’t see **Accept terms** there, click **Open Verification Portal** on the same page, and then click **Accept terms** in the Verification Portal.
-Ask your Anthropic account team for access if you can’t sign in to the Verification Portal or don’t see **Accept terms** there either. If you don’t have an account team, complete the [Enterprise Frontier Safeguards request form](https://claude.com/form/enterprise-frontier-safeguards).
+Ask your Anthropic account team for access if you can’t open the Verification Portal or don’t see **Accept terms** there either. If you don’t have an account team, complete the [Enterprise Frontier Safeguards request form](https://claude.com/form/enterprise-frontier-safeguards).
## 1. Add cloud resources
diff --git a/content/en/manage-claude/enterprise-frontier-safeguards/setup-google-cloud-agent-platform.md b/content/en/manage-claude/enterprise-frontier-safeguards/setup-google-cloud-agent-platform.md
index 5b3d3adb0f..1ca00095ad 100644
--- a/content/en/manage-claude/enterprise-frontier-safeguards/setup-google-cloud-agent-platform.md
+++ b/content/en/manage-claude/enterprise-frontier-safeguards/setup-google-cloud-agent-platform.md
@@ -4,10 +4,10 @@ url: https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeg
description: Get access to Enterprise Frontier Safeguards on Google Cloud's Agent Platform.
---
-With [Enterprise Frontier Safeguards](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/overview) (EFS), Cloud Storage buckets in your Google Cloud project hold encrypted copies of the prompts and responses that EFS covers. EFS is in beta.
+With [Enterprise Frontier Safeguards](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/overview) (EFS), Cloud Storage buckets in your Google Cloud project hold encrypted copies of the prompts and responses that EFS covers. EFS is in beta. For supported models and enrollment steps, see [Google’s EFS documentation](https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/partner-models/claude/enterprise-frontier-safeguards).
Access Transparency doesn’t cover your Agent Platform requests.
To set up EFS, contact your Anthropic account team for access and for the setup guide. Tell them first if data retention or data sharing is on for any Claude model in your projects. EFS covers only the endpoints and models that the setup guide lists, and it doesn’t cover batch prediction.
-Ask your account team about storage, keys, Transcripts, and Safety Cases too, because the other EFS pages describe the Claude Console.
+Ask your account team about storage, keys, Transcripts, and Safety Cases too, because the other EFS pages describe the Claude Console. If you don’t have an account team, complete the [Enterprise Frontier Safeguards request form](https://claude.com/form/enterprise-frontier-safeguards).
diff --git a/content/en/manage-claude/spend-limits-api.md b/content/en/manage-claude/spend-limits-api.md
index 58a6383075..09bbab771f 100644
--- a/content/en/manage-claude/spend-limits-api.md
+++ b/content/en/manage-claude/spend-limits-api.md
@@ -27,12 +27,12 @@ The API exposes eight endpoints across two resources:
| **Spend limits** | `GET /v1/organizations/spend_limits/effective` `GET /v1/organizations/spend_limits/{spend_limit_id}` `POST /v1/organizations/spend_limits` `DELETE /v1/organizations/spend_limits/{spend_limit_id}` | Read each member’s effective spend limit and period-to-date spend; set or clear a per-user override. |
| **Spend limit increase requests** | `GET /v1/organizations/spend_limit_increase_requests` `GET /v1/organizations/spend_limit_increase_requests/{id}` `POST /v1/organizations/spend_limit_increase_requests/{id}/approve` `POST /v1/organizations/spend_limit_increase_requests/{id}/deny` | List members’ requests for a higher spend limit, with the context needed to decide; approve or deny each request. |
-Use the **spend limits** endpoints to answer “what spend limit applies to each member, where does it come from, and how close are they to it?” and to set a per-user override. Use the **spend limit increase requests** endpoints to work the queue of member-submitted requests.
-
## Prerequisites
-* Your organization must be on a Claude Enterprise plan.
-* Usage credits must be turned on for your organization. Your primary owner can turn them on in claude.ai billing settings.
+Your organization must be on a Claude Enterprise plan. See [How am I billed for my Enterprise plan?](https://support.claude.com/en/articles/11526368) to find out whether your plan is usage-based or seat-based.
+
+* **Usage-based Enterprise plans:** You don’t need to set up [usage credits](https://support.claude.com/en/articles/12005970).
+* **Seat-based Enterprise plans:** Turn on usage credits in [claude.ai Organization settings](https://claude.ai/admin-settings/usage). The toggle is labeled **Turn on usage credits** or **Enable extra usage**. For the steps, see [Manage usage credits for Team and seat-based Enterprise plans](https://support.claude.com/en/articles/12005970). If you can’t turn on the toggle, ask your primary owner, an organization owner, or your Anthropic account team for help.
The SDK exposes these endpoints under `client.beta.organization.spend_limits` (typescript: `client.beta.organization.spendLimits`; csharp, go: `client.Beta.Organization.SpendLimits`; java: `client.beta().organization().spendLimits()`; php: `$client->beta->organization->spendLimits`), and the `ant` CLI under `ant beta:organization:spend-limits`. Both send the `anthropic-version` header for you. The examples read the Admin API key from the `ANTHROPIC_API_KEY` environment variable. The SDK and the CLI fetch more pages for you as you go through the results, so `limit` sets the page size, not the total (see [Pagination](https://platform.claude.com/docs/en/manage-claude/spend-limits-api#pagination)).
@@ -182,7 +182,7 @@ The `source` field on each member’s row tells you which level their spend limi
### Period
-`period` is the recurring window over which the spend limit is enforced and spend resets. A spend limit is identified by its `(scope, period)` pair. Currently `monthly` is the only supported period; monthly spend resets at 00:00 UTC on the first of each calendar month. Treat `period` as an open set.
+`period` is the recurring window over which the spend limit is enforced and spend resets. A spend limit is identified by its `(scope, period)` pair. The only supported period is `monthly`; monthly spend resets at 00:00 UTC on the first of each calendar month. Treat `period` as an open set.
### Amounts and currency
diff --git a/content/en/managed-agents/agent-setup.md b/content/en/managed-agents/agent-setup.md
index 9554fdcc55..acc6f28a3d 100644
--- a/content/en/managed-agents/agent-setup.md
+++ b/content/en/managed-agents/agent-setup.md
@@ -46,7 +46,7 @@ Create the agent once as a reusable resource and reference it by ID each time yo
| Field | Description |
| ----- | ----- |
| `name` (csharp, go: `Name`) | Required. A human-readable name for the agent. |
-| `model` (csharp, go: `Model`) | Required. The Claude [model](https://platform.claude.com/docs/en/models/overview) that powers the agent. Accepts a model ID string or an object, for example `{"id": "claude-opus-5-5"}`. Claude 4.5 and later models are supported. The object form also accepts `speed` (csharp, go: `Speed`), `effort` (csharp, go: `Effort`), and `inference_geo` (java, php: `inferenceGeo`; csharp, go: `InferenceGeo`) fields; see the tips under [Create an agent](https://platform.claude.com/docs/en/managed-agents/agent-setup#create-an-agent), [Effort levels](https://platform.claude.com/docs/en/build-with-claude/effort#effort-levels), and [Pin the inference geo](https://platform.claude.com/docs/en/managed-agents/agent-setup#pin-the-inference-geo). |
+| `model` (csharp, go: `Model`) | Required. The Claude model that powers the agent (see [Models overview](https://platform.claude.com/docs/en/models/overview)). Accepts a model ID string (for example, `"claude-opus-5-5"`) or an object (for example, `{"id": "claude-opus-5-5", "speed": "standard", "effort": "high", "inference_geo": "global"}`). |
| `system` (csharp, go: `System`; ruby: `system_`) | A [system prompt](https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices#give-claude-a-role) that defines the agent’s behavior and persona. The system prompt is distinct from [user messages](https://platform.claude.com/docs/en/managed-agents/reference#event-types), which should describe the work to be done. |
| `tools` (csharp, go: `Tools`) | The tools available to the agent. Combines [pre-built agent tools](https://platform.claude.com/docs/en/managed-agents/tools), [MCP tools](https://platform.claude.com/docs/en/managed-agents/mcp-connector), and [custom tools](https://platform.claude.com/docs/en/managed-agents/tools#custom-tools). |
| `mcp_servers` (java, php: `mcpServers`; csharp: `McpServers`; go: `MCPServers`) | [MCP servers](https://platform.claude.com/docs/en/managed-agents/mcp-connector) that provide standardized third-party capabilities. |
@@ -366,6 +366,8 @@ The API checks an `inference_geo` (java, php: `inferenceGeo`; csharp, go: `Infer
Updating an agent generates a new version when the configuration changes. The `version` (csharp, go: `Version`) field is optional. Supply the version that you last read, and the update applies only if the agent is still at that version. Otherwise, the request returns a 409 error. Omit `version` (csharp, go: `Version`) to apply the update whatever the agent’s current version. In that case, if two updates set the same field or `metadata` (csharp, go: `Metadata`) key, the last write wins. The API rejects updates to archived agents.
+To move an agent off a retiring model, see [When a model is retired](https://platform.claude.com/docs/en/managed-agents/migration#when-a-model-is-retired).
+
```bash cURL
curl -fsSL "https://api.anthropic.com/v1/agents/$AGENT_ID" \
diff --git a/content/en/managed-agents/migration.md b/content/en/managed-agents/migration.md
index 6e8b6fc1fd..5fde98e35a 100644
--- a/content/en/managed-agents/migration.md
+++ b/content/en/managed-agents/migration.md
@@ -1375,3 +1375,16 @@ Most model-level behavior changes documented in the [Migration guides](https://p
* **Tool argument JSON escaping** needs no action: the runtime parses the arguments before you receive `agent.custom_tool_use` events. You see structured data, not raw strings.
The behavior descriptions in those guides (what the model does differently) still apply. The migration steps (how to change your request code) do not.
+
+### When a model is retired
+
+Claude Managed Agents doesn’t move your agents to a newer model. Make the following changes before the retirement date on [Model deprecations](https://platform.claude.com/docs/en/about-claude/model-deprecations).
+
+| What uses the model | After the model is retired | What to do |
+| ----- | ----- | ----- |
+| An agent, as its model or its [advisor model](https://platform.claude.com/docs/en/managed-agents/multiagent-orchestration#give-the-session-an-advisor) | Creating a session with that agent version returns a 400 error. | Update the agent, and [resend the model settings](https://platform.claude.com/docs/en/managed-agents/agent-setup#update-semantics) that you want to keep. If you pin a version when you create sessions, pin the new one. |
+| An agent that another agent lists | Creating a session with the agent that lists it returns a 400 error. | Update the listed agent. Then, update the agent that lists it so that [its list references the new version](https://platform.claude.com/docs/en/managed-agents/multiagent-orchestration#list-the-subagents). |
+| An existing session, as its agent’s model | Each new turn fails with a `session.error` event of type `model_request_failed_error`. | Create a new session with the updated agent. An existing session [can’t change its model](https://platform.claude.com/docs/en/managed-agents/session-operations#updating-the-agent-configuration). |
+| A scheduled deployment | The next scheduled run fails, and the deployment stops starting sessions. | [Move the deployment](https://platform.claude.com/docs/en/managed-agents/scheduled-deployments#failure-behavior) to the new agent version. |
+
+A request that sets a retired model on an agent or in a [session override](https://platform.claude.com/docs/en/managed-agents/sessions#override-agent-configuration-for-a-session) also returns a 400 error. An override with a supported model replaces the agent’s retired model for that session.
diff --git a/content/en/managed-agents/scheduled-deployments.md b/content/en/managed-agents/scheduled-deployments.md
index 088665c0e2..4be4114e45 100644
--- a/content/en/managed-agents/scheduled-deployments.md
+++ b/content/en/managed-agents/scheduled-deployments.md
@@ -765,11 +765,15 @@ Session creation rate-limit responses are recorded immediately as a `session_rat
If a deployment’s agent is archived, the same operation archives the deployment. If the agent is deleted, the next scheduled trigger detects the missing agent and archives the deployment. Neither records a deployment run. If the agent references an archived subagent, the next trigger records a failed run with `error.type: "agent_archived_error"` and pauses the deployment. Other unrecoverable session-creation errors, such as an archived environment or vault, behave the same way: the trigger records a failed run and pauses the deployment. The deployment’s `paused_reason.error.type` mirrors the failed run’s `error.type`.
-If a deployment is paused because the agent has an archived subagent:
+If the deployment’s agent version, its advisor, or an agent that it lists uses a [retired model](https://platform.claude.com/docs/en/about-claude/model-deprecations), the next scheduled trigger fails. It records a run with `error.type: "unknown_error"` and pauses the deployment.
-1. Remove or replace the archived subagent when you [update the agent](https://platform.claude.com/docs/en/api/beta/agents/update).
+To move a deployment off an archived subagent or a retiring or retired model, follow these steps:
+
+1. For an archived subagent, [update the agent](https://platform.claude.com/docs/en/api/beta/agents/update) to remove or replace it. For a model, make the agent changes in [When a model is retired](https://platform.claude.com/docs/en/managed-agents/migration#when-a-model-is-retired).
2. Move the deployment to the agent’s latest version: [update the deployment](https://platform.claude.com/docs/en/api/beta/deployments/update) and pass the same agent ID again in `agent` (csharp, go: `Agent`). A deployment runs one version of its agent and keeps it even when the agent changes.
-3. Unpause the deployment, as [Managing deployment lifecycle](https://platform.claude.com/docs/en/managed-agents/scheduled-deployments#managing-deployment-lifecycle) describes.
+3. If the deployment is paused, unpause it, as [Managing deployment lifecycle](https://platform.claude.com/docs/en/managed-agents/scheduled-deployments#managing-deployment-lifecycle) describes.
+
+If you use Claude Platform on AWS and the model is retired, complete steps 1 and 2. Until you do, the deployment stays active and each scheduled trigger records a `session_creation_rejected_error` run.
## Trigger a manual run
diff --git a/content/en/models/fable-5-2/migration-guide.md b/content/en/models/fable-5-2/migration-guide.md
index cec3eb7f1a..9e702559ce 100644
--- a/content/en/models/fable-5-2/migration-guide.md
+++ b/content/en/models/fable-5-2/migration-guide.md
@@ -5,7 +5,7 @@ description: Switch to Claude Fable 5.2 and Claude Mythos 5.2 from Claude Fable
---
- This guide covers migrating [Messages API](https://platform.claude.com/docs/en/build-with-claude/working-with-messages) code. If you use [Claude Managed Agents](https://platform.claude.com/docs/en/managed-agents/overview), no changes beyond updating the model name are required.
+ This guide covers migrating [Messages API](https://platform.claude.com/docs/en/build-with-claude/working-with-messages) code. If you use [Claude Managed Agents](https://platform.claude.com/docs/en/managed-agents/overview), you usually change only your agent’s `model` field. The [Migrating between model versions](https://platform.claude.com/docs/en/managed-agents/migration#migrating-between-model-versions) section of the Managed Agents Migration page has the details.
Let Claude Code migrate your code for you
@@ -32,7 +32,7 @@ The baseline settings shared by `claude-fable-5-2` and `claude-mythos-5-2`:
* **Account-bound thinking:** Thinking blocks from Claude Fable 5.2 and Claude Mythos 5.2 work only in the account that produced them, or in an account linked to it. When another account sends one of these blocks, the API drops the block before the model receives it, and the request succeeds. On the Claude API and Claude Models on Google Cloud (Google managed), with the `thinking-binding-controls-2026-08-01` beta header, the response lists each dropped block in `input_transformations` with `reason: "organization_binding_mismatch"`. See [Accounts and cloud platforms](https://platform.claude.com/docs/en/build-with-claude/preserved-thinking#account-bound-thinking).
* **Context window and output:** A [1M token context window](https://platform.claude.com/docs/en/build-with-claude/context-windows) by default, and up to 128k output tokens for each request.
* **Pricing:** $8 USD per million input tokens and $40 USD per million output tokens, compared with $10 USD and $50 USD on Claude Fable 5.1 and Claude Mythos 5.1. Prompt cache reads are $0.20 USD per million tokens, compared with $0.25 USD on those models. See [Pricing](https://platform.claude.com/docs/en/about-claude/pricing).
-* **Data retention:** Both models require 30-day data retention, aren’t available under zero data retention (ZDR) arrangements unless expressly authorized by Anthropic, and are designated Covered Models, the same as Claude Fable 5.1 and Claude Mythos 5.1. On the Claude API, a request from an organization or workspace without 30-day retention returns a 400 `invalid_request_error`. Organizations with a ZDR arrangement should contact their Anthropic account team, or configure retention for individual workspaces. See [Model-specific data retention requirements](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#model-specific-data-retention-requirements) for per-platform details.
+* **Data retention:** Both models require 30-day data retention, aren’t available under legacy zero data retention (Legacy ZDR) arrangements unless expressly authorized by Anthropic, and are designated Covered Models, the same as Claude Fable 5.1 and Claude Mythos 5.1. On the Claude API, a request from an organization or workspace without 30-day retention returns a 400 `invalid_request_error`. Organizations with a Legacy ZDR arrangement should contact their Anthropic account team, or configure retention for individual workspaces. See [Model-specific data retention requirements](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#model-specific-data-retention-requirements) for per-platform details.
* **Priority Tier:** Neither model is supported on [Priority Tier](https://platform.claude.com/docs/en/api/service-tiers#supported-models).
* **Fast mode:** Both models support [fast mode](https://platform.claude.com/docs/en/build-with-claude/fast-mode) in Messages API requests. For each model’s platforms, see [Availability of fast mode](https://platform.claude.com/docs/en/build-with-claude/fast-mode#feature-availability).
@@ -155,7 +155,7 @@ model = "claude-fable-5-2" # After
### What changes
-1. **Data retention is required:** Claude Fable 5.2 requires 30-day data retention and isn’t available under a zero data retention (ZDR) arrangement unless expressly authorized by Anthropic. If your organization or workspace runs Claude Opus 5.5 under ZDR, enable 30-day retention for a workspace or contact your Anthropic account team before you switch. Otherwise, on the Claude API, every request to Claude Fable 5.2 returns a 400 `invalid_request_error`. See [Model-specific data retention requirements](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#model-specific-data-retention-requirements).
+1. **Data retention is required:** Claude Fable 5.2 requires 30-day data retention and isn’t available under a legacy zero data retention (Legacy ZDR) arrangement unless expressly authorized by Anthropic. If your organization or workspace runs Claude Opus 5.5 under Legacy ZDR, enable 30-day retention for a workspace or contact your Anthropic account team before you switch. Otherwise, on the Claude API, every request to Claude Fable 5.2 returns a 400 `invalid_request_error`. See [Model-specific data retention requirements](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#model-specific-data-retention-requirements).
2. **Failed prefix checks return a 400 error:** On Claude Fable 5.2, each request gets a [prefix check](https://platform.claude.com/docs/en/build-with-claude/preserved-thinking/prefix-checks#prefix-check). A prefix check fails if you change `system`, `tools`, or earlier messages mid-conversation and then send thinking blocks back. If a prefix check fails, the request receives a 400 error. To test your code before you switch, see [how to find requests that fail](https://platform.claude.com/docs/en/models/fable-5-2/migration-guide#fable-5-2-preserved-thinking).
@@ -185,7 +185,7 @@ model = "claude-fable-5-2" # After
### Migration checklist
-* If your organization has a ZDR arrangement, enable 30-day retention for the workspace, or confirm eligibility with your Anthropic account team, before anything else.
+* If your organization has a Legacy ZDR arrangement, enable 30-day retention for the workspace, or confirm eligibility with your Anthropic account team, before anything else.
* Update the model ID from `claude-opus-5-5` to `claude-fable-5-2`.
* Check your [rate limits](https://platform.claude.com/docs/en/api/rate-limits#rate-limits) before you move production traffic. Claude Fable 5.2’s rate limit is separate from Claude Opus 5.5’s, with lower token limits at each tier.
* If your code builds the `messages` array itself, run the test in [Failed prefix checks return a 400 error](https://platform.claude.com/docs/en/models/fable-5-2/migration-guide#fable-5-2-preserved-thinking).
@@ -321,7 +321,7 @@ model = "claude-fable-5-2" # After
8. **Pricing:** Claude Fable 5.2 costs $8 USD per million input tokens and $40 USD per million output tokens, compared with $5 USD and $25 USD for Claude Opus 5. Prompt cache reads are $0.20 USD per million tokens, compared with $0.50 USD. See [Pricing](https://platform.claude.com/docs/en/about-claude/pricing).
-9. **Data retention is required:** Claude Fable 5.2 requires 30-day data retention and isn’t available under a zero data retention (ZDR) arrangement unless expressly authorized by Anthropic. Claude Opus 5 is available under ZDR. On the Claude API, a request from an organization or workspace without 30-day retention returns a 400 `invalid_request_error`. See [Model-specific data retention requirements](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#model-specific-data-retention-requirements).
+9. **Data retention is required:** Claude Fable 5.2 requires 30-day data retention and isn’t available under a legacy zero data retention (Legacy ZDR) arrangement unless expressly authorized by Anthropic. Claude Opus 5 is available under Legacy ZDR. On the Claude API, a request from an organization or workspace without 30-day retention returns a 400 `invalid_request_error`. See [Model-specific data retention requirements](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#model-specific-data-retention-requirements).
10. **Fast mode:** Claude Opus 5 supports [fast mode](https://platform.claude.com/docs/en/build-with-claude/fast-mode) (`speed: "fast"`) in research preview, with the `fast-mode-2026-02-01` beta header. Claude Fable 5.2 supports it in Messages API requests on the Claude API without the header. Requests that send the header keep working. Fast mode for Claude Fable 5.2 costs $16 USD per million input tokens and $80 USD per million output tokens, compared with $10 USD and $50 USD for Claude Opus 5 in fast mode. See [Fast mode pricing](https://platform.claude.com/docs/en/about-claude/pricing#fast-mode-pricing).
@@ -341,7 +341,7 @@ model = "claude-fable-5-2" # After
### Migration checklist
-* If your organization has a ZDR arrangement, enable 30-day retention for the workspace, or confirm eligibility with your Anthropic account team, before anything else.
+* If your organization has a Legacy ZDR arrangement, enable 30-day retention for the workspace, or confirm eligibility with your Anthropic account team, before anything else.
* Update the model ID from `claude-opus-5` to `claude-fable-5-2`.
* Check your [rate limits](https://platform.claude.com/docs/en/api/rate-limits#rate-limits) before you move production traffic. Claude Fable 5.2’s rate limit is separate from Claude Opus 5’s, with lower token limits at each tier.
* Remove any `thinking: {type: "disabled"}` configuration. Control token spend with lower effort levels, revisit `max_tokens`, and select content blocks by `type`.
@@ -365,7 +365,7 @@ First work through [Migrating to Claude Fable 5.2 from Claude Opus 5](https://pl
* Accepts `thinking: {type: "disabled"}`, forced tool choice, the `computer_20251124` tool, and fast mode, which is [deprecated on Claude Opus 4.8](https://platform.claude.com/docs/en/build-with-claude/fast-mode).
* Returns the text between tool calls as `text` blocks.
-* Is available under zero data retention (ZDR) arrangements.
+* Is available under legacy zero data retention (Legacy ZDR) arrangements.
* Costs $5 USD per million input tokens and $25 USD per million output tokens, with prompt cache reads at $0.50 USD.
This section adds the differences that the Claude Opus 5 section doesn’t cover.
diff --git a/content/en/models/fable-5-2/overview.md b/content/en/models/fable-5-2/overview.md
index 3825797f51..7be1defe33 100644
--- a/content/en/models/fable-5-2/overview.md
+++ b/content/en/models/fable-5-2/overview.md
@@ -92,7 +92,7 @@ Claude Fable 5.2 is built for demanding reasoning and long-horizon agentic work.
* Adaptive thinking is always on and can’t be turned off. Control thinking depth with the [effort parameter](https://platform.claude.com/docs/en/build-with-claude/effort).
* Forced tool use (`tool_choice` types `any` and `tool`) returns a 400 error. See [Thinking and tool choice](https://platform.claude.com/docs/en/models/fable-5-2/whats-new-fable-5-2#thinking-and-tool-choice).
* Omit `temperature`, `top_p`, and `top_k`. See [Sampling parameters](https://platform.claude.com/docs/en/build-with-claude/thinking#sampling-parameters) for the values that return a 400 error.
-* Claude Fable 5.2 requires 30-day data retention and isn’t available under zero data retention unless expressly authorized by Anthropic. See [Model-specific data retention requirements](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#model-specific-data-retention-requirements).
+* Claude Fable 5.2 requires 30-day data retention and isn’t available under legacy zero data retention (Legacy ZDR) unless expressly authorized by Anthropic. See [Model-specific data retention requirements](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#model-specific-data-retention-requirements).
* Query limits and capabilities programmatically with the [Models API](https://platform.claude.com/docs/en/api/models/list).
## Resources
diff --git a/content/en/models/fable-5-2/whats-new-fable-5-2.md b/content/en/models/fable-5-2/whats-new-fable-5-2.md
index 87d9d78b33..8991676848 100644
--- a/content/en/models/fable-5-2/whats-new-fable-5-2.md
+++ b/content/en/models/fable-5-2/whats-new-fable-5-2.md
@@ -147,7 +147,7 @@ Claude Mythos 5.2 is available only to organizations verified through Anthropic
To request access, apply to the program that covers your use case, or contact your account team.
-Claude Fable 5.2 and Claude Mythos 5.2 require 30-day data retention and aren’t available under zero data retention unless expressly authorized by Anthropic. Both are [Covered Models](https://support.claude.com/en/articles/15425695). See [Model-specific data retention requirements](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#model-specific-data-retention-requirements).
+Claude Fable 5.2 and Claude Mythos 5.2 require 30-day data retention and aren’t available under legacy zero data retention (Legacy ZDR) unless expressly authorized by Anthropic. Both are [Covered Models](https://support.claude.com/en/articles/15425695). See [Model-specific data retention requirements](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#model-specific-data-retention-requirements).
## Migrate from Claude Fable 5.1
diff --git a/content/en/models/haiku-5-5/migration-guide.md b/content/en/models/haiku-5-5/migration-guide.md
index 687b486024..58b908a054 100644
--- a/content/en/models/haiku-5-5/migration-guide.md
+++ b/content/en/models/haiku-5-5/migration-guide.md
@@ -5,7 +5,7 @@ description: Switch to Claude Haiku 5.5 from earlier Haiku models with this migr
---
- This guide covers migrating [Messages API](https://platform.claude.com/docs/en/build-with-claude/working-with-messages) code. If you use [Claude Managed Agents](https://platform.claude.com/docs/en/managed-agents/overview), no changes beyond updating the model name are required.
+ This guide covers migrating [Messages API](https://platform.claude.com/docs/en/build-with-claude/working-with-messages) code. If you use [Claude Managed Agents](https://platform.claude.com/docs/en/managed-agents/overview), you usually change only your agent’s `model` field. The [Migrating between model versions](https://platform.claude.com/docs/en/managed-agents/migration#migrating-between-model-versions) section of the Managed Agents Migration page has the details.
Let Claude Code migrate your code for you
diff --git a/content/en/models/opus-5-5/migration-guide.md b/content/en/models/opus-5-5/migration-guide.md
index 885fc5dc15..db7491b0f6 100644
--- a/content/en/models/opus-5-5/migration-guide.md
+++ b/content/en/models/opus-5-5/migration-guide.md
@@ -5,7 +5,7 @@ description: Switch to Claude Opus 5.5 from earlier Opus models or Claude Sonnet
---
- This guide covers migrating [Messages API](https://platform.claude.com/docs/en/build-with-claude/working-with-messages) code. If you use [Claude Managed Agents](https://platform.claude.com/docs/en/managed-agents/overview), no changes beyond updating the model name are required.
+ This guide covers migrating [Messages API](https://platform.claude.com/docs/en/build-with-claude/working-with-messages) code. If you use [Claude Managed Agents](https://platform.claude.com/docs/en/managed-agents/overview), you usually change only your agent’s `model` field. The [Migrating between model versions](https://platform.claude.com/docs/en/managed-agents/migration#migrating-between-model-versions) section of the Managed Agents Migration page has the details.
Let Claude Code migrate your code for you
diff --git a/content/en/models/sonnet-5-5/migration-guide.md b/content/en/models/sonnet-5-5/migration-guide.md
index 8e72dd45b7..dcef66782d 100644
--- a/content/en/models/sonnet-5-5/migration-guide.md
+++ b/content/en/models/sonnet-5-5/migration-guide.md
@@ -7,7 +7,7 @@ description: Switch to Claude Sonnet 5.5 from earlier Sonnet models or Claude Ha
This guide lists the code changes for moving to Claude Sonnet 5.5 from Claude Sonnet 5, Claude Sonnet 4.6, Claude Sonnet 4.5, Claude Sonnet 4, Claude 3.7 Sonnet, or Claude Haiku 4.5. Read the first two sections, then read down to the section for your current model. The [migration checklist](https://platform.claude.com/docs/en/models/sonnet-5-5/migration-guide#migration-checklist) lists every change by starting model.
- This guide covers migrating [Messages API](https://platform.claude.com/docs/en/build-with-claude/working-with-messages) code. If you use [Claude Managed Agents](https://platform.claude.com/docs/en/managed-agents/overview), no changes beyond updating the model name are required.
+ This guide covers migrating [Messages API](https://platform.claude.com/docs/en/build-with-claude/working-with-messages) code. If you use [Claude Managed Agents](https://platform.claude.com/docs/en/managed-agents/overview), you usually change only your agent’s `model` field. The [Migrating between model versions](https://platform.claude.com/docs/en/managed-agents/migration#migrating-between-model-versions) section of the Managed Agents Migration page has the details.
Let Claude Code migrate your code for you
diff --git a/content/en/release-notes/overview.md b/content/en/release-notes/overview.md
index 74121cf395..818fc71f7e 100644
--- a/content/en/release-notes/overview.md
+++ b/content/en/release-notes/overview.md
@@ -14,10 +14,45 @@ The Claude Platform release notes list changes to the Claude API, the client SDK
### November 23, 2026
+* A fix is live for an undercount of web searches in the [List User Activity](https://platform.claude.com/docs/en/api/beta/organization/analytics/users/list) endpoint of the [Claude Enterprise Analytics API](https://platform.claude.com/docs/en/manage-claude/analytics-api). The top-level `web_search_count` did not count every search tool that Claude uses in chats, so it left out some searches. It now includes them, so it can be higher. Most of the added searches come from [Chat and Cowork unified](https://platform.claude.com/docs/en/manage-claude/analytics-api#how-metrics-are-defined).
+* The web search fix applies to data for November 17, 2026 (UTC), and later, so counts that you already pulled for those days can change. It does not recount earlier days.
+* A fix is live for an undercount in the [Get Connector Usage](https://platform.claude.com/docs/en/api/beta/organization/analytics/connectors/list) endpoint of the [Claude Enterprise Analytics API](https://platform.claude.com/docs/en/manage-claude/analytics-api). In chats that the [session counting change](https://platform.claude.com/docs/en/release-notes/overview#analytics-api-chat-session-counting) reached, `individual_auth_distinct_user_count` and `managed_auth_distinct_user_count` left out users who used a connector. For most organizations, these counts now include most of those users. They can be higher, and can show a number where they used to be `null`.
+* The connector fix applies to data for November 19, 2026 (UTC), and later, so counts that you already pulled for those days can change. It does not recount earlier days.
+* On November 24, 2026, a fix for an undercount of project activity in the [Claude Enterprise Analytics API](https://platform.claude.com/docs/en/manage-claude/analytics-api) will go live. The [Get Chat Project Usage](https://platform.claude.com/docs/en/api/beta/organization/analytics/apps/chat/projects/list) endpoint leaves out some messages in project chats. One example is messages sent after a chat moves into a Cowork cloud session. After the fix, it will count most of those messages. `message_count`, `distinct_conversation_count`, and `distinct_user_count` can then be higher, and more projects can appear in the results.
+* The [List User Activity](https://platform.claude.com/docs/en/api/beta/organization/analytics/users/list) endpoint will change in the same way when you filter by `project_id`. `message_count` and `distinct_conversation_count` can be higher, `last_activity_date` can be later, and more users can appear. Without the filter, some of these messages count in `chat_cowork_unified_metrics.sessions.message_count`. So the chat `message_count` for a user can be higher with the filter than without it.
+* The project fix will apply to data for November 20, 2026 (UTC), and later, so counts that you already pulled for those days can change. It does not recount earlier days.
* We announced the deprecation of the Claude Opus 4.5 model (`claude-opus-4-5-20251101` and `claude-opus-4-5`), with retirement on the Claude API scheduled for January 22, 2027. We recommend migrating to Claude Opus 5.5. See [Migrating from Claude Opus 4.5 or earlier](https://platform.claude.com/docs/en/models/opus-5-5/migration-guide#migrating-from-claude-opus-45). To check which dates apply on other platforms, see [Model deprecations](https://platform.claude.com/docs/en/about-claude/model-deprecations).
* We’ve launched [Enterprise Frontier Safeguards](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/overview) (EFS) in beta on Claude Platform, Claude Platform on AWS, and Claude Models on Google Cloud (Anthropic managed). EFS is Zero Data Retention (ZDR) for eligible organizations that use [Claude’s most capable models](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#model-specific-data-retention-requirements). Anthropic doesn’t retain your prompts and responses. Encrypted copies of them, called Sealed Safety Data, go to a bucket in your own cloud account. A workspace on Anthropic-managed storage isn’t on EFS, because Anthropic stores that workspace’s Sealed Safety Data. To get access, see [Setup guide](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/setup-console).
* We’ve added two event types to [organization webhooks](https://platform.claude.com/docs/en/manage-claude/organization-webhooks#customer-owned-storage-events), which are in beta. We send `external_storage.failed` when a bucket that you use as [customer-owned storage](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/customer-owned-storage) fails our daily check, and `external_storage.recovered` when it passes again.
+### November 20, 2026
+
+* The [Claude Enterprise Analytics API](https://platform.claude.com/docs/en/manage-claude/analytics-api) has a new rule for when a chat in [Chat and Cowork unified](https://platform.claude.com/docs/en/manage-claude/analytics-api#how-metrics-are-defined) counts as a session.
+
+ * **New rule:** A session starts the first time on a UTC day that Claude successfully runs a Bash command, creates a file, or edits a file in the chat. It ends when that day ends.
+ * **Previous rule:** A chat counted as a session after it moved into a Cowork cloud session (a sandbox where Claude runs code), including on later days. Uploading some types of files could cause that move.
+ * **Rollout:** The change reaches chats gradually, and existing chats can change later than new ones. Until then, a chat follows the previous rule. Activity from before then is not recounted. The API does not show which rule a chat follows.
+
+* In [List User Activity](https://platform.claude.com/docs/en/api/beta/organization/analytics/users/list), these counts can change. `chat` and `sessions` are the objects in `chat_cowork_unified_metrics`.
+
+ * **Sessions:** `sessions.distinct_session_count` can be higher, or lower for some users.
+ * **Messages:** They count in `chat` before the session starts and in `sessions` after. `message_count` can be higher or lower in each.
+ * **Chats:** `chat.distinct_conversation_count` can be higher. A chat counts there on each day that it gets a message, even one that counts in `sessions`.
+ * **Tool actions and file edits:** They count in `sessions` during the session. `action_count` and `file_edit_count` can be higher or lower.
+ * **Connectors:** In most chats, `connectors_used_count` and `distinct_connectors_used_count` split the same way as messages. Added up across both objects, each can be higher or lower.
+ * **Skills and plugins:** Their use counts in `sessions`, even on a day with no session.
+ * **Artifacts:** Counts can move between `chat` and `sessions`.
+
+* For chats that the change reached, the API does not get the names of some skills and plugins that Anthropic did not make, such as your own.
+
+ * **List User Activity:** `distinct_skills_used_count` can leave out these skills. Added up across both objects, it can be lower.
+ * **[Get Skill Usage](https://platform.claude.com/docs/en/api/beta/organization/analytics/skills/list):** Spend for these skills can leave out these chats. `estimated_overage_spend` can be lower, and `attributed_list_price` can be lower or `null`.
+ * **[Get Plugin Usage](https://platform.claude.com/docs/en/api/beta/organization/analytics/plugins/list):** These plugins can appear under the `plugin_name` value `third-party`.
+
+* In [Get Connector Usage](https://platform.claude.com/docs/en/api/beta/organization/analytics/connectors/list), `individual_auth_distinct_user_count` and `managed_auth_distinct_user_count` can leave out some users of chats that the change reached, so they can be lower.
+
+* Other counts from the connector, skill, and plugin usage endpoints can be higher or lower.
+
### November 17, 2026
* We’ve launched [Linked billing](https://platform.claude.com/docs/en/manage-claude/oauth-apps/linked-billing) in beta with the `user-profiles-billing-2026-10-01` beta header. Your customers can now pay for the Claude usage in your app through their own Claude organization. Once a customer links their organization, set `billing_policy` on each `/v1/messages` or `/v1/chat/completions` request to choose who pays. In the Claude Console, customers can set a spend cap for your app or unlink your app. Linked billing works for customers whose organization pays Anthropic directly for API usage.
@@ -50,6 +85,10 @@ The Claude Platform release notes list changes to the Claude API, the client SDK
* You can now set up an IP allowlist for your organization in the Claude Console, in beta. Requests to covered services from addresses not on your list are refused, which limits where a leaked API key can be used. Add IPv4 and IPv6 addresses or CIDR ranges, up to 1,000 per organization. See [IP allowlisting](https://platform.claude.com/docs/en/manage-claude/ip-allowlist) for what’s covered and how to set it up.
* You can now sign a member of your Claude Enterprise (claude.ai) organization out of Claude everywhere with the Admin API. This capability is in beta. See the [Admin API reference](https://platform.claude.com/docs/en/api/beta/organization). The member stays in the organization and can sign in again. See [Sign a member out everywhere](https://platform.claude.com/docs/en/manage-claude/user-management#sign-a-member-out-everywhere) for the beta header and what the request doesn’t end.
+### November 4, 2026
+
+* We’ve added [error codes](https://platform.claude.com/docs/en/api/errors#error-codes) to the SDK so you can handle one cause of an error without parsing the response body. Each API error now carries the API’s error code, message, and details, and each error code has its own exception class (in Go, a constant). To use error codes, update to the [latest version of the SDK](https://platform.claude.com/docs/en/cli-sdks-libraries/overview#latest-versions). See [Handle errors](https://platform.claude.com/docs/en/api/handle-errors).
+
### November 3, 2026
* Text generated by Claude Mythos 5, Claude Opus 4.7, and Claude Sonnet 4.6 carries Anthropic’s text watermark on the platforms listed in [How Claude marks AI-generated content](https://support.claude.com/en/articles/16266773-how-claude-marks-ai-generated-content). On Claude Sonnet 4.6, text generated for a request that sets `temperature`, `top_p`, or `top_k` to a non-default value might not carry it. See [Text watermark](https://platform.claude.com/docs/en/build-with-claude/text-watermark).