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

AIニュース最前線

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

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

Claude Code ガイド 2026:例付き 25 の機能とデモ

#Anthropic#Claude Code#Agentic Workflow#MCP#Software Engineering
TL;DR

Anthropic の Claude Code がターミナルアシスタントから階層型エージェンシシステムへ進化し、25 の機能と戦略を詳細に解説したガイド記事である。

AI深層分析2026年6月15日 11:02
4
重要/ 5段階
深度40%
5
関連度30%
5
実用性20%
4
革新性10%
4

キーポイント

1

アーキテクチャの多層化

Claude Code がメモリ、フック、スキル、サブエージェント、プラグイン、MCP を分離した階層型エージェンシシステムとして再構築された。

2

25 の機能と戦略の体系化

公式機能、コミュニティ技術、サードパーティツールを明確に分類し、CLAUDE.md やスキル、サブエージェントなど具体的な 25 の拡張方法を解説している。

3

安全性と制御の強化

パーミッションモード、チェックポイント(巻き戻し機能)、プランモード、およびツール実行前のフックによるセキュリティチェックが実装されている。

4

公式機能による安全性と効率の向上

Auto Mode やサンドボックス機能により、リスクのあるアクションを自動判定・隔離でき、背景タスクやコンテキスト圧縮で長期間の作業も効率的に管理できます。

5

コミュニティとサードパーティによる拡張性

構造化されたフォルダ構成や動的ワークフロー(サブエージェント活用)により複雑なタスクを分解し、外部メモリツールでプロジェクト全体の文脈を維持することが可能になります。

6

CI/CD とモバイル連携の統合

ヘッドレス CLI や GitHub Action 対応により自動化パイプラインに組み込め、リモートコントロールやプッシュ通知機能でモバイルからもセッションを管理・監視できます。

7

ターミナルベースの直感的な操作

Claude Code は従来のチャット型インターフェースではなく、ターミナル上で直接コマンドを実行・管理できる環境を提供し、開発ワークフローをシームレスに統合します。

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

影響分析

この記事は、Claude Code が単発的なチャットボットから、複雑な開発タスクを自律的に処理できる本格的なエージェンシプラットフォームへと成熟した過程を示しています。特に、安全性と拡張性を両立させるためのアーキテクチャ設計(多層化)と、具体的な実装パターン(25 の機能)の提示は、AI エンジニアが実際の開発現場でこのツールを効果的に活用するための重要な指針となります。

編集コメント

Claude Code の進化を体系的に理解できる貴重なガイドであり、特に「公式機能」と「コミュニティ技術」の区別が明確な点は実務者にとって非常に価値が高い。

Claude Code はもともとターミナル向けのコーディングアシスタントとして始まりました。現在は階層型エージェントシステムとして動作しています。その内部では、メモリ、フック、スキル、サブエージェント、プラグイン、MCP が明確に分離された別々のレイヤーとして構成されています。各レイヤーは、モデルが何を見たり実行したりできるかを決定します。

本記事では、Claude Code のスケーリングに向けた 25 の機能と戦略について解説しています。対象読者は AI エンジニア、ソフトウェアエンジニア、データサイエンティストです。すべてのコード例は文書化された形式に従っており、記載通りに動作します。各項目にはステータスが明記されているため、Claude Code に標準搭載されている機能とそうでない機能を区別できます。

Claude Code とは何か

Claude Code は Anthropic 社が提供するエージェント型コーディングツールです。ターミナル、デスクトップアプリ、IDE(統合開発環境)上で動作します。ファイルの読み込み、コマンドの実行、コードの編集、外部ツールの呼び出しが可能です。内部ではエージェントループが稼働しており、このループはツールの選択、コンテキストの蓄積、および圧縮による長時間セッションの管理を行います。

安全性の境界線は、パーミッションモード、チェックポイント、サンドボックス化、管理された設定によって担保されています。同じループは Agent SDK を通じてプログラム的に公開されており、開発者は少数のプリミティブを用いてこのツールを拡張できます。これらのプリミティブには、CLAUDE.md、スキル、サブエージェント、スラッシュコマンド、フック、MCP サーバーが含まれます。プラグインはこれらプリミティブを 1 つのインストール可能なユニットにバンドルしたものです。

25 の機能と戦略

各機能・戦略にはラベルが付けられています。「公式」とは文書化された Anthropic 社の機能を指し、「コミュニティ技術」とは shipped された機能ではなくワークフローパターンを意味します。「サードパーティツール」とは、Anthropic 社外で構築されたソフトウェアを指します。

CLAUDE.md メモリファイル(公式)。このファイルは、あなたのリポジトリにおけるエージェントの憲章です。Claude はセッションごとにこれを読み込み、規約とコマンドを固定します。

スキル(公式)。スキルとは、.claude/skills/ 配下に frontmatter を付与した SKILL.md ファイルのことです。/name という呼び出しをサポートし、Claude による自律的な実行も可能です。

サブエージェント(公式)。サブエージェントは独自のコンテキストウィンドウを持つ専門インスタンスです。詳細な作業は隔離されるため、メインの会話に集中力を保つことができます。

スラッシュコマンド(公式)。これらは / で始まるタイプ済みのショートカットです。組み込みには/init, /compact, /context, /review, /security-review があります。

フック(公式)。フックは定義されたライフサイクルポイントで発火する決定論的なスクリプトです。PreToolUse は、あらゆるツール実行前の主要なセキュリティチェックポイントです。

MCP サーバー(公式)。Model Context Protocol(モデル・コンテキスト・プロトコル)は、Claude Code を GitHub、データベース、ブラウザに接続します。サーバーが統合を処理し、Claude が何をすべきかを推論します。

プラグイン(公式)。プラグインとは、スキル、サブエージェント、コマンド、フック、MCP 定義からなるバージョン管理されたバンドルです。/plugin コマンド一つでセット全体がインストールされます。

チェックポイント(公式)。Claude Code は変更前に自動的に状態のスナップショットを作成します。何か問題が発生した場合は、Escape キーを二回押して巻き戻すことができます。

プランモード(公式)。プランモードは実行せずに探索と提案を行います。編集をコミットする前に作業範囲を特定するのに理想的です。

パーミッションモード(公式)。デフォルトモードでは、各ファイルの書き込みやシェルコマンドの実行前に確認を求めます。他のモードは、監視を速度に譲り渡します。

自動モード(公式、研究プレビュー)。各アクションは独立した Sonnet 4.6 クラスファイアによって最初にレビューされます。安全なアクションは実行され、リスクのあるアクションはブロックまたはエスカレーションされます。

コンテキスト圧縮(公式)。「/compact」コマンドは長いセッションを圧縮して利用可能なコンテキストを維持し、「/context」コマンドで現在のコンテキスト使用状況を確認できます。

バックグラウンドタスク(公式)。Bash ツールの「run_in_background」フラグを使用して、長時間実行されるシェルコマンドを実行します。Claude は会話のブロックを防ぎながら出力をポーリングします。

エージェント SDK(公式)。SDK は「query()」を通じて同じループをプログラム的に公開しており、「/code-review」などのスラッシュコマンドを送信して結果を処理できます。

ヘッドレス CLI(公式)。「claude -p "クエリ"」はワンショットプロセスを実行して終了します。また、cat logs.txt | claude -p のようなパイプ入力も動作します。

GitHub Action およびスケジュールジョブ(公式)。Claude Code は TTY を持たないワンショットプロセスとして実行されるため、CI 統合、スケジュールされたジョブ、プリコミットフックが可能になります。

出力スタイルと statusLine(公式)。出力スタイルはレスポンスの書式を変更します。カスタム「statusLine」レンダラーを使用すると、ターミナル上でセッションの状態を表面化できます。

リモートコントロールおよびモバイルプッシュ通知(公式)。Claude Code をモバイルまたは Web 画面から操作できます。タスクが完了した際に Claude からプッシュ通知を送信することも可能です。

外出中サマリー(公式)。このセッションレベル機能は、一時停止されたセッションに戻った際にコンテキストを表面化します。デフォルトで有効になっており、オプトアウトも可能です。

サンドボックス化(公式)。サンドボックス化された Bash ツールは、OS レベルのファイルシステムおよびネットワーク分離を強制します。コマンドは、あなたが定義した境界内でのプロンプトなしで実行されます。

構造化されたコンテキストフォルダ(コミュニティ技術)。ブランドガイドライン、クライアントデータ、または法的用語に特化したタスク別フォルダを整理します。各タスクに対して適切なコンテキストが読み込まれるため、出力の関連性が向上します。

動的ワークフロー(コミュニティ技術)。サブエージェントを使用して複雑なタスクを小さなステップに分割します。一般的なパターンには「分類して実行」と「分散して統合」があります。

モジュール型スキルパイプライン(コミュニティ技術)。再利用可能なスキルをチェーン化してエンドツーエンドのワークフローを構築します。サポートパイプラインでは、カテゴリ分類、応答生成、エスカレーションなどのスキルを組み合わせて使用できます。

外部メモリレイヤー(サードパーティ製ツール)。Mem Search や Hermes などのツールは、長期プロジェクトにわたる記憶機能を拡張します。これらは Claude Code の組み込みメモリとは別に動作します。

レジリエンス技術(コミュニティ技術)。出力品質が低下した際に、実践者はタスクをリセットして再実行します。これによりコンテキストの汚染を防ぎ、結果の一貫性を保ちます。

インタラクティブデモを試す

#mtp-cc-demo *{box-sizing:border-box!important;margin:0;padding:0}

#mtp-cc-demo{

background:#111!important;color:#e6e6e6!important;

font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif!important;

border:1px solid #2a2a2a!important;border-radius:14px!important;

max-width:920px!important;margin:24px auto!important;overflow:hidden!important;

line-height:1.5!important;font-size:15px!important;

}

#mtp-cc-demo .ccd-head{padding:22px 22px 16px!important;border-bottom:1px solid #1f1f1f!important;background:linear-gradient(180deg,#141414,#111)!important}

#mtp-cc-demo .ccd-badge{display:inline-block;font-size:11px!important;letter-spacing:.14em;text-transform:uppercase;color:#76B900!important;border:1px solid #2f4d00;padding:3px 9px;border-radius:999px;margin-bottom:10px;font-weight:700}

#mtp-cc-demo .ccd-title{font-size:21px!important;font-weight:800;color:#fff!important;letter-spacing:-.01em}

#mtp-cc-demo .ccd-sub{font-size:13px!important;color:#9a9a9a!important;margin-top:5px}

#mtp-cc-demo .ccd-tabs{display:flex;flex-wrap:wrap;gap:6px;padding:14px 18px 0!important;background:#0d0d0d!important;border-bottom:1px solid #1f1f1f!important}

#mtp-cc-demo .ccd-tab{appearance:none;border:1px solid #242424!important;background:#161616!important;color:#bdbdbd!important;

padding:9px 14px!important;border-radius:9px 9px 0 0!important;font-size:13px!important;font-weight:600;cursor:pointer;transition:all .15s}

#mtp-cc-demo .ccd-tab:hover{color:#fff!important;border-color:#3a3a3a!important}

#mtp-cc-demo .ccd-tab.on{background:#111!important;color:#76B900!important;border-color:#2f4d00!important;border-bottom-color:#111!important}

#mtp-cc-demo .ccd-body{padding:20px 22px 24px!important;min-height:340px}

#mtp-cc-demo .ccd-pane{display:none}

#mtp-cc-demo .ccd-pane.on{display:block;animation:ccdfade .25s ease}

@keyframes ccdfade{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}

必ず JSON 形式で返してください。translation フィールドのみ。他のフィールド (technical_terms 等) は一切追加しないこと — 余計なフィールドを書こうとして本文翻訳がトークン上限で打ち切られる事故を防ぐため:

{"translation": "翻訳全文"}

/* フィルターチップ */

#mtp-cc-demo .ccd-chips{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:16px}

#mtp-cc-demo .ccd-chip{border:1px solid #242424!important;background:#161616!important;color:#b5b5b5!important;

font-size:12px!important;font-weight:600;padding:6px 12px!important;border-radius:999px!important;cursor:pointer;transition:all .15s}

#mtp-cc-demo .ccd-chip:hover{border-color:#3a3a3a!important;color:#fff!important}

#mtp-cc-demo .ccd-chip.on{background:#76B900!important;color:#0a0a0a!important;border-color:#76B900!important}

#mtp-cc-demo .ccd-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}

#mtp-cc-demo .ccd-card{border:1px solid #1f1f1f!important;background:#151515!important;border-radius:11px!important;padding:13px 14px!important;cursor:pointer;transition:all .15s}

#mtp-cc-demo .ccd-card:hover{border-color:#2f4d00!important;background:#181b13!important;transform:translateY(-1px)}

#mtp-cc-demo .ccd-card h4{font-size:14px!important;color:#fff!important;display:flex;align-items:center;gap:8px;font-weight:700}

#mtp-cc-demo .ccd-num{flex:0 0 auto;width:22px;height:22px;border-radius:6px;background:#1d2a08!important;color:#76B900!important;font-size:11px!important;display:flex;align-items:center;justify-content:center;font-weight:800}

#mtp-cc-demo .ccd-tag{font-size:10px!important;text-transform:uppercase;letter-spacing:.08em;padding:2px 7px;border-radius:5px;font-weight:700;margin-left:auto}

#mtp-cc-demo .t-official{background:#13270a!important;color:#76B900!important}

#mtp-cc-demo .t-technique{background:#1a2433!important;color:#6fa8ff!important}

#mtp-cc-demo .t-third{background:#2a1d33!important;color:#c08bff!important}

#mtp-cc-demo .ccd-card p{font-size:12.5px!important;color:#9a9a9a!important;margin-top:7px;display:none}

#mtp-cc-demo .ccd-card.open p{display:block}

#mtp-cc-demo .ccd-chead{cursor:pointer}

#mtp-cc-demo .ccd-play{display:none;margin-top:11px;border-top:1px solid #1f1f1f!important;padding-top:11px!important}

#mtp-cc-demo .ccd-card.open .ccd-play{display:block}

#mtp-cc-demo .ccd-ctl{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:9px}

#mtp-cc-demo .ccd-runbtn{background:#76B900!important;color:#0a0a0a!important;border:none!important;font-weight:700;font-size:12px!important;padding:7px 14px!important;border-radius:7px!important;cursor:pointer}

#mtp-cc-demo .ccd-runbtn:hover{background:#8fd400!important}

#mtp-cc-demo .ccd-fout{background:#0a0a0a!important;border:1px solid #1a1a1a!important;border-radius:8px!important;padding:10px 11px!important;font-family:"SF Mono",Menlo,Consolas,monospace!important;font-size:11.5px!important;line-height:1.65;max-height:185px;overflow-y:auto}

#mtp-cc-demo .ccd-fout .u{color:#76B900!important}

#mtp-cc-demo .ccd-fout .s{color:#7fb3ff!important}

#mtp-cc-demo .ccd-fout .d{color:#cfcfcf!important}

#mtp-cc-demo .ccd-fout .w{color:#ffb454!important}

#mtp-cc-demo .ccd-fout .e{color:#ff6b6b!important}

#mtp-cc-demo .ccd-fout .muted{color:#666!important}

#mtp-cc-demo .ccd-sel,#mtp-cc-demo .ccd-pin{background:#0d0d0d!important;border:1px solid #242424!important;border-radius:7px!important;color:#fff!important;-webkit-text-fill-color:#fff!important;padding:6px 9px!important;font-size:12px!important;font-family:"SF Mono",Menlo,Consolas,monospace!important}

#mtp-cc-demo .ccd-pin{min-width:170px;flex:1 1 170px}

#mtp-cc-demo .ccd-toggle{display:inline-flex;align-items:center;gap:7px;background:#161616!important;border:1px solid #242424!important;color:#cfcfcf!important;font-size:12px!important;padding:6px 11px!important;border-radius:7px!important;cursor:pointer}

#mtp-cc-demo .ccd-toggle b{color:#ff6b6b!important}

#mtp-cc-demo .ccd-toggle.on b{color:#76B900!important}

#mtp-cc-demo .ccd-knob{width:9px;height:9px;border-radius:50%;background:#ff6b6b;display:inline-block}

#mtp-cc-demo .ccd-toggle.on .ccd-knob{background:#76B900}

#mtp-cc-demo .ccd-count{font-size:12px!important;color:#777!important;margin:4px 0 14px}

#mtp-cc-demo .ccd-pickrow{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:12px}

#mtp-cc-demo .ccd-plabel{font-size:12px!important;color:#9a9a9a!important;font-weight:600}

#mtp-cc-demo select.ccd-featsel{flex:1 1 220px;min-width:200px;background:#0d0d0d!important;border:1px solid #2f4d00!important;border-radius:9px!important;color:#fff!important;-webkit-text-fill-color:#fff!important;padding:10px 12px!important;font-size:13px!important;font-weight:600;font-family:inherit!important;cursor:pointer}

#mtp-cc-demo select.ccd-featsel:focus{outline:none!important;border-color:#76B900!important}

/* Terminal */

#mtp-cc-demo .ccd-term{background:#0a0a0a!important;border:1px solid #1f1f1f!important;border-radius:11px!important;overflow:hidden}

#mtp-cc-demo .ccd-termbar{display:flex;align-items:center;gap:7px;padding:9px 13px!important;border-bottom:1px solid #1a1a1a!important;background:#0d0d0d!important}

#mtp-cc-demo .ccd-dot{width:11px;height:11px;border-radius:50%}

#mtp-cc-demo .ccd-out{padding:14px 15px!important;height:250px;overflow-y:auto;font-family:"SF Mono",Menlo,Consolas,monospace!important;font-size:12.5px!important;line-height:1.7}

#mtp-cc-demo .ccd-out .u{color:#76B900!important}

#mtp-cc-demo .ccd-out .s{color:#7fb3ff!important}

#mtp-cc-demo .ccd-out .d{color:#cfcfcf!important}

#mtp-cc-demo .ccd-out .w{color:#ffb454!important}

#mtp-cc-demo .ccd-out .e{color:#ff6b6b!important}

#mtp-cc-demo .ccd-out .muted{color:#666!important}

#mtp-cc-demo .ccd-inrow{display:flex;align-items:center;border-top:1px solid #1a1a1a!important;padding:10px 13px!important;background:#0d0d0d!important;position:relative;z-index:2;cursor:text}

#mtp-cc-demo .ccd-prompt{color:#76B900!important;font-family:"SF Mono",Menlo,Consolas,monospace!important;font-size:13px!important;margin-right:8px;font-weight:700}

#mtp-cc-demo input.ccd-in{

flex:1 1 auto!important;min-width:0!important;width:auto!important;height:auto!important;

background:transparent!important;border:none!important;outline:none!important;box-shadow:none!important;

color:#ffffff!important;-webkit-text-fill-color:#ffffff!important;caret-color:#76B900!important;

font-family:"SF Mono",Menlo,Consolas,monospace!important;font-size:13px!important;line-height:1.5!important;

opacity:1!important;pointer-events:auto!important;cursor:text!important;

-webkit-user-select:text!important;user-select:text!important;-webkit-appearance:none!important;appearance:none!important;

margin:0!important;padding:0!important;border-radius:0!important;

}

#mtp-cc-demo .ccd-hint{font-size:11.5px!important;color:#777!important;margin-top:10px}

#mtp-cc-demo .ccd-hint code{color:#76B900!important;background:#141414!important;padding:1px 5px;border-radius:4px}

必ず JSON 形式で返してください。translation フィールドのみ。他のフィールド (technical_terms 等) は一切追加しないこと — 余計なフィールドを書こうとして本文翻訳がトークン上限で打ち切られる事故を防ぐため:

{"translation": "翻訳全文"}

翻訳全文

/* ビルダー */

#mtp-cc-demo .ccd-field{margin-bottom:12px}

#mtp-cc-demo .ccd-field label{display:block;font-size:12px!important;color:#9a9a9a!important;margin-bottom:5px;font-weight:600}

#mtp-cc-demo .ccd-field input,#mtp-cc-demo .ccd-field textarea{width:100%!important;background:#0d0d0d!important;border:1px solid #242424!important;border-radius:8px!important;color:#fff!important;padding:9px 11px!important;font-size:13px!important;font-family:inherit!important}

#mtp-cc-demo input,#mtp-cc-demo textarea{

color:#ffffff!important;-webkit-text-fill-color:#ffffff!important;caret-color:#76B900!important;

opacity:1!important;pointer-events:auto!important;-webkit-user-select:text!important;user-select:text!important;cursor:text!important;

}

#mtp-cc-demo .ccd-field input:focus,#mtp-cc-demo .ccd-field textarea:focus{border-color:#76B900!important;outline:none!important}

#mtp-cc-demo .ccd-two{display:grid;grid-template-columns:1fr 1fr;gap:12px}

#mtp-cc-demo .ccd-pre{background:#0a0a0a!important;border:1px solid #1f1f1f!important;border-radius:10px!important;padding:14px!important;font-family:"SF Mono",Menlo,Consolas,monospace!important;font-size:12px!important;color:#cfcfcf!important;white-space:pre-wrap;margin-top:8px;min-height:150px}

#mtp-cc-demo .ccd-pre .h{color:#76B900!important}

#mtp-cc-demo .ccd-copy{margin-top:10px;background:#76B900!important;color:#0a0a0a!important;border:none!important;font-weight:700;font-size:13px!important;padding:9px 16px!important;border-radius:8px!important;cursor:pointer}

#mtp-cc-demo .ccd-copy:hover{background:#8fd400!important}

#mtp-cc-demo .ccd-foot{padding:12px 22px!important;border-top:1px solid #1a1a1a!important;font-size:11px!important;color:#666!important;background:#0d0d0d!important;display:flex;justify-content:space-between;flex-wrap:wrap;gap:6px}

必ず JSON 形式で返してください。translation フィールドのみ。他のフィールド (technical_terms 等) は一切追加しないこと — 余計なフィールドを書こうとして本文翻訳がトークン上限で打ち切られる事故を防ぐため:

{"translation": "翻訳全文"}

@media (max-width:640px){

#mtp-cc-demo .ccd-grid,#mtp-cc-demo .ccd-two{grid-template-columns:1fr!important}

#mtp-cc-demo .ccd-title{font-size:18px!important}

#mtp-cc-demo .ccd-body{padding:16px!important}

#mtp-cc-demo .ccd-tab{padding:8px 11px!important;font-size:12px!important}

#mtp-cc-demo .ccd-out{height:220px}

}

Interactive Demo

Claude Code: 25 Features Explorer & Playground

Explore the feature stack, run a simulated terminal, test Auto Mode, and build a CLAUDE.md. Runs fully in your browser.

Feature Explorer

Terminal Simulator

Auto Mode Classifier

CLAUDE.md Builder

All 25

Official

Technique

Third-party

Choose a feature

claude-code — simulated

Try: /help /init /context /review /security-review /mcp /agents /compact — or type a plain request.

Auto Mode routes each action through a Sonnet 4.6 safety classifier. Pick an action or type your own.

Evaluate

Select or type an action to see the classifier verdict.

Project name

Build command

Test command

Lint command

規約(1 行に 1 つ)TypeScript strict モード

デフォルトエクスポートなし

コミット形式:feat/fix/chore(スコープ): 説明

CLAUDE.md プレビュー

CLAUDE.md をコピー

教育用シミュレーション — リビングモデルには接続されていません。データはブラウザから外部へ流出しません。

Marktechpost によって構築 · 2026 年 6 月検証

/* ---- data: 25 features ---- */

var F=[

[1,'CLAUDE.md memory','official','リポジトリにおけるエージェントの憲章。各セッションを読み込み、規約とコマンドを固定します。'],

[2,'Skills','official','.claude/skills/ディレクトリ内の SKILL.md ファイル。/name で呼び出されるか、Claude によって自律的に実行されます。'],

[3,'Subagents','official','独自のコンテキストウィンドウを持つ専門インスタンス。詳細な作業はメインのチャットから隔離されます。'],

[4,'Slash commands','official','スラッシュ記号(/)で始まるタイプ済みのショートカット。組み込みには/init、/compact、/context、/review が含まれます。'],

[5,'Hooks','official','定義されたライフサイクルポイントで発火する決定論的スクリプト。PreToolUse は主要なセキュリティチェックポイントです。'],

[6,'MCP servers','official','Model Context Protocol(モデル・コンテキスト・プロトコル)は、Claude Code を Git

原文を表示

Claude Code started as a terminal coding assistant. It now runs as a layered agentic system. Underneath, Claude Code separates memory, hooks, skills, subagents, plugins, and MCP into distinct layers. Each layer changes what the model can see or do.

This article covers 25 features and strategies for scaling Claude Code. It is written for AI engineers, software engineers, and data scientists. Every code example follows a documented format and runs as written. Each item is labeled by status, so you know what ships with Claude Code and what does not.

What is Claude Code

Claude Code is Anthropic’s agentic coding tool. It works in the terminal, the desktop app, and your IDE. It can read files, run commands, edit code, and call external tools. Under the hood, it runs an agentic loop. That loop chooses tools, accumulates context, and manages long sessions through compaction.

Safety boundaries come from permission modes, checkpoints, sandboxing, and managed settings. The same loop is exposed programmatically through the Agent SDK. Developers extend the tool with a small set of primitives. Those primitives are CLAUDE.md, skills, subagents, slash commands, hooks, and MCP servers. Plugins bundle these primitives into one installable unit.

The 25 Features and Strategies

Each feature/strategy is labeled. ‘Official’ means documented Anthropic functionality. ‘Community technique’ means a workflow pattern, not a shipped feature. ‘Third-party tool’ means software built outside Anthropic.

CLAUDE.md memory file (Official). This file is the agent’s constitution for your repository. Claude reads it every session to anchor conventions and commands.

Skills (Official). A skill is a SKILL.md file with frontmatter under .claude/skills/<name>/. It supports /name invocation and autonomous invocation by Claude.

Subagents (Official). Subagents are specialized instances with their own context windows. Verbose work stays isolated, so your main conversation stays focused.

Slash commands (Official). These are typed shortcuts starting with /. Built-ins include /init, /compact, /context, /review, and /security-review.

Hooks (Official). Hooks are deterministic scripts that fire at defined lifecycle points. PreToolUse is the primary security checkpoint before any tool runs.

MCP servers (Official). Model Context Protocol connects Claude Code to GitHub, databases, and browsers. The server handles integration; Claude reasons about what to do.

Plugins (Official). A plugin is a versioned bundle of skills, subagents, commands, hooks, and MCP definitions. One /plugin command installs the whole set.

Checkpoints (Official). Claude Code snapshots state automatically before changes. Press Escape twice to rewind when something breaks.

Plan mode (Official). Plan mode explores and proposes without executing. It is ideal for scoping work before committing edits.

Permission modes (Official). Default mode asks before each file write and shell command. Other modes trade oversight for speed.

Auto Mode (Official, research preview). A separate Sonnet 4.6 classifier reviews each action first. Safe actions proceed; risky ones get blocked or escalated.

Context compaction (Official). /compact condenses long sessions to preserve usable context. /context reports current context usage.

Background tasks (Official). Long shell commands run with the run_in_background flag on the Bash tool. Claude polls output without blocking the conversation.

Agent SDK (Official). The SDK exposes the same loop programmatically through query(). You can send slash commands like /code-review and process results.

Headless CLI (Official). claude -p "query" runs a one-shot process and exits. Piped input like cat logs.txt | claude -p also works.

GitHub Action and scheduled jobs (Official). Claude Code runs as a one-shot process without a TTY. This enables CI integration, scheduled jobs, and pre-commit hooks.

Output styles and statusLine (Official). Output styles change response formatting. A custom statusLine renderer surfaces session state in the terminal.

Remote Control and mobile push (Official). You can drive Claude Code from mobile or web surfaces. Claude can send push notifications when tasks finish.

Away summary (Official). This session-level feature surfaces context when you return to a paused session. It is enabled by default and can be opted out.

Sandboxing (Official). The sandboxed Bash tool enforces OS-level filesystem and network isolation. Commands run without prompts inside boundaries you define.

Structured context folders (Community technique). Organize task-specific folders for brand guidelines, client data, or legal terminology. The right context loads for each task, improving output relevance.

Dynamic workflows (Community technique). Break complex tasks into smaller steps using sub-agents. Common patterns include ‘classify and act’ and ‘fan out and synthesize.’

Modular skill pipelines (Community technique). Chain reusable skills into end-to-end workflows. A support pipeline can combine categorization, response generation, and escalation skills.

External memory layers (Third-party tool). Tools such as Mem Search or Hermes extend recall across long projects. They sit outside Claude Code’s built-in memory.

Resilience techniques (Community technique). Practitioners reset and retry tasks when output quality degrades. This avoids context pollution and keeps results consistent.

Try the Interactive Demo

#mtp-cc-demo *{box-sizing:border-box!important;margin:0;padding:0}

#mtp-cc-demo{

background:#111!important;color:#e6e6e6!important;

font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif!important;

border:1px solid #2a2a2a!important;border-radius:14px!important;

max-width:920px!important;margin:24px auto!important;overflow:hidden!important;

line-height:1.5!important;font-size:15px!important;

}

#mtp-cc-demo .ccd-head{padding:22px 22px 16px!important;border-bottom:1px solid #1f1f1f!important;background:linear-gradient(180deg,#141414,#111)!important}

#mtp-cc-demo .ccd-badge{display:inline-block;font-size:11px!important;letter-spacing:.14em;text-transform:uppercase;color:#76B900!important;border:1px solid #2f4d00;padding:3px 9px;border-radius:999px;margin-bottom:10px;font-weight:700}

#mtp-cc-demo .ccd-title{font-size:21px!important;font-weight:800;color:#fff!important;letter-spacing:-.01em}

#mtp-cc-demo .ccd-sub{font-size:13px!important;color:#9a9a9a!important;margin-top:5px}

#mtp-cc-demo .ccd-tabs{display:flex;flex-wrap:wrap;gap:6px;padding:14px 18px 0!important;background:#0d0d0d!important;border-bottom:1px solid #1f1f1f!important}

#mtp-cc-demo .ccd-tab{appearance:none;border:1px solid #242424!important;background:#161616!important;color:#bdbdbd!important;

padding:9px 14px!important;border-radius:9px 9px 0 0!important;font-size:13px!important;font-weight:600;cursor:pointer;transition:all .15s}

#mtp-cc-demo .ccd-tab:hover{color:#fff!important;border-color:#3a3a3a!important}

#mtp-cc-demo .ccd-tab.on{background:#111!important;color:#76B900!important;border-color:#2f4d00!important;border-bottom-color:#111!important}

#mtp-cc-demo .ccd-body{padding:20px 22px 24px!important;min-height:340px}

#mtp-cc-demo .ccd-pane{display:none}

#mtp-cc-demo .ccd-pane.on{display:block;animation:ccdfade .25s ease}

@keyframes ccdfade{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}

/* Filter chips */

#mtp-cc-demo .ccd-chips{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:16px}

#mtp-cc-demo .ccd-chip{border:1px solid #242424!important;background:#161616!important;color:#b5b5b5!important;

font-size:12px!important;font-weight:600;padding:6px 12px!important;border-radius:999px!important;cursor:pointer;transition:all .15s}

#mtp-cc-demo .ccd-chip:hover{border-color:#3a3a3a!important;color:#fff!important}

#mtp-cc-demo .ccd-chip.on{background:#76B900!important;color:#0a0a0a!important;border-color:#76B900!important}

#mtp-cc-demo .ccd-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}

#mtp-cc-demo .ccd-card{border:1px solid #1f1f1f!important;background:#151515!important;border-radius:11px!important;padding:13px 14px!important;cursor:pointer;transition:all .15s}

#mtp-cc-demo .ccd-card:hover{border-color:#2f4d00!important;background:#181b13!important;transform:translateY(-1px)}

#mtp-cc-demo .ccd-card h4{font-size:14px!important;color:#fff!important;display:flex;align-items:center;gap:8px;font-weight:700}

#mtp-cc-demo .ccd-num{flex:0 0 auto;width:22px;height:22px;border-radius:6px;background:#1d2a08!important;color:#76B900!important;font-size:11px!important;display:flex;align-items:center;justify-content:center;font-weight:800}

#mtp-cc-demo .ccd-tag{font-size:10px!important;text-transform:uppercase;letter-spacing:.08em;padding:2px 7px;border-radius:5px;font-weight:700;margin-left:auto}

#mtp-cc-demo .t-official{background:#13270a!important;color:#76B900!important}

#mtp-cc-demo .t-technique{background:#1a2433!important;color:#6fa8ff!important}

#mtp-cc-demo .t-third{background:#2a1d33!important;color:#c08bff!important}

#mtp-cc-demo .ccd-card p{font-size:12.5px!important;color:#9a9a9a!important;margin-top:7px;display:none}

#mtp-cc-demo .ccd-card.open p{display:block}

#mtp-cc-demo .ccd-chead{cursor:pointer}

#mtp-cc-demo .ccd-play{display:none;margin-top:11px;border-top:1px solid #1f1f1f!important;padding-top:11px!important}

#mtp-cc-demo .ccd-card.open .ccd-play{display:block}

#mtp-cc-demo .ccd-ctl{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:9px}

#mtp-cc-demo .ccd-runbtn{background:#76B900!important;color:#0a0a0a!important;border:none!important;font-weight:700;font-size:12px!important;padding:7px 14px!important;border-radius:7px!important;cursor:pointer}

#mtp-cc-demo .ccd-runbtn:hover{background:#8fd400!important}

#mtp-cc-demo .ccd-fout{background:#0a0a0a!important;border:1px solid #1a1a1a!important;border-radius:8px!important;padding:10px 11px!important;font-family:"SF Mono",Menlo,Consolas,monospace!important;font-size:11.5px!important;line-height:1.65;max-height:185px;overflow-y:auto}

#mtp-cc-demo .ccd-fout .u{color:#76B900!important}

#mtp-cc-demo .ccd-fout .s{color:#7fb3ff!important}

#mtp-cc-demo .ccd-fout .d{color:#cfcfcf!important}

#mtp-cc-demo .ccd-fout .w{color:#ffb454!important}

#mtp-cc-demo .ccd-fout .e{color:#ff6b6b!important}

#mtp-cc-demo .ccd-fout .muted{color:#666!important}

#mtp-cc-demo .ccd-sel,#mtp-cc-demo .ccd-pin{background:#0d0d0d!important;border:1px solid #242424!important;border-radius:7px!important;color:#fff!important;-webkit-text-fill-color:#fff!important;padding:6px 9px!important;font-size:12px!important;font-family:"SF Mono",Menlo,Consolas,monospace!important}

#mtp-cc-demo .ccd-pin{min-width:170px;flex:1 1 170px}

#mtp-cc-demo .ccd-toggle{display:inline-flex;align-items:center;gap:7px;background:#161616!important;border:1px solid #242424!important;color:#cfcfcf!important;font-size:12px!important;padding:6px 11px!important;border-radius:7px!important;cursor:pointer}

#mtp-cc-demo .ccd-toggle b{color:#ff6b6b!important}

#mtp-cc-demo .ccd-toggle.on b{color:#76B900!important}

#mtp-cc-demo .ccd-knob{width:9px;height:9px;border-radius:50%;background:#ff6b6b;display:inline-block}

#mtp-cc-demo .ccd-toggle.on .ccd-knob{background:#76B900}

#mtp-cc-demo .ccd-count{font-size:12px!important;color:#777!important;margin:4px 0 14px}

#mtp-cc-demo .ccd-pickrow{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:12px}

#mtp-cc-demo .ccd-plabel{font-size:12px!important;color:#9a9a9a!important;font-weight:600}

#mtp-cc-demo select.ccd-featsel{flex:1 1 220px;min-width:200px;background:#0d0d0d!important;border:1px solid #2f4d00!important;border-radius:9px!important;color:#fff!important;-webkit-text-fill-color:#fff!important;padding:10px 12px!important;font-size:13px!important;font-weight:600;font-family:inherit!important;cursor:pointer}

#mtp-cc-demo select.ccd-featsel:focus{outline:none!important;border-color:#76B900!important}

/* Terminal */

#mtp-cc-demo .ccd-term{background:#0a0a0a!important;border:1px solid #1f1f1f!important;border-radius:11px!important;overflow:hidden}

#mtp-cc-demo .ccd-termbar{display:flex;align-items:center;gap:7px;padding:9px 13px!important;border-bottom:1px solid #1a1a1a!important;background:#0d0d0d!important}

#mtp-cc-demo .ccd-dot{width:11px;height:11px;border-radius:50%}

#mtp-cc-demo .ccd-out{padding:14px 15px!important;height:250px;overflow-y:auto;font-family:"SF Mono",Menlo,Consolas,monospace!important;font-size:12.5px!important;line-height:1.7}

#mtp-cc-demo .ccd-out .u{color:#76B900!important}

#mtp-cc-demo .ccd-out .s{color:#7fb3ff!important}

#mtp-cc-demo .ccd-out .d{color:#cfcfcf!important}

#mtp-cc-demo .ccd-out .w{color:#ffb454!important}

#mtp-cc-demo .ccd-out .e{color:#ff6b6b!important}

#mtp-cc-demo .ccd-out .muted{color:#666!important}

#mtp-cc-demo .ccd-inrow{display:flex;align-items:center;border-top:1px solid #1a1a1a!important;padding:10px 13px!important;background:#0d0d0d!important;position:relative;z-index:2;cursor:text}

#mtp-cc-demo .ccd-prompt{color:#76B900!important;font-family:"SF Mono",Menlo,Consolas,monospace!important;font-size:13px!important;margin-right:8px;font-weight:700}

#mtp-cc-demo input.ccd-in{

flex:1 1 auto!important;min-width:0!important;width:auto!important;height:auto!important;

background:transparent!important;border:none!important;outline:none!important;box-shadow:none!important;

color:#ffffff!important;-webkit-text-fill-color:#ffffff!important;caret-color:#76B900!important;

font-family:"SF Mono",Menlo,Consolas,monospace!important;font-size:13px!important;line-height:1.5!important;

opacity:1!important;pointer-events:auto!important;cursor:text!important;

-webkit-user-select:text!important;user-select:text!important;-webkit-appearance:none!important;appearance:none!important;

margin:0!important;padding:0!important;border-radius:0!important;

}

#mtp-cc-demo .ccd-hint{font-size:11.5px!important;color:#777!important;margin-top:10px}

#mtp-cc-demo .ccd-hint code{color:#76B900!important;background:#141414!important;padding:1px 5px;border-radius:4px}

/* Classifier */

#mtp-cc-demo .ccd-pick{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:14px}

#mtp-cc-demo .ccd-pill{border:1px solid #242424!important;background:#151515!important;color:#cfcfcf!important;font-family:"SF Mono",Menlo,Consolas,monospace!important;font-size:12px!important;padding:7px 11px!important;border-radius:8px!important;cursor:pointer;transition:all .15s}

#mtp-cc-demo .ccd-pill:hover{border-color:#3a3a3a!important;color:#fff!important}

#mtp-cc-demo .ccd-verdict{border-radius:11px!important;padding:16px!important;border:1px solid #1f1f1f!important;background:#121212!important;min-height:120px}

#mtp-cc-demo .ccd-vhead{display:flex;align-items:center;gap:10px;font-weight:800;font-size:15px!important}

#mtp-cc-demo .v-safe{color:#76B900!important}#mtp-cc-demo .v-block{color:#ff6b6b!important}#mtp-cc-demo .v-esc{color:#ffb454!important}

#mtp-cc-demo .ccd-vbody{font-size:13px!important;color:#a5a5a5!important;margin-top:9px}

#mtp-cc-demo .ccd-vmeta{font-family:"SF Mono",Menlo,Consolas,monospace!important;font-size:11.5px!important;color:#76B900!important;background:#0d0d0d!important;border:1px solid #1a1a1a;border-radius:7px;padding:8px 10px;margin-top:10px;word-break:break-all}

/* Builder */

#mtp-cc-demo .ccd-field{margin-bottom:12px}

#mtp-cc-demo .ccd-field label{display:block;font-size:12px!important;color:#9a9a9a!important;margin-bottom:5px;font-weight:600}

#mtp-cc-demo .ccd-field input,#mtp-cc-demo .ccd-field textarea{width:100%!important;background:#0d0d0d!important;border:1px solid #242424!important;border-radius:8px!important;color:#fff!important;padding:9px 11px!important;font-size:13px!important;font-family:inherit!important}

#mtp-cc-demo input,#mtp-cc-demo textarea{

color:#ffffff!important;-webkit-text-fill-color:#ffffff!important;caret-color:#76B900!important;

opacity:1!important;pointer-events:auto!important;-webkit-user-select:text!important;user-select:text!important;cursor:text!important;

}

#mtp-cc-demo .ccd-field input:focus,#mtp-cc-demo .ccd-field textarea:focus{border-color:#76B900!important;outline:none!important}

#mtp-cc-demo .ccd-two{display:grid;grid-template-columns:1fr 1fr;gap:12px}

#mtp-cc-demo .ccd-pre{background:#0a0a0a!important;border:1px solid #1f1f1f!important;border-radius:10px!important;padding:14px!important;font-family:"SF Mono",Menlo,Consolas,monospace!important;font-size:12px!important;color:#cfcfcf!important;white-space:pre-wrap;margin-top:8px;min-height:150px}

#mtp-cc-demo .ccd-pre .h{color:#76B900!important}

#mtp-cc-demo .ccd-copy{margin-top:10px;background:#76B900!important;color:#0a0a0a!important;border:none!important;font-weight:700;font-size:13px!important;padding:9px 16px!important;border-radius:8px!important;cursor:pointer}

#mtp-cc-demo .ccd-copy:hover{background:#8fd400!important}

#mtp-cc-demo .ccd-foot{padding:12px 22px!important;border-top:1px solid #1a1a1a!important;font-size:11px!important;color:#666!important;background:#0d0d0d!important;display:flex;justify-content:space-between;flex-wrap:wrap;gap:6px}

@media (max-width:640px){

#mtp-cc-demo .ccd-grid,#mtp-cc-demo .ccd-two{grid-template-columns:1fr!important}

#mtp-cc-demo .ccd-title{font-size:18px!important}

#mtp-cc-demo .ccd-body{padding:16px!important}

#mtp-cc-demo .ccd-tab{padding:8px 11px!important;font-size:12px!important}

#mtp-cc-demo .ccd-out{height:220px}

}

Interactive Demo

Claude Code: 25 Features Explorer & Playground

Explore the feature stack, run a simulated terminal, test Auto Mode, and build a CLAUDE.md. Runs fully in your browser.

Feature Explorer

Terminal Simulator

Auto Mode Classifier

CLAUDE.md Builder

All 25

Official

Technique

Third-party

Choose a feature

claude-code — simulated

Try: /help /init /context /review /security-review /mcp /agents /compact — or type a plain request.

Auto Mode routes each action through a Sonnet 4.6 safety classifier. Pick an action or type your own.

Evaluate

Select or type an action to see the classifier verdict.

Project name

Build command

Test command

Lint command

Conventions (one per line)TypeScript strict mode

No default exports

Commit format: feat/fix/chore(scope): description

CLAUDE.md preview

Copy CLAUDE.md

Educational simulation — not connected to a live model. No data leaves your browser.

Built by Marktechpost · Verified June 2026

(function(){

var root=document.getElementById('mtp-cc-demo');

if(!root||root.dataset.init)return; root.dataset.init='1';

var $=function(s){return root.querySelector(s)};

var $$=function(s){return root.querySelectorAll(s)};

/* ---- data: 25 features ---- */

var F=[

[1,'CLAUDE.md memory','official','The agent\u2019s constitution for your repo. Read every session to anchor conventions and commands.'],

[2,'Skills','official','A SKILL.md file under .claude/skills//. Invoked by /name or autonomously by Claude.'],

[3,'Subagents','official','Specialized instances with their own context windows. Verbose work stays isolated from the main chat.'],

[4,'Slash commands','official','Typed shortcuts starting with /. Built-ins include /init, /compact, /context, /review.'],

[5,'Hooks','official','Deterministic scripts firing at defined lifecycle points. PreToolUse is the primary security checkpoint.'],

[6,'MCP servers','official','Model Context Protocol connects Claude Code to Git

この記事をシェア

関連記事

AI News★52026年6月15日 17:00

AIの緊急停止スイッチ:Anthropicの輸出規制が引き起こしたグローバルなAI主権争奪戦

米国政府は2026年6月13日、同社の強力なAIモデルを全世界からオフラインにする指令を出し、欧州やカナダでAIの支配権を巡る懸念が高まっている。

The Verge AI★42026年6月15日 03:27

中国が「Mythos」にアクセスした可能性、ホワイトハウスが輸出規制の理由に

セマフォールの新報告によると、ホワイトハウスはAnthropic社の生成AIモデル「Mythos」が中国関連グループにアクセスされた恐れから輸出制限を決定した。もし中国政府が同モデルにアクセスしていれば、深刻な国家安全保障上の懸念が生じるという。

Interconnects★42026年6月15日 02:43

AI ガバナンスの AGI 時代へ:米国行政機関が Anthropic の最新モデルへのアクセスを強制停止

米国の行政機関が Anthropic に対し、最新の Claude 5 Mythos/Fable モデルへの内部・外部アクセスを強制停止させたことが、AI ガバナンスの新時代の幕開けとなった。この措置は、人間労働者を補完する AI エージェントの定義や、急速に進化するモデルによるガバナンス課題の増大を示唆している。

今日のまとめ

AI日報で今日の重要ニュースをまとめ読み

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