Claude Code 実践Tips & Tricks Anthropic Boris氏による講演まとめ(28分・英語講演を日本語化)

登壇者: Boris(Anthropic Technical Staff / Claude Code 開発者) 動画長さ: 約27分52秒 文字起こし: whisper.cpp large-v3-turbo 作成日: 2026-06-27

エグゼクティブサマリー

AnthropicのテクニカルスタッフでありClaude Codeの開発者であるBoris氏が、「Claude Codeを使い倒すための実践Tips」に絞って解説したセッション。 理論や歴史ではなく、具体的なプロンプト・コマンド・ワークフローを提示している点が特徴。 キーメッセージは次の3点。

  1. Claude Codeはエージェント型 — 行単位の補完ではなく、機能・関数・ファイル単位で構築する想定。
  2. あなたのワークフローを変える必要はない — 既存のIDE / ターミナル / SSH / Tmux に乗る。
  3. 「賢く使う」は次の4ステップで身につく — Q&Aから始める → コード編集 → ツール連携 → コンテキストを与える。
数字で見るインパクト Anthropicの新人技術者オンボーディング期間が 2〜3週間 → 2〜3日 に短縮。 Anthropicの技術職の約80%がClaude Codeを日常的に利用。

01Claude Codeとは

  • 新世代のAIアシスタント。従来のコード補完(数行単位)とは方向性が異なる。
  • フルエージェント型:「機能を作る」「関数全体を書く」「ファイル全体を書く」「バグ全体を直す」ことを想定。
  • あらゆるIDE・ターミナルで動く:VS Code / Xcode / JetBrains / Vim / Emacs / Zed 何でも可。リモートSSH、Tmux環境でもOK。
  • 汎用ツールであるがゆえに、初心者が「何を打てばいいのか」迷いやすい。 → 後述のQ&Aから入るのが正解。
「Claude Codeはとてもパワフルだからこそ、特定のワークフローに縛り付けない。エンジニアが好きなように使えるべきだ」

02初期セットアップで必ずやるべきこと

コマンド効果
/terminal-setupShift+Enterで改行可能に(バックスラッシュ不要)
/themeライト / ダーク / 色覚多様性対応テーマを切り替え
/install-github-appGitHub Issue / PR上で @claude メンション可能に
allowed tools のカスタマイズ毎回プロンプトされるツールを事前許可
Boris氏おすすめの小技 macOS の アクセシビリティ > 音声入力を有効化し、ホットキー2回で口頭プロンプト。
「もう一人のエンジニアに喋りかけるように指示できる」。長文タイプの手間が大幅減。

03最初の一歩は「コードベースQ&A」

Anthropic では新人技術者の初日のオンボーディングに Claude Code を使う。 「Claude Codeをインストール → コードベースに質問する」を即座に行わせるだけで、これまで 2〜3週間かかっていた立ち上がりが2〜3日に短縮。

ここがポイント — ローカル完結

  • インデックス化なし:リモートDBにコードを送らない。
  • コードはローカルに留まる。生成モデルの学習にも使わない。
  • セットアップ待ちなし。インストールしたら即時利用可能。

すぐ使える質問パターン

  • 「この関数はどこで使われている?」「このクラスはどうインスタンス化する?」 → 単純grepではなく、実例を辿って深い回答
  • 「なぜこの関数は引数が15個もあるの?」 → Git履歴を遡って引数追加の経緯や紐づくIssueを要約。
  • 「GitHub Issue #xxx の文脈は?」 → web fetchでIssue本文を取得。
  • 毎週月曜のスタンドアップ用に「今週自分が出荷したもの一覧」をgit logから生成。
なぜGit履歴の活用ができるのか 「システムプロンプトでgitの使い方を教えているわけではない。モデルが優秀だから知っている」。

04コード編集に進む(プランニングとイテレーション)

Claude Codeに与えているツールは意外にも少ない — ファイル編集 / Bash実行 / ファイル検索の基本3種類。これをモデル側が組み合わせて「探索→ブレスト→編集」をこなす。

大規模な変更は「考えさせてから書かせる」

アンチパターン 3000行の機能をいきなり「実装して」と頼む → 一発で正解する時もあるが、外すと全く違うものを作る。
正しいプロンプトコードを書く前にブレストして、プランを作って、私の承認を得てから着手して」と言うだけ。
プランモードを使わなくても、この一文で挙動が変わる。

魔法の呪文:commit, push, PR

「commit, push, PR」と言うだけで、Claudeは git logを読みてプロジェクトのコミットメッセージ規約を学習し、ブランチを切り、コミットしてプッシュし、GitHubでPRを作るところまで実行。

イテレーションを回す仕組みを与える

Claudeに「自分の成果物をチェックする手段」を渡すと、品質が劇的に向上する。

  • ユニットテスト・統合テスト
  • Puppeteerでのスクリーンショット
  • iOSシミュレータのスクリーンショット

これらを与えると、Claudeは結果を見て2〜3回自走でイテレーションし、ほぼ完璧に近づける。

05自分のチームのツールを繋ぐ(Bash / MCP)

Claude Codeに与えられるツールは大きく2種類。

① BashツールとしてのCLI

barley という独自CLIを使って〇〇して」と伝え、--helpで使い方を読ませる。よく使うものは CLAUDE.md に書いてセッション横断で記憶させる。

② MCP(Model Context Protocol)サーバー

MCPツールを登録すれば、外部システムとも統合可能。「新規コードベースに入るとき、チームがすでに使っているツールをすべて渡すと、Claudeが代理で操作してくれる」。

06コンテキストを与える(CLAUDE.md / スラッシュコマンド)

エンジニアが頭の中に持っている「システムの背景」「歴史的経緯」を Claude にも渡せば渡すほど、判断が賢くなる。

CLAUDE.md の置き場所と役割

場所共有範囲用途
プロジェクトルートの CLAUDE.mdチームでGit共有毎セッション自動読込
ローカル CLAUDE.mdnon-checked-in個人専用個人の好み・秘密情報
サブディレクトリの CLAUDE.md該当ディレクトリ作業時のみオンデマンド読込
Enterprise配置全社共通会社全体の規約

CLAUDE.mdに書くべき内容

  • よく使うBashコマンド
  • よく使うMCPツール
  • アーキテクチャの意思決定
  • 重要ファイルへのポインタ
  • スタイルガイド
注意 短く保つこと。長くなるとコンテキストを消費し、かえって有用性が下がる。

その他のコンテキスト投入手段

  • .claude/commands/ 配下のスラッシュコマンド(ホームディレクトリにもプロジェクトにも置ける)。 Anthropic自身、GitHub IssueへのラベリングをGitHub Actions経由のスラッシュコマンドで自動化。
  • @メンションでファイル / ディレクトリをコンテキストに引き込む。

07階層的な設定(プロジェクト / グローバル / Enterprise)

スラッシュコマンド・権限・MCPサーバー設定など、ほぼすべてが3階層で管理可能。

レイヤー適用範囲典型用途
ProjectGitリポジトリ単位チーム共有 / 個人用
Globalそのユーザーの全プロジェクト個人共通設定
Enterprise Policy組織全員強制的なポリシー

権限の許可・ブロック例

  • 全社員が使う特定の test コマンドを Enterprise Policy で自動承認
  • 「絶対に取得してはいけないURL」を Enterprise Policy に書いてブロック。ユーザーは上書き不可。

迷ったらここから始める

推奨 まずは「Shared Project Context(共有プロジェクト設定)」から。1人の作業がチーム全員のメリットになるネットワーク効果を得やすい。

メモリ管理の便利機能

  • /memory:読み込まれている全メモリファイルを可視化/編集
  • # キーで「これを覚えて」と指示すると、保存先メモリを選んで書き込み

実例:Anthropic apps リポジトリ

Web / アプリのコードベースに Puppeteer MCPサーバーを共有設定として組み込み済み。新メンバーは設定不要で、Claudeに e2eテスト自動化やスクショイテレーションを任せられる。

08知って得するキーバインド一覧

キー効果使いどころ
Shift+TabAuto-Accept Editsモードへ切替テスト書き換えのループなど、間違いなく正しい方向のとき
#「これを覚えて」 → CLAUDE.mdに自動追記ツールの使い方をミスっていた時、訂正をその場で記憶
!Bashモードに切替。出力はコンテキストに残る長時間コマンドや「Claudeにも見せたい実行結果」
@ファイル / フォルダをメンション狙い撃ちでコンテキスト追加
EscClaudeの動作を安全に中断軌道修正したい瞬間。セッションは壊れない
EscEsc履歴を遡る過去の発言まで戻ってやり直し
Ctrl+R展開表示(Claudeのコンテキストそのまま)「Claudeが何を見ているか」確認
claude --resume / --continue過去セッションを再開長期プロジェクトの継続作業

09Claude Code SDK(claude -p

claude -p で起動する非対話モードがそのままSDK。Claude Code自身もこれを使って動いている。

claude -p "プロンプト文" \
       --allowedTools "Bash,Read,Edit" \
       --output-format json   # or streaming-json

使われている場面

  • CI(継続的インテグレーション)
  • インシデント対応
  • 各種パイプライン
考え方超知性版のUnixユーティリティ」だと捉えるとよい。プロンプトを渡せばJSONが返る。
git statussentry CLI、GCPバケットの巨大ログをパイプで流し込み、Claudeに「面白い点を探して」と頼める。

10パワーユーザーの並列ワークフロー

Boris氏自身は「Claude normie(普通のユーザー)」だが、社内外のパワーユーザーは次のような使い方をしている。

  • SSH + Tmuxトンネルで複数Claudeセッションを並行運用
  • 同じリポを複数チェックアウトし、リポごとに別Claudeを走らせる
  • Git worktreeで作業を分離しつつ並列化

「同時起動セッション数に制限はない。並列で進められる作業はかなりある」。Anthropicとしてもこの体験を改善中。

11Q&A セッション

Q1. 実装で一番難しかった部分は?

「Bashコマンドを安全に実行する仕組み」。Bashは本質的に危険でシステム状態を予期せず変える可能性がある。一方、毎回手動承認させると生産性が出ない。 落とし所として、

  • 読み取り専用コマンドの判別
  • 静的解析で「組み合わせても安全か」を判定
  • 許可リスト・ブロックリストを階層的(プロジェクト / グローバル / Enterprise)に適用

を組み合わせた、複雑な階層化権限システムに到達した。

Q2. マルチモーダル対応は?

Claude Codeは初期からフルマルチモーダル。ターミナルなので気付きにくいが、以下すべて可能:

  • 画像のドラッグ&ドロップ
  • ファイルパスを渡す
  • クリップボードからコピペ

モックをドラッグ&ドロップ → Puppeteer MCPで実装&スクショ確認、までフル自動化が可能。

Q3. なぜIDEではなくCLIを作ったのか?

  1. Anthropic社内でも使うIDEがバラバラ(VS Code, Zed, Xcode, Vim, Emacs…)。全員に届く最大公約数がターミナルだった。
  2. モデルの進化速度を間近で見ている身として、「今年末には人々がIDEを使わなくなっている可能性すらある」。UIに過剰投資するのは将来的に無駄になりかねない。

Q4. 機械学習・モデリングでも使える?

使える。Anthropic技術職の約80%が日常利用。研究者も Notebook ツールでJupyterノートブックの編集・実行に使っている。

押さえておくべき要点(テイクアウェイ)

  1. 最初の使い道はコードベースQ&A。新人オンボーディングが2〜3週間→2〜3日に。
  2. コードはローカル完結。インデックス化・アップロード・モデル学習なし。
  3. 大きな実装は「プラン→承認→実装」を一文で指示するだけで品質が上がる。
  4. イテレーションの「見える化手段」(テスト/スクショ)をClaudeに渡せばクオリティが化ける。
  5. CLAUDE.mdは短く、階層的に。プロジェクト/個人/Enterpriseで使い分け。
  6. Shift+Tab / # / ! / @ / Esc / Ctrl+R は今すぐ覚える。
  7. claude -p「超知性Unixユーティリティ」。CI/インシデント/パイプラインに組み込める。
  8. 並列運用(Tmux / 複数チェックアウト / Git worktree)でスケールする。
  9. Bash安全実行はClaude Codeの最難所。プロダクトの信頼性を支えている。
  10. フルマルチモーダル。モック画像→実装→Puppeteer検証まで一気通貫。
  11. CLIを選んだ理由=最大公約数+将来のIDE脱却を見据えた賭け。

📝英語フルトランスクリプト

クリックして全文を展開(約440行 / 英語原文)
Hello. Hey, everyone. I'm Boris. I'm a member of technical staff here at Anthropic, and I created Claude Code, and here to talk to you a little bit about some practical tips and tricks for using Claude Code. It's going to be very practical. I'm not going to go too much into the history or the theory or anything like this. And, yeah, before we start, actually, can we get a quick show of hands who has used Claude Code before? Yeah. All right. That's what we like to see. For everyone that didn't raise your hands, I know you're not supposed to do this while people are talking, but if you can open your laptop and type this, and this will help you install Claude Code just so you can follow along for the rest of the talk. All you need is Node.js if you have it. This should work. — What is Claude Code? — Claude Code is a new kind of AI assistant. Most prior generations have been about completing a line or a few lines of code at a time. Claude Code is fully agentic — meant for building features, writing entire functions, entire files, fixing entire bugs. It works with all your tools: VS Code, Xcode, JetBrains, Vim, Emacs — every IDE, every terminal, locally or over SSH/Tmux. It's general purpose, which can make "what do I type?" hard at first. — Setup — Run /terminal-setup (Shift-Enter for newlines), /theme (light/dark/daltonize), /install-github-app (today's announcement: @-mention Claude on any GitHub issue or PR). Customize allowed tools so you're not prompted every time. On macOS, enable dictation in Accessibility — hit the dictation key twice and just speak prompts. — Tip #1: Start with Codebase Q&A — The thing I recommend above everything else: ask questions about your codebase. We teach this on day one of technical onboarding at Anthropic. Onboarding used to take 2–3 weeks; now 2–3 days. There's no indexing — no remote DB with your code, code stays local, we don't train generative models on it. No setup, no waiting. Useful Q&A prompts: • How is this piece of code used? / How do I instantiate this? — goes beyond text search, finds real instantiation examples. • Why does this function have 15 arguments? — walks git history, finds who added them, links commits to issues, summarizes. • Look up GitHub issues with web fetch. • Every Monday: "what did I ship this week?" — reads git log by my username and gives a clean readout. We're not system-prompting Claude to use git history. The model just knows. We're lucky to build on such a good model. — Tip #2: Editing code — Small tool set: edit file, run bash, search files. Claude strings them together. Don't drop a 3,000-line ask cold. Best move: "before you write code, brainstorm, make a plan, run it by me, ask for approval." You don't need plan mode — just ask. Magic incantation: "commit, push, PR" — Claude reads git history, learns your commit format, branches, commits, pushes, opens the PR. No prompt engineering required. — Tip #3: Plug in your team's tools — Two kinds: bash CLIs (tell Claude the command, point at --help, drop frequent ones in CLAUDE.md) and MCP servers. Tell Claude about the tool and it starts using it. When entering a new codebase, give Claude everything the team already uses. Common workflows: 1. Explore → plan → confirm → code. 2. Give Claude a way to check its own work (unit tests, Puppeteer screenshots, iOS simulator). Then it iterates 2–3 times by itself and gets near-perfect output. Whatever your domain — give it a feedback loop. — Tip #4: Give Claude more context — CLAUDE.md is the special file. Project root CLAUDE.md → check in, share with team, auto-loaded each session. Local CLAUDE.md → personal, not checked in. Nested CLAUDE.md → pulled when working in that directory. Enterprise CLAUDE.md → org-wide. Contents: common bash commands, common MCP tools, architectural decisions, important files, style guide. Keep it short — long files eat context. Other context vectors: • .claude/commands/ slash commands (home dir or project). We use one in the Claude Code repo to label GitHub issues via a GitHub Action so humans don't have to. • @-mention files to pull them into context. Hierarchical config (project / global / enterprise) applies broadly: slash commands, permissions (allow/block lists), MCP server config. Example: block a URL company-wide via enterprise policy — users can't override. Auto-approve a common test command for all employees. Check an MCP JSON into the repo and every engineer gets prompted to install on first run. If unsure where to start: shared project context. Write once, share with the team, get network effects. /memory shows all loaded memory files; you can edit them. Pound-sign (#) to ask Claude to remember something — pick which memory file to write to. Real example: Anthropic's apps repo ships a Puppeteer MCP server config — every engineer can drive e2e tests and screenshots without installing themselves. — Pro tips: key bindings — Terminal is minimal so discoverability is hard. Quick reference: • Shift-Tab → auto-accept edits mode (bash still asks; edits don't). Use when Claude is on track. • # → remember this (writes to CLAUDE.md). • ! → bash mode. Runs locally; result goes into Claude's context. • @ → mention files/folders. • Esc → safely stop whatever Claude is doing. No corruption. • Esc Esc → jump back in history. • Ctrl-R → expand output (what Claude sees in context). • claude --resume / --continue → reopen prior session. — Claude Code SDK — Right after this talk, Sid does a deep dive on the SDK. The -p flag IS the SDK. Pass a prompt, allowed tools (specific bash commands too), and an output format (json or streaming-json). We use it in CI, incident response, all kinds of pipelines. Think "super-intelligent Unix utility" — pipe in, pipe out. Pipe in `git status` and use jq. Read a giant GCP-bucket log and ask Claude what's interesting. Pipe in Sentry CLI output. We've barely scratched the surface. — Advanced: parallel use — I'm a Claude normie — usually one running, maybe a few terminal tabs. Power users have SSH/Tmux tunnels into Claude sessions, multiple checkouts of the same repo with multiple Claudes, or git worktrees for isolation. We're actively making this easier. No limit on sessions. — Q&A — Q: Hardest part to implement? A: Safe Bash. Bash is inherently dangerous; manual approval on every command is unusable. We landed on: classifying read-only commands, static analysis to decide which combinations are safe, and a tiered permission system (project/global/enterprise allow- and block-lists). Hard because not everyone runs in Docker. Q: Multimodal? A: Fully multimodal from day one. Terminal makes it non-obvious. Drag-and-drop an image, give a file path, or copy-paste. I use it often: drag-drop a mock, give Claude a Puppeteer server, let it implement-and-iterate. Q: Why CLI not IDE? A: Two reasons. (1) At Anthropic engineers use VS Code, Zed, Xcode, Vim, Emacs — hard to build something for everyone, terminal is the common denominator. (2) We see up close how fast the model is improving — there's a good chance people aren't using IDEs by year-end. Want to be ready for that future and avoid over-investing in UI that may become irrelevant. Q: Use for ML / modeling / AutoML? A: A lot. Engineers and researchers at Anthropic both use Claude Code every day — roughly 80% of technical staff daily. That includes researchers using the notebook tool to edit and run notebooks. Thanks.