「.NET 開発基盤部会 Wiki」は、「Open棟梁Project」,「OSSコンソーシアム .NET開発基盤部会」によって運営されています。
コチラ(https://claude.com/ja/product/claude-code)から行う
ワンライナーが提供されているので、コレを使用してインストール。
irm https://claude.ai/install.ps1 | iex
必要に応じ「anthropic.claude-code」をインストール
https://marketplace.visualstudio.com/items?itemName=anthropic.claude-code
Desktop版には、Claude Chat、Claude Designerが同梱される。
claude
claude --resume
(方法は以下の3つでココではOAuth2的?フローを選択)
> 1. Claude account with subscription Pro, Max, Team, or Enterprise 2. Anthropic Console account • API usage billing 3. 3rd-party platform Amazon Bedrock, Microsoft Foundry, or Vertex AI
Accessing workspace: ...\カレント・ディレクトリ > 1. Yes, I trust this folder 2. No, exit
(`/model` コマンド)
1. Default (recommended) ✔ Sonnet 5 · Efficient for routine tasks 2. Sonnet Sonnet 5 · Efficient for routine tasks > 3. Opus Opus 4.8 · Best for everyday, complex tasks · ~2× usage vs Sonnet 4. Haiku Haiku 4.5 · Fastest for quick answers 5. Fable (disabled) Claude Fable 5 is currently unavailable. Learn more: https://www.anthropic.com/news/fable-mythos-access
claude --add-dir C:\XXXX --add-dir ...複数指定可能
/add-dir C:\YYYY > 1. Yes, for this session 2. Yes, and remember this directory 3. No
常にリミットが気になる(笑)
contextを確認する。
contextを圧縮する。
contextをclearする。
「CLAUDE_CONFIG_DIR」を使うが、フォールバックの「.claude」は削除しろと言う話。
# プロファイルファイルが「存在しない」場合は新しく作成する
if (-not (Test-Path $PROFILE)) {
New-Item -Type File -Path $PROFILE -Force
}notepad $PROFILE
function claude-work {
$env:CLAUDE_CONFIG_DIR = "$env:USERPROFILE\.claude-work"
& claude @args
}
function claude-personal {
$env:CLAUDE_CONFIG_DIR = "$env:USERPROFILE\.claude-personal"
& claude @args
}claude-work --resume # とかできる。
/reload-skills
! claude mcp add --transport http github https://api.githubcopilot.com/mcp/ --header "Authorization: Bearer <新しいPAT>"
! claude mcp add --transport http github https://api.githubcopilot.com/mcp/ --header "Authorization: Bearer $env:GH_MCP_TOKEN"
claude mcp add --transport http github https://api.githubcopilot.com/mcp/ --header "Authorization: Bearer <新しいPAT>"