AI NEWS · 2026-07-05 (last 24h, Asia/Taipei)

AI News

Signal over noise. Daily.

日期2026-07-05
文章29
分類2
01

一線 AI Lab

20 articles
Claude Code Docs 2026-07-04 10:33

What's new

A weekly digest of notable Claude Code features, with code snippets, demos, and context on why they matter. The weekly dev digest highlights the features most likely to change how you work. Each entry includes runnable code, a short demo, and a link to the full docs. For every bug fix and minor improvement, see the changelog. `claude mcp login`: authenticate a configured MCP server from your shell instead of the interactive `/mcp` menu, and clear its stored credentials later with `claude mcp logout`. Also this week: shell mode responds to command output (`! npm test` gets an explanation without a second prompt); `/rewind` can resume a conversation from before `/clear` was run; and background subagents now surface permission prompts in the main session instead of…

Claude Code Docs 2026-07-04 10:33

Week 23 · June 1–5, 2026

Run auto mode on Amazon Bedrock, Google Cloud's Agent Platform, and Microsoft Foundry, prompt before writing files that can run code in acceptEdits mode, list installed plugins with /plugin list, and require an approved version range for managed deployments. Releases v2.1.158 → v2.1.165 4 features · June 1–5 Auto mode on Amazon Bedrock, Google Cloud's Agent Platform, and Microsoft Foundry v2.1.158 Auto mode is now available on Amazon Bedrock, Google Cloud's Agent Platform, and Microsoft Foundry for Opus 4.7 and Opus 4.8, replacing permission prompts with background safety checks on third-party providers. Opt in by setting CLAUDE_CODE_ENABLE_AUTO_MODE=1 .

Claude Code Docs 2026-07-04 10:33

Week 22 · May 25–29, 2026

Run Claude Code on Claude Opus 4.8, orchestrate large tasks with dynamic workflows, catch security issues with the security-guidance plugin, and use fast mode on Opus 4.8 at a lower price. Releases v2.1.150 → v2.1.157 4 features · May 25–29 Claude Opus 4.8 new model Opus 4.8 is now the default on Max, Team Premium, Enterprise pay-as-you-go, and the Anthropic API. It defaults to high effort; use /effort xhigh for harder tasks. Requires v2.1.154 or later.

Claude Code Docs 2026-07-04 10:33

Week 25 · June 15–19, 2026

Publish a live, shareable page from your session with Artifacts, match tool parameters in deny and ask rules, and set any setting from the prompt with /config. Releases v2.1.178 → v2.1.183 3 features · June 15–19 Artifacts An artifact is a live, interactive page that Claude Code publishes from your session to a private URL on claude.ai, and it updates in place as the session keeps working. Ask for one when terminal text is the wrong medium, such as a PR walkthrough with the diff annotated inline or a dashboard built from session data. Artifacts are in beta on Team and Enterprise plans.

Claude Code Docs 2026-07-04 10:33

Week 21 · May 18–22, 2026

Use auto mode on the Pro plan and with Sonnet 4.6, see which skills, subagents, and MCP servers drive your plan limits in /usage, and review diffs with the new /code-review command. Releases v2.1.143 → v2.1.149 1 feature · May 18–22 Auto mode on the Pro plan CLI Auto mode is now available on the Pro plan and supports Sonnet 4.6 alongside Opus. It replaces permission prompts with background safety checks: routine actions run without interrupting you, and destructive or suspicious ones are blocked and surfaced.

Claude Code Docs 2026-07-04 10:33

Week 15 · April 6–10, 2026

Ultraplan cloud planning, the Monitor tool with self-pacing /loop, /team-onboarding for packaging your setup, and /autofix-pr from your terminal. Releases v2.1.92 → v2.1.101 4 features · April 6–10 Ultraplan research preview Kick off plan mode in the cloud from your terminal, then review the result in your browser. Claude drafts the plan in a Claude Code on the web session while your terminal stays free; when it's ready you comment on individual sections, ask for revisions, and choose to execute remotely or send it back to your CLI. As of v2.1.101 the first run auto-creates a default cloud environment, so there's no web setup step before you can try it.

Claude Code Docs 2026-07-04 10:33

Week 18 · April 27 – May 1, 2026

Claude Code on Windows runs without Git Bash, claude auth login accepts a pasted OAuth code when the browser callback can't reach localhost, claude project purge cleans up local state per project, and pasting a PR URL into /resume finds the session that created it. Releases v2.1.120 → v2.1.126 4 features · April 27 – May 1 Sign in without a browser callback v2.1.126 claude auth login now accepts the OAuth code pasted directly into the terminal when the browser callback can't reach localhost. That covers WSL2, SSH sessions, and containers, where the redirect to a local port doesn't work. The same release also fixes login timeouts on slow or proxied connections and in IPv6-only devcontainers.

Claude Code Docs 2026-07-04 10:33

Week 16 · April 13–17, 2026

Claude Opus 4.7 with the new xhigh effort level, Routines on Claude Code on the web, mobile push notifications that ping your phone when Claude needs you, a /usage breakdown that shows what's driving your limits, and native binaries replacing the bundled JavaScript. Releases v2.1.105 → v2.1.113 5 features · April 13–17 Claude Opus 4.7 new model Anthropic's strongest coding model yet is now the default on Max and Team Premium, and available everywhere else from /model . It adds a new xhigh effort level that sits between high and max : best results for most coding and agentic tasks, applied as the default the first time you switch to 4.7. /effort now opens an interactive arrow-key slider when you call it without arguments, so you can dial intelligence against speed without remembering the…

Claude Code Docs 2026-07-04 10:33

Monitoring

Learn how to enable and configure OpenTelemetry for Claude Code. Track Claude Code usage, costs, and tool activity across your organization by exporting telemetry data through OpenTelemetry (OTel). Claude Code exports metrics as time series data via the standard metrics protocol, events via the logs/events protocol, and optionally distributed traces via the traces protocol. Configure your metrics, logs, and traces backends to match your monitoring requirements. Configure OpenTelemetry using environment variables: export CLAUDE_CODE_ENABLE_TELEMETRY=1 export OTEL_METRICS_EXPORTER=otlp # Options: otlp, prometheus, console, none export OTEL_LOGS_EXPORTER=otlp # Options: otlp, console, none export OTEL_EXPORTER_OTLP_PROTOCOL=grpc export OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4317

Claude Code Docs 2026-07-04 10:33

Run Claude Code programmatically

Use the Agent SDK to run Claude Code programmatically from the CLI, Python, or TypeScript. The Agent SDK gives you the same tools, agent loop, and context management that power Claude Code. It's available as a CLI for scripts and CI/CD, or as Python and TypeScript packages for full programmatic control. To run Claude Code in non-interactive mode, pass `-p` with your prompt and any CLI options: claude -p "Find and fix the bug in auth.py" --allowedTools "Read,Edit,Bash" This page covers using the Agent SDK via the CLI (`claude -p`). For the Python and TypeScript SDK packages with structured outputs, tool approval callbacks, and native message objects, see the full Agent SDK documentation. Add the `-p` (or `--print`) flag to any `claude` command to run it non-interactively. All CLI options…

Claude Code Docs 2026-07-04 10:33

Claude Code GitHub Actions

Learn about integrating Claude Code into your development workflow with Claude Code GitHub Actions Claude Code GitHub Actions brings AI-powered automation to your GitHub workflow. With a simple `@claude` mention in any PR or issue, Claude can analyze your code, create pull requests, implement features, and fix bugs - all while following your project's standards. For automatic reviews posted on every PR without a trigger, see GitHub Code Review. Claude Code GitHub Actions is built on top of the Claude Agent SDK, which enables programmatic integration of Claude Code into your applications. You can use the SDK to build custom automation workflows beyond GitHub Actions. * Instant PR creation: Describe what you need, and Claude creates a complete PR with all necessary changes

Claude Code Docs 2026-07-04 10:33

Data usage

Learn about Anthropic's data usage policies for Claude Consumer users (Free, Pro, and Max plans): We give you the choice to allow your data to be used to improve future Claude models. We will train new models using data from Free, Pro, and Max accounts when this setting is on (including when you use Claude Code from these accounts). Commercial users: (Team and Enterprise plans, API, 3rd-party platforms, and Claude Gov) maintain existing policies: Anthropic does not train generative models using code or prompts sent to Claude Code under commercial terms, unless the customer has chosen to provide their data to us for model improvement (for example, the Developer Partner Program). If you explicitly opt in to methods to provide us with materials to train on, such as via the…

Claude Code Docs 2026-07-04 10:33

Manage costs effectively

Track token usage, set team spend limits, and reduce Claude Code costs with context management, model selection, extended thinking settings, and preprocessing hooks. Claude Code charges by API token consumption. For subscription plan pricing (Pro, Max, Team, Enterprise), see claude.com/pricing. Per-developer costs vary widely based on model selection, codebase size, and usage patterns such as running multiple instances or automation. Across enterprise deployments, the average cost is around $13 per developer per active day and $150-250 per developer per month, with costs remaining below $30 per active day for 90% of users. To estimate spend for your own team, start with a small pilot group and use the tracking tools below to establish a baseline before wider rollout. This page covers…

Claude Code Docs 2026-07-04 10:33

Use Claude Code on the web

Configure cloud environments, setup scripts, network access, and Docker in Anthropic's sandbox. Move sessions between web and terminal with `--cloud` and `--teleport`. Claude Code on the web is in research preview for Pro, Max, and Team users, and for Enterprise users with premium seats or Chat + Claude Code seats. Claude Code on the web runs tasks on Anthropic-managed cloud infrastructure at claude.ai/code. Sessions persist even if you close your browser, and you can monitor them from the Claude mobile app. New to Claude Code on the web? Start with Get started to connect your GitHub account and submit your first task. This page covers: * GitHub authentication options: two ways to connect GitHub * The cloud environment: what config carries over, what tools are installed, and how to…

Claude Code Docs 2026-07-04 10:33

Scale to many tools with tool search

Scale your agent to thousands of tools by discovering and loading only what's needed, on demand. Tool search enables your agent to work with hundreds or thousands of tools by dynamically discovering and loading them on demand. Instead of loading all tool definitions into the context window upfront, the agent searches your tool catalog and loads only the tools it needs. This approach solves two challenges as tool libraries scale: * Context efficiency: Tool definitions can consume large portions of the context window (50 tools can use 10-20K tokens), leaving less room for actual work. * Tool selection accuracy: Tool selection accuracy degrades with more than 30-50 tools loaded at once. Tool search is enabled by default. When tool search is active, tool definitions are withheld from…

Claude Code Docs 2026-07-04 10:33

Quickstart

Get started with the Python or TypeScript Agent SDK to build AI agents that work autonomously Use the Agent SDK to build an AI agent that reads your code, finds bugs, and fixes them, all without manual intervention. What you'll do: 1. Set up a project with the Agent SDK 2. Create a file with some buggy code 3. Run an agent that finds and fixes the bugs automatically * Node.js 18+ or Python 3.10+ * An Anthropic account (sign up here) Create a new directory for this quickstart: mkdir my-agent cd my-agent For your own projects, you can run the SDK from any folder; it will have access to files in that directory and its subdirectories by default. Install the Agent SDK package for your language:

Claude Code Docs 2026-07-04 10:33

Agent SDK overview

Build production AI agents with Claude Code as a library Build AI agents that autonomously read files, run commands, search the web, edit code, and more. The Agent SDK gives you the same tools, agent loop, and context management that power Claude Code, programmable in Python and TypeScript. import asyncio from claude_agent_sdk import query, ClaudeAgentOptions async def main(): async for message in query( prompt="Find and fix the bug in auth.py", options=ClaudeAgentOptions(allowed_tools=["Read", "Edit", "Bash"]), ): print(message) # Claude reads the file, finds the bug, edits it asyncio.run(main()) import { query } from "@anthropic-ai/claude-agent-sdk"; for await (const message of query({ prompt: "Find and fix the bug in auth.ts", options: { allowedTools: ["Read", "Edit", "Bash"] }

Claude Code Docs 2026-07-04 10:33

Hosting the Agent SDK

Deploy the Agent SDK in production: subprocess architecture, session persistence, scaling, observability, and multi-tenant isolation for Docker, Kubernetes, and sandbox providers. The Agent SDK spawns and supervises a `claude` CLI subprocess that owns a shell, a working directory, and session files on disk. Hosting it is not like hosting a stateless API wrapper. Every running agent is a long-lived process tied to local state, which shapes how you allocate resources, persist sessions, and scale across tenants. This page covers self-hosting on your own infrastructure: understand the subprocess model, choose a session pattern, provision the container, and handle production concerns like persistence, observability, auth, and multi-tenant isolation. For deployable Dockerfiles and Kubernetes…

Claude Code Docs 2026-07-04 10:33

How the agent loop works

Understand the message lifecycle, tool execution, context window, and architecture that power your SDK agents. The Agent SDK lets you embed Claude Code's autonomous agent loop in your own applications. The SDK is a standalone package that gives you programmatic control over tools, permissions, cost limits, and output. You don't need the Claude Code CLI installed to use it. When you start an agent, the SDK runs the same execution loop that powers Claude Code: Claude evaluates your prompt, calls tools to take action, receives the results, and repeats until the task is complete. This page explains what happens inside that loop so you can build, debug, and optimize your agents effectively. Every agent session follows the same cycle:

Claude Code Docs 2026-07-04 10:33

Track cost and usage

Learn how to track token usage, estimate costs, and configure prompt caching with the Claude Agent SDK. The Claude Agent SDK provides detailed token usage information for each interaction with Claude. This guide explains how to properly track usage and understand cost reporting, especially when dealing with parallel tool uses and multi-step conversations. For complete API documentation, see the TypeScript SDK reference and Python SDK reference. The `total_cost_usd` and `costUSD` fields are client-side estimates, not authoritative billing data. The SDK computes them locally from a price table bundled at build time, so they can drift from what you are actually billed when: * pricing changes * the installed SDK version does not recognize a model * billing rules apply that the client cannot…

02

媒體

9 articles
TechCrunch AI 2026-07-05 04:55

New Google commercial imagines a Declaration of Independence written with help from AI

Two hundred and fifty years after the signing of the Declaration of Independence, a new commercial asks: What if the Founding Fathers had access to Google Workspace?

NYT Tech AI 2026-07-05 02:26

The Bureaucratic Hell of Getting a Job in 2026

TechCrunch AI 2026-07-05 02:00

Midjourney wants Hollywood studios to reveal the details of their AI usage

As part of an ongoing legal dispute with three Hollywood studios, Midjourney is seeking to compel those studios to reveal how they use AI themselves.

NYT Tech AI 2026-07-05 01:30

We Didn’t Build the Atomic Bomb This Way

There’s no reason the United States should refrain from building its own frontier A.I. model.

TechCrunch AI 2026-07-05 00:32

Alibaba reportedly bans employees from using Claude Code

Alibaba has reportedly classified Claude Code as high-risk software.

TechCrunch AI 2026-07-04 23:51

What is Mistral AI? Everything to know about the OpenAI competitor

Mistral AI, which offers some open source AI models, has raised significant funding since its creation in 2023, with the ambition to “put frontier AI in the hands of everyone.”

The Verge AI 2026-07-04 20:00

The fanfiction community is at war with AI — and itself

Fanfiction communities are trying to hunt down writers who haven’t written works with their own hands. | Image: Álvaro Bernis / The Verge Over the past week, a new fanworks movement has kicked off, with the aim to root out authors using generative AI. But the detection methods being implemented are questionable, and any fanfic writer could be caught in the crossfire. Broad distaste around the use of Claude, ChatGPT, and other AI tools has long been a thing in creative communities , including the world of fanfiction. Readers and writers have passed around tips for spotting supposedly AI-generated works, citing anything from em dashes to the broad concept of purple prose. But on June 29th, an anonymous X account called @heatedrivalryai promised a seemingly more reliable solution … Read the…

NYT Tech AI 2026-07-04 17:00

Are the ‘MANGOS’ Stocks Already Turning Soft?

Wall Street loves an acronym. The latest one stands for Meta, Anthropic, Nvidia and three other companies at the center of the artificial intelligence boom.

NYT Tech AI 2026-07-04 17:00

‘Who Should I Vote for?’ Voters Turn to A.I. Before Casting Their Ballots

It takes effort to be an informed citizen. Artificial intelligence tools offer an alluring shortcut — but they’re not without risk.