claudecode-omc 5.6.5 → 5.6.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.local/commands/code-review.md +416 -0
- package/.local/commands/pr.md +250 -0
- package/.local/commands/prp-pr.md +244 -0
- package/.local/guidelines/CLAUDE.md +47 -0
- package/.local/skills/h5-to-swiftui/SKILL.md +201 -0
- package/.local/skills/h5-to-swiftui/assets/calibration/README.md +176 -0
- package/.local/skills/h5-to-swiftui/assets/calibration/h5-twin/index.html +52 -0
- package/.local/skills/h5-to-swiftui/assets/calibration/h5-twin/style.css +133 -0
- package/.local/skills/h5-to-swiftui/assets/calibration/swiftui-twin/Package.swift +26 -0
- package/.local/skills/h5-to-swiftui/assets/calibration/swiftui-twin/Sources/CalibrationScreen/CalibrationScreen.swift +142 -0
- package/.local/skills/h5-to-swiftui/assets/calibration/swiftui-twin-divergent/Package.swift +32 -0
- package/.local/skills/h5-to-swiftui/assets/calibration/swiftui-twin-divergent/Sources/CalibrationScreenDivergent/CalibrationScreenDivergent.swift +122 -0
- package/.local/skills/h5-to-swiftui/assets/calibration/tokens.json +42 -0
- package/.local/skills/h5-to-swiftui/assets/sample-h5-react/index.html +14 -0
- package/.local/skills/h5-to-swiftui/assets/sample-h5-react/package.json +20 -0
- package/.local/skills/h5-to-swiftui/assets/sample-h5-react/public/api/articles/001.json +96 -0
- package/.local/skills/h5-to-swiftui/assets/sample-h5-react/public/api/articles/index.json +89 -0
- package/.local/skills/h5-to-swiftui/assets/sample-h5-react/src/App.jsx +22 -0
- package/.local/skills/h5-to-swiftui/assets/sample-h5-react/src/App.module.css +11 -0
- package/.local/skills/h5-to-swiftui/assets/sample-h5-react/src/components/ArticleCard.jsx +53 -0
- package/.local/skills/h5-to-swiftui/assets/sample-h5-react/src/components/ArticleCard.module.css +139 -0
- package/.local/skills/h5-to-swiftui/assets/sample-h5-react/src/components/NavBar.jsx +37 -0
- package/.local/skills/h5-to-swiftui/assets/sample-h5-react/src/components/NavBar.module.css +72 -0
- package/.local/skills/h5-to-swiftui/assets/sample-h5-react/src/components/TagCloud.jsx +30 -0
- package/.local/skills/h5-to-swiftui/assets/sample-h5-react/src/components/TagCloud.module.css +50 -0
- package/.local/skills/h5-to-swiftui/assets/sample-h5-react/src/components/TrendChart.jsx +159 -0
- package/.local/skills/h5-to-swiftui/assets/sample-h5-react/src/components/TrendChart.module.css +21 -0
- package/.local/skills/h5-to-swiftui/assets/sample-h5-react/src/main.jsx +12 -0
- package/.local/skills/h5-to-swiftui/assets/sample-h5-react/src/screens/ArticleScreen.jsx +182 -0
- package/.local/skills/h5-to-swiftui/assets/sample-h5-react/src/screens/ArticleScreen.module.css +294 -0
- package/.local/skills/h5-to-swiftui/assets/sample-h5-react/src/screens/FeedScreen.jsx +147 -0
- package/.local/skills/h5-to-swiftui/assets/sample-h5-react/src/screens/FeedScreen.module.css +161 -0
- package/.local/skills/h5-to-swiftui/assets/sample-h5-react/src/styles/global.css +50 -0
- package/.local/skills/h5-to-swiftui/assets/sample-h5-react/src/styles/tokens.css +103 -0
- package/.local/skills/h5-to-swiftui/assets/sample-h5-react/vite.config.js +6 -0
- package/.local/skills/h5-to-swiftui/assets/sample-h5-vanilla/data/tasks.js +67 -0
- package/.local/skills/h5-to-swiftui/assets/sample-h5-vanilla/index.html +26 -0
- package/.local/skills/h5-to-swiftui/assets/sample-h5-vanilla/router.js +73 -0
- package/.local/skills/h5-to-swiftui/assets/sample-h5-vanilla/screens/detail.js +164 -0
- package/.local/skills/h5-to-swiftui/assets/sample-h5-vanilla/screens/home.js +53 -0
- package/.local/skills/h5-to-swiftui/assets/sample-h5-vanilla/screens/list.js +87 -0
- package/.local/skills/h5-to-swiftui/assets/sample-h5-vanilla/styles/app.css +342 -0
- package/.local/skills/h5-to-swiftui/assets/sample-h5-vanilla/styles/tokens.css +68 -0
- package/.local/skills/h5-to-swiftui/references/css-to-swiftui-map.md +205 -0
- package/.local/skills/h5-to-swiftui/references/design-token-extraction.md +209 -0
- package/.local/skills/h5-to-swiftui/references/high-risk-triage.md +209 -0
- package/.local/skills/h5-to-swiftui/references/render-equivalence-calibration.md +193 -0
- package/.local/skills/h5-to-swiftui/references/stack-detection.md +160 -0
- package/.local/skills/h5-to-swiftui/references/visual-diff-loop-protocol.md +365 -0
- package/.local/skills/h5-to-swiftui/scripts/_calib-consts.mjs +150 -0
- package/.local/skills/h5-to-swiftui/scripts/_imglib.mjs +547 -0
- package/.local/skills/h5-to-swiftui/scripts/_provenance.mjs +123 -0
- package/.local/skills/h5-to-swiftui/scripts/calibrate-render.mjs +625 -0
- package/.local/skills/h5-to-swiftui/scripts/capture-reference.mjs +386 -0
- package/.local/skills/h5-to-swiftui/scripts/detect-stack.mjs +305 -0
- package/.local/skills/h5-to-swiftui/scripts/evaluate-convergence.mjs +1093 -0
- package/.local/skills/h5-to-swiftui/scripts/extract-tokens.mjs +600 -0
- package/.local/skills/h5-to-swiftui/scripts/mark-overlay.mjs +379 -0
- package/.local/skills/h5-to-swiftui/scripts/pixel-diff.mjs +530 -0
- package/.local/skills/h5-to-swiftui/scripts/sim-screenshot.sh +544 -0
- package/bundled/manifest.json +4 -4
- package/bundled/upstream/anthropic-skills/skills/algorithmic-art/LICENSE.txt +1 -1
- package/bundled/upstream/anthropic-skills/skills/brand-guidelines/LICENSE.txt +1 -1
- package/bundled/upstream/anthropic-skills/skills/canvas-design/LICENSE.txt +1 -1
- package/bundled/upstream/anthropic-skills/skills/claude-api/LICENSE.txt +1 -1
- package/bundled/upstream/anthropic-skills/skills/claude-api/SKILL.md +120 -58
- package/bundled/upstream/anthropic-skills/skills/claude-api/curl/examples.md +9 -9
- package/bundled/upstream/anthropic-skills/skills/claude-api/curl/managed-agents.md +336 -0
- package/bundled/upstream/anthropic-skills/skills/claude-api/go/managed-agents/README.md +561 -0
- package/bundled/upstream/anthropic-skills/skills/claude-api/java/claude-api.md +2 -2
- package/bundled/upstream/anthropic-skills/skills/claude-api/java/managed-agents/README.md +442 -0
- package/bundled/upstream/anthropic-skills/skills/claude-api/php/claude-api.md +10 -10
- package/bundled/upstream/anthropic-skills/skills/claude-api/php/managed-agents/README.md +435 -0
- package/bundled/upstream/anthropic-skills/skills/claude-api/python/claude-api/README.md +16 -16
- package/bundled/upstream/anthropic-skills/skills/claude-api/python/claude-api/batches.md +3 -3
- package/bundled/upstream/anthropic-skills/skills/claude-api/python/claude-api/files-api.md +3 -3
- package/bundled/upstream/anthropic-skills/skills/claude-api/python/claude-api/streaming.md +7 -7
- package/bundled/upstream/anthropic-skills/skills/claude-api/python/claude-api/tool-use.md +19 -19
- package/bundled/upstream/anthropic-skills/skills/claude-api/python/managed-agents/README.md +332 -0
- package/bundled/upstream/anthropic-skills/skills/claude-api/ruby/claude-api.md +4 -4
- package/bundled/upstream/anthropic-skills/skills/claude-api/ruby/managed-agents/README.md +389 -0
- package/bundled/upstream/anthropic-skills/skills/claude-api/shared/agent-design.md +101 -0
- package/bundled/upstream/anthropic-skills/skills/claude-api/shared/error-codes.md +11 -4
- package/bundled/upstream/anthropic-skills/skills/claude-api/shared/live-sources.md +60 -48
- package/bundled/upstream/anthropic-skills/skills/claude-api/shared/managed-agents-api-reference.md +372 -0
- package/bundled/upstream/anthropic-skills/skills/claude-api/shared/managed-agents-client-patterns.md +209 -0
- package/bundled/upstream/anthropic-skills/skills/claude-api/shared/managed-agents-core.md +220 -0
- package/bundled/upstream/anthropic-skills/skills/claude-api/shared/managed-agents-environments.md +211 -0
- package/bundled/upstream/anthropic-skills/skills/claude-api/shared/managed-agents-events.md +195 -0
- package/bundled/upstream/anthropic-skills/skills/claude-api/shared/managed-agents-memory.md +197 -0
- package/bundled/upstream/anthropic-skills/skills/claude-api/shared/managed-agents-multiagent.md +99 -0
- package/bundled/upstream/anthropic-skills/skills/claude-api/shared/managed-agents-onboarding.md +114 -0
- package/bundled/upstream/anthropic-skills/skills/claude-api/shared/managed-agents-outcomes.md +106 -0
- package/bundled/upstream/anthropic-skills/skills/claude-api/shared/managed-agents-overview.md +67 -0
- package/bundled/upstream/anthropic-skills/skills/claude-api/shared/managed-agents-tools.md +315 -0
- package/bundled/upstream/anthropic-skills/skills/claude-api/shared/managed-agents-webhooks.md +110 -0
- package/bundled/upstream/anthropic-skills/skills/claude-api/shared/model-migration.md +779 -0
- package/bundled/upstream/anthropic-skills/skills/claude-api/shared/models.md +16 -14
- package/bundled/upstream/anthropic-skills/skills/claude-api/shared/prompt-caching.md +45 -2
- package/bundled/upstream/anthropic-skills/skills/claude-api/shared/tool-use-concepts.md +28 -6
- package/bundled/upstream/anthropic-skills/skills/claude-api/typescript/claude-api/README.md +15 -15
- package/bundled/upstream/anthropic-skills/skills/claude-api/typescript/claude-api/batches.md +2 -2
- package/bundled/upstream/anthropic-skills/skills/claude-api/typescript/claude-api/files-api.md +1 -1
- package/bundled/upstream/anthropic-skills/skills/claude-api/typescript/claude-api/streaming.md +5 -5
- package/bundled/upstream/anthropic-skills/skills/claude-api/typescript/claude-api/tool-use.md +15 -15
- package/bundled/upstream/anthropic-skills/skills/claude-api/typescript/managed-agents/README.md +359 -0
- package/bundled/upstream/anthropic-skills/skills/internal-comms/LICENSE.txt +1 -1
- package/bundled/upstream/anthropic-skills/skills/mcp-builder/LICENSE.txt +1 -1
- package/bundled/upstream/anthropic-skills/skills/skill-creator/LICENSE.txt +1 -1
- package/bundled/upstream/anthropic-skills/skills/slack-gif-creator/LICENSE.txt +1 -1
- package/bundled/upstream/anthropic-skills/skills/theme-factory/LICENSE.txt +1 -1
- package/bundled/upstream/anthropic-skills/skills/web-artifacts-builder/LICENSE.txt +1 -1
- package/bundled/upstream/anthropic-skills/skills/webapp-testing/LICENSE.txt +1 -1
- package/bundled/upstream/ecc/.omc-source/bundle.json +2 -3
- package/bundled/upstream/ecc/.omc-source/manifests/.claude-plugin/marketplace.json +4 -4
- package/bundled/upstream/ecc/agents/a11y-architect.md +10 -2
- package/bundled/upstream/ecc/agents/architect.md +9 -0
- package/bundled/upstream/ecc/agents/build-error-resolver.md +9 -0
- package/bundled/upstream/ecc/agents/chief-of-staff.md +9 -0
- package/bundled/upstream/ecc/agents/code-architect.md +9 -0
- package/bundled/upstream/ecc/agents/code-explorer.md +10 -1
- package/bundled/upstream/ecc/agents/code-reviewer.md +87 -1
- package/bundled/upstream/ecc/agents/code-simplifier.md +9 -0
- package/bundled/upstream/ecc/agents/comment-analyzer.md +10 -1
- package/bundled/upstream/ecc/agents/conversation-analyzer.md +9 -0
- package/bundled/upstream/ecc/agents/cpp-build-resolver.md +9 -0
- package/bundled/upstream/ecc/agents/cpp-reviewer.md +9 -0
- package/bundled/upstream/ecc/agents/csharp-reviewer.md +9 -0
- package/bundled/upstream/ecc/agents/dart-build-resolver.md +9 -0
- package/bundled/upstream/ecc/agents/database-reviewer.md +9 -0
- package/bundled/upstream/ecc/agents/django-build-resolver.md +252 -0
- package/bundled/upstream/ecc/agents/django-reviewer.md +169 -0
- package/bundled/upstream/ecc/agents/doc-updater.md +9 -0
- package/bundled/upstream/ecc/agents/docs-lookup.md +9 -0
- package/bundled/upstream/ecc/agents/e2e-runner.md +9 -0
- package/bundled/upstream/ecc/agents/fastapi-reviewer.md +79 -0
- package/bundled/upstream/ecc/agents/flutter-reviewer.md +9 -0
- package/bundled/upstream/ecc/agents/fsharp-reviewer.md +109 -0
- package/bundled/upstream/ecc/agents/gan-evaluator.md +9 -0
- package/bundled/upstream/ecc/agents/gan-generator.md +9 -0
- package/bundled/upstream/ecc/agents/gan-planner.md +9 -0
- package/bundled/upstream/ecc/agents/go-build-resolver.md +9 -0
- package/bundled/upstream/ecc/agents/go-reviewer.md +9 -0
- package/bundled/upstream/ecc/agents/harmonyos-app-resolver.md +182 -0
- package/bundled/upstream/ecc/agents/harness-optimizer.md +9 -0
- package/bundled/upstream/ecc/agents/healthcare-reviewer.md +9 -0
- package/bundled/upstream/ecc/agents/homelab-architect.md +107 -0
- package/bundled/upstream/ecc/agents/java-build-resolver.md +133 -11
- package/bundled/upstream/ecc/agents/java-reviewer.md +130 -32
- package/bundled/upstream/ecc/agents/kotlin-build-resolver.md +9 -0
- package/bundled/upstream/ecc/agents/kotlin-reviewer.md +9 -0
- package/bundled/upstream/ecc/agents/loop-operator.md +9 -0
- package/bundled/upstream/ecc/agents/mle-reviewer.md +162 -0
- package/bundled/upstream/ecc/agents/network-architect.md +106 -0
- package/bundled/upstream/ecc/agents/network-config-reviewer.md +106 -0
- package/bundled/upstream/ecc/agents/network-troubleshooter.md +128 -0
- package/bundled/upstream/ecc/agents/opensource-forker.md +9 -0
- package/bundled/upstream/ecc/agents/opensource-packager.md +9 -0
- package/bundled/upstream/ecc/agents/opensource-sanitizer.md +9 -0
- package/bundled/upstream/ecc/agents/performance-optimizer.md +9 -0
- package/bundled/upstream/ecc/agents/planner.md +9 -0
- package/bundled/upstream/ecc/agents/pr-test-analyzer.md +9 -0
- package/bundled/upstream/ecc/agents/python-reviewer.md +9 -0
- package/bundled/upstream/ecc/agents/pytorch-build-resolver.md +12 -3
- package/bundled/upstream/ecc/agents/refactor-cleaner.md +9 -0
- package/bundled/upstream/ecc/agents/rust-build-resolver.md +9 -0
- package/bundled/upstream/ecc/agents/rust-reviewer.md +9 -0
- package/bundled/upstream/ecc/agents/security-reviewer.md +9 -0
- package/bundled/upstream/ecc/agents/seo-specialist.md +10 -1
- package/bundled/upstream/ecc/agents/silent-failure-hunter.md +9 -0
- package/bundled/upstream/ecc/agents/swift-build-resolver.md +170 -0
- package/bundled/upstream/ecc/agents/swift-reviewer.md +116 -0
- package/bundled/upstream/ecc/agents/tdd-guide.md +9 -0
- package/bundled/upstream/ecc/agents/type-design-analyzer.md +10 -1
- package/bundled/upstream/ecc/agents/typescript-reviewer.md +9 -0
- package/bundled/upstream/ecc/commands/auto-update.md +28 -0
- package/bundled/upstream/ecc/commands/build-fix.md +4 -0
- package/bundled/upstream/ecc/commands/checkpoint.md +4 -0
- package/bundled/upstream/ecc/commands/code-review.md +3 -3
- package/bundled/upstream/ecc/commands/cost-report.md +107 -0
- package/bundled/upstream/ecc/commands/cpp-build.md +1 -1
- package/bundled/upstream/ecc/commands/cpp-test.md +1 -1
- package/bundled/upstream/ecc/commands/ecc-guide.md +93 -0
- package/bundled/upstream/ecc/commands/fastapi-review.md +39 -0
- package/bundled/upstream/ecc/commands/flutter-build.md +1 -1
- package/bundled/upstream/ecc/commands/flutter-test.md +1 -1
- package/bundled/upstream/ecc/commands/gan-build.md +4 -0
- package/bundled/upstream/ecc/commands/gan-design.md +4 -0
- package/bundled/upstream/ecc/commands/go-build.md +1 -1
- package/bundled/upstream/ecc/commands/go-test.md +1 -1
- package/bundled/upstream/ecc/commands/harness-audit.md +4 -0
- package/bundled/upstream/ecc/commands/jira.md +2 -2
- package/bundled/upstream/ecc/commands/kotlin-build.md +1 -1
- package/bundled/upstream/ecc/commands/kotlin-test.md +1 -1
- package/bundled/upstream/ecc/commands/learn.md +4 -0
- package/bundled/upstream/ecc/commands/loop-start.md +4 -0
- package/bundled/upstream/ecc/commands/loop-status.md +54 -1
- package/bundled/upstream/ecc/commands/model-route.md +4 -0
- package/bundled/upstream/ecc/commands/multi-backend.md +4 -0
- package/bundled/upstream/ecc/commands/multi-execute.md +4 -0
- package/bundled/upstream/ecc/commands/multi-frontend.md +4 -0
- package/bundled/upstream/ecc/commands/multi-plan.md +4 -0
- package/bundled/upstream/ecc/commands/multi-workflow.md +4 -0
- package/bundled/upstream/ecc/commands/plan-prd.md +160 -0
- package/bundled/upstream/ecc/commands/plan.md +96 -13
- package/bundled/upstream/ecc/commands/pm2.md +4 -0
- package/bundled/upstream/ecc/commands/pr.md +184 -0
- package/bundled/upstream/ecc/commands/project-init.md +86 -0
- package/bundled/upstream/ecc/commands/python-review.md +1 -1
- package/bundled/upstream/ecc/commands/quality-gate.md +4 -0
- package/bundled/upstream/ecc/commands/refactor-clean.md +4 -0
- package/bundled/upstream/ecc/commands/rust-build.md +1 -1
- package/bundled/upstream/ecc/commands/rust-test.md +1 -1
- package/bundled/upstream/ecc/commands/security-scan.md +92 -0
- package/bundled/upstream/ecc/commands/sessions.md +6 -6
- package/bundled/upstream/ecc/commands/skill-health.md +3 -3
- package/bundled/upstream/ecc/commands/test-coverage.md +4 -0
- package/bundled/upstream/ecc/commands/update-codemaps.md +4 -0
- package/bundled/upstream/ecc/commands/update-docs.md +4 -0
- package/bundled/upstream/ecc/skills/accessibility/SKILL.md +1 -1
- package/bundled/upstream/ecc/skills/agent-architecture-audit/SKILL.md +256 -0
- package/bundled/upstream/ecc/skills/agent-payment-x402/SKILL.md +49 -3
- package/bundled/upstream/ecc/skills/agentic-os/SKILL.md +387 -0
- package/bundled/upstream/ecc/skills/angular-developer/SKILL.md +154 -0
- package/bundled/upstream/ecc/skills/angular-developer/references/angular-animations.md +160 -0
- package/bundled/upstream/ecc/skills/angular-developer/references/angular-aria.md +410 -0
- package/bundled/upstream/ecc/skills/angular-developer/references/cli.md +86 -0
- package/bundled/upstream/ecc/skills/angular-developer/references/component-harnesses.md +59 -0
- package/bundled/upstream/ecc/skills/angular-developer/references/component-styling.md +91 -0
- package/bundled/upstream/ecc/skills/angular-developer/references/components.md +117 -0
- package/bundled/upstream/ecc/skills/angular-developer/references/creating-services.md +97 -0
- package/bundled/upstream/ecc/skills/angular-developer/references/data-resolvers.md +69 -0
- package/bundled/upstream/ecc/skills/angular-developer/references/define-routes.md +67 -0
- package/bundled/upstream/ecc/skills/angular-developer/references/defining-providers.md +72 -0
- package/bundled/upstream/ecc/skills/angular-developer/references/di-fundamentals.md +120 -0
- package/bundled/upstream/ecc/skills/angular-developer/references/e2e-testing.md +56 -0
- package/bundled/upstream/ecc/skills/angular-developer/references/effects.md +83 -0
- package/bundled/upstream/ecc/skills/angular-developer/references/hierarchical-injectors.md +43 -0
- package/bundled/upstream/ecc/skills/angular-developer/references/host-elements.md +80 -0
- package/bundled/upstream/ecc/skills/angular-developer/references/injection-context.md +63 -0
- package/bundled/upstream/ecc/skills/angular-developer/references/inputs.md +101 -0
- package/bundled/upstream/ecc/skills/angular-developer/references/linked-signal.md +59 -0
- package/bundled/upstream/ecc/skills/angular-developer/references/loading-strategies.md +61 -0
- package/bundled/upstream/ecc/skills/angular-developer/references/mcp.md +108 -0
- package/bundled/upstream/ecc/skills/angular-developer/references/navigate-to-routes.md +69 -0
- package/bundled/upstream/ecc/skills/angular-developer/references/outputs.md +86 -0
- package/bundled/upstream/ecc/skills/angular-developer/references/reactive-forms.md +122 -0
- package/bundled/upstream/ecc/skills/angular-developer/references/rendering-strategies.md +44 -0
- package/bundled/upstream/ecc/skills/angular-developer/references/resource.md +77 -0
- package/bundled/upstream/ecc/skills/angular-developer/references/route-animations.md +56 -0
- package/bundled/upstream/ecc/skills/angular-developer/references/route-guards.md +52 -0
- package/bundled/upstream/ecc/skills/angular-developer/references/router-lifecycle.md +45 -0
- package/bundled/upstream/ecc/skills/angular-developer/references/router-testing.md +87 -0
- package/bundled/upstream/ecc/skills/angular-developer/references/show-routes-with-outlets.md +68 -0
- package/bundled/upstream/ecc/skills/angular-developer/references/signal-forms.md +795 -0
- package/bundled/upstream/ecc/skills/angular-developer/references/signals-overview.md +94 -0
- package/bundled/upstream/ecc/skills/angular-developer/references/tailwind-css.md +69 -0
- package/bundled/upstream/ecc/skills/angular-developer/references/template-driven-forms.md +114 -0
- package/bundled/upstream/ecc/skills/angular-developer/references/testing-fundamentals.md +65 -0
- package/bundled/upstream/ecc/skills/autonomous-agent-harness/SKILL.md +6 -0
- package/bundled/upstream/ecc/skills/backend-patterns/SKILL.md +8 -45
- package/bundled/upstream/ecc/skills/cisco-ios-patterns/SKILL.md +163 -0
- package/bundled/upstream/ecc/skills/configure-ecc/SKILL.md +31 -14
- package/bundled/upstream/ecc/skills/continuous-learning/SKILL.md +10 -2
- package/bundled/upstream/ecc/skills/continuous-learning-v2/SKILL.md +19 -5
- package/bundled/upstream/ecc/skills/continuous-learning-v2/agents/observer-loop.sh +44 -4
- package/bundled/upstream/ecc/skills/continuous-learning-v2/agents/observer.md +4 -4
- package/bundled/upstream/ecc/skills/continuous-learning-v2/agents/start-observer.sh +5 -1
- package/bundled/upstream/ecc/skills/continuous-learning-v2/hooks/observe.sh +21 -5
- package/bundled/upstream/ecc/skills/continuous-learning-v2/scripts/detect-project.sh +58 -13
- package/bundled/upstream/ecc/skills/continuous-learning-v2/scripts/instinct-cli.py +97 -4
- package/bundled/upstream/ecc/skills/continuous-learning-v2/scripts/lib/homunculus-dir.sh +31 -0
- package/bundled/upstream/ecc/skills/continuous-learning-v2/scripts/migrate-homunculus.sh +62 -0
- package/bundled/upstream/ecc/skills/continuous-learning-v2/scripts/test_parse_instinct.py +34 -0
- package/bundled/upstream/ecc/skills/cost-tracking/SKILL.md +147 -0
- package/bundled/upstream/ecc/skills/deep-research/SKILL.md +4 -0
- package/bundled/upstream/ecc/skills/defi-amm-security/SKILL.md +6 -0
- package/bundled/upstream/ecc/skills/django-celery/SKILL.md +457 -0
- package/bundled/upstream/ecc/skills/ecc-guide/SKILL.md +189 -0
- package/bundled/upstream/ecc/skills/error-handling/SKILL.md +376 -0
- package/bundled/upstream/ecc/skills/exa-search/SKILL.md +4 -0
- package/bundled/upstream/ecc/skills/fal-ai-media/SKILL.md +4 -0
- package/bundled/upstream/ecc/skills/fastapi-patterns/SKILL.md +327 -0
- package/bundled/upstream/ecc/skills/flox-environments/SKILL.md +496 -0
- package/bundled/upstream/ecc/skills/frontend-design-direction/SKILL.md +92 -0
- package/bundled/upstream/ecc/skills/frontend-slides/animation-patterns.md +122 -0
- package/bundled/upstream/ecc/skills/frontend-slides/html-template.md +419 -0
- package/bundled/upstream/ecc/skills/frontend-slides/scripts/export-pdf.sh +418 -0
- package/bundled/upstream/ecc/skills/frontend-slides/scripts/extract-pptx.py +96 -0
- package/bundled/upstream/ecc/skills/frontend-slides/viewport-base.css +153 -0
- package/bundled/upstream/ecc/skills/fsharp-testing/SKILL.md +280 -0
- package/bundled/upstream/ecc/skills/gateguard/SKILL.md +4 -0
- package/bundled/upstream/ecc/skills/hermes-imports/SKILL.md +88 -0
- package/bundled/upstream/ecc/skills/homelab-network-readiness/SKILL.md +169 -0
- package/bundled/upstream/ecc/skills/homelab-network-setup/SKILL.md +129 -0
- package/bundled/upstream/ecc/skills/homelab-pihole-dns/SKILL.md +274 -0
- package/bundled/upstream/ecc/skills/homelab-vlan-segmentation/SKILL.md +311 -0
- package/bundled/upstream/ecc/skills/homelab-wireguard-vpn/SKILL.md +305 -0
- package/bundled/upstream/ecc/skills/ios-icon-gen/SKILL.md +157 -0
- package/bundled/upstream/ecc/skills/ios-icon-gen/scripts/generate_icons.swift +258 -0
- package/bundled/upstream/ecc/skills/ios-icon-gen/scripts/iconify_gen.sh +235 -0
- package/bundled/upstream/ecc/skills/java-coding-standards/SKILL.md +241 -5
- package/bundled/upstream/ecc/skills/make-interfaces-feel-better/SKILL.md +151 -0
- package/bundled/upstream/ecc/skills/mle-workflow/SKILL.md +346 -0
- package/bundled/upstream/ecc/skills/motion-advanced/SKILL.md +596 -0
- package/bundled/upstream/ecc/skills/motion-foundations/SKILL.md +299 -0
- package/bundled/upstream/ecc/skills/motion-patterns/SKILL.md +435 -0
- package/bundled/upstream/ecc/skills/motion-ui/SKILL.md +575 -0
- package/bundled/upstream/ecc/skills/mysql-patterns/SKILL.md +412 -0
- package/bundled/upstream/ecc/skills/netmiko-ssh-automation/SKILL.md +173 -0
- package/bundled/upstream/ecc/skills/network-bgp-diagnostics/SKILL.md +167 -0
- package/bundled/upstream/ecc/skills/network-config-validation/SKILL.md +210 -0
- package/bundled/upstream/ecc/skills/network-interface-health/SKILL.md +152 -0
- package/bundled/upstream/ecc/skills/openclaw-persona-forge/SKILL.md +1 -9
- package/bundled/upstream/ecc/skills/plan-orchestrate/SKILL.md +262 -0
- package/bundled/upstream/ecc/skills/prisma-patterns/SKILL.md +371 -0
- package/bundled/upstream/ecc/skills/production-audit/SKILL.md +206 -0
- package/bundled/upstream/ecc/skills/prompt-optimizer/SKILL.md +24 -400
- package/bundled/upstream/ecc/skills/quarkus-patterns/SKILL.md +722 -0
- package/bundled/upstream/ecc/skills/quarkus-security/SKILL.md +467 -0
- package/bundled/upstream/ecc/skills/quarkus-tdd/SKILL.md +811 -0
- package/bundled/upstream/ecc/skills/quarkus-verification/SKILL.md +479 -0
- package/bundled/upstream/ecc/skills/redis-patterns/SKILL.md +403 -0
- package/bundled/upstream/ecc/skills/scientific-db-pubmed-database/SKILL.md +175 -0
- package/bundled/upstream/ecc/skills/scientific-db-uspto-database/SKILL.md +177 -0
- package/bundled/upstream/ecc/skills/scientific-pkg-gget/SKILL.md +166 -0
- package/bundled/upstream/ecc/skills/scientific-thinking-literature-review/SKILL.md +192 -0
- package/bundled/upstream/ecc/skills/scientific-thinking-scholar-evaluation/SKILL.md +160 -0
- package/bundled/upstream/ecc/skills/search-first/SKILL.md +23 -2
- package/bundled/upstream/ecc/skills/security-review/SKILL.md +10 -2
- package/bundled/upstream/ecc/skills/skill-comply/scripts/runner.py +28 -3
- package/bundled/upstream/ecc/skills/skill-comply/tests/test_runner.py +172 -0
- package/bundled/upstream/ecc/skills/skill-scout/SKILL.md +140 -0
- package/bundled/upstream/ecc/skills/skill-stocktake/SKILL.md +1 -0
- package/bundled/upstream/ecc/skills/strategic-compact/SKILL.md +2 -2
- package/bundled/upstream/ecc/skills/tinystruct-patterns/SKILL.md +203 -0
- package/bundled/upstream/ecc/skills/tinystruct-patterns/references/architecture.md +90 -0
- package/bundled/upstream/ecc/skills/tinystruct-patterns/references/data-handling.md +60 -0
- package/bundled/upstream/ecc/skills/tinystruct-patterns/references/database.md +99 -0
- package/bundled/upstream/ecc/skills/tinystruct-patterns/references/routing.md +64 -0
- package/bundled/upstream/ecc/skills/tinystruct-patterns/references/system-usage.md +97 -0
- package/bundled/upstream/ecc/skills/tinystruct-patterns/references/testing.md +72 -0
- package/bundled/upstream/ecc/skills/ui-to-vue/SKILL.md +134 -0
- package/bundled/upstream/ecc/skills/vite-patterns/SKILL.md +449 -0
- package/bundled/upstream/ecc/skills/windows-desktop-e2e/SKILL.md +788 -0
- package/bundled/upstream/ecc/skills/x-api/SKILL.md +4 -0
- package/bundled/upstream/oh-my-claudecode/.omc-source/bundle.json +20 -0
- package/bundled/upstream/oh-my-claudecode/agents/analyst.md +2 -1
- package/bundled/upstream/oh-my-claudecode/agents/architect.md +2 -1
- package/bundled/upstream/oh-my-claudecode/agents/code-reviewer.md +26 -7
- package/bundled/upstream/oh-my-claudecode/agents/critic.md +2 -1
- package/bundled/upstream/oh-my-claudecode/agents/debugger.md +2 -1
- package/bundled/upstream/oh-my-claudecode/agents/designer.md +14 -1
- package/bundled/upstream/oh-my-claudecode/agents/document-specialist.md +1 -1
- package/bundled/upstream/oh-my-claudecode/agents/executor.md +2 -1
- package/bundled/upstream/oh-my-claudecode/agents/explore.md +2 -1
- package/bundled/upstream/oh-my-claudecode/agents/git-master.md +2 -1
- package/bundled/upstream/oh-my-claudecode/agents/planner.md +2 -1
- package/bundled/upstream/oh-my-claudecode/agents/qa-tester.md +2 -1
- package/bundled/upstream/oh-my-claudecode/agents/scientist.md +2 -1
- package/bundled/upstream/oh-my-claudecode/agents/security-reviewer.md +2 -1
- package/bundled/upstream/oh-my-claudecode/agents/test-engineer.md +2 -1
- package/bundled/upstream/oh-my-claudecode/agents/tracer.md +2 -1
- package/bundled/upstream/oh-my-claudecode/agents/verifier.md +2 -1
- package/bundled/upstream/oh-my-claudecode/agents/writer.md +2 -1
- package/bundled/upstream/oh-my-claudecode/skills/AGENTS.md +4 -3
- package/bundled/upstream/oh-my-claudecode/skills/ai-slop-cleaner/SKILL.md +12 -0
- package/bundled/upstream/oh-my-claudecode/skills/deep-dive/SKILL.md +69 -13
- package/bundled/upstream/oh-my-claudecode/skills/deep-interview/SKILL.md +176 -63
- package/bundled/upstream/oh-my-claudecode/skills/learner/SKILL.md +3 -1
- package/bundled/upstream/oh-my-claudecode/skills/omc-doctor/SKILL.md +22 -3
- package/bundled/upstream/oh-my-claudecode/skills/omc-reference/SKILL.md +1 -1
- package/bundled/upstream/oh-my-claudecode/skills/omc-setup/phases/01-install-claude-md.md +2 -2
- package/bundled/upstream/oh-my-claudecode/skills/omc-setup/phases/02-configure.md +45 -2
- package/bundled/upstream/oh-my-claudecode/skills/omc-setup/phases/03-integrations.md +46 -5
- package/bundled/upstream/oh-my-claudecode/skills/plan/SKILL.md +19 -17
- package/bundled/upstream/oh-my-claudecode/skills/project-session-manager/lib/config.sh +1 -1
- package/bundled/upstream/oh-my-claudecode/skills/project-session-manager/lib/parse.sh +1 -1
- package/bundled/upstream/oh-my-claudecode/skills/project-session-manager/lib/providers/azure-devops.sh +1 -1
- package/bundled/upstream/oh-my-claudecode/skills/project-session-manager/lib/providers/bitbucket.sh +1 -1
- package/bundled/upstream/oh-my-claudecode/skills/project-session-manager/lib/providers/gitea.sh +1 -1
- package/bundled/upstream/oh-my-claudecode/skills/project-session-manager/lib/providers/github.sh +1 -1
- package/bundled/upstream/oh-my-claudecode/skills/project-session-manager/lib/providers/gitlab.sh +1 -1
- package/bundled/upstream/oh-my-claudecode/skills/project-session-manager/lib/providers/interface.sh +1 -1
- package/bundled/upstream/oh-my-claudecode/skills/project-session-manager/lib/providers/jira.sh +1 -1
- package/bundled/upstream/oh-my-claudecode/skills/project-session-manager/lib/session.sh +1 -1
- package/bundled/upstream/oh-my-claudecode/skills/project-session-manager/lib/tmux.sh +1 -1
- package/bundled/upstream/oh-my-claudecode/skills/project-session-manager/lib/worktree.sh +1 -1
- package/bundled/upstream/oh-my-claudecode/skills/project-session-manager/psm.sh +1 -1
- package/bundled/upstream/oh-my-claudecode/skills/project-session-manager/tests/test-psm-prompt-injection.sh +1 -1
- package/bundled/upstream/oh-my-claudecode/skills/ralph/SKILL.md +8 -8
- package/bundled/upstream/oh-my-claudecode/skills/ralplan/SKILL.md +9 -5
- package/bundled/upstream/oh-my-claudecode/skills/skill/SKILL.md +6 -6
- package/bundled/upstream/oh-my-claudecode/skills/skillify/SKILL.md +19 -3
- package/bundled/upstream/oh-my-claudecode/skills/trace/SKILL.md +3 -1
- package/bundled/upstream/oh-my-claudecode/skills/ultrawork/SKILL.md +20 -7
- package/bundled/upstream/superpowers/.omc-source/bundle.json +21 -0
- package/bundled/upstream/superpowers/hooks/hooks-cursor.json +1 -1
- package/bundled/upstream/superpowers/skills/executing-plans/SKILL.md +1 -1
- package/bundled/upstream/superpowers/skills/finishing-a-development-branch/SKILL.md +93 -42
- package/bundled/upstream/superpowers/skills/requesting-code-review/SKILL.md +7 -9
- package/bundled/upstream/superpowers/skills/requesting-code-review/code-reviewer.md +107 -85
- package/bundled/upstream/superpowers/skills/subagent-driven-development/SKILL.md +3 -1
- package/bundled/upstream/superpowers/skills/subagent-driven-development/code-quality-reviewer-prompt.md +2 -3
- package/bundled/upstream/superpowers/skills/systematic-debugging/CREATION-LOG.md +1 -1
- package/bundled/upstream/superpowers/skills/systematic-debugging/root-cause-tracing.md +1 -1
- package/bundled/upstream/superpowers/skills/using-git-worktrees/SKILL.md +95 -98
- package/bundled/upstream/superpowers/skills/using-superpowers/references/codex-tools.md +7 -48
- package/bundled/upstream/superpowers/skills/using-superpowers/references/copilot-tools.md +1 -11
- package/bundled/upstream/superpowers/skills/using-superpowers/references/gemini-tools.md +21 -3
- package/bundled/upstream/superpowers/skills/writing-plans/SKILL.md +1 -1
- package/package.json +1 -1
- package/bundled/upstream/anthropic-skills/skills/claude-api/python/agent-sdk/README.md +0 -355
- package/bundled/upstream/anthropic-skills/skills/claude-api/python/agent-sdk/patterns.md +0 -359
- package/bundled/upstream/anthropic-skills/skills/claude-api/typescript/agent-sdk/README.md +0 -297
- package/bundled/upstream/anthropic-skills/skills/claude-api/typescript/agent-sdk/patterns.md +0 -209
- package/bundled/upstream/ecc/commands/agent-sort.md +0 -23
- package/bundled/upstream/ecc/commands/claw.md +0 -23
- package/bundled/upstream/ecc/commands/context-budget.md +0 -23
- package/bundled/upstream/ecc/commands/devfleet.md +0 -23
- package/bundled/upstream/ecc/commands/docs.md +0 -23
- package/bundled/upstream/ecc/commands/e2e.md +0 -268
- package/bundled/upstream/ecc/commands/eval.md +0 -23
- package/bundled/upstream/ecc/commands/orchestrate.md +0 -135
- package/bundled/upstream/ecc/commands/prompt-optimize.md +0 -23
- package/bundled/upstream/ecc/commands/rules-distill.md +0 -20
- package/bundled/upstream/ecc/commands/tdd.md +0 -231
- package/bundled/upstream/ecc/commands/verify.md +0 -23
- package/bundled/upstream/ecc/skills/claude-api/SKILL.md +0 -337
- package/bundled/upstream/ecc/skills/frontend-design/SKILL.md +0 -145
- package/bundled/upstream/superpowers/agents/code-reviewer.md +0 -48
- package/bundled/upstream/superpowers/commands/brainstorm.md +0 -5
- package/bundled/upstream/superpowers/commands/execute-plan.md +0 -5
- package/bundled/upstream/superpowers/commands/write-plan.md +0 -5
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
For **live** capability data — context window, max output tokens, feature support (thinking, vision, effort, structured outputs, etc.) — query the Models API instead of relying on the cached tables below. Use this when the user asks "what's the context window for X", "does model X support vision/thinking/effort", "which models support feature Y", or wants to select a model by capability at runtime.
|
|
8
8
|
|
|
9
9
|
```python
|
|
10
|
-
m = client.models.retrieve("claude-opus-4-
|
|
11
|
-
m.id # "claude-opus-4-
|
|
12
|
-
m.display_name # "Claude Opus 4.
|
|
10
|
+
m = client.models.retrieve("claude-opus-4-7")
|
|
11
|
+
m.id # "claude-opus-4-7"
|
|
12
|
+
m.display_name # "Claude Opus 4.7"
|
|
13
13
|
m.max_input_tokens # context window (int)
|
|
14
14
|
m.max_tokens # max output tokens (int)
|
|
15
15
|
|
|
@@ -32,21 +32,21 @@ Top-level fields (`id`, `display_name`, `max_input_tokens`, `max_tokens`) are ty
|
|
|
32
32
|
### Raw HTTP
|
|
33
33
|
|
|
34
34
|
```bash
|
|
35
|
-
curl https://api.anthropic.com/v1/models/claude-opus-4-
|
|
35
|
+
curl https://api.anthropic.com/v1/models/claude-opus-4-7 \
|
|
36
36
|
-H "x-api-key: $ANTHROPIC_API_KEY" \
|
|
37
37
|
-H "anthropic-version: 2023-06-01"
|
|
38
38
|
```
|
|
39
39
|
|
|
40
40
|
```json
|
|
41
41
|
{
|
|
42
|
-
"id": "claude-opus-4-
|
|
43
|
-
"display_name": "Claude Opus 4.
|
|
44
|
-
"max_input_tokens":
|
|
42
|
+
"id": "claude-opus-4-7",
|
|
43
|
+
"display_name": "Claude Opus 4.7",
|
|
44
|
+
"max_input_tokens": 200000,
|
|
45
45
|
"max_tokens": 128000,
|
|
46
46
|
"capabilities": {
|
|
47
47
|
"image_input": {"supported": true},
|
|
48
48
|
"structured_outputs": {"supported": true},
|
|
49
|
-
"thinking": {"supported": true, "types": {"enabled": {"supported":
|
|
49
|
+
"thinking": {"supported": true, "types": {"enabled": {"supported": false}, "adaptive": {"supported": true}}},
|
|
50
50
|
"effort": {"supported": true, "low": {"supported": true}, …, "max": {"supported": true}},
|
|
51
51
|
…
|
|
52
52
|
}
|
|
@@ -57,14 +57,15 @@ curl https://api.anthropic.com/v1/models/claude-opus-4-6 \
|
|
|
57
57
|
|
|
58
58
|
| Friendly Name | Alias (use this) | Full ID | Context | Max Output | Status |
|
|
59
59
|
|-------------------|---------------------|-------------------------------|----------------|------------|--------|
|
|
60
|
-
| Claude Opus 4.
|
|
61
|
-
| Claude
|
|
60
|
+
| Claude Opus 4.7 | `claude-opus-4-7` | — | 1M | 128K | Active |
|
|
61
|
+
| Claude Opus 4.6 | `claude-opus-4-6` | — | 1M | 128K | Active |
|
|
62
|
+
| Claude Sonnet 4.6 | `claude-sonnet-4-6` | - | 1M | 64K | Active |
|
|
62
63
|
| Claude Haiku 4.5 | `claude-haiku-4-5` | `claude-haiku-4-5-20251001` | 200K | 64K | Active |
|
|
63
64
|
|
|
64
65
|
### Model Descriptions
|
|
65
|
-
|
|
66
|
-
- **Claude Opus 4.6** —
|
|
67
|
-
- **Claude Sonnet 4.6** — Our best combination of speed and intelligence. Supports adaptive thinking (recommended). 1M context window
|
|
66
|
+
- **Claude Opus 4.7** — The most capable Claude model to date — highly autonomous, strong on long-horizon agentic work, knowledge work, vision, and memory. Adaptive thinking only; sampling parameters and `budget_tokens` are removed. 1M context window at standard API pricing (no long-context premium) — see `shared/model-migration.md` → Migrating to Opus 4.7 for breaking changes.
|
|
67
|
+
- **Claude Opus 4.6** — Previous-generation Opus. Supports adaptive thinking (recommended), 128K max output tokens (requires streaming for large outputs). 1M context window.
|
|
68
|
+
- **Claude Sonnet 4.6** — Our best combination of speed and intelligence. Supports adaptive thinking (recommended). 1M context window. 64K max output tokens.
|
|
68
69
|
- **Claude Haiku 4.5** — Fastest and most cost-effective model for simple tasks.
|
|
69
70
|
|
|
70
71
|
## Legacy Models (still active)
|
|
@@ -102,7 +103,8 @@ When a user asks for a model by name, use this table to find the correct model I
|
|
|
102
103
|
|
|
103
104
|
| User says... | Use this model ID |
|
|
104
105
|
|-------------------------------------------|--------------------------------|
|
|
105
|
-
| "opus", "most powerful" | `claude-opus-4-
|
|
106
|
+
| "opus", "most powerful" | `claude-opus-4-7` |
|
|
107
|
+
| "opus 4.7" | `claude-opus-4-7` |
|
|
106
108
|
| "opus 4.6" | `claude-opus-4-6` |
|
|
107
109
|
| "opus 4.5" | `claude-opus-4-5` |
|
|
108
110
|
| "opus 4.1" | `claude-opus-4-1` |
|
|
@@ -107,9 +107,17 @@ Fix by moving the dynamic piece after the last breakpoint, making it determinist
|
|
|
107
107
|
- Max **4** `cache_control` breakpoints per request.
|
|
108
108
|
- Goes on any content block: system text blocks, tool definitions, message content blocks (`text`, `image`, `tool_use`, `tool_result`, `document`).
|
|
109
109
|
- Top-level `cache_control` on `messages.create()` auto-places on the last cacheable block — simplest option when you don't need fine-grained placement.
|
|
110
|
-
- Minimum cacheable prefix is model-dependent
|
|
110
|
+
- Minimum cacheable prefix is model-dependent. Shorter prefixes silently won't cache even with a marker — no error, just `cache_creation_input_tokens: 0`:
|
|
111
111
|
|
|
112
|
-
|
|
112
|
+
| Model | Minimum |
|
|
113
|
+
|---|---:|
|
|
114
|
+
| Opus 4.7, Opus 4.6, Opus 4.5, Haiku 4.5 | 4096 tokens |
|
|
115
|
+
| Sonnet 4.6, Haiku 3.5, Haiku 3 | 2048 tokens |
|
|
116
|
+
| Sonnet 4.5, Sonnet 4.1, Sonnet 4, Sonnet 3.7 | 1024 tokens |
|
|
117
|
+
|
|
118
|
+
A 3K-token prompt caches on Sonnet 4.5 but silently won't on Opus 4.7.
|
|
119
|
+
|
|
120
|
+
**Economics:** Cache reads cost ~0.1× base input price. Cache writes cost **1.25× for 5-minute TTL, 2× for 1-hour TTL**. Break-even depends on TTL: with 5-minute TTL, two requests break even (1.25× + 0.1× = 1.35× vs 2× uncached); with 1-hour TTL, you need at least three requests (2× + 0.2× = 2.2× vs 3× uncached). The 1-hour TTL keeps entries alive across gaps in bursty traffic, but the doubled write cost means it needs more reads to pay off.
|
|
113
121
|
|
|
114
122
|
---
|
|
115
123
|
|
|
@@ -125,4 +133,39 @@ The response `usage` object reports cache activity:
|
|
|
125
133
|
|
|
126
134
|
If `cache_read_input_tokens` is zero across repeated requests with identical prefixes, a silent invalidator is at work — diff the rendered prompt bytes between two requests to find it.
|
|
127
135
|
|
|
136
|
+
**`input_tokens` is the uncached remainder only.** Total prompt size = `input_tokens + cache_creation_input_tokens + cache_read_input_tokens`. If your agent ran for hours but `input_tokens` shows 4K, the rest was served from cache — check the sum, not the single field.
|
|
137
|
+
|
|
128
138
|
Language-specific access: `response.usage.cache_read_input_tokens` (Python/TS/Ruby), `$message->usage->cacheReadInputTokens` (PHP), `resp.Usage.CacheReadInputTokens` (Go/C#), `.usage().cacheReadInputTokens()` (Java).
|
|
139
|
+
|
|
140
|
+
---
|
|
141
|
+
|
|
142
|
+
## Invalidation hierarchy
|
|
143
|
+
|
|
144
|
+
Not every parameter change invalidates everything. The API has three cache tiers, and changes only invalidate their own tier and below:
|
|
145
|
+
|
|
146
|
+
| Change | Tools cache | System cache | Messages cache |
|
|
147
|
+
|---|:---:|:---:|:---:|
|
|
148
|
+
| Tool definitions (add/remove/reorder) | ❌ | ❌ | ❌ |
|
|
149
|
+
| Model switch | ❌ | ❌ | ❌ |
|
|
150
|
+
| `speed`, web-search, citations toggle | ✅ | ❌ | ❌ |
|
|
151
|
+
| System prompt content | ✅ | ❌ | ❌ |
|
|
152
|
+
| `tool_choice`, images, `thinking` enable/disable | ✅ | ✅ | ❌ |
|
|
153
|
+
| Message content | ✅ | ✅ | ❌ |
|
|
154
|
+
|
|
155
|
+
Implication: you can change `tool_choice` per-request or toggle `thinking` without losing the tools+system cache. Don't over-worry about these — only tool-definition and model changes force a full rebuild.
|
|
156
|
+
|
|
157
|
+
---
|
|
158
|
+
|
|
159
|
+
## 20-block lookback window
|
|
160
|
+
|
|
161
|
+
Each breakpoint walks backward **at most 20 content blocks** to find a prior cache entry. If a single turn adds more than 20 blocks (common in agentic loops with many tool_use/tool_result pairs), the next request's breakpoint won't find the previous cache and silently misses.
|
|
162
|
+
|
|
163
|
+
Fix: place an intermediate breakpoint every ~15 blocks in long turns, or put the marker on a block that's within 20 of the previous turn's last cached block.
|
|
164
|
+
|
|
165
|
+
---
|
|
166
|
+
|
|
167
|
+
## Concurrent-request timing
|
|
168
|
+
|
|
169
|
+
A cache entry becomes readable only after the first response **begins streaming**. N parallel requests with identical prefixes all pay full price — none can read what the others are still writing.
|
|
170
|
+
|
|
171
|
+
For fan-out patterns: send 1 request, await the first streamed token (not the full response), then fire the remaining N−1. They'll read the cache the first one just wrote.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Tool Use Concepts
|
|
2
2
|
|
|
3
|
-
This file covers the conceptual foundations of tool use with the Claude API. For language-specific code examples, see the `python/`, `typescript/`, or other language folders.
|
|
3
|
+
This file covers the conceptual foundations of tool use with the Claude API. For language-specific code examples, see the `python/`, `typescript/`, or other language folders. For decision heuristics on which tools to expose, how to manage context in long-running agents, and caching strategy, see `agent-design.md`.
|
|
4
4
|
|
|
5
5
|
## User-Defined Tools
|
|
6
6
|
|
|
@@ -74,7 +74,7 @@ if response.stop_reason == "pause_turn":
|
|
|
74
74
|
]
|
|
75
75
|
# Make another API request — server resumes automatically
|
|
76
76
|
response = client.messages.create(
|
|
77
|
-
model="claude-opus-4-
|
|
77
|
+
model="claude-opus-4-7", messages=messages, tools=tools
|
|
78
78
|
)
|
|
79
79
|
```
|
|
80
80
|
|
|
@@ -171,7 +171,7 @@ Web search and web fetch let Claude search the web and retrieve page content. Th
|
|
|
171
171
|
]
|
|
172
172
|
```
|
|
173
173
|
|
|
174
|
-
### Dynamic Filtering (Opus 4.6 / Sonnet 4.6)
|
|
174
|
+
### Dynamic Filtering (Opus 4.7 / Opus 4.6 / Sonnet 4.6)
|
|
175
175
|
|
|
176
176
|
The `web_search_20260209` and `web_fetch_20260209` versions support **dynamic filtering** — Claude writes and executes code to filter search results before they reach the context window, improving accuracy and token efficiency. Dynamic filtering is built into these tool versions and activates automatically; you do not need to separately declare the `code_execution` tool or pass any beta header.
|
|
177
177
|
|
|
@@ -192,7 +192,9 @@ Without dynamic filtering, the previous `web_search_20250305` version is also av
|
|
|
192
192
|
|
|
193
193
|
## Server-Side Tools: Programmatic Tool Calling
|
|
194
194
|
|
|
195
|
-
|
|
195
|
+
With standard tool use, each tool call is a round trip: Claude calls, the result enters Claude's context, Claude reasons, then calls the next tool. Chained calls accumulate latency and tokens — most of that intermediate data is never needed again.
|
|
196
|
+
|
|
197
|
+
Programmatic tool calling lets Claude compose those calls into a script. The script runs in the code execution container; when it invokes a tool, the container pauses, the call executes, and the result returns to the running code (not to Claude's context). The script processes it with normal control flow. Only the final output returns to Claude. Use it when chaining many tool calls or when intermediate results are large and should be filtered before reaching the context window.
|
|
196
198
|
|
|
197
199
|
For full documentation, use WebFetch:
|
|
198
200
|
|
|
@@ -202,7 +204,7 @@ For full documentation, use WebFetch:
|
|
|
202
204
|
|
|
203
205
|
## Server-Side Tools: Tool Search
|
|
204
206
|
|
|
205
|
-
The tool search tool lets Claude dynamically discover tools from large libraries without loading all definitions into the context window.
|
|
207
|
+
The tool search tool lets Claude dynamically discover tools from large libraries without loading all definitions into the context window. Use it when you have many tools but only a few are relevant to any given request. Discovered tool schemas are appended to the request, not swapped in — this preserves the prompt cache (see `agent-design.md` §Caching for Agents).
|
|
206
208
|
|
|
207
209
|
For full documentation, use WebFetch:
|
|
208
210
|
|
|
@@ -210,6 +212,16 @@ For full documentation, use WebFetch:
|
|
|
210
212
|
|
|
211
213
|
---
|
|
212
214
|
|
|
215
|
+
## Skills
|
|
216
|
+
|
|
217
|
+
Skills package task-specific instructions that Claude loads only when relevant. Each skill is a folder containing a `SKILL.md` file. The skill's short description sits in context by default; Claude reads the full file when the current task calls for it. Use skills to keep specialized instructions out of the base system prompt without losing discoverability.
|
|
218
|
+
|
|
219
|
+
For full documentation, use WebFetch:
|
|
220
|
+
|
|
221
|
+
- URL: `https://platform.claude.com/docs/en/agents-and-tools/skills`
|
|
222
|
+
|
|
223
|
+
---
|
|
224
|
+
|
|
213
225
|
## Tool Use Examples
|
|
214
226
|
|
|
215
227
|
You can provide sample tool calls directly in your tool definitions to demonstrate usage patterns and reduce parameter errors. This helps Claude understand how to correctly format tool inputs, especially for tools with complex schemas.
|
|
@@ -230,6 +242,16 @@ For full documentation, use WebFetch:
|
|
|
230
242
|
|
|
231
243
|
---
|
|
232
244
|
|
|
245
|
+
## Context Editing
|
|
246
|
+
|
|
247
|
+
Context editing clears stale tool results and thinking blocks from the transcript as a long-running agent accumulates turns. Unlike compaction (which summarizes), context editing prunes — the cleared content is removed, not replaced. Use it when old tool outputs are no longer relevant and you want to keep the transcript lean without losing the conversation structure. Thresholds for what to clear are configurable.
|
|
248
|
+
|
|
249
|
+
For full documentation, use WebFetch:
|
|
250
|
+
|
|
251
|
+
- URL: `https://platform.claude.com/docs/en/build-with-claude/context-editing`
|
|
252
|
+
|
|
253
|
+
---
|
|
254
|
+
|
|
233
255
|
## Client-Side Tools: Memory
|
|
234
256
|
|
|
235
257
|
The memory tool enables Claude to store and retrieve information across conversations through a memory file directory. Claude can create, read, update, and delete files that persist between sessions.
|
|
@@ -258,7 +280,7 @@ Two features are available:
|
|
|
258
280
|
- **JSON outputs** (`output_config.format`): Control Claude's response format
|
|
259
281
|
- **Strict tool use** (`strict: true`): Guarantee valid tool parameter schemas
|
|
260
282
|
|
|
261
|
-
**Supported models:** Claude Opus 4.
|
|
283
|
+
**Supported models:** Claude Opus 4.7, Claude Sonnet 4.6, and Claude Haiku 4.5. Legacy models (Claude Opus 4.5, Claude Opus 4.1) also support structured outputs.
|
|
262
284
|
|
|
263
285
|
> **Recommended:** Use `client.messages.parse()` which automatically validates responses against your schema. When using `messages.create()` directly, use `output_config: {format: {...}}`. The `output_format` convenience parameter is also accepted by some SDK methods (e.g., `.parse()`), but `output_config.format` is the canonical API-level parameter.
|
|
264
286
|
|
|
@@ -24,7 +24,7 @@ const client = new Anthropic({ apiKey: "your-api-key" });
|
|
|
24
24
|
|
|
25
25
|
```typescript
|
|
26
26
|
const response = await client.messages.create({
|
|
27
|
-
model: "claude-opus-4-
|
|
27
|
+
model: "claude-opus-4-7",
|
|
28
28
|
max_tokens: 16000,
|
|
29
29
|
messages: [{ role: "user", content: "What is the capital of France?" }],
|
|
30
30
|
});
|
|
@@ -43,7 +43,7 @@ for (const block of response.content) {
|
|
|
43
43
|
|
|
44
44
|
```typescript
|
|
45
45
|
const response = await client.messages.create({
|
|
46
|
-
model: "claude-opus-4-
|
|
46
|
+
model: "claude-opus-4-7",
|
|
47
47
|
max_tokens: 16000,
|
|
48
48
|
system:
|
|
49
49
|
"You are a helpful coding assistant. Always provide examples in Python.",
|
|
@@ -59,7 +59,7 @@ const response = await client.messages.create({
|
|
|
59
59
|
|
|
60
60
|
```typescript
|
|
61
61
|
const response = await client.messages.create({
|
|
62
|
-
model: "claude-opus-4-
|
|
62
|
+
model: "claude-opus-4-7",
|
|
63
63
|
max_tokens: 16000,
|
|
64
64
|
messages: [
|
|
65
65
|
{
|
|
@@ -84,7 +84,7 @@ import fs from "fs";
|
|
|
84
84
|
const imageData = fs.readFileSync("image.png").toString("base64");
|
|
85
85
|
|
|
86
86
|
const response = await client.messages.create({
|
|
87
|
-
model: "claude-opus-4-
|
|
87
|
+
model: "claude-opus-4-7",
|
|
88
88
|
max_tokens: 16000,
|
|
89
89
|
messages: [
|
|
90
90
|
{
|
|
@@ -113,7 +113,7 @@ Use top-level `cache_control` to automatically cache the last cacheable block in
|
|
|
113
113
|
|
|
114
114
|
```typescript
|
|
115
115
|
const response = await client.messages.create({
|
|
116
|
-
model: "claude-opus-4-
|
|
116
|
+
model: "claude-opus-4-7",
|
|
117
117
|
max_tokens: 16000,
|
|
118
118
|
cache_control: { type: "ephemeral" }, // auto-caches the last cacheable block
|
|
119
119
|
system: "You are an expert on this large document...",
|
|
@@ -127,7 +127,7 @@ For fine-grained control, add `cache_control` to specific content blocks:
|
|
|
127
127
|
|
|
128
128
|
```typescript
|
|
129
129
|
const response = await client.messages.create({
|
|
130
|
-
model: "claude-opus-4-
|
|
130
|
+
model: "claude-opus-4-7",
|
|
131
131
|
max_tokens: 16000,
|
|
132
132
|
system: [
|
|
133
133
|
{
|
|
@@ -141,7 +141,7 @@ const response = await client.messages.create({
|
|
|
141
141
|
|
|
142
142
|
// With explicit TTL (time-to-live)
|
|
143
143
|
const response2 = await client.messages.create({
|
|
144
|
-
model: "claude-opus-4-
|
|
144
|
+
model: "claude-opus-4-7",
|
|
145
145
|
max_tokens: 16000,
|
|
146
146
|
system: [
|
|
147
147
|
{
|
|
@@ -168,13 +168,13 @@ If `cache_read_input_tokens` is zero across repeated identical-prefix requests,
|
|
|
168
168
|
|
|
169
169
|
## Extended Thinking
|
|
170
170
|
|
|
171
|
-
> **Opus 4.6 and Sonnet 4.6:** Use adaptive thinking. `budget_tokens` is deprecated on
|
|
171
|
+
> **Opus 4.7, Opus 4.6, and Sonnet 4.6:** Use adaptive thinking. `budget_tokens` is removed on Opus 4.7 (400 if sent); deprecated on Opus 4.6 and Sonnet 4.6.
|
|
172
172
|
> **Older models:** Use `thinking: {type: "enabled", budget_tokens: N}` (must be < `max_tokens`, min 1024).
|
|
173
173
|
|
|
174
174
|
```typescript
|
|
175
|
-
// Opus 4.6: adaptive thinking (recommended)
|
|
175
|
+
// Opus 4.7 / 4.6: adaptive thinking (recommended)
|
|
176
176
|
const response = await client.messages.create({
|
|
177
|
-
model: "claude-opus-4-
|
|
177
|
+
model: "claude-opus-4-7",
|
|
178
178
|
max_tokens: 16000,
|
|
179
179
|
thinking: { type: "adaptive" },
|
|
180
180
|
output_config: { effort: "high" }, // low | medium | high | max
|
|
@@ -232,7 +232,7 @@ const messages: Anthropic.MessageParam[] = [
|
|
|
232
232
|
];
|
|
233
233
|
|
|
234
234
|
const response = await client.messages.create({
|
|
235
|
-
model: "claude-opus-4-
|
|
235
|
+
model: "claude-opus-4-7",
|
|
236
236
|
max_tokens: 16000,
|
|
237
237
|
messages: messages,
|
|
238
238
|
});
|
|
@@ -248,7 +248,7 @@ const response = await client.messages.create({
|
|
|
248
248
|
|
|
249
249
|
### Compaction (long conversations)
|
|
250
250
|
|
|
251
|
-
> **Beta, Opus 4.6 and Sonnet 4.6.** When conversations approach the 200K context window, compaction automatically summarizes earlier context server-side. The API returns a `compaction` block; you must pass it back on subsequent requests — append `response.content`, not just the text.
|
|
251
|
+
> **Beta, Opus 4.7, Opus 4.6, and Sonnet 4.6.** When conversations approach the 200K context window, compaction automatically summarizes earlier context server-side. The API returns a `compaction` block; you must pass it back on subsequent requests — append `response.content`, not just the text.
|
|
252
252
|
|
|
253
253
|
```typescript
|
|
254
254
|
import Anthropic from "@anthropic-ai/sdk";
|
|
@@ -261,7 +261,7 @@ async function chat(userMessage: string): Promise<string> {
|
|
|
261
261
|
|
|
262
262
|
const response = await client.beta.messages.create({
|
|
263
263
|
betas: ["compact-2026-01-12"],
|
|
264
|
-
model: "claude-opus-4-
|
|
264
|
+
model: "claude-opus-4-7",
|
|
265
265
|
max_tokens: 16000,
|
|
266
266
|
messages,
|
|
267
267
|
context_management: {
|
|
@@ -308,7 +308,7 @@ The `stop_reason` field in the response indicates why the model stopped generati
|
|
|
308
308
|
```typescript
|
|
309
309
|
// Automatic caching (simplest — caches the last cacheable block)
|
|
310
310
|
const response = await client.messages.create({
|
|
311
|
-
model: "claude-opus-4-
|
|
311
|
+
model: "claude-opus-4-7",
|
|
312
312
|
max_tokens: 16000,
|
|
313
313
|
cache_control: { type: "ephemeral" },
|
|
314
314
|
system: largeDocumentText, // e.g., 50KB of context
|
|
@@ -323,7 +323,7 @@ const response = await client.messages.create({
|
|
|
323
323
|
|
|
324
324
|
```typescript
|
|
325
325
|
const countResponse = await client.messages.countTokens({
|
|
326
|
-
model: "claude-opus-4-
|
|
326
|
+
model: "claude-opus-4-7",
|
|
327
327
|
messages: messages,
|
|
328
328
|
system: system,
|
|
329
329
|
});
|
package/bundled/upstream/anthropic-skills/skills/claude-api/typescript/claude-api/batches.md
CHANGED
|
@@ -24,7 +24,7 @@ const messageBatch = await client.messages.batches.create({
|
|
|
24
24
|
{
|
|
25
25
|
custom_id: "request-1",
|
|
26
26
|
params: {
|
|
27
|
-
model: "claude-opus-4-
|
|
27
|
+
model: "claude-opus-4-7",
|
|
28
28
|
max_tokens: 16000,
|
|
29
29
|
messages: [
|
|
30
30
|
{ role: "user", content: "Summarize climate change impacts" },
|
|
@@ -34,7 +34,7 @@ const messageBatch = await client.messages.batches.create({
|
|
|
34
34
|
{
|
|
35
35
|
custom_id: "request-2",
|
|
36
36
|
params: {
|
|
37
|
-
model: "claude-opus-4-
|
|
37
|
+
model: "claude-opus-4-7",
|
|
38
38
|
max_tokens: 16000,
|
|
39
39
|
messages: [
|
|
40
40
|
{ role: "user", content: "Explain quantum computing basics" },
|
package/bundled/upstream/anthropic-skills/skills/claude-api/typescript/claude-api/streaming.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
```typescript
|
|
6
6
|
const stream = client.messages.stream({
|
|
7
|
-
model: "claude-opus-4-
|
|
7
|
+
model: "claude-opus-4-7",
|
|
8
8
|
max_tokens: 64000,
|
|
9
9
|
messages: [{ role: "user", content: "Write a story" }],
|
|
10
10
|
});
|
|
@@ -23,11 +23,11 @@ for await (const event of stream) {
|
|
|
23
23
|
|
|
24
24
|
## Handling Different Content Types
|
|
25
25
|
|
|
26
|
-
> **Opus 4.6:** Use `thinking: {type: "adaptive"}`. On older models, use `thinking: {type: "enabled", budget_tokens: N}` instead.
|
|
26
|
+
> **Opus 4.7 / Opus 4.6:** Use `thinking: {type: "adaptive"}`. On older models, use `thinking: {type: "enabled", budget_tokens: N}` instead.
|
|
27
27
|
|
|
28
28
|
```typescript
|
|
29
29
|
const stream = client.messages.stream({
|
|
30
|
-
model: "claude-opus-4-
|
|
30
|
+
model: "claude-opus-4-7",
|
|
31
31
|
max_tokens: 64000,
|
|
32
32
|
thinking: { type: "adaptive" },
|
|
33
33
|
messages: [{ role: "user", content: "Analyze this problem" }],
|
|
@@ -82,7 +82,7 @@ const getWeather = betaZodTool({
|
|
|
82
82
|
});
|
|
83
83
|
|
|
84
84
|
const runner = client.beta.messages.toolRunner({
|
|
85
|
-
model: "claude-opus-4-
|
|
85
|
+
model: "claude-opus-4-7",
|
|
86
86
|
max_tokens: 64000,
|
|
87
87
|
tools: [getWeather],
|
|
88
88
|
messages: [
|
|
@@ -117,7 +117,7 @@ for await (const messageStream of runner) {
|
|
|
117
117
|
|
|
118
118
|
```typescript
|
|
119
119
|
const stream = client.messages.stream({
|
|
120
|
-
model: "claude-opus-4-
|
|
120
|
+
model: "claude-opus-4-7",
|
|
121
121
|
max_tokens: 64000,
|
|
122
122
|
messages: [{ role: "user", content: "Hello" }],
|
|
123
123
|
});
|
package/bundled/upstream/anthropic-skills/skills/claude-api/typescript/claude-api/tool-use.md
CHANGED
|
@@ -30,7 +30,7 @@ const getWeather = betaZodTool({
|
|
|
30
30
|
|
|
31
31
|
// The tool runner handles the agentic loop and returns the final message
|
|
32
32
|
const finalMessage = await client.beta.messages.toolRunner({
|
|
33
|
-
model: "claude-opus-4-
|
|
33
|
+
model: "claude-opus-4-7",
|
|
34
34
|
max_tokens: 16000,
|
|
35
35
|
tools: [getWeather],
|
|
36
36
|
messages: [{ role: "user", content: "What's the weather in Paris?" }],
|
|
@@ -61,7 +61,7 @@ let messages: Anthropic.MessageParam[] = [{ role: "user", content: userInput }];
|
|
|
61
61
|
|
|
62
62
|
while (true) {
|
|
63
63
|
const response = await client.messages.create({
|
|
64
|
-
model: "claude-opus-4-
|
|
64
|
+
model: "claude-opus-4-7",
|
|
65
65
|
max_tokens: 16000,
|
|
66
66
|
tools: tools,
|
|
67
67
|
messages: messages,
|
|
@@ -108,7 +108,7 @@ let messages: Anthropic.MessageParam[] = [{ role: "user", content: userInput }];
|
|
|
108
108
|
|
|
109
109
|
while (true) {
|
|
110
110
|
const stream = client.messages.stream({
|
|
111
|
-
model: "claude-opus-4-
|
|
111
|
+
model: "claude-opus-4-7",
|
|
112
112
|
max_tokens: 64000,
|
|
113
113
|
tools,
|
|
114
114
|
messages,
|
|
@@ -163,7 +163,7 @@ while (true) {
|
|
|
163
163
|
|
|
164
164
|
```typescript
|
|
165
165
|
const response = await client.messages.create({
|
|
166
|
-
model: "claude-opus-4-
|
|
166
|
+
model: "claude-opus-4-7",
|
|
167
167
|
max_tokens: 16000,
|
|
168
168
|
tools: tools,
|
|
169
169
|
messages: [{ role: "user", content: "What's the weather in Paris?" }],
|
|
@@ -174,7 +174,7 @@ for (const block of response.content) {
|
|
|
174
174
|
const result = await executeTool(block.name, block.input);
|
|
175
175
|
|
|
176
176
|
const followup = await client.messages.create({
|
|
177
|
-
model: "claude-opus-4-
|
|
177
|
+
model: "claude-opus-4-7",
|
|
178
178
|
max_tokens: 16000,
|
|
179
179
|
tools: tools,
|
|
180
180
|
messages: [
|
|
@@ -198,7 +198,7 @@ for (const block of response.content) {
|
|
|
198
198
|
|
|
199
199
|
```typescript
|
|
200
200
|
const response = await client.messages.create({
|
|
201
|
-
model: "claude-opus-4-
|
|
201
|
+
model: "claude-opus-4-7",
|
|
202
202
|
max_tokens: 16000,
|
|
203
203
|
tools: tools,
|
|
204
204
|
tool_choice: { type: "tool", name: "get_weather" },
|
|
@@ -217,7 +217,7 @@ Version-suffixed `type` literals; `name` is fixed per interface. Pass plain obje
|
|
|
217
217
|
```typescript
|
|
218
218
|
// ✓ let inference work — no annotation
|
|
219
219
|
const response = await client.messages.create({
|
|
220
|
-
model: "claude-opus-4-
|
|
220
|
+
model: "claude-opus-4-7",
|
|
221
221
|
max_tokens: 16000,
|
|
222
222
|
tools: [
|
|
223
223
|
{ type: "text_editor_20250728", name: "str_replace_based_edit_tool" },
|
|
@@ -257,7 +257,7 @@ import Anthropic from "@anthropic-ai/sdk";
|
|
|
257
257
|
const client = new Anthropic();
|
|
258
258
|
|
|
259
259
|
const response = await client.messages.create({
|
|
260
|
-
model: "claude-opus-4-
|
|
260
|
+
model: "claude-opus-4-7",
|
|
261
261
|
max_tokens: 16000,
|
|
262
262
|
messages: [
|
|
263
263
|
{
|
|
@@ -305,7 +305,7 @@ const uploaded = await client.beta.files.upload({
|
|
|
305
305
|
// Code execution is GA; Files API is still beta (pass via RequestOptions)
|
|
306
306
|
const response = await client.messages.create(
|
|
307
307
|
{
|
|
308
|
-
model: "claude-opus-4-
|
|
308
|
+
model: "claude-opus-4-7",
|
|
309
309
|
max_tokens: 16000,
|
|
310
310
|
messages: [
|
|
311
311
|
{
|
|
@@ -365,7 +365,7 @@ for (const block of response.content) {
|
|
|
365
365
|
```typescript
|
|
366
366
|
// First request: set up environment
|
|
367
367
|
const response1 = await client.messages.create({
|
|
368
|
-
model: "claude-opus-4-
|
|
368
|
+
model: "claude-opus-4-7",
|
|
369
369
|
max_tokens: 16000,
|
|
370
370
|
messages: [
|
|
371
371
|
{
|
|
@@ -382,7 +382,7 @@ const containerId = response1.container!.id;
|
|
|
382
382
|
|
|
383
383
|
const response2 = await client.messages.create({
|
|
384
384
|
container: containerId,
|
|
385
|
-
model: "claude-opus-4-
|
|
385
|
+
model: "claude-opus-4-7",
|
|
386
386
|
max_tokens: 16000,
|
|
387
387
|
messages: [
|
|
388
388
|
{
|
|
@@ -402,7 +402,7 @@ const response2 = await client.messages.create({
|
|
|
402
402
|
|
|
403
403
|
```typescript
|
|
404
404
|
const response = await client.messages.create({
|
|
405
|
-
model: "claude-opus-4-
|
|
405
|
+
model: "claude-opus-4-7",
|
|
406
406
|
max_tokens: 16000,
|
|
407
407
|
messages: [
|
|
408
408
|
{
|
|
@@ -436,7 +436,7 @@ const handlers: MemoryToolHandlers = {
|
|
|
436
436
|
const memory = betaMemoryTool(handlers);
|
|
437
437
|
|
|
438
438
|
const runner = client.beta.messages.toolRunner({
|
|
439
|
-
model: "claude-opus-4-
|
|
439
|
+
model: "claude-opus-4-7",
|
|
440
440
|
max_tokens: 16000,
|
|
441
441
|
tools: [memory],
|
|
442
442
|
messages: [{ role: "user", content: "Remember my preferences" }],
|
|
@@ -473,7 +473,7 @@ const ContactInfoSchema = z.object({
|
|
|
473
473
|
const client = new Anthropic();
|
|
474
474
|
|
|
475
475
|
const response = await client.messages.parse({
|
|
476
|
-
model: "claude-opus-4-
|
|
476
|
+
model: "claude-opus-4-7",
|
|
477
477
|
max_tokens: 16000,
|
|
478
478
|
messages: [
|
|
479
479
|
{
|
|
@@ -495,7 +495,7 @@ console.log(response.parsed_output!.name); // "Jane Doe"
|
|
|
495
495
|
|
|
496
496
|
```typescript
|
|
497
497
|
const response = await client.messages.create({
|
|
498
|
-
model: "claude-opus-4-
|
|
498
|
+
model: "claude-opus-4-7",
|
|
499
499
|
max_tokens: 16000,
|
|
500
500
|
messages: [
|
|
501
501
|
{
|