AIニュース最前線
最新ニュースAI日報Hacker日報週報動画AIツールトレンド企業

AIニュース最前線

世界中のAI最新情報を日本語で毎時更新

最新ニュース日報トレンド企業プレミアムRSS
© 2026 ainew.jp特定商取引法に基づく表記
ニュース一覧元記事を開く
Claude Blog·2026年4月14日 09:00·約5分で読める

Claude Codeにおけるルーチンの導入

#AIエージェント自動化#DevOps統合#Claude Code#Webhookトリガー#Anthropic
TL;DR

AnthropicはClaude Codeに「Routines」機能を研究プレビューとして導入し、スケジュール・API・Webhookトリガーに対応するAI自動化タスクをパッケージ化して提供開始した。

AI深層分析2026年4月15日 03:43
3
注目/ 5段階
深度40%
3
関連度30%
4
実用性20%
2
革新性10%
3

キーポイント

1

3つの実行トリガー方式

スケジュール(時間指定)、API(専用エンドポイント経由)、Webhook(GitHubイベント等)の3方式で、設定済みのプロンプトとリポジトリ・コネクタを組み合わせた自動化を実行可能。

2

ローカル環境依存の解消

Claude CodeのWebインフラ上で動作するため、開発者のPC起動状態やローカルMCPサーバー・cronジョブの管理が不要になり、運用負荷が大幅に削減される。

3

開発ワークフローへの標準統合

バックログ管理、ドキュメント更新チェック、デプロイ検証、アラート対応など、実用的な自動化ユースケースが早期ユーザーから報告され、DevOpsパイプラインへの組み込みパターンが確立されつつある。

影響分析・編集コメントを表示

影響分析

本機能は、AIエージェントを単なる対話ツールから「継続的かつ自律的に動作するインフラコンポーネント」へと昇華させる重要な一歩である。開発者が手動でcronやMCPサーバーを管理する必要がなくなることで、AI活用における運用負荷と参入ハードルが大きく低下する。今後はWebhookトリガーのソース拡大や認証・監査ログの標準化が進み、DevOpsツールチェーンにおけるAIエージェントの標準インターフェースとなる可能性がある。

編集コメント

研究プレビュー段階ではあるが、LLMプロンプトを「タスクパッケージ」として抽象化し、既存のDevOpsパイプラインに組み込む設計は実用性が高い。今後は認証・監査ログの標準化が課題となるが、AI自動化の実装コストを劇的に下げる可能性を秘めている。

カテゴリ:製品 | Claude Code

日付:2026年4月14日

読了時間:5分

共有 | リンクをコピー

https://claude.com/blog/introducing-routines-in-claude-code

本日、Claude Codeにおいて「ルーチン(routines)」をリサーチプレビューとして公開いたします。ルーチンは、プロンプト、リポジトリ、コネクターを含む設定を一度行えば、スケジュールに従って、API呼び出しから、あるいはイベントの発生に応じて実行できるClaude Codeの自動化機能です。ルーチンはClaude CodeのWebインフラ上で動作するため、お使いのノートパソコンが開いている必要はありません。

開発者はすでにソフトウェア開発サイクルを自動化するためにClaude Codeを使用していますが、これまでcronジョブ、インフラストラクチャ、MCPサーバーなどの追加ツールリングは自分たちで管理する必要がありました。ルーチンにはリポジトリとコネクターへのアクセス権が付与されるため、自動化処理をパッケージ化し、スケジュールに従って実行したりトリガーを設定したりできます。

動作方法

スケジュール付きルーチン

Claude Codeにプロンプトと頻度(時間ごと、夜間、週次)を指定すると、そのスケジュールに従って実行されます:

毎晩2時にLinearからトップのバグをプルし、修正を試みてドラフトPR(Pull Request)を開く。

CLIで/scheduleを使用している場合、それらのタスクは現在スケジュール付きルーチンとして扱われます。

APIルーチン

また、ルーチンをAPI呼び出しによってトリガーされるように構成することもできます。各ルーチンには独自のエンドポイントと認証トークンが割り当てられます。メッセージをPOSTすると、セッションURLが返されます。アラート通知、デプロイフック、社内ツールなど、HTTPリクエストが可能なあらゆる場所にClaude Codeを接続できます:

アラートペイロードを読み取り、担当サービスを見つけ、提案された最初のステップを含むトリアージサマリーを#oncallチャンネルに投稿する。

Webhookルーチン(GitHubから開始)

GitHubリポジトリのイベントに応答して自動的に起動するルーチンを購読できます。Claudeは、フィルタに一致するすべてのPRに対して新しいセッションを作成し、ルーチンを実行します。

/auth-providerモジュールに触れるPRにはフラグを立ててください。このモジュールへの変更は要約され、#auth-changesチャンネルに投稿される必要があります。

ClaudeはPRごとに1つのセッションを開き、そのPRからの更新を継続的にフィードして、コメントやCI(Continuous Integration)失敗などのフォローアップに対応できるようにします。

今後、Webhookベースのルーチンをより多くのイベントソースからトリガーするように拡張する予定です。

チームが構築しているもの

ルーチンを作成し始めた初期ユーザーの間で、いくつかの一般的なパターンが見られます:

スケジュール付きルーチン

バックログ管理:毎晩新しいイシューをトリアージし、ラベル付け、割り当てを行い、サマリーをSlackに投稿

ドキュメントのドリフト:週次でマージされたPRをスキャンし、変更されたAPIを参照するドキュメントにフラグを立て、更新用のPRを開く

APIルーチン

デプロイ検証:CD(Continuous Deployment)パイプラインが各デプロイ後に投稿し、Claudeが新しいビルドに対してスモークチェックを実行し、エラーログをスキャンして回帰を検出し、リリースチャンネルにGo/No-Go(承認/不承認)を投稿

アラートトリアージ:Datadogをルーチンのエンドポイントにポイントし、Claudeがトレースを取得し、最近のデプロイと相関させて、オンコール担当者がページを開く前にドラフト修正を準備する

フィードバック解決:ドキュメントのフィードバックウィジェットまたは社内ダッシュボードがレポートを投稿し、Claudeはコンテキスト付きのイシューでリポジトリに対してセッションを開き、変更をドラフトする

GitHubルーチン

ライブラリポート:Python SDKへのPRがマージされるたびに、その変更を並列するGo SDKにポートし、一致するPRを開くルーチンをトリガー

独自のコードレビュー:PRが開かれたら、人間のレビュアーが確認する前にセキュリティとパフォーマンスに関するチーム独自のチェックリストを実行し、インラインコメントを残す

はじめに

ルーチンは、Web版のClaude Codeが有効になっているPro、Max、Team、EnterpriseプランのClaude Codeユーザーを対象に、本日利用可能です。最初のルーチンを作成するにはclaude.ai/codeへお越しください。またはCLIで/scheduleと入力してください。

ルーチンは、インタラクティブセッションと同様にサブスクリプションの使用量制限を消費します。さらに、ルーチンには1日あたりの実行制限があります:Proユーザーは1日最大5回、Maxユーザーは1日最大15回、TeamおよびEnterpriseユーザーは1日最大25回のルーチンを実行できます。これらの制限を超えて追加のルーチンを実行するには、追加の使用量が必要です。詳細はドキュメントをご覧ください。

No items found.

0/5eBook

No items found.

Claude Codeを入手

組織の運用方法を変革しましょう

開発者ニュースレターを購読する

製品アップデート、ハウツー、コミュニティの注目記事など。毎月あなたのメールボックスにお届けします。

月次開発者ニュースレターを受け取るには、メールアドレスをご入力ください。いつでも購読を解除できます。

ありがとうございます!登録が完了しました。

申し訳ありませんが、送信に問題が発生しました。後ほど再度お試しください。

原文を表示

CategoryProductClaude CodeDateApril 14, 2026Reading time5minShareCopy linkhttps://claude.com/blog/introducing-routines-in-claude-codeToday, we're introducing routines in Claude Code in research preview. A routine is a Claude Code automation you configure once — including a prompt, repo, and connectors — and then run on a schedule, from an API call, or in response to an event. Routines run on Claude Code’s web infrastructure, so nothing depends on your laptop being open.Developers already use Claude Code to automate the software development cycle, but until now, they've managed cron jobs, infrastructure, and additional tooling like MCP servers themselves. Routines ship with access to your repos and your connectors, so you can package up automations and set them to run on a schedule or trigger.How it worksScheduled routinesGive Claude Code a prompt and a cadence (hourly, nightly, or weekly) and it runs on that schedule:Every night at 2am: pull the top bug from Linear, attempt a fix, and open a draft PR.If you're using /schedule in the CLI, those tasks are now scheduled routines. API routinesYou can also configure routines to be triggered by API calls. Every routine gets its own endpoint and auth token. POST a message, get back a session URL. Wire Claude Code into your alerting, your deploy hooks, your internal tools—anywhere you can make an HTTP request:Read the alert payload, find the owning service, and post a triage summary to #oncall with a proposed first step.Webhook routines, starting with GitHubSubscribe a routine to automatically kick off in response to GitHub repository events. Claude will create a new session for every PR matching your filters and run your routine.Please flag PRs that touch the /auth-provider module. Any changes to this module need to be summarized and posted to #auth-changes.Claude opens one session per PR and will continue to feed updates from that PR to the session, so it can address follow-ups like comments and CI failures.We plan to expand webhook-based routines to trigger from more event sources in the future.What teams are buildingA few common patterns have emerged for early users creating routines:Scheduled routinesBacklog management: triage new issues nightly, label, assign, and post a summary to SlackDocs drift: scan merged PRs weekly, flag docs that reference changed APIs, and open update PRsAPI routinesDeploy verification: your CD pipeline posts after each deploy, Claude runs smoke checks against the new build, scans error logs for regressions, and posts a go/no-go to the release channelAlert triage: point Datadog at the routine's endpoint, Claude pulls the trace, correlates it with recent deployments, and has a draft fix waiting before on-call opens the pageFeedback resolution: a docs feedback widget or internal dashboard posts the report, Claude opens a session against the repo with the issue in context, and drafts the changeGitHub routinesLibrary port: every PR merged to a Python SDK triggers a routine that ports the change to the parallel Go SDK, and opens a matching PRBespoke code review: on PR opened, run your team's own checklist across security and performance, leaving inline comments before a human reviewer looksGetting startedRoutines are available today for Claude Code users on Pro, Max, Team, and Enterprise plans with Claude Code on the web enabled. Head to claude.ai/code to create your first routine, or type /schedule in the CLI.Routines draw down subscription usage limits in the same way as interactive sessions. In addition, routines have daily limits: Pro users can run up to 5 routines per day, Max users can run up to 15 routines per day, and Team and Enterprise users can run up to 25 routines per day. You can run extra routines beyond these limits with extra usage. See the docs for more information.No items found.0/5eBookNo items found.Get Claude CodeTransform how your organization operates with ClaudeGet the developer newsletterProduct updates, how-tos, community spotlights, and more. Delivered monthly to your inbox.Please provide your email address if you'd like to receive our monthly developer newsletter. You can unsubscribe at any time.Thank you! You’re subscribed.Sorry, there was a problem with your submission, please try again later.

この記事をシェア

関連記事

Anthropic Research★32026年3月6日 09:00

2026年3月6日 Frontier Red TeamによるClaudeのCVE-2026-2796エクスプロイトのリバースエンジニアリング

Frontier Red Teamが、Claudeの脆弱性CVE-2026-2796を悪用するエクスプロイトをリバースエンジニアリングした。

Anthropic Research★32026年3月6日 09:00

フロンティア・レッドチーム、Firefoxのセキュリティ向上のためにMozillaと提携

フロンティア・レッドチームは、Firefoxのセキュリティを向上させるため、Mozillaと提携した。

宝玉的分享★42026年2月17日 09:00

59%のユーザーがより安価なモデルを選択:Sonnet 4.6の詳細解説

Anthropic社がClaude Sonnet 4.6をリリースし、Claude Codeテストで70%のユーザーが前世代モデルより好み、59%がフラッグシップモデルOpus 4.5よりも選択した。コーディング、コンピュータ利用、100万トークンコンテキストなど6次元で全面アップグレードされ、価格は据え置き。

ニュース一覧に戻る元記事を読む